Skip to content

Forms: several invite roles / hidden roles per form (#844) - #896

Merged
mbhewitt merged 1 commit into
mainfrom
feat/form-multi-roles
Nov 29, 2026
Merged

mbhewitt merged 1 commit into
mainfrom
feat/form-multi-roles

Conversation

@mbhewitt

Copy link
Copy Markdown
Owner

Refs #844. Mew asked on 2026-11-29 whether a form supports several "hidden from" and "only for" roles. It does now.

  • Migration 034: op_forms.invite_role_id / hidden_role_id become JSON lists, invite_role_ids / hidden_role_ids. Any existing values are carried over; on prod none were set. The old columns are dropped.
  • Who sees a form:
    • Holding any invite role shows the form.
    • Holding any hidden role hides it, even from someone who was invited.
    • An empty list means no limit.
  • Invite email: still sent once per person per form, even when the person holds several invite roles.
  • Editor: both pickers are multi-select.
  • Tests: the 39-forms invite test now uses two-role lists. Locally, 39 and 32 pass. Footer 2027.G.00896.C.

🤖 Generated with Claude Code

Mew 2026-11-29: "does it support multiple hidden from role, only for
roles". Migration 034 turns op_forms.invite_role_id / hidden_role_id
into JSON lists (invite_role_ids / hidden_role_ids, existing values
carried over). Any invite role shows the form; any hidden role hides it.
Editor pickers are multi-select. Footer 2027.G.00896.C.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mbhewitt
mbhewitt merged commit 1aa4eae into main Nov 29, 2026
1 check 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