Skip to content

Grouped grid and used-currency read ignore a truncated grouped answer: queryGroupHeaders' hasMore (#36870) is read only by the kanban lane statistic #37278

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Filing gate ① — a defect with named locations. Source: the #36870 dev's out-of-scope finding (os-dev-report 7160245020, PR #37277), filed by the seat's direction as one follow-up.

What happens

PR #37277 (#36870) makes queryGroupHeaders hand on the server's hasMore when a grouped read is cut by the page size (ListViewGroupHeaderAnswer). Only the kanban lane statistic reads it so far. Two other readers of the grouped answer still treat a truncated answer as whole:

  1. The server-grouped grid (useServerGrouping). On a deployment that caps the page size (OS_DATA_DEFAULT_PAGE_SIZE / OS_DATA_MAX_PAGE_SIZE), a grid grouped on a field with more distinct values than one page can list fewer groups than exist, with no marker.
  2. The used-currency read (usedCurrencyCodesQuery, ui/packages/components/src/renderers/form/usedCurrencyCodes.ts, used by form.tsx ~2568). A truncated answer can miss a currency code in use, with no marker.

reach: read from code by the #36870 dev, not measured. Measure each on claim, and say in the report which one reaches users.

Expected

Each reader treats a partial grouped answer as partial: it shows a "more groups not loaded" or partial marker (localized), or it re-reads with an explicit limit or paging. It never presents a cut answer as the whole set.

Done when

  • Each reader that reaches users handles hasMore, with a pin driven by a grouped read capped at a small default page size, and a control with a whole answer.
  • An ablation that ignores the flag turns each pin red.

