Repository navigation
feat: correct visibility annotations for subscription add-on create and list-apps - #5179
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openmeterio/openmeter/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (12)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe API now exposes app listing publicly and subscription add-on creation internally. The JavaScript SDK reflects these boundaries. Credit balance and transaction responses now use nested custom currency references, with updated generated models, handlers, tests, and documentation. ChangesSDK API alignment
Custom currency reference
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Apps
participant listApps
participant paginatePages
Apps->>listApps: Request one page
listApps-->>Apps: Return ListAppsResponse
Apps->>paginatePages: Request all pages
paginatePages-->>Apps: Return AsyncIterable<App>
Merge Risk: ⚪ Minimal · up to App listing and subscription add-on visibility now match their intended SDK surfaces, while credit responses consistently expose nested custom-currency references; no concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
480575e to
ab8084e
Compare
Fixes two API visibility annotations flagged in Konnect review:
create-subscription-addon: addx-internal— this endpoint is not yet public, so it should stay internal-only (it was inadvertently exposed to the public beta SDK).list-apps: removex-unstable/x-internal/x-private— it's a GA public endpoint; the extensions were hiding it from the public SDK (matchesget-app, which has none).Summary by CodeRabbit
New Features
Changes
Documentation
The PR appears safe to merge because its visibility changes and regenerated client surfaces are aligned, and no blocking correctness or rule-compliance issue remains.
Summary
This PR corrects API visibility metadata and regenerates the corresponding contracts and SDK surfaces. It also updates unstable customer-credit responses to represent managed custom currencies as nested resource references.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR TS[TypeSpec visibility annotations] --> Gen[API and SDK generation] Gen --> Public[Public SDK surface] Gen --> Internal[Internal SDK surface] Apps[list-apps] --> Public Addon[create-subscription-addon] --> Internal Credit[Credit response schema] --> Ref[custom_currency.id reference] Ref --> Go[Generated Go models] Ref --> JS[Generated JavaScript models] Ref --> Handler[Credit response converters]Reviews (3) · Last reviewed commit: "refactor: inline custom_currency_id to c..."