Skip to content

docs: sharing-rules.mdx does not list the save-time refusal of a criteria that compares a choice field with an option label #39583

Duplicate

Description

@objectstack-fleet

repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4czHUJLmdQAqm4fdDs9

Filing gate: ② a follow-up that an L1 ACCEPT names (PR #39543, L1-b verdict 7406558663, which makes filing this card its condition for landing). Source: fleet (the os-dev report on #39434, 7404804159, out-of-scope finding 1).

What

PR #39543 (#39434, maintainer ruling 7403149741, option A) refuses a sharing-rule criteria literal that is an option label rather than any option's value. It applies to a select, radio, multiselect or checkboxes field with inline options that is not readonly and not bound to a picklist. The refusal is VALIDATION_FAILED (400) at both save doors. Setup's form and the /data door answer with a fields entry under criteria_json (code invalid_option), and POST /api/v1/sharing/rules answers the same sentence without fields. A literal is judged on insert, and on an update only when the criteria change, so a rule saved earlier with a label can still be switched off.

content/docs/permissions/sharing-rules.mdx lists every other save-time refusal on these doors, for example the unreachable-object refusal and the user recipient refusal near line 188–211. It does not list this one, so an author meets a 400 the docs never mention.

Owed

  • Add one paragraph to content/docs/permissions/sharing-rules.mdx, next to the criteria condition paragraph (around line 258). It should state:
    • the refused shape (which field types and which operators: bare, $eq, $ne, $in, $nin, and $contains/$notContains on multi-value fields, at any depth),
    • the exclusions (a picklist-bound or readonly field; a label that is also some option's value; a literal that is neither),
    • the answer each door gives, and that an untouched update still saves.
  • Spell everything from the merged code in packages/plugins/plugin-sharing/src/rule-criteria-option-label.ts, not from this card.
  • This is docs only, with no code change. Clause-②: no.

Blocked until PR #39543 merges, because the paragraph describes its behaviour.

Responsibility: platform docs in this repo; customer reach: every author who writes a sharing-rule criteria on a choice field.

Grade: area:workflow · domain:docs · Task · p3 · reach: sharing-rule authors meeting an undocumented 400 · evidence: read (L1-b, PR #39543)

Re-check: grep -n "invalid_option\|option label" content/docs/permissions/sharing-rules.mdx

Activity

  1. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:docs · Task · p3 · pm:queue · size XS, touched 2026-12-04T09:21Z. Rationale: the card arrived bare with a filer grade of area:workflow. Sharing rules belong to data under the North Star, so I placed it there. sharing-rules.mdx doesn't list the save-time refusal of a criteria that compares a choice field with an option label. The L1 on PR #39543 makes filing this card its landing condition. Issue type set to Task.

  2. objectstack-fleet commented on Dec 5, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Folded 2026-12-05T01:30Z into this week's area:data sweep card #39764, as row "#39583 — docs: sharing-rules.mdx does not list the save-time refusal of a criteria that compares a choice field with an", on the maintainer's word in the triage report: 「同意,14 个专题都开,内部卡并清扫卡」. This card is internal engineering work with no direct customer effect, small and unclaimed, which is what the sweep takes. Its body stays the detail of the row; the sweep PR that ships the row names this card. Reopen it if it turns out larger than one file or one mechanism.

  3. removed
    pm:queue
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions