-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platform.short_name and instrument.short_name cannot be empty #1
Comments
As mentioned in nansencenter/nansat#389, a dataset can have several sources. Currently, we have one source per Dataset but moving the This involves some significant changes in the code, including migrations, so it needs some focus time... |
I suggest to add all "super-fields" of shortname to the |
Then reverse migration:
|
…st version of Aqua platform keywords (was AQUA before)
…from ForeignKey source to ManyToManyField sources, changed __str__ method of Source to rely on platform and instrument only (not specs) and removed the field specs.
…de itself. Assert that the entry_title is now equal to the filename, test new use of 'platform/instrument' as list
…t and parameter instead of source. This is still ongoing..
… there is extra information linked to the connection between two models. In this case, we don't have that...
…new migrations, and updated fixtures. This also applies to #51
Note that the current search form only allows single entries of parameters, platforms and instruments. If we want to be able to search, e.g., several parameters, we need to change the filtering in the render method |
…d search in viewer.views.IndexView.render
…he Django server in the local web browser
…ged natural_key and get_by_natural_key methods of the Source model
geospaas.catalog.models.Source defines natural_key() Solution 1Add all fields to natural key: Category, Class, etc Solution 2Remove natural_key() Solution 3Replace ForeingKey with ManyToMany relatiuonship from Dataset to Source. That is complicated |
@akorosov |
Closed in #80 by removing natural_key from several models in vocabularies. |
platform.short_name and instrument.short_name are used as natural_key in Source and cannot be empty.
But for level-4 data the short_names are empty because higher level GCMD platform and GCMD instrument must be used (e.g. ACTIVE REMOTE SENSING).
So far a hack is introduced in Nansat for GLOBCURRENT data: mapper_opendap_globcurrent sets instrument and platform to Jason-1.
The text was updated successfully, but these errors were encountered: