Open NyakudyaA opened 7 years ago
@NyakudyaA pls test again and comment or close
@gubuntu Errors still exist and we need to disable all fields associated with geoserver
@NyakudyaA @lucernae I wonder if this affects metadata upload as well? If we upload a new metadata doc to replace one for a layer in QGIS server backend, is GeoNode rejecting it because of lack of mandatory geoserver fields?
@lucernae I'm labelling this Ready as it might be an issue for the GeoSAFE demo instance.
@NyakudyaA could you test this and other metadata issues while setting up the demo data?
related to #251 and #143
@lucernae is this affected by https://github.com/kartoza/geosafe/pull/378
@gubuntu yes. On several notes.
Let me know if you have some problem with it. There maybe some edge cases which I didn't think of.
I don't think the normal use case is to edit metadata via admin but rather via uploading or the UI so I'll close this. (open again if you disagree @NyakudyaA )
thanks for comments @lucernae
@gubuntu The recommended way of editing metadata is by using the UI which allows you to upload new metadata records but the backend also provides more options in terms of editing metadata.
Although it should not be high priority to fix this I suggest we need to fix this at some point so that users can have a seamless workflow.
The only two fields which are required are the store
and style
. The easiest way would be just to disable these two since QGIS backend does not use them or alternatively just fill them in with dummy values.
OK let's leave this in the backlog
Yes, I agree with @NyakudyaA we should be able to disable/hide Geoserver's specific field such as store and style. We can probably override the admin page.
Problem
When a layer's metadata is edited using the geonode admin page it has mandatory fields like : SLD which prevent it from saving the metadata. If you put a fake url for the metadata it saves the record.
After this change if you try to access the layer in geonode/layers/layer_name it gives an error because it now tries to look for the sld.
Solution
Disable mandatory fields when editing layers through geonode admin page.