feat: [UIE-10256] - IAM: fix useGetChildAccountsQuery#13419
Merged
Conversation
aaleksee-akamai
commented
Feb 19, 2026
| return useQuery({ | ||
| ...delegationQueries.childAccounts({ params, users, filter }), | ||
| placeholderData: keepPreviousData, | ||
| ...queryPresets.shortLived, |
Contributor
Author
There was a problem hiding this comment.
there might be a better approach but so far i’ve only found this one
Contributor
There was a problem hiding this comment.
The proper approach would be to delete placeholderData: keepPreviousData all together (no need to replace it with short lived) and invalidate delegationQueries.childAccounts on PUT and DELETE users/<user>
Contributor
Author
There was a problem hiding this comment.
yeah, it makes sense, thanks!
Cloud Manager UI test results🔺 1 failing test on test run #4 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/parentChild/account-switching.spec.ts" |
|||||||||||||||||
abailly-akamai
approved these changes
Feb 23, 2026
Contributor
abailly-akamai
left a comment
There was a problem hiding this comment.
Great! this is nicer.
I wonder if there's more invalidation cases we're not thinking about but this is one is now handled 👍
mpolotsk-akamai
approved these changes
Feb 24, 2026
Contributor
mpolotsk-akamai
left a comment
There was a problem hiding this comment.
Great fix! Thanks!
This was referenced Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description 📝
This PR fixes a stale data for the Account Delegations table
Changes 🔄
List any change(s) relevant to the reviewer.
Scope 🚢
Upon production release, changes in this PR will be visible to:
Preview 📷
Screen.Recording.2026-02-19.at.6.26.58.PM.mov
Screen.Recording.2026-02-19.at.6.25.18.PM.mov
How to test 🧪
Prerequisites
(How to setup test environment)
Reproduction steps
(How to reproduce the issue, if applicable)
Verification steps
(How to verify changes)
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