-
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
feat: [DHIS2-18017] Ability to unlink event from edit/view event page #3846
Conversation
…/feat/DHIS2-18017_AbilityToUnlinkEvent
…/feat/DHIS2-18017_AbilityToUnlinkEvent
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.
Hey @henrikmv - this looks like a great start! As always, when we're doing quick actions on DHIS2 data, the complexity is always bigger that what we believe at first, but have a look at my comments and let's go through it if needed 🙌 Good work.
...s/capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/Modal/UnlinkAndDeleteModal.js
Outdated
Show resolved
Hide resolved
...re_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useLinkedEventByOriginId.js
Outdated
Show resolved
Hide resolved
...re_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useLinkedEventByOriginId.js
Outdated
Show resolved
Hide resolved
.../capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/Modal/useDeleteRelationship.js
Outdated
Show resolved
Hide resolved
...modules/capture-core/components/WidgetTwoEventWorkspace/WidgetTwoEventWorkspace.container.js
Outdated
Show resolved
Hide resolved
...re_modules/capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/Modal/UnlinkModal.js
Outdated
Show resolved
Hide resolved
...dules/capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/OverflowMenu.component.js
Outdated
Show resolved
Hide resolved
…/feat/DHIS2-18017_AbilityToUnlinkEvent
…/feat/DHIS2-18017_AbilityToUnlinkEvent
...e_modules/capture-core/components/WidgetTwoEventWorkspace/hooks/useRelationshipTypeAccess.js
Outdated
Show resolved
Hide resolved
src/core_modules/capture-core/dataQueries/useOrganisationUnits.js
Outdated
Show resolved
Hide resolved
...s/capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/Modal/UnlinkAndDeleteModal.js
Outdated
Show resolved
Hide resolved
...s/capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/Modal/UnlinkAndDeleteModal.js
Outdated
Show resolved
Hide resolved
...s/capture-core/components/WidgetTwoEventWorkspace/OverflowMenu/Modal/UnlinkAndDeleteModal.js
Show resolved
Hide resolved
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.
Great job @henrikmv! 🥳
🚀 Deployed on https://deploy-preview-3846.capture.netlify.dhis2.org |
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.
Tested successfully on 2.42, 2.41.3, 2.40.7,2.39.9 versions
…_AbilityToUnlinkEvent
…_AbilityToUnlinkEvent
This reverts commit a0c848f.
# [101.20.0](v101.19.4...v101.20.0) (2024-12-17) ### Features * [DHIS2-18017] Ability to unlink event from edit/view event page ([#3846](#3846)) ([ad352f5](ad352f5))
🎉 This PR is included in version 101.20.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
DHIS2-18017:
Added
OverflowMenu.component.js
with options to view, unlink, and unlink and delete events.UnlinkModal
to handle unlinking relationships without deleting them.UnlinkAndDeleteModal
to handle the unlinking and deletion of events.Added validation
unlink
with write access to relationship typeunlink and delete
with access to relationship type and access to the stage of the linked event.Other improvements
ScheduleInOrgUnitPlain
.10.1.1