WSWCWaterDataExchange / MappingStatesDataToWaDE2.0

Manage all code to map and import state's data into WaDE 2.0
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Minting WestDAAT UUIDs: removing spaces or adding underscore? #167

Closed amabdallah closed 1 year ago

amabdallah commented 1 year ago

Problem Having spaces in UUDs may cause a problem when a user (e.g., Reclamation) tries to generate a URL for the landing page based on the UUID they get from our data download or API.

Example WaDE Water Right Identifier WYwr_WRCR CC62371

In this example in Wyoming, our landing page adds % to fill the spaces in the UUID. https://westdaat.westernstateswater.org/details/right/WYwr_WRCR%20CC62371

Solution

  1. Leave as-is
  2. Removing spaces
  3. Replace spaces with underscore

Challenge We're trying to be consistent by generating a UUID based on the exact state identifier and not messing with the pattern of minting UUIDs.

rwjam commented 1 year ago

I think that is reasonable and we should be able to accommodate this easily enough. We will probably plan on removing all unnecessary spaces and special characters used to define a native water right id in the creation of our own UUID values.

amabdallah commented 1 year ago

Should we close this issue as resolved?