Skip to content
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

Is PrimaryUseCategoryCV in timeseries data suppose to act like BeneficialUseCategory? #196

Open
rwjam opened this issue Jan 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@rwjam
Copy link
Member

rwjam commented Jan 10, 2024

Not sure if intentional, but the PrimaryUseCategoryCV field in the SiteVariableAmounts_fact table for site-specefic time series data has the same CV checks and balances as a BeneficialUseCategory does. Meaning any entry into PrimaryUseCategoryCV has to be in the CVs.BeneficialUses table.

Wasn't the intended use of PrimaryUseCategoryCV for SiteVariableAmounts_fact have it act the same way as PrimaryBeneficialUseCategory does for the AllocationAmounts_fact table?

image

  • Side Note: It's not shown in the figure, but BeneficialUseCategory is mandatory for our WaDE Uploader scripts in order to input data into the SiteVariableAmounts_fact table (this is due to the 1-M relationship we have in our schema with the timeseries data).
@rwjam rwjam added bug Something isn't working question Further information is requested labels Jan 10, 2024
@rwjam rwjam changed the title Is PrimaryUseCategoryCV in timeseries data suppose to act like BeneficialUseCategory?? Is PrimaryUseCategoryCV in timeseries data suppose to act like BeneficialUseCategory? Jan 10, 2024
@rwjam
Copy link
Member Author

rwjam commented Jan 11, 2024

For a temp fix, we will add the WaDE Name entries (the stuff we use to assign a value to the PrimaryUseCategoryCV column) into the CV.BeneficialUseCategory as a new category / row entry. This will allow us to continue to work with timeseries data and have it behave as intended.

We will try and get DPL / Nathan to take a look at this in the future when funding is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants