8000 fix(api): align membership management with roster permissions by mwoods79 · Pull Request #770 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(api): align membership management with roster permissions - #770

Merged
mwoods79 merged 3 commits into
mainfrom
t3/secure-group-member-api
Dec 3, 2026
Merged

mwoods79 merged 3 commits into
mainfrom
t3/secure-group-member-api

Conversation

@mwoods79
@mwoods79 mwoods79 commented Dec 3, 2026
Copy link
Copy Markdown
Contributor

Summary

Owners can change a member’s role through JSON:API. Membership removal uses the same roster visibility and role rules as GraphQL. Ash callers must use the purpose-built membership actions.

Evidence

  • Before — The owner role-change acceptance test failed. The missing-membership test also failed to receive a not-found response.
  • After — The selected membership changes role and a second member keeps theirs. A missing or inaccessible roster entry returns the standard JSON:API 404 not_found error. GraphQL’s membership tests cover the same permissions. MCP exposes self-service join and leave only.

Merge Danger

Door: Reversible

  • Reverting restores the prior API behavior. Role changes already saved persist and can be changed again by the group owner.

Blast Radius: Narrow

  • JSON:API clients identify the membership with data.id on role changes and receive 404 for unavailable entries on removal.
  • Ash callers managing memberships use the named join, leave, add, remove, and role-change actions. Deployment requires no migration or owner intervention.

@mwoods79
mwoods79 merged commit ac87baf into main Dec 3, 2026
5 checks passed
@mwoods79
mwoods79 deleted the t3/secure-group-member-api branch December 3, 2026 01:53
mwoods79 added a commit that referenced this pull request Dec 3, 2026
* origin/main:
  fix(groups): coordinate departures with group and account closure (#772)
  fix(api): align membership management with roster permissions (#770)

# Conflicts:
#	lib/huddlz/communities/release_spots.ex
mwoods79 added a commit to Beehtrix/huddlz that referenced this pull request Dec 5, 2026
…nails

* upstream/main:
  fix(groups): release non-member spots when a group becomes private (huddlz-hq#775)
  fix(deps): patch Ash advisories and preserve huddl capacity totals (huddlz-hq#778)
  fix(deps): upgrade Ash to 3.39.0 for policy security fixes (huddlz-hq#776)
  fix(huddl): release non-member spots on members-only edits (huddlz-hq#771)
  fix(groups): coordinate departures with group and account closure (huddlz-hq#772)
  fix(api): align membership management with roster permissions (huddlz-hq#770)
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

0