Fix Azure AD Group Member Count Summary
Bug fix release. Corrects icon counts in Azure AD group summaries to include both inline members and separate azuread_group_member child resources.
🐛 Bug fixes
Fixed: Azure AD group summaries show incorrect member counts (#447)
When Azure AD groups had members defined both inline (via the members attribute) and as separate azuread_group_member child resources, the summary line only counted inline members. Separate child resources appeared in the member table but weren't reflected in the icon counts.
Before:
🔄 azuread_group platform_engineers | 0 👤 0 👥 0 💻 2 ❓ | ➕ 2 members
- Icon counts showed zeros or undercounted members
- Member table had more rows than the icon summary indicated
- Separate
azuread_group_memberresources were missing from icon counts
After:
🔄 azuread_group platform_engineers | 3 👤 1 👥 1 💻 | ➕ 5 members
- Icon counts now include ALL members (inline + separate child resources)
- Counts correctly show member types: 👤 users, 👥 groups, 💻 service principals
- Icon counts match the number of rows in the member table
Technical details:
The fix adds a post-merge update step that runs after parent-child relationship merging completes. It extracts all member IDs from the merged child resource groups, recounts members by type using the existing principal mapper, and updates the icon counts in the summary HTML.
This approach maintains the simple architecture without introducing new interfaces or registry patterns.