cznethub / dsp

CZNet Hub Data Submission Portal
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Same keywords of different casing #98

Closed Maurier closed 9 months ago

Maurier commented 1 year ago

Description of the bug Updates to an existing HydroShare resource will fail if the request payload contains a keyword that already exists in the resource in different casing. For example, if the resource already contains a keyword Cznet, submitting a request that contains the keyword CzNet will throw an error.

A workaround has been put in place to replace occurrences of required keywords with the casing specified in our schema.

However, this constraint will still cause trouble in instances where different casings of a keyword are desired (i.e: “Urban” is not the same as “urban”).

We need to decide how to handle this and explore if this constraint exists in other repositories and if they can be eliminated.

horsburgh commented 1 year ago

@Maurier and @sblack-usu - I'm going to add this one to the v1.3 milestone, but maybe we need to discuss the solution to this one?

horsburgh commented 1 year ago

Same keywords with different casing should be regarded as equivalent and should not be attempted to be added to HydroShare.

Maurier commented 1 year ago

Same keywords with different casing should be regarded as equivalent and should not be attempted to be added to HydroShare.

Jeff, should we consider doing the same for EarthChem and Zenodo?

horsburgh commented 1 year ago

I think Yes.