-
Notifications
You must be signed in to change notification settings - Fork 22
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
refactor: [TECH-1657] standardize format of redux orgunits #3436
Conversation
Or else cypress will click the button too soon
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.
Been thinking about the file structure and we should look into reorganising a bit (will make another ticket for this). For this PR, my suggestion is to put what you have in redux/organisationUnits
into a new folder metadataRetrieval/detailedOrganisationUnit
. The files should be renamed accordingly (skip the Redux-part). If you like you can change the Redux reducer/key name also. Main reason being that it's most important what you get, not that it is stored in Redux (implementation detail).
But this looks really good overall @superskip, sound logic all around 👍
src/core_modules/capture-core/redux/organisationUnits/useReduxOrgUnit.js
Outdated
Show resolved
Hide resolved
src/core_modules/capture-core/redux/organisationUnits/useReduxOrgUnit.js
Outdated
Show resolved
Hide resolved
src/core_modules/capture-core/redux/organisationUnits/organisationUnits.actions.js
Outdated
Show resolved
Hide resolved
Hey @JoakimSM, thanks for the review! What better way to describe this type of orgunit than naming it's origin? Maybe what it is compatible with, like 🤔 I like the ring to |
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.
Good job 👍
🚀 Deployed on https://deploy-preview-3436--dhis2-capture.netlify.app |
# Conflicts: # src/core_modules/capture-core/components/DataEntries/EnrollmentRegistrationEntry/EnrollmentRegistrationEntry.container.js # src/core_modules/capture-core/components/DataEntries/TeiRegistrationEntry/TeiRegistrationEntry.container.js # src/core_modules/capture-core/components/Pages/Enrollment/EnrollmentPageDefault/EnrollmentPageDefault.container.js # src/epics/trackerCapture.epics.js
🎉 This PR is included in version 100.43.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
TECH-1657
I've put some effort into arranging the commits.
Might be a good idea to open the first commit in a separate window for easy reference.