[CORRUPTED] Synthetic Benchmark PR #1892 - [bench] prefix@724c7289 Patch 6: Extend pricing model update endpoint for CLI sync - #14
Open
amirzaushnizer wants to merge 3 commits into
Conversation
…r CLI sync Adds full structure update capability to the pricing model update endpoint, enabling the CLI to sync entire pricing model configurations including features, products, usage meters, and resources. The update procedure now detects whether structure fields are provided and routes to the appropriate transaction logic: - Metadata-only updates continue using the simple update path - Full structure updates use diffing and atomic transactions via adminTransaction This maintains backward compatibility while enabling the CLI sync workflow for comprehensive pricing model management. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Add authorization pre-check via authenticatedTransaction before adminTransaction to prevent users from modifying pricing models outside their organization - Require all structure fields when any are provided (PUT semantics) to prevent accidental data loss from partial updates - Remove unused fullPricingModel database query - Fix weak test assertion (toBeGreaterThanOrEqual(0) -> toBe(1)) - Remove unused selectPricingModelById import from test file Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates openapi.json to reflect the new extended schema for PUT /pricing-models/:id that includes optional structure fields. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Benchmark PR flowglad#1892
Type: Corrupted (contains bugs)
Original PR Title: [bench] prefix@724c7289 Patch 6: Extend pricing model update endpoint for CLI sync
Original PR Description: Pre-fix reconstruction of flowglad#1892 at parent of 724c728 (bug present).
Original PR URL: flowglad#1892