-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(flutter_desktop): grid bug #7697
Conversation
Reviewer's Guide by SourceryThis pull request fixes a bug where field settings were not being updated correctly and adds a test case to verify that hidden properties remain hidden when new fields are created. The fix involves modifying the Sequence diagram for updating field settingssequenceDiagram
participant FC as FieldController
participant FN as FieldNotifier
participant FS as FieldSettings
FC->FC: _listenOnFieldSettingsChanged()
activate FC
FC->FC: updateFieldSettings(updatedFieldSettings)
FC->FS: removeWhere(field.fieldId == updatedFieldSettings.fieldId)
activate FS
deactivate FS
FC->FS: add(updatedFieldSettings)
activate FS
deactivate FS
FC->FN: fieldInfos = newFields
activate FN
deactivate FN
loop For each field setting change
end
deactivate FC
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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 @richardshiue - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a more specific test case that directly targets the bug fix.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@richardshiue Add an additional test to verify that when a user alters the width of a field and then updates the field settings, the width resets to its default value. |
* fix: field width doesn't persist * test: add test * test: fix test * test: grid width integration test
Feature Preview
PR Checklist
Summary by Sourcery
Fix a grid field settings update bug in the database view
Bug Fixes:
Tests: