Repository navigation
fix(station,wallet): remove a deleted user group from its members - #675
Merged
Merged
Conversation
Removing a user group now also removes it from the users that are still members of it, including inactive users. On upgrade, the station also drops the ids of user groups that no longer exist from user records, so user records stay consistent with the existing user groups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011s2DjdDkqmvLbmPneUM22j
The remove confirmation and pending remove user group requests now list the users that are still members of the group. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011s2DjdDkqmvLbmPneUM22j
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Membership warnings can disappear during loading or understate the impact when permissions hide affected users.
2 open issues
What changed in this PR
This PR keeps station user memberships consistent when groups are deleted and adds wallet warnings about affected members.
Changes:
- Remove deleted groups from active and inactive users, and clean up stale memberships during upgrades.
- Show localized membership warnings in removal confirmations and pending removal requests.
- Add station cleanup tests and wallet warning tests.
| File | Description |
|---|---|
| core/station/impl/src/services/user_group.rs | Remove memberships on group deletion and test cleanup. |
| core/station/impl/src/services/system.rs | Clean up missing group references after upgrade cache initialization. |
| apps/wallet/src/pages/UserGroupsPage.vue | Add membership warnings to removal confirmations. |
| apps/wallet/src/locales/pt.locale.ts | Add Portuguese warning messages. |
| apps/wallet/src/locales/fr.locale.ts | Add French warning messages. |
| apps/wallet/src/locales/en.locale.ts | Add English warning messages. |
| apps/wallet/src/components/users/UserGroupMembersWarning.vue | Fetch and display affected members with a fallback warning. |
| apps/wallet/src/components/users/UserGroupMembersWarning.spec.ts | Test warning text, counts, empty results, and lookup failures. |
| apps/wallet/src/components/requests/operations/RemoveUserGroupOperation.vue | Show warnings for removal requests awaiting execution. |
Review effort: Balanced
…oaded The confirmation can be submitted before the member lookup finishes, so the generic warning is shown until the members are loaded instead of no warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011s2DjdDkqmvLbmPneUM22j
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sea-snake
approved these changes
Oct 23, 2026
sea-snake
marked this pull request as ready for review
November 2, 2026 12:14
|
✅ No security or compliance issues detected. Reviewed everything up to 9a01a9e. Security OverviewDetected Code Changes
|
…tesla-eif3yb Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011s2DjdDkqmvLbmPneUM22j
sea-snake
enabled auto-merge (squash)
November 3, 2026 12:22
…tesla-eif3yb Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011s2DjdDkqmvLbmPneUM22j
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.

Summary
upgrade_canister, since the repositories read from the cache.Testing
cargo fmt,clippyand the wasm build are clean.vue-tscare clean.The French and Portuguese strings would benefit from a native speaker's review.
Generated by Claude Code