Grade: area:ux · Bug · p2 (the #36870 family; capped deployments only). Size S, to be measured on claim.
Reader: zone a4-C of seat repo:objectstack#4, after #36870 lands.
Blocked-by: #36870
Dedupe: useServerGrouping hasMore (open objectstack issues) → 0; grouped grid truncated groups → 0; usedCurrencyCodes partial → 0.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Carried in from PR #37277's L1 (7160888213), as candidates for this card. Both are nits:

    • N1: content/docs/frontend/data-objectstack.mdx:219 still describes queryGroupHeaders as "one row per group with its true count" and does not say an answer can be partial (hasMore). Bring the page in line with the new jsdoc.
    • N2: the hasMore flag is an expando property on the returned array. A future wrapper that copies the answer ([...rows], .slice(), a structured clone) drops it silently, and a board then reads a cut answer as whole. Add a one-line warning on ListViewGroupHeaderAnswer's jsdoc. If this card changes a reader to copy the answer, carry the flag across.
  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T11:33Z. Confirmed as filed: Bug · area:ux · domain:ui · p2 · S, pm:blocked on #36870 (PR #37277). The body's Blocked-by: line already reads in line form. It goes to seat 4 zone a4-C on unlock, with the N1/N2 nits above as candidates.

  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: unblocked 2026-11-25T12:33Z

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · os-lizheng · session_012MmDsSBHy5paNUz6zke9Re

    Claim: PM loop round 1 · 2026-11-25T14:16Z
    Session: session_012MmDsSBHy5paNUz6zke9Re
    Account: os-lizheng
    Branch: claude/issue-37278-grouped-hasmore-readers
    Worktree: objectstack-issue-37278
    Domain: domain:ui
    Seat: repo:objectstack#6
    File surface: ui/packages/plugin-grid/src/useServerGrouping.ts and the grouped grid's group-list rendering, ui/packages/components/src/renderers/form/usedCurrencyCodes.ts and its form.tsx caller, the ListViewGroupHeaderAnswer jsdoc in ui/packages/data-objectstack/src/index.ts (nit N2), content/docs/frontend/data-objectstack.mdx (nit N1), i18n keys for a localized partial marker if one is added, pins beside each reader, patch changesets per touched package (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in objectstack (useServerGrouping and usedCurrencyCodesQuery read queryGroupHeaders' answer as whole and never read its hasMore) | queryGroupHeaders already hands on hasMore (PR #37277); only the kanban lane statistic reads it | users of deployments that cap the data page size: grouped grids with more groups than one page, and the used-currency read; reach to be measured per reader on claim
    Thread-read: 7162546726
    Premise: holds (measured on origin/main 08bf7d2: hasMore is read in neither ui/packages/plugin-grid/src/useServerGrouping.ts nor ui/packages/components/src/renderers/form/usedCurrencyCodes.ts; queryGroupHeaders documents and hands on hasMore at ui/packages/data-objectstack/src/index.ts:7701)
    Pre-claim lane: ui/packages/plugin-grid/**, ui/packages/components/**, ui/packages/data-objectstack/** jsdoc, a docs page — repo:objectstack lane (domain:ui file ownership); seat 4 (routed reader, zone a4-C) takes no new cards since its wind-down 7162901800
    Pre-claim deps: Blocked-by: #36870 closed completed (PR #37277 merged)
    Prior rulings read: grouped,grid,used-currency,read,ignore,truncated,answer,querygroupheaders,hasmore,kanban,lane,statistic → 159 hits; ADR-0125 D1, ADR-0139 D4, ADR-0146 D6, ADR-0146 D8, ADR-0005 Decision §9, ADR-0006 D1 (term-generic pointers); thread: none
    Serial constraints cleared: none — no open PR touches the named files (open-PR file census this round)

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  8. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · os-lizheng · session_012MmDsSBHy5paNUz6zke9Re
    os-dev-report

    {
      "issue": 37278,
      "status": "done",
      "branch": "claude/issue-37278-grouped-hasmore-readers",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37317",
      "session": "session_012MmDsSBHy5paNUz6zke9Re",
      "premise_still_valid": true,
      "summary": "Both readers measured as reaching users and both fixed. Reach: a temporary probe on the real POST /data/:object/query route (SqlDriver, SQLite, 5 groups) sent the exact compiled header query both readers send, with no limit: OS_DATA_DEFAULT_PAGE_SIZE=2 answered 2 records, hasMore true, total 5; OS_DATA_MAX_PAGE_SIZE=3 alone answered 3, hasMore true; no limits answered 5, hasMore false. The grid reaches users on the hosted max page size (5,000) for a grouping with more than 5,000 values. The currency read (one ISO 4217 code field, under 200 groups) reaches users only where a deployment sets a default page size below the number of codes in use. Re-read is not possible: EngineAggregateOptions has no limit, the grouped branch reads no offset, and a limit over the max is refused 400 MAX_RECORDS_EXCEEDED. So: (1) the grid: useServerGroupHeaders reports partial when any depth answers hasMore; the grid draws a localized note (grid.grouping.partial, 11 locale packs plus the grid fallback map) and serverGroupTotalOf tells no record total. (2) Used-currency: readUsedCurrencyCodes reads a partial answer as no codes, the same as a failed read, which matches the kanban lane statistic. N2 jsdoc landed on the declaring file ui/packages/types/src/data.ts, not data-objectstack's import site. N1 landed on content/docs/frontend/data-objectstack.mdx. The note is a different case from objectui#10881 ruling F's retired Partial marker (there the counts were page slices; here the counts are exact).",
      "tests": "head cf697b4f9: pnpm --dir ui exec vitest run --maxWorkers=2 on serverGrouping-7189.test.tsx, form-used-currency-codes-27188.test.tsx, i18n all-locales-key-parity, en-zh-key-parity: Test Files 4 passed (4), Tests 76 passed (76). Type-check (pnpm --filter run type-check) on plugin-grid, components, i18n, types: all Done, lock VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs (anchor 1 to 0 on disk, restored to the HEAD blob, git diff HEAD empty; tests import src directly, no dist in path): grid partial set to false gave 2 failed and 12 passed (the note pin and the hook/total pin red, controls green); currency hasMore return deleted gave 2 failed (cut-answer pin 'expected [EUR, USD] to be undefined', and the readUsedCurrencyCodes pin), control green. Reach probe: a temporary rest test, deleted and not committed, output as in summary. Declared narrowing: the full plugin-grid/components suites run in CI (Test UI).",
      "gates": "local, each exit captured before any pipe, all exit 0: check:test-source-alias (first red, needed a module-top react-runtime import in the currency test; fixed in cf697b4f9), check:nul-bytes, check:doc-authoring, check:doc-anchors, check:issue-citations, check:cross-package-test-inputs, check:docs-single-h1, check:doc-frontmatter, check:docs-redirects, check:docs-transcript-drift, check:type-check-coverage, check:undeclared-dep-imports, check:closed-ceremony-text, check:role-word, check:corpus-claim-drift, check:docs-audit-scope, check-adr-links, check-docs-section-name, check-section-landing-index, check-doc-route-spelling --advisory, check-comment-mask-corpus, check-sdui-manifest, check-closing-keyword-parity, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, docs-audit/check-affected-docs, ui/scripts check-i18n-call-site-keys, check-i18n-en-drift, check-i18n-dead-keys. dispatch-gates --ran: 48 of 73 derived families UNRUN locally, a declared narrowing left to CI. PR check-runs at the time of the report: Lint, Type Check, Check Changeset, PR-body guards, Governed Surface Queue Guard and the others are in_progress, the opt-in jobs skipped; no conclusion yet (in_progress).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch probe plus 2 commits, not REST); fleet-write relay pr_create (POST pulls plus assignee leg, run 45642270008); post-stamped issue comment on #37278 (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: completing a cut grouped read would need EngineAggregateOptions to carry a limit and the grouped branch to page (no offset is read today); recorded in the PR's Acceptance notes, not a defect class a-c"
      ]
    }
  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · os-lizheng · session_012MmDsSBHy5paNUz6zke9Re

    Delivered · 2026-11-25T17:07Z · PR #37317 merged; the card closed through Fixes.

    • A server-grouped grid whose group list the server cut (hasMore) now says so in one localized note, grid.grouping.moreGroupsNotLoaded, and reports no summed total.
    • The used-currency read treats a cut answer as no answer, so every code stays offered.
    • N1 (docs page) and N2 (the jsdoc warning) landed.
    • The retired grid.grouping.partial* namespace (objectui#10881 ruling F) stays empty.

    pm:dispatched removed. Not filed: completing a cut grouped read (an aggregate limit/paging capability), recorded in the PR's Acceptance notes.

  10. removed
    pm:dispatched
    on Nov 25, 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