-
Notifications
You must be signed in to change notification settings - Fork 84
fix: bulk select normalization #7022
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
cc4a930 to
82ee727
Compare
82ee727 to
5f5ec21
Compare
5f5ec21 to
1f262e2
Compare
1f262e2 to
881c21d
Compare
881c21d to
0fde054
Compare
Greptile OverviewGreptile SummaryThis PR introduces a data normalization pattern for managing async data in the Action Center list and drawer views. The changes create a generic Key changes:
Issues found:
Confidence Score: 4/5
Important Files ChangedFile Analysis
|
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.
12 files reviewed, 2 comments
clients/admin-ui/src/features/data-discovery-and-detection/action-center/action-center.slice.ts
Outdated
Show resolved
Hide resolved
c322f36 to
d4cc592
Compare
012cd72 to
a3f081d
Compare
a3f081d to
d9fa341
Compare
d9fa341 to
0bbc57a
Compare
0bbc57a to
1eea962
Compare
1eea962 to
a33d20f
Compare
a33d20f to
32c6715
Compare
gilluminate
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.
approved with a couple of questions. nothing blocking. Looks good.
| stagedResourceUrn, | ||
| )}`, | ||
| url: `/plus/discovery-monitor/staged_resource/${ | ||
| stagedResourceUrn ? encodeURIComponent(stagedResourceUrn) : "" |
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.
Are you sure this works? I tried it in the Swagger docs and it threw an error because the staged_resource_urn is required. Would it be better to use a skip or something?
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.
This is an unfortunate type issue with RTK.
I did use skip, but to use the hook i would still be required to pass in a value (essentially passing in an empty string if i don't have a value).
You can't conditionally choose to use a hook unless you decide to add conditional components that contain the hook (not exactly ergonomic).
I could type cast and pretend it's always there but that's prone to bugs.
This seemed like the most honest workaround.
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.
Yeah, been there. Makes sense. Maybe just a comment about it?, but no big deal.
...-ui/src/features/data-discovery-and-detection/action-center/fields/useNormalizedResources.ts
Show resolved
Hide resolved
32c6715 to
2f9fb39
Compare
fix: bulk select normalization wip: nearly there chore: fixing naming update test: adding normalization test refactor: lots of small refinements wip: some linting and adding new hook refactors chore: linting refactor: names and interfaces chore: linting test: bulk list select chore: linting fix: rendering issues fix: tests chore: update changelog fix: rename refactor: url builder chore: update apis refactor: api update changes fix: new field mapping refactor: removing old code
chore: formatting
3449fe5 to
6f3a584
Compare
Ticket []
Description Of Changes
Fixes a bugs when dealing with async data in the list and drawer view and starts to establish a pattern for normalizing data as nodes.
Code Changes
Steps to Confirm
Classifier steps
datastore_monitor_action_center_enabled = trueto the[detection_discovery]section of the.fides/fides.tomlfile in fidesplus/settings/aboutand toggling the optionNormalized data steps
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works