Skip to content

security/explain: ask several operations in one request, so a list's first row-action use costs one call, not two #34311

Description

@objectstack-fleet

domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

Filing gate: ③ an out-of-scope finding of the #34208 dev (os-dev-report 6907980033 on #34208, PR #34227), carrier: seat. Measured on PR #34227 head 1ca52c3e.
Reader: domain:spec (ExplainRequest in @objectstack/spec/security) and the server's POST /api/v1/security/explain route; the client ui/packages/plugin-grid/src/hooks/useRecordCrudVerdicts.ts follows. Grade suggestion: p3 (a cost, not a defect: the first-paint calls are gone after PR #34227).
Dedupe: is:issue is:open explain operations: none.

维护者速读

列表行上的编辑/删除按钮要问服务端「这些记录能不能改、能不能删」。PR #34227 已经把这次询问从首屏挪到第一次使用行操作时,但仍是两次请求(update 一次、delete 一次),因为 ExplainRequest 一次只收一个 operation。这张卡让一次请求问多个 operation。

Facts

Ask

  1. Spec: ExplainRequest accepts operations: [...] (or an equivalent) beside or instead of operation, with the answer keyed per operation; additive, so today's single-operation callers keep working.
  2. Server: the explain route answers every asked operation in one pass over the records.
  3. Client (a follow-up on domain:ui): useRecordCrudVerdicts asks update and delete in one request on first use.
  4. Pins: one request answers both operations for a page of ids; CONTROL a single-operation request answers as today.

⛔ Not a claim.

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p3 · 2026-11-16T05:45Z

    ⛔ Not a claim.

    security.explain should accept several operations in one request, so a list's first row-action use costs one call instead of two (measured on PR #34227). A small contract widening for a latency gain, so p3.

  2. added
    domain:spec
    pm:queue
    on Nov 16, 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

    Labels

    area:datadomain:specpm:queuepriority:p3

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions