Skip to content

Document dynamic groups gotcha: silent data loss on PUT#3

Merged
ispyisail merged 1 commit intomasterfrom
doc/dynamic-group-gotcha
Mar 7, 2026
Merged

Document dynamic groups gotcha: silent data loss on PUT#3
ispyisail merged 1 commit intomasterfrom
doc/dynamic-group-gotcha

Conversation

@ispyisail
Copy link
Owner

Summary

  • Documents that dynamic (smart) groups with isDynamic: true silently ignore manual member updates via PUT /member/{id}
  • The API returns 200 OK with the group in the response, but changes don't persist — a silent data loss trap
  • Adds detection code example using GET /memberGroup to check isDynamic before updating
  • Also documents that group color field cannot be empty string (returns 422)

Context

Discovered during hc-group-fixer development when 611 member group updates appeared successful (200 OK, group confirmed in response) but had no effect on the Hello Club UI or actual group membership.

Test plan

  • Verified against live API (Mar 2026)
  • PUT returns 200 with group in response but does not persist
  • GET /memberGroup correctly exposes isDynamic flag
  • Dynamic groups not shown in Hello Club admin UI member profile checkboxes

🤖 Generated with Claude Code

Dynamic (smart) groups with isDynamic: true have their membership
computed from ruleSets. The API silently accepts PUT requests that
include dynamic groups and returns them in the response, but the
changes never persist. Discovered after 611 member updates appeared
successful but had no effect.

Also documents that group color field cannot be empty (422).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ispyisail ispyisail merged commit 13d0de3 into master Mar 7, 2026
4 checks passed
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.

1 participant