Skip to content

后台字段选择控件读的 /api/v1/objects/:name/fields 没有服务端路由:补路由或下掉控件(接 #37225) #37508

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv

Filing gate: ② review finding S3d of the seat's L2 on PR #37489 (#37225), record 7187820695; the seat asked the owning zone to card it under #37225. Source: reviewer.
Grading: area:ux · Bug · p2 (triage grades) · reach: the metadata-admin field-selector widget, if any form declares it · evidence: L2 record 7187820695; os-dev report 7187574466.

维护者速读

  • 做什么:后台元数据表单的「字段选择」控件读 /api/v1/objects/:name/fields,但服务端没有注册这个路由,也没有表单用这个控件。要么补路由,要么删掉这个休眠控件。
  • 谁受益:维护代码的人;以后有人启用这个控件时不会拿到 404。
  • 不做会怎样:一段没人能用的代码继续留着,启用即坏。
  • 需要你做的:无。

What

Acceptance

  • The widget reads a served route (pinned), or it is removed with its tests.

Blocked-by: #37225

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:blocked · size S; rationale: a follow-up of #37225 (same-server reads under a bearer-only session), filed from L2 record 7187820695: the field-selector widget reads a route the server never mounts. p2 as filed; blocked by #37225.

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock · #37508 · 2026-11-27T06:30Z: the card's only Blocked-by: line names #37225, which was closed as completed at 2026-11-26T11:21Z. No later block is recorded on this card. pm:blocked → pm:queue; grade, area and size unchanged. Re-read the premise at claim, because the blocker's landing may have changed the surface this card names.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 27, 2026
  5. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibwBcaYpnhtGgnknxmq
    Account: os-tesla
    Branch: claude/project-thread-w8mein
    Worktree: objectstack-issue-37508
    Domain: ui
    Area: o3-ux (area:ux p2, a seat card thread under the ux zone's own cap)
    Seat: repo:objectstack#3
    File surface:

    • ui/packages/app-shell/src/views/metadata-admin/widgets.tsx: fetchFieldSelectorOptions reads the mounted GET /api/v1/meta/object/:name through MetadataClient, which gains a readFields. This is the same read useObjectFields makes.
    • ui/packages/app-shell/src/views/metadata-admin/FieldSelectorWidget.loadFailure.test.tsx (a new top-level describe pins the served route), FormFieldSpec.dependsOn.test.tsx, __tests__/SchemaForm.controlWidgetFailureArmNaming-9931.test.tsx.
    • The MetadataClient file that carries readFields, if it is not in widgets.tsx.
    • One .changeset/*.md (@object-ui/app-shell patch).
      NOT any server route (one route, one owner), and the widget is not removed. Stop on breach and explain in the report.
      Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high, reason: the thread session serves effort high
      Clause-②: no
      Metadata-protocol: none
      Responsibility: seat ruling is option A. The field-selector widget reads a route the server serves, and a pin fails if it points back at /api/v1/objects/:name/fields. No server route is added and the widget stays.
      Thread-read: none
      Premise: holds, measured on origin/main 815e882. None of the 18 route ledgers has a fields row. No production form in spec, ui or hotcrm declares field-selector. Plugin packages' same-server reads stay cookie-only and break under a bearer-only session: the #37080 family outside app-shell and the console (16 files), plus two app-shell reads the #37185 ratchet does not see #37225 is closed and did not change the path. Full report: /mnt/project-files/card-37508/pre-claim-report-815e882b.md.
      Serial constraints cleared: none — no open PR touches these files and no issue-37508 branch exists
  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwBcaYpnhtGgnknxmq
    os-dev-report

    {
      "issue": 37508,
      "status": "done",
      "branch": "claude/project-thread-w8mein",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38116",
      "session": "session_01L9qibwBcaYpnhtGgnknxmq",
      "premise_still_valid": true,
      "summary": "FieldSelectorWidget (ui/packages/app-shell/src/views/metadata-admin/widgets.tsx) no longer requests /api/v1/objects/:name/fields, which no server mounts (0 fields rows across the 18 route ledgers). fetchFieldSelectorOptions reads GET /api/v1/meta/object/:name?preview=draft through useMetadataClient and normalizes object.fields with readFields, the read useObjectFields makes. Four LoadState arms kept: a refused/failed read throws into the failure arm, a 404 (client null) is the failure \"Object not found\" (designer locale), a served object answers its fields. Load keyed on the object name; the client is read through a ref set in a layout effect (ui/AGENTS.md #10). Bearer still carried by the client transport (#37225 property kept). No server route added, widget not removed, configuration unchanged. loadState.ts docblock sentence corrected. Patch changeset @object-ui/app-shell, Clause-② no, Metadata-protocol none.",
      "tests": "FieldSelectorWidget.loadFailure.test.tsx: existing fault/measurement pins re-pointed at the served envelope; #37225 describe pins Authorization on the served read; new top-level describe (exact GET /api/v1/meta/object/:name?preview=draft and no /fields path; encoded name; record-shaped fields become options; 404 = Object not found failure). FormFieldSpec.dependsOn and SchemaForm.controlWidgetFailureArmNaming-9931 doubles answer the served envelope. At de4ff26c: 7 files Tests 203 passed (203); metadata-client-auth.ratchet + 2 siblings 25 passed; sameServerFetch.bearer.ratchet 4 passed. Ablation (widgets.tsx back to 815e882b on the committed fix, restore blob == HEAD): Tests 8 failed | 54 passed (62), all 4 tests of the new describe red. metadata-admin/ directory at aa74c7c3: 1 failed | 804 passed files, the one failure being viewListDrop-13057 (client must come from useMetadataClient), fixed at de4ff26c. app-shell type-check (both tsc programs) exit 0 after a real .d.ts build of its closure. eslint on the 5 changed files exit 0, no new warnings in widgets.tsx.",
      "gates": "dispatch-gates --ran at de4ff26c: 38 derived, 38 run, 0 NOT-MEASURED; 37 exit 0; pnpm --dir ui exec vitest run scripts/ killed (SIGKILL) by the local 20-minute timeout, left to CI. check:new-line-citations: 0 added. Full app-shell suite did not finish in a 28-minute local timeout; CI Test UI is its reading. PR CI not yet concluded.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP calls",
      "api_writes": "2 — fleet-write relay pr_create (#38116, read-back 5846 bytes identical, assignee os-tesla); this os-dev-report comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": [
        "First local read built its client through createConsoleMetadataClient; viewListDrop-13057 refused it (every console MetadataClient comes from useMetadataClient), so de4ff26c reads through useMetadataClient. No boot reading of the old path 404 / new path 200."
      ]
    }
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Closed-card tidy · 2026-11-28T04:24Z: the card closed when its PR merged; pm:dispatched comes off.

  9. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions