GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.45k stars 1.13k forks source link

Model: refact data/datetype fields #12659

Open etj opened 2 days ago

etj commented 2 days ago

The ResourceBase model at the moment handles the two date fields (related to data, not to metadata):

Since CSW ISO AP defines "CreationDate", "RevisionDate", "PublicationDate" as queriables, we may replace the fields date and date_type with:

where

The migration should populate the new fields using the date and date_type fields:

Once the migrations are done,

gannebamm commented 2 days ago

I do not understand why the publication and revision also should set other fields. Did I misunderstand your post?

Why should the creation and revision date be set to the publication date? For me this seems semantically incorrect.