Repository navigation
feat(spec): update v3 spec - #4381
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
💤 Files with no reviewable changes (5)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR systematically normalizes API operation visibility across the OpenMeter TypeSpec definitions, updates the service branding and version information, adds regional server support, and regenerates the corresponding Go Swagger spec to match. ChangesAPI Extension Visibility and Service Metadata Normalization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
5a3d92d to
c27352d
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
openmeter/billing/worker/subscriptionsync/service/reconciler/patch_test.go (1)
42-48: ⚡ Quick winRemove the duplicated table case to keep the test matrix clean.
Nice addition, but this scenario is now defined twice with the same name and outcome. Keeping one avoids redundant execution and makes failures easier to read.
♻️ Suggested cleanup
- { - name: "credit then invoice disabled stays on invoice lines", - settlementMode: productcatalog.CreditThenInvoiceSettlementMode, - enableCredits: true, - enableCreditThenInvoice: false, - rateCard: flatRateCard, - expectedCollection: &lineInvoicePatchCollection{}, - },As per coding guidelines, "
**/*.go: In general when reviewing the Golang code make readability and maintainability a priority, even potentially suggest restructuring the code to improve them."Also applies to: 64-70
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@openmeter/billing/worker/subscriptionsync/service/reconciler/patch_test.go` around lines 42 - 48, Remove the duplicate table test case that uses name "credit then invoice disabled stays on invoice lines" (the entry with settlementMode productcatalog.CreditThenInvoiceSettlementMode, enableCredits true, rateCard flatRateCard, expectedCollection &lineInvoicePatchCollection{}) so only one instance remains in the test matrix; locate the duplicate entries in patch_test.go and delete the redundant struct literal (either the earlier or later copy) to avoid running the same scenario twice.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@openmeter/billing/worker/subscriptionsync/service/reconciler/patch_test.go`:
- Around line 42-48: Remove the duplicate table test case that uses name "credit
then invoice disabled stays on invoice lines" (the entry with settlementMode
productcatalog.CreditThenInvoiceSettlementMode, enableCredits true, rateCard
flatRateCard, expectedCollection &lineInvoicePatchCollection{}) so only one
instance remains in the test matrix; locate the duplicate entries in
patch_test.go and delete the redundant struct literal (either the earlier or
later copy) to avoid running the same scenario twice.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c529b3df-af87-4cd3-a948-17344ac48b9a
⛔ Files ignored due to path filters (1)
api/v3/openapi.yamlis excluded by!**/openapi.yaml
📒 Files selected for processing (11)
api/spec/packages/aip/src/events/operations.tspapi/spec/packages/aip/src/features/operations.tspapi/spec/packages/aip/src/llmcost/operations.tspapi/spec/packages/aip/src/meters/operations.tspapi/spec/packages/aip/src/openmeter.tspapi/spec/packages/aip/src/productcatalog/operations.tspapi/spec/packages/aip/src/subscriptions/operations.tspapi/v3/api.gen.goopenmeter/billing/charges/flatfee/adapter/realizationrun_test.goopenmeter/billing/charges/flatfee/service/lineengine.goopenmeter/billing/worker/subscriptionsync/service/reconciler/patch_test.go
💤 Files with no reviewable changes (5)
- api/spec/packages/aip/src/events/operations.tsp
- api/spec/packages/aip/src/meters/operations.tsp
- api/spec/packages/aip/src/llmcost/operations.tsp
- api/spec/packages/aip/src/features/operations.tsp
- api/spec/packages/aip/src/productcatalog/operations.tsp
✅ Files skipped from review due to trivial changes (1)
- api/spec/packages/aip/src/subscriptions/operations.tsp
🚧 Files skipped from review as they are similar to previous changes (1)
- api/spec/packages/aip/src/openmeter.tsp
c27352d to
8175711
Compare
8175711 to
c837cd6
Compare
Summary by CodeRabbit
Release Notes