-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix: [DHIS2-16084] Filter unidirectional relationship types #3477
fix: [DHIS2-16084] Filter unidirectional relationship types #3477
Conversation
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.
Nice simplification on the top level and very clear implementation on the lower level 👍
...e-core/components/WidgetsRelationship/common/RelationshipsWidget/useGroupedLinkedEntities.js
Show resolved
Hide resolved
...ules/capture-core/components/WidgetsRelationship/common/useRelationships/useRelationships.js
Show resolved
Hide resolved
@@ -137,7 +137,7 @@ const getLinkedEntityData = (apiLinkedEntity, relationshipCreatedAt, pendingApiR | |||
return null; | |||
}; | |||
|
|||
const determineLinkedEntity = (fromEntity, toEntity, sourceId) => { | |||
export const determineLinkedEntity = (fromEntity: ApiLinkedEntity, toEntity: ApiLinkedEntity, sourceId: string) => { |
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.
Might as well add the return type too?
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.
...etsRelationship/WidgetTrackedEntityRelationship/WidgetTrackedEntityRelationship.component.js
Show resolved
Hide resolved
Thanks for the review, @superskip! Should be fixed now 🙌 |
🚀 Deployed on https://deploy-preview-3477--dhis2-capture.netlify.app |
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.41,2.40.3,2.39.5,2.38.6 versions
## [100.47.3](v100.47.2...v100.47.3) (2023-12-14) ### Bug Fixes * [DHIS2-16084] Filter unidirectional relationship types ([#3477](#3477)) ([3579fc0](3579fc0))
🎉 This PR is included in version 100.47.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Tech summary:
to
-sideTest case: https://dhis2.atlassian.net/browse/DHIS2-16239