Skip to content

refactor(tools): remove duplicate page viewport state - #31346

Closed
XuPeng-SH wants to merge 1 commit into
mainfrom
codex/interactive-page-size-state-20261026
Closed

XuPeng-SH wants to merge 1 commit into
mainfrom
codex/interactive-page-size-state-20261026

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Refs #29249

What this PR does / why we need it:

Remove the unread width/height fields and stores from GenericPage. Actual viewport state already belongs to GenericList; keep resize forwarding and the existing pagination, column rendering and navigation rules.

Diagnostic tools, public page APIs, checkpoint/object integration, search/history and every maintained test/assertion remain unchanged.

Validation: the complete interactive owner suite (16 top-level / 26 named cases, including the existing example) and two existing checkpoint unified-page consumer tests pass without failures or skips. A temporary before/after resize/navigation probe produces nine byte-identical rendered views, covering default, small, zero/negative and larger sizes. Existing history-test file changes are restored and verified. Formatting, go vet, all four configured molint analyzers and incremental golangci-lint pass without diagnostics.

Whole-source reachability inspection covers all 6,824 tracked Go files; no open PR shares the edited file across 101 complete file lists.

@XuPeng-SH
XuPeng-SH requested a review from aptend as a code owner October 27, 2026 00:20
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 054a6dd4305cc0f5fe2b4d9f943fb568b0c1b0d9

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 054a6dd4305cc0f5fe2b4d9f943fb568b0c1b0d9

Assessment: approve

The complete delta removes unread private viewport fields and stores while preserving GenericList as the authoritative owner. Resize forwarding, rendering, navigation and consumers remain unchanged. No actionable defects or substantive discussion disputes remain.

Model: gpt-6-astra / xhigh

Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1

Validation:

  • Static audit passed: exact base/head delta, clean source, syntax/formatting, and reference inspection across 6,824 tracked Go files. Receipt: checks/1793061424205493471-4.json; retained output: static-audit-v2.log.

  • Command, source fingerprint, exit and log reconciliation saved in validation-reconciliation.json. The initial diagnostic failed on the supplied patch's missing terminal newline; the corrected comparison passed.

  • Both discussion items are accounted for in discussion-assessment.json. Design, caller, boundary, performance and test-quality analysis is retained in review-notes.md.

Limitations:

  • No package tests or benchmarks were executed. Static proof closes this nonbehavioral removal; reduced state and stores are expected benefits, not measured speedups.

  • local_validation is empty. Author-reported test/lint runs lack retained execution evidence, and frozen CI remains partly pending; neither was counted as passing validation.

  • Referenced issue #29249's contents were not supplied; approval covers the explicit cleanup contract, not broader issue resolution.

@XuPeng-SH XuPeng-SH closed this Oct 27, 2026
XuPeng-SH added a commit that referenced this pull request Oct 27, 2026
## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [x] Code Refactoring

## Which issue(s) this PR fixes:

Refs #29249

## What this PR does / why we need it:

Remove unused helpers, duplicate bookkeeping and transient state whose
consumers have already been retired. This consolidates the 19 closed
cleanup PRs into one reviewable change on current main; each affected
file matches its original published PR, with no additional cleanup.

The cleanup covers TAE task/logstore/merge/RPC helpers, HAKeeper replica
views, obsolete ETL writer and path state, batch/vector constructors,
RPC client bookkeeping, metrics/CDC/fulltext state, MongoScan, message
receivers, fixture helpers and interactive viewport state. Retained
execution, ownership, cancellation, parser/error, replay, plugin
registration and MySQL driver registration paths remain intact.

Supersedes #31325, #31327, #31329, #31331, #31332, #31333, #31334,
#31335, #31336, #31337, #31339, #31340, #31341, #31342, #31343, #31344,
#31345, #31346 and #31347. Already merged #31323/#31324 and Python SDK
#31322 are excluded.

Validation on the combined change: all 30 changed owning packages built;
28 ran tests, with 2,066 top-level / 4,580 named cases passing and two
existing external-data ETL tests skipped. The two support packages have
no tests. Existing component-level race, before/after probes and
consumer checks were reviewed for reuse. Formatting, go vet and
incremental golangci-lint passed; forced all-four-analyzer molint
reported six findings already reproduced at the baseline, with no new
findings. These are local focused checks, not a full CI or GPU run.
@XuPeng-SH
XuPeng-SH deleted the codex/interactive-page-size-state-20261026 branch November 1, 2026 05:01

This branch was previously deployed

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

Labels

kind/refactor Code refactor size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants