Giter VIP home page Giter VIP logo

Comments (4)

nemesifier avatar nemesifier commented on August 26, 2024

I cannot replicate this issue in django-loci, trying on master.

When I create a device with type indoor and supply no floorplan information, the browser asks for confirmation that I want to save an indoor device without supplying indoor coordinates, I confirm that and the device gets saved without issues, which is OK, because sometimes people need to create objects, flag them as indoor but they can't set the indoor coordinates in that moment, they defer that for the future, we recently changed the code to allow this.

So what is the issue? @purhan were you able to replicate this issue in the dev environment? Were you able to write a failing test to replicate the issue? That's what we have to do before trying to fix something.

@atb00ker can you replicate this issue on the current master after running all the migrations?

from django-loci.

purhan avatar purhan commented on August 26, 2024

So what is the issue? @purhan were you able to replicate this issue in the dev environment?

Yes, I was able to replicate the issue for the exact settings as in the screenshot. I have pushed a patch in the commit above.

from django-loci.

atb00ker avatar atb00ker commented on August 26, 2024

@nemesisdesign Yes, I am able to do it in latest master, here is a screen recording: https://streamable.com/i9s6v1

from django-loci.

nemesifier avatar nemesifier commented on August 26, 2024

Thank you very much @atb00ker, now is a lot clearer, the info of flagging it as mobile was missing from the issue description (I added it now), that's why I was not able to replicate it. I now remember that you wrote this in the general chat, but I forgot, so remember to always update the issue description when you find out that some key info is missing, otherwise we risk that multiple people will incur in the same issue repeatedly.

So, based on what I can see, the solution is clear, in this case a a ValidationError should be raised, while it's not being raised and then the saving fails on the DB side because the field is NOT NULL (rightly so).

from django-loci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.