-
Notifications
You must be signed in to change notification settings - Fork 19
fix: remove d2 #3023
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
base: master
Are you sure you want to change the base?
fix: remove d2 #3023
Conversation
🚀 Deployed on https://pr-3023.data-visualizer.netlify.dhis2.org |
5b66293
to
823a99b
Compare
The confirm screen when leaving the page didn't work with functional components.
Needed once the Highchart's offline export PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes all look great, the bundle size will have decreased and I think the code is a lot easier to follow in many places now. The changes we discussed when you walked me through the changed have all been implemented, so I think this is ready for KFMT now 🚀 .
Just one additional note after my approval. If fixing the SonarCube issue is easy to do then it would be good to address it. But on the other hand:
|
I refactored the test and extracted the intercept function. |
) | ||
goToStartPage() | ||
}) | ||
it('opens the period dimension modal', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cypress testing best practices would suggest that the whole describe should be in a single test:
https://docs.cypress.io/app/core-concepts/best-practices#Having-Tests-Rely-On-The-State-Of-Previous-Tests
https://docs.cypress.io/app/core-concepts/best-practices#Creating-Tiny-Tests-With-A-Single-Assertion
You can leave the old titles as comments if you feel that is informative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored.
|
Implements DHIS2-19197
Key features
d2
entirelyDescription
This branch has changes to remove the need for
d2
.TODO
d2
be tested in Cypress and what in unit tests
ALL
, do we really need theisSuperuser
flag?Known issues
d2
as it's using some classes defined in that package.settings
. Fixed here.Screenshots
Not very meaningful but this is the app running on this branch:
