Skip to content

feat(identity): add Has Owner column to groups list - #495

Merged
KelvinTegelaar merged 2 commits into
CyberDrain:devfrom
sfaxluke:feature/groups-missing-owner-column
Sep 6, 2026
Merged

feat(identity): add Has Owner column to groups list#495
KelvinTegelaar merged 2 commits into
CyberDrain:devfrom
sfaxluke:feature/groups-missing-owner-column

Conversation

@sfaxluke

@sfaxluke sfaxluke commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a hasOwner boolean to the Groups list response — live view via the existing (already-supported, just previously unused) expandOwners Graph $expand, cached/AllTenants view via the CIPPDB report cache which already fetches owners.
  • Adds it as a filterable column on the Groups page, so groups missing an owner are visible and filterable without expanding each row.
  • Deliberately does not emit ownersCsv on the live path, since doing so would silently swap out the existing interactive "View owners" button (with its Add/Remove Owner actions) for a read-only text column.

Test plan

  • PowerShell parser check on all three edited backend files
  • ESLint clean on the edited frontend file
  • Backend Pester suite for the touched files passes (Invoke-ListGroups.Tests.ps1, Get-CIPPGroupsReport.Tests.ps1 — 7/7, including the -AsRawJson blob-splicing tests)
  • Confirmed via diff that the frontend cachedColumn/sub-table swap logic this PR routes around (util-subTables.js) is byte-identical to when it was last tested — the frontend Vitest suite itself currently can't run on dev at all (unrelated pre-existing ReferenceError: React is not defined in the shared theme, breaks every unit test, not caused by this PR)

Closes #494

🤖 Generated with Claude Code

Surfaces whether a group has an owner directly in the groups table
instead of requiring the Owners row to be expanded, using the
existing single-Graph-call expandOwners path (live) and the CIPPDB
report cache (AllTenants/cached), so no extra Graph calls are added.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sfaxluke
sfaxluke marked this pull request as draft September 4, 2026 16:01
@sfaxluke
sfaxluke force-pushed the feature/groups-missing-owner-column branch from 23ced1a to 8d538a2 Compare September 4, 2026 16:05
@sfaxluke
sfaxluke marked this pull request as ready for review September 4, 2026 16:05
CI caught this: the existing "documented order" test pins the exact
list of computed properties Set-CIPPDBCacheGroups appends, and the
hasOwner property added in the previous commit shifted it without
updating the assertion.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@KelvinTegelaar
KelvinTegelaar merged commit 674932c into CyberDrain:dev Sep 6, 2026
21 checks passed
bmsimp added a commit that referenced this pull request Sep 6, 2026
The groups list gained a Has Owner column in #495. Add the matching
row to Table Details, after Owners, to mirror the column order in
simpleColumns.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants