chore: use last year's periods
Key features
- use last year's period wherever possible
Description
This is to avoid failing tests in the beginning of a new year when the new data is not added to the test DB yet.
🚀 Deployed on https://pr-3321.data-visualizer.netlify.dhis2.org
I converted to Draft since I realised the data is not the same for all the years, so some tests now fail because they expect a different value. It's easy to fix the tests where there is actual data for both the current and the last year, but in some cases there is only data for the current year, so for those we would have to add the data to the DB dump.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
8.2% Duplication on New Code