fix: monitor filter state syncing [ENG-2401]#7239
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
02f54b3 to
534c6e4
Compare
Greptile SummaryThis PR fixes an out-of-sync state handling issue in the Changes made:
Critical issue found: Confidence Score: 2/5
Important Files Changed
|
There was a problem hiding this comment.
Additional Comments (1)
-
clients/admin-ui/src/features/data-discovery-and-detection/action-center/fields/MonitorFieldFilters.tsx, line 162-171 (link)logic: Missing
useEffectto sync local state with applied state changes. The local state is initialized once withuseState(resourceStatus), but ifresourceStatus,dataCategory, orconfidenceBucketchange externally (e.g., from URL changes, reset actions, or other components), the local state won't update. This means the popover will show stale values.Add after line 171:
2 files reviewed, 2 comments
...in-ui/src/features/data-discovery-and-detection/action-center/fields/MonitorFieldFilters.tsx
Show resolved
Hide resolved
fb9f642 to
aa39764
Compare
The state doesn't need to be synced in this way. |
89db3f6 to
4b7865d
Compare
chore: minor const change
4b7865d to
24f888c
Compare
jpople
left a comment
There was a problem hiding this comment.
Tested locally, confirmed fixed.
Ticket ENG-2401
Description Of Changes
Fixing an out-of-sync state handling where the
MonitorFieldFilterscomponent was not reflecting the current state of the applied filters.Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works