Comments (4)
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.
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.
@nemesisdesign Yes, I am able to do it in latest master, here is a screen recording: https://streamable.com/i9s6v1
from django-loci.
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)
- [change] Use ReconnectingWebsocket to websocket connection
- [change] Rethink LOCI_FLOORPLAN_STORAGE
- [feature] Allow to configure leaflet referrerPolicy
- [bug] Delete geometry in change view doesn't work
- [model] Allow indoor location without indoor coords
- [qa] Add run-qa-checks, upgrade to openwisp-utils 0.5.1, black formatter HOT 4
- [bug] ignores `is_mobile` False from device HOT 4
- [bug] websocket connect error in location change form page
- [docs] Add animated gif to README HOT 7
- [release] Release django-loci 0.4.0
- [deps] Update channels and pytest
- [CI] Move to github actions
- [bug] Geocoding operations should not hit external services during tests but should be mocked
- [bug] Assigning an existing geographic location is broken HOT 1
- [change] Adjust or remove strict test HOT 4
- [bug:ux] You can select outdoor locations when creating floor plans HOT 1
- [deps] Add support for django 3.2 and django 4.0 alpha
- [bug] ObjectLocation admin doesn't work in readonly mode HOT 2
- [ci] Add python 3.8 and python 3.9, remove python 3.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-loci.