EarthSystemCoG / COG

COG source code
BSD 3-Clause "New" or "Revised" License
8 stars 16 forks source link

Search with min/max dates requires searching All Versions #1350

Closed LucaCinquini closed 7 years ago

LucaCinquini commented 7 years ago

Who: Martina

I have a request for a CoG search adaptation: If a user specifies min_version and/or max_version, it does not make sense to restrict the search to the 'latest' datasets by default. The search should give him all available dataset versions meeting the min_version/max_version restriction.

Otherwise with a latest=true, a user resolving a data citation including the version information (max_version) might miss some datasets in his result list, which are no longer latest.

Katharina implemented a demo case to show what I mean. A min_version/max_version CoG search request should behave like esgf-fedtest.dkrz.de/search2/testproject/?project=CMIP5&institute=INM&experiment=1pctCO2

instead of behaving currently like esgf-fedtest.dkrz.de/search/testproject/?project=CMIP5&institute=INM&experiment=1pctCO2

LucaCinquini commented 7 years ago

Now implemented: when a user select a search with either min_version or max_version, CoG automatically sets searchInput.latest=False which means searching on All Versions.