-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 Provide unique keys for components in MultiselectFilterControl #1949
Conversation
The component creates ToolbarFilter and ChipGroup components from provided data which may be dynamic. It may happen that the created components have the same keys as other filters created manually. Provided unique keys are built by concatenating category title and group name. The category title is known at compile time and is expected to be unique. Group name is calculated from the provided data. Each group results in new ToolbarFilter/ChipGroup Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1949 +/- ##
==========================================
+ Coverage 39.20% 42.16% +2.96%
==========================================
Files 146 166 +20
Lines 4857 5320 +463
Branches 1164 1330 +166
==========================================
+ Hits 1904 2243 +339
- Misses 2939 3061 +122
- Partials 14 16 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM
Addresses issue #1944 introduced by #1903 (follow-up to #1946)
The MultiselectFilterControl component discovers groups from provided data. Each group results in a new ToolbarFilter/ChipGroup pair. Before this fix, the keys were based only on group names. In case of Language filter it created a collision with Language group derived from Tags.
After this fix, the keys are built by concatenating category title and group name. The category title is known at compile time and is expected to be unique among all filters on the screen.
Reference-Url: #1944
Reference-Url: #1903
Reference-Url: #1946