-
Notifications
You must be signed in to change notification settings - Fork 69
DROID-4101 Widgets | Enhances filter handling for DataView widgets #2858
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
DROID-4101 Widgets | Enhances filter handling for DataView widgets #2858
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.
Pull Request Overview
This PR enhances filter handling for DataView widgets by ensuring proper relation format propagation from StoreOfRelations and improves template resolution logic for object creation in DataView contexts.
- Added a new suspend function
updateFormatForSubscription(StoreOfRelations)to fetch the latest property formats from the store - Updated
buildViewerContextCommonto be suspendable and call the new filter format update function - Refactored object creation logic to use a new dedicated
resolveTemplateForDataViewObjectfunction that prioritizes viewer templates over ObjectType defaults - Added
EXACT_INto the list of permitted conditions for prefilling new objects from filters
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| DataViewListWidgetContainer.kt | Made buildViewerContextCommon suspend and integrated the new filter format update logic with explanatory comments |
| ObjectSetExtension.kt | Added updateFormatForSubscription overload for StoreOfRelations and new resolveTemplateForDataViewObject function for template resolution |
| HomeScreenViewModel.kt | Refactored proceedWithCreatingDataViewObject to use the new template resolution function and updated named parameters in another call site |
| PermittedConditions.kt | Added EXACT_IN condition to permitted filter conditions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
What type of PR is this? (check all applicable)
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?