Bug #6649
Shapefile basket: no sign of status
0%
Description
In the admin: the drop down menu shows the list of tables (eg. V_ROAD_CYCP), but we cannot select the status (eg. E for existing, F for Future).
However, in this example, V_ROAD_CYCP is matched by 2 categories:
- R11 (status: E)
- R47 (status: F)
Related issues
Associated revisions
Refs #6649: category model maker: only use categories with status 'E' (default)
Refs #6649: fix survey layer inheritence; show correct status info; fix ISO layer name
Refs #6649: fix import to respect status in flask-admin: align survey model inheritence with the master branch
Refs #6649: add status to features in shapefile import
Refs #6649: give status as geo feature property
History
#1 Updated by Philippe May over 5 years ago
It's a bug in Gisaf: it takes the first model (category) matching the table name (identified in ModelRegistry.get_geom_model_from_table_name()).
This function should return a list of model, that's the easy part.
A more difficult part is with the admin interface: display the list of models with all the possible status.
Another thing to take care of: update the existing files in the basket (presumably, set a default status "E").
Technical note: the FileImport model (that stores the information of the files in the basket) has a status attribute, but it's unused.
#2 Updated by Philippe May about 5 years ago
- Related to Support #7605: No distinct tables for different statuses yet (eg. E, F etc) added
#3 Updated by Philippe May about 5 years ago
- File add_status_column.sql View added
The most practical solution is probably to add a "status" attribute to all layer's tables.
Add a column status (char) to all layer table (see attachment).
#4 Updated by Philippe May about 5 years ago
- Status changed from New to In Progress
Added status 'E' to all existing features
#5 Updated by Philippe May about 5 years ago
Added status 'E' to all shapefiles in the basket:
update gisaf_admin.file_import set status = 'E';
and adjusted manually the status of IZ-01-LL84_V-BLDG-OTLN------F.zip
(i think it's the only file until now with a status not 'E').
#6 Updated by Philippe May about 5 years ago
- Status changed from In Progress to Resolved
- Assignee changed from Philippe May to Pavneet Kaur
@Pavneet: tested on my laptop, seems OK, and we can try in "production" when you're ready (i'll probably have to give some explanations, such as the new field "status" in the basket).
Please also keep in mind that resolving this issue involved quite a few changes in the basket, on the map, also a bit in the database, etc, so i hope i didn't break many other things.
#7 Updated by Philippe May about 5 years ago
- Status changed from Resolved to Closed
Added the option to style differently with mapbox.
For example, the building outlines: http://gisaf.csr.av:8000/old-admin/category/edit/?id=B26&url=%2Fold-admin%2Fcategory%2F%3Fflt0_14%3Doutline
#8 Updated by Philippe May about 5 years ago
- Related to Bug #7699: "Internal error" when importing rain data from Chrisitan (in csv format) added
#9 Updated by Philippe May about 5 years ago
- Related to Bug #7906: Importing survey data with status: some features aren't displayed added