-
Notifications
You must be signed in to change notification settings - Fork 35
feat: [DHIS2-20001] Hide unsupported attribute types from search form in Capture #4383
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-20001] Hide unsupported attribute types from search form in Capture #4383
Conversation
|
🚀 Deployed on https://deploy-preview-4383.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.
The implementation good to me 🎉 ! Could it be possible to add one Cypress test for it? Thanks!
JoakimSM
left a comment
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.
Looks good @henrikmv
|
# [104.6.0](v104.5.0...v104.6.0) (2025-10-24) ### Features * [DHIS2-20001] Hide unsupported attribute types from search form in Capture ([#4383](#4383)) ([4bfe20d](4bfe20d))
|
🎉 This PR is included in version 104.6.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |



DHIS2-20001
This pull request ensures that users are informed when some attributes are hidden from search due to unsupported types.
User notifications and UI improvements:
UnsupportedAttributesNotificationcomponent that displays a warning message and lists unsupported attributes hidden from search forms.Search attribute handling and data flow:
SearchGroupFactoryto separate supported and unsupported search attributes based on a new constant (UNSUPPORTED_SEARCH_ATTRIBUTE_TYPES). Unsupported attributes are now stored in theSearchGroupobject and excluded from the rendered search form.Support for new unsupported types:
TRACKER_ASSOCIATE,UNIT_INTERVAL,REFERENCE,LETTER, andGEOJSON.These changes improve user awareness of search limitations and remove unsupported attribute types from the search forms. The reason for displaying the message in
UnsupportedAttributesNotificationas awarningis that havingsearchableset on these attributes can be considered a configuration error. Therefore, it is shown as a warning rather than as informational.Cypress test will be added in DHIS2-20316.