Skip to content

Conversation

@eluce2
Copy link
Collaborator

@eluce2 eluce2 commented Feb 10, 2026

Note

Medium Risk
Touches the codegen customization-preservation parser, which can subtly change regenerated output for existing schemas (though covered by new e2e tests).

Overview
Fixes generateODataTypes regeneration so generator-owned chain methods (e.g. readValidator/writeValidator on Edm.Boolean field builders) are treated as standard and are no longer duplicated when merging preserved customizations.

Adds a small chain parser (extractMethodNamesFromChain) and extends customization extraction to accept additional standard methods, plus new e2e tests ensuring validators aren’t duplicated and that user-added outer .transform() calls are still preserved. Includes a patch changeset for @proofkit/typegen.

Written by Cursor Bugbot for commit 8203a33. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
proofkit-docs Ready Ready Preview Feb 11, 2026 2:58pm

Request Review

@eluce2 eluce2 marked this pull request as ready for review February 10, 2026 21:27
Copy link
Collaborator Author

eluce2 commented Feb 10, 2026

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 10, 2026

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/better-auth@119

@proofkit/cli

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/cli@119

create-proofkit

pnpm add https://pkg.pr.new/proofgeist/proofkit/create-proofkit@119

@proofkit/fmdapi

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmdapi@119

@proofkit/fmodata

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmodata@119

@proofkit/typegen

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/typegen@119

@proofkit/webviewer

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/webviewer@119

commit: 8f42e92

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Copy link
Collaborator Author

eluce2 commented Feb 11, 2026

Merge activity

  • Feb 11, 2:54 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 11, 2:56 PM UTC: Graphite rebased this pull request as part of a merge.
  • Feb 11, 2:56 PM UTC: @eluce2 merged this pull request with Graphite.

@eluce2 eluce2 changed the base branch from 02-10-fix_fmodata_preserve_useentityids_through_navigate_ to graphite-base/119 February 11, 2026 14:55
@eluce2 eluce2 changed the base branch from graphite-base/119 to main February 11, 2026 14:55
eluce2 and others added 3 commits February 11, 2026 14:55
…idator/writeValidator) for Edm.Boolean fields during regeneration
… function

Refactored the regex execution in the extractMethodNamesFromChain function to improve performance by eliminating unnecessary variable declarations. Additionally, updated test cases to ensure proper formatting of generated output in fmodata-preserve-customizations test.
…id matching nested methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@eluce2 eluce2 force-pushed the 02-10-fix_typegen_prevent_duplication_of_generator-owned_methods_readvalidator_writevalidator_for_edm.boolean_fields_during_regeneration branch from 8f42e92 to 8203a33 Compare February 11, 2026 14:55
@eluce2 eluce2 merged commit 4928637 into main Feb 11, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant