Skip to content

Shared views: an org admin without manage_metadata is offered 「共享」 and refused; a view created Shared stays an unpublished draft #36409

Closed

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Found while building #36371, which closed as not planned: the rule 「只有管理员可以在前端界面创建共享视图」 already holds, and sharing or unsharing an existing view is 「暂时不考虑」 (coordinator#1's correction 7077377066). Measured by that card thread at origin/main 3faabd2 (PR #36398's body). Filed by the seat.

What happens

  1. An organization administrator is offered 「共享」 and then refused. The Console offers the Shared choice in Add view when the reader isAdmin. An organization administrator is isAdmin but does not hold manage_metadata, so the save answers 403 FORBIDDEN. The server refusal is right (ADR-0066 D1); the offer is wrong.
  2. A view created Shared is invisible to everyone until someone publishes it. It is saved as a draft (ADR-0034), so nobody else sees it, against the maintainer's 「保存即生效」 (ruling record 7058616478).
  3. A view that is gone is dropped silently. A reader whose address names a view the server answers not_found for sees the default view with no word of why.

To do

  1. Offer 「共享」 only to a reader whose session holds manage_metadata.
  2. Save and publish a view created Shared in one act (the 在列表上的改动都改成临时的(排序、筛选、分组、列的显示和顺序):立即生效但不保存,出现「放弃」和「保存」;列宽、行高、标签页顺序只记在浏览器里;退掉服务端的个人列表偏好 #35955 door), with a refused publish changing nothing.
  3. Tell the reader once when the view in the address is gone.
  4. ⛔ No 「设为共享」 or 「取消共享」 on existing views (not now, per the maintainer).

Acceptance

  • An organization administrator without manage_metadata is not offered 「共享」; an administrator with it creates a shared view that a member sees at once.

Grade

p2 · area:ux · domain:ui. Administrators hit a refused save, and shared views do not appear for anyone.


Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    Claim: PM loop round 4
    Session: session_01QsR2jTeURPvEm465RcoYEC
    Thread session: session_01QsR2jTPMb2q2wRssyREqhQ
    Account: zhuangjianguo
    Branch: claude/project-thread-393bw7 (the thread's container pushes only to its own branch name)
    Worktree: objectstack-issue-36409
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-seat (single-card thread; enters no area)
    File surface: the view switcher and Add view in ui/packages/app-shell/src/views/ (objectViewViewSharing, the title switcher, CreateViewDialog), the save-and-publish helper the #35955 door uses, useMetaItemRefusal, @object-ui/i18n keys, content/docs/ui/views.mdx, the rest meta-write capability pin test, their tests — ⛔ no 「设为共享」 / 「取消共享」 on existing views (not now, per the maintainer)
    Container & model: M, mode:thread, model: default tier (the thread re-derives dispatch-gates --tier at its head), effort: high (seat order)
    Clause-②: yes (widening) — new @object-ui/i18n keys (the thread re-judges from the diff)
    Metadata-protocol: none (the thread re-judges from the diff)
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds — measured by the #36371 card thread at origin/main 3faabd2 (PR #36398 body); #36371 itself closed as not planned (7077377066)
    Serial constraints cleared: none beyond #35955 step 2 (not duplicated); overlap-check before every push.
    Pre-claim lane: repo:objectstack seat 7 filed this card from the #36371 thread's measurement and keeps it in that thread (same branch and PR #36398, re-pointed), under the maintainer's 「交接给你的任务 p1 p2 都要做」 (2026-11-22T07:18Z, seat thread).
    Pre-claim deps: none open; the server refusal already exists (ADR-0066 D1) and is pinned, not changed.
    Prior rulings read: 7077377066 (#36371 closed; sharing existing views 「暂时不考虑」), ruling record 7058616478 (「保存即生效」); the thread runs check-prior-rulings.mjs --card 36409 before code.
    Resume-from: claude/project-thread-393bw7@a0dfe1a4 (PR #36398, re-pointed to this card; items 3 and 4 are dropped)

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area, pm:dispatched and p2 stand as filed; rationale: area:ux · Bug · an org admin without manage_metadata is offered 「共享」 and then refused, and a view created as Shared stays an own view · size S.

  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTPMb2q2wRssyREqhQ
    os-dev-report

    {
      "issue": 36409,
      "status": "done",
      "branch": "claude/project-thread-393bw7",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36398",
      "session": "session_01QsR2jTPMb2q2wRssyREqhQ",
      "premise_still_valid": true,
      "summary": "Reworked PR #36398 from closed #36371 onto #36409: Make shared and Unshare (code, i18n keys, tests, docs, census row, dropdown width) are removed. Kept: Add view offers Shared only when isAdmin && useCanAuthorMetadata (an org admin without manage_metadata no longer sees a choice the server answers 403); a view created Shared is saved and published in one act via saveAndPublishRuntimeMetadata (into the app's package when one resolves), a refused save publishing nothing; a reader whose address names a view the server answers not_found for is told once and gets the default view (useMetaItemRefusal.absent). The server refusal is pinned with the shipped permission sets; no server code. Clause-② re-judged: yes (widening), two new view.switcher keys (shareNameTaken, viewGone); Metadata-protocol: none.",
      "tests": "At b09dc558 (main ff601499 merged): objectViewViewSharing.test.tsx 3/3; i18n + switcher/sharing/in-place-create/census: 110 files, 2032 passed; every ObjectView* test + runtime-metadata-persistence + census + switcher + sharing + in-place-create: 114 files, 1021 passed; rest meta-write-door-capability-enumeration 72 passed. Ablation: mayShareViews -> return isAdmin; gives 1 failed / 2 passed; restored green. Live two-account run (admin + auditor.demo member) at a0dfe1a4 covered the kept flows; screenshots in the PR body.",
      "gates": "dispatch-gates --ran at b09dc558: 96 derived, 94 run, 2 NOT-MEASURED (exit 3: check-plugin-teardown-shape --self-test, spec check:skill-examples), 0 UNRUN; ui scripts/, spec check:docs, check:dts-closure green after rebuilding @objectstack/spec with declarations; check:dual-build-cjs-loads red on this container only (75 unemitted d.ts/d.cts in packages this PR does not touch). PR-body gates exit 0. overlap-check clean. CI at b09dc558: 63 success, 11 skipped, 0 failed; mergeable clean.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "4 since the #36371 report — 3 issue_patch on #36398 (screenshots, census note, re-point to #36409 with new title) and this report",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in Acceptance notes, not filed: Manage views, the view settings panel and the Create View dialog still gate on isAdmin alone, so an organization administrator without manage_metadata is offered them and refused 403 by the server"
      ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions