release - #2316
Merged
Merged
Conversation
Bumps [idna](https://github.com/kjd/idna) from 3.11 to 3.15. - [Release notes](https://github.com/kjd/idna/releases) - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md) - [Commits](kjd/idna@v3.11...v3.15) --- updated-dependencies: - dependency-name: idna dependency-version: '3.15' dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [idna](https://github.com/kjd/idna) from 3.11 to 3.15. - [Release notes](https://github.com/kjd/idna/releases) - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md) - [Commits](kjd/idna@v3.11...v3.15) --- updated-dependencies: - dependency-name: idna dependency-version: '3.15' dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix: support versioned Mobbin catalog sync
Contributor
|
Capy auto-review is paused for this organization because the usage-cycle auto-review limit has been reached. Increase the limit or turn it off in billing settings to resume automatic reviews. |
| @@ -25,7 +25,7 @@ wheels = [ | |||
|
|
|||
| [[package]] | |||
| name = "autumn-sdk" | |||
Contributor
There was a problem hiding this comment.
SDK version appears to decrease
autumn-sdk version goes from 1.0.0 to 0.4.18 in this lock file. Since the version in an editable lock entry is derived from the package's own pyproject.toml, this means others/python-sdk/pyproject.toml now declares 0.4.18. Given the PR is titled "release", was 1.0.0 an accidental forward-bump that is being corrected here, or is this an unintended downgrade?
Prompt To Fix With AI
This is a comment left during a code review.
Path: others/python-test/uv.lock
Line: 27
Comment:
**SDK version appears to decrease**
`autumn-sdk` version goes from `1.0.0` to `0.4.18` in this lock file. Since the version in an editable lock entry is derived from the package's own `pyproject.toml`, this means `others/python-sdk/pyproject.toml` now declares `0.4.18`. Given the PR is titled "release", was `1.0.0` an accidental forward-bump that is being corrected here, or is this an unintended downgrade?
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
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.
Summary by cubic
Fixes catalog plan versioning for renamed plans and prevents crashes when products lack entitlements. Also updates Python deps.
Bug Fixes
product.entitlementswhen checking feature usage.Dependencies
idnato3.15inothers/python-sdkandothers/python-test.autumn-sdklock entry to0.4.18in tests.Written for commit 3824b97. Summary will update on new commits.
Greptile Summary
This PR fixes version-sequencing logic for renamed catalog plans and adds a defensive null-check for product entitlements. Both changes are targeted bug fixes with accompanying tests.
catalogPlanDependencies.ts: Introduces atargetIdhelper (new_plan_id ?? plan_id) and applies it consistently to allbyReferencemap keys, so versioned lookups (e.g."current@2") and previous-version chain traversal correctly resolve to the canonical plan ID rather than the old source ID when a plan is renamed.previewUpdateCatalog.ts: Guardsproduct.entitlementswith?? []before calling.some(), preventing a runtime crash when entitlements are absent on aFullProduct.validateCatalogPlanVersionTargets; lock files updated with anidnapatch bump (3.11 → 3.15).Confidence Score: 4/5
The TypeScript logic changes are correct and well-tested; the only open question is the autumn-sdk version going from 1.0.0 to 0.4.18 in the Python test lock file.
Both server-side fixes are narrow, well-reasoned, and backed by new unit tests that pass through the critical paths. The version drop in the Python test lock file (1.0.0 → 0.4.18) is unexplained from the diff alone — if unintentional it could affect consumers of the SDK, but it has no impact on server behavior.
others/python-test/uv.lock — confirm the autumn-sdk version change is deliberate.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["CatalogPlanParams\nplan_id, new_plan_id?, version"] --> B["targetId\nnew_plan_id ?? plan_id"] B --> C["byReference key\nid@version"] C --> D{version gt 1?} D -- Yes --> E["Lookup id@version-1"] E --> F["visit previous"] D -- No --> G["Resolve license deps"] F --> G G --> H["Sorted topological output"] H --> I["validateVersionTargets\nid = targetId"] I --> J{already exists?} J -- Yes --> K["Skip"] J -- No --> L["expected = latestById + 1"] L --> M{version matches?} M -- No --> N["Throw RecaseError"] M -- Yes --> O["Update existing and latestById"]%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A["CatalogPlanParams\nplan_id, new_plan_id?, version"] --> B["targetId\nnew_plan_id ?? plan_id"] B --> C["byReference key\nid@version"] C --> D{version gt 1?} D -- Yes --> E["Lookup id@version-1"] E --> F["visit previous"] D -- No --> G["Resolve license deps"] F --> G G --> H["Sorted topological output"] H --> I["validateVersionTargets\nid = targetId"] I --> J{already exists?} J -- Yes --> K["Skip"] J -- No --> L["expected = latestById + 1"] L --> M{version matches?} M -- No --> N["Throw RecaseError"] M -- Yes --> O["Update existing and latestById"]Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "Merge pull request #2315 from useautumn/..." | Re-trigger Greptile