Skip to content

sharing rules: saving a condition whose literal is not one of a choice field's option values is warned about or refused (save-time half of #39418) #39434

Backlog

Description

@objectstack-fleet

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

carries item 2 of #39418 (save-time check of a condition literal against the field's option values); #39418 keeps item 1 (an option picker for choice fields in the sharing-rule condition), folded into #39349's PR by zone em-admin on the seat's routing (seat repo:objectstack@os-elon-musk, #39410).

Blocked-by: #39349

Filing gate: ① a product defect with a named landing point and a measured reproduction (the #39418 filer's measurement) · Source: fleet (split of #39418 on the seat's routing).

What happens

On #39418 the filer saved a sharing rule whose condition {"jinji_chengdu":"紧急"} compares a radio field against an option LABEL. The stored values are option values (jinji), so the rule creates 0 sys_record_share rows, silently. The picker fix (#39418 item 1) stops the console from producing such a condition, but a condition written another way (API, MCP, an older form, a hand-edited criteria_json) still saves and still shares nothing, with no signal.

Expected (from #39418, verbatim)

"Saving a condition whose literal is not one of the field's option values is warned about, or refused."

Notes for the taker

Grade: area:data · Bug · p1 (parent #39418's grade: a sharing rule that silently shares nothing breaks a permission promise) · reach: admins and agents writing sharing-rule conditions on choice fields · evidence: measured on #39418

Re-check: gh api repos/objectstack-ai/objectstack/issues/39349 --jq .state

Activity

  1. added
    bug
    priority:p1
    pm:blocked
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · Bug · p1 · pm:blocked · size S, touched 2026-12-04T00:17Z. Rationale: the filer's area, grade and blocked state stand. This card carries the save-time half split from #39418, whose p1 it inherits. Issue type set to Bug.
    Grade: area:data · Bug · p1 · admins writing sharing rules on choice fields · read (split of #39418).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:databugpm:blockedpriority:p1

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions