-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Subscriptions #10114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions #10114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a subscription management system for the Huly Platform, adding support for tracking workspace subscriptions with billing provider integration. The implementation provides a provider-agnostic abstraction for managing subscription statuses, types, and billing periods.
Key changes:
- Added comprehensive subscription type definitions and enums for status and types
- Implemented service operations for upserting subscriptions (billing service only)
- Added user operations for retrieving subscriptions with role-based access control
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| server/account/src/types.ts | Defines subscription enums (SubscriptionStatus, SubscriptionType) and Subscription interface with provider-agnostic fields |
| server/account/src/serviceOperations.ts | Implements upsertSubscription function for billing service to create/update subscriptions |
| server/account/src/operations.ts | Adds getSubscriptions function with role-based access control for workspace owners/maintainers |
| server/account/src/collections/postgres/postgres.ts | Integrates subscription collection into PostgreSQL database implementation |
| server/account/src/collections/postgres/migrations.ts | Adds V19 migration to create subscription table with proper indexes and constraints |
| server/account/src/collections/mongo.ts | Integrates subscription collection into MongoDB database implementation |
| server/account/src/tests/serviceOperations.test.ts | Comprehensive test coverage for upsertSubscription function |
| server/account/src/tests/operations.test.ts | Complete test coverage for getSubscriptions function including access control |
|
Connected to Huly®: UBERF-13958 |
463c687 to
73d8518
Compare
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexander Onnikov <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
…ured Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
…nceled sub Signed-off-by: Alexey Zinoviev <[email protected]> Signed-off-by: Alexey Zinoviev <[email protected]>
Signed-off-by: Alexey Zinoviev <[email protected]>
f3eda95 to
c8a41b9
Compare
Signed-off-by: Alexey Zinoviev <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.