Skip to content

fix(ownership): Handle ownership rule owners without an id#112321

Merged
scttcper merged 1 commit into
masterfrom
scttcper/ownership-optional-owner-id
Apr 7, 2026
Merged

fix(ownership): Handle ownership rule owners without an id#112321
scttcper merged 1 commit into
masterfrom
scttcper/ownership-optional-owner-id

Conversation

@scttcper
Copy link
Copy Markdown
Member

@scttcper scttcper commented Apr 6, 2026

update our frontend types to match the new backend types added in #110604

Make id optional on OwnershipRuleOwner, skip the avatar stack for owners missing an id, and filter them out of the owner selector.

The backend can return ownership rule owners with just a name and type
but no id — this happens with unresolved codeowner entries. The frontend
was treating `id` as always present which broke avatar rendering and the
"my teams" filter.

Make `id` optional on `OwnershipRuleOwner`, skip avatar stack rendering
for owners missing an id, and filter them out of the owner selector.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 6, 2026
@scttcper scttcper requested review from a team and cvxluo April 7, 2026 00:01
@scttcper scttcper marked this pull request as ready for review April 7, 2026 00:01
@scttcper scttcper requested a review from a team as a code owner April 7, 2026 00:01
@scttcper scttcper merged commit b069aa4 into master Apr 7, 2026
74 of 75 checks passed
@scttcper scttcper deleted the scttcper/ownership-optional-owner-id branch April 7, 2026 22:59
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
update our frontend types to match the new backend types added in
#110604

Make `id` optional on `OwnershipRuleOwner`, skip the avatar stack for
owners missing an id, and filter them out of the owner selector.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants