Skip to content

refactor(views): share default page request fields - #14633

Merged
vincentkoc merged 1 commit into
mainfrom
refactor-analysis-view-page-fields
Nov 26, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor-analysis-view-page-fields

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fourteen retained-analysis view requests each defined the same literal kind, nonnegative integer offset defaulting to zero, and positive integer limit defaulting to 64. They now construct those fields through one function. Each call creates fresh Zod fields for its own view, preserving discriminator values, field order and schema references. Views with a different paging contract keep their own definitions. This removes 29 net production lines.

Validation

  • Compared the previous and new field definitions using the pinned Zod 4.6.7. All 4,558 parse results and validation-error comparisons matched, including omitted fields, invalid kinds, extra keys, numeric bounds and the two views with an indices filter.
  • Compared the input and output JSON Schemas for all 14 field sets and their combined discriminated union under draft-07 and draft 2020-12. All 60 comparisons matched.
  • The 277 surrounding module statements matched verbatim after excluding the new imports and replaced declarations. The pinned formatter and git diff --check passed.
  • Hosted CI passed all 35 selected tests across five suites, static checks, documentation checks, package build and advertised-schema validation with client engines.

Author readiness

  • I declare this PR ready for initial maintainer review.

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Extracts repeated request fields from fourteen views into analysisViewPageFields.

  • Fourteen view requests share the same paging fields.

Reviews (1) · Last reviewed commit: "refactor(views): share default page requ..." · Reviewed by Greptile

@vincentkoc
vincentkoc marked this pull request as ready for review November 26, 2026 04:56
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T04:56:48.849066Z
We couldn’t complete this review. Comment @codex review to try again.
889052a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vincentkoc
vincentkoc merged commit d639828 into main Nov 26, 2026
42 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@vincentkoc
vincentkoc deleted the refactor-analysis-view-page-fields branch November 26, 2026 04:56
vincentkoc added a commit that referenced this pull request Nov 26, 2026
…o-21113-20261126

* commit 'd63982890e70c55b09704249cde0327537e610f0':
  refactor(views): share default page request fields (#14633)
  test(dotnet): stop expecting required_value for the lower-bound path-depth refusal
  feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653)
  feat(artifacts): back archive member counts with the artifact.member_count setting (#14650)

# Conflicts:
#	tests/acceptance/dotnetBundleJourney.test.ts
vincentkoc added a commit that referenced this pull request Nov 26, 2026
…-beta3-20261126

* commit 'd63982890e70c55b09704249cde0327537e610f0':
  refactor(views): share default page request fields (#14633)
  test(dotnet): stop expecting required_value for the lower-bound path-depth refusal
  feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653)
  feat(artifacts): back archive member counts with the artifact.member_count setting (#14650)
  build(deps): update Knip to 6.46.1 (#14641)
  fix(native)!: report details.limit for remaining native reader budgets and make BEAM table rows adjustable (#14631)
  perf(ci): omit unused PR associations from timing queries (#14636)
  perf(ci): resolve small pinned test batches directly (#14638)

# Conflicts:
#	tests/acceptance/dotnetBundleJourney.test.ts
@morluto morluto added the area: server Server layer and tool wiring label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: server Server layer and tool wiring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants