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

PDR-322 migration to update variance records #319

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

cameronpettit
Copy link
Contributor

bcgov/bcparks-ar-admin#322

Migration script will add the fields historicalAverage and yearlyAverages to the fields property of variance reports.

When variance reports were introduced, they were only implemented for records that were created during or after 2022, since the data from prior years was unverifiable. Therefore, this migration is only applied to >=2022 records, to remove the risk of creating inaccurate data in any variance records prior to 2022.

@cameronpettit cameronpettit requested a review from marklise March 14, 2024 17:08
Copy link

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@cameronpettit
Copy link
Contributor Author

Going for the cognitive complexity high score and therefore will not be refactoring this code.

@cameronpettit cameronpettit merged commit c62b266 into bcgov:main Mar 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants