-
Notifications
You must be signed in to change notification settings - Fork 2
feat: [DHIS2-20632] Program tracked entity attributes #720
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?
Conversation
✅ Deploy Preview for dhis2-maintenance-app-beta ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Pull request overview
This PR implements filtering of tracked entity attributes in the program enrollment data form to exclude attributes that are already associated with the tracked entity type. This prevents duplication by filtering out tracked entity type attributes (TETA) from the available attributes list during program configuration.
Key changes:
- Extended the tracked entity type field filter in the Edit query to include nested tracked entity type attributes
- Added logic to track and filter out tracked entity type attributes from the available attributes selection
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/pages/programsWip/Edit.tsx | Extended the trackedEntityType field filter to fetch trackedEntityTypeAttributes[trackedEntityAttribute[id]] for filtering purposes |
| src/pages/programsWip/form/EnrollmentDataFormContents.tsx | Added trackedEntityTypeField subscription and filter logic to exclude tracked entity type attributes from available attributes in the ModelTransfer component |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…y type attributes
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.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.



DHIS2-20632
Summary
This PR handles how Tracked Entity Type Attributes (TETA) and
Program Tracked Entity Attributes (PTEA) should be displayed, configured, and saved
when creating or editing a program.
Key changes
Attribute lists behaviour
Configure attributes table
Saving and API order
Sync behavior when editing existing programs
Warning on TETA changes
Assumptions and clarifications
Configuration tableand in theTransfermodal.