-
Notifications
You must be signed in to change notification settings - Fork 1
Migrate vm_payment to subscriptions payment system #114
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
Open
v0l
wants to merge
54
commits into
master
Choose a base branch
from
feat/vm-payment-to-subscription
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 37 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
c99b62b
refactor: rename VmCostPlanIntervalType to IntervalType
v0l b7fdcdf
feat: schema migration + DB layer for VM subscription link (increment 1)
v0l 7f66382
feat: data migration tool + fix subscription interval SQL (increment 2)
v0l 1634833
feat: migrate VM payments to subscription system (increments 3+4)
v0l f784ba3
refactor: link vm to subscription_line_item instead of subscription
v0l d6eb9da
chore: update agents-common submodule
v0l 913298d
fix: derive company_id from template/pricing region in provision()
v0l e9e0d6f
feat: add is_setup flag to subscription; always compute VM renewal co…
v0l 129e893
feat: pass intervals through renew_subscription
v0l 222eb54
feat: add paginated list_vm_subscription_payments and use in API endp…
v0l f5cca92
feat: migrate reporting queries from vm_payment to subscription_payment
v0l 3dececd
test: add unit tests for subscription_payment_paid, invoice handler, …
v0l 098ad8d
docs: update changelog and migration notes for vm_payment → subscript…
v0l 27bfcab
fix: add referral FK constraint migration and migration binary improv…
v0l d016b45
feat: extend migration to include deleted VMs and backfill all vm_pay…
v0l b1e34fc
fix: copy external_data raw in migration, avoiding encrypt/decrypt ro…
v0l ee197e3
fix: correct VM renewal payment creation and expiry extension
v0l 2f186f6
fix: add list_pending_vm_subscription_payments and fix expired invoic…
v0l e3fcf85
fix: remove referral FK rename migration that fails on clean DB
v0l 42f93cd
fix: update subscription line item cost after VM upgrade
v0l ae0fc20
fix: do not mark subscriptions active for deleted VMs during migration
v0l 2a92da6
fix: return subscriptions in descending order in admin API
v0l 8c3ce03
feat: include subscription details in admin VM info response
v0l 21daf6b
feat: include company_base_currency in admin subscription payment res…
v0l 3c66a1c
docs: update API_CHANGELOG with changes from this session
v0l 7b1134b
fix: return subscription payments in descending order
v0l 867c823
docs: require database-level pagination for all list APIs
v0l d2e29db
refactor: use database-level pagination for all list APIs
v0l 0c2740a
plan: add subscription lifecycle + generic payment pipeline increment…
v0l 5f25555
feat: generic subscription lifecycle + payment pipeline (increments 1…
v0l f956ad6
test: lifecycle DB tests for expiry queries and deactivate_subscripti…
v0l 846ae74
feat: PaymentCompletionHandler trait + centralised complete_payment p…
v0l 0caa203
feat: Stripe payment handler + non-VM pipeline tests (increments 18-19)
v0l c4a42b3
refactor: per-line-item payment completion dispatch
v0l da38d7d
refactor: SubscriptionLineItemHandler trait unifies payment + lifecycle
v0l be6bb03
feat: remove vm.expires and vm.auto_renewal_enabled — single source o…
v0l f243bf1
Add workflow_dispatch with docker label arg
v0l f104ada
refactor: introduce SubscriptionHandler and rename provisioner types
v0l 115061d
ci: add run-e2e.sh script with per-run DB isolation and non-conflicti…
v0l 67d9ee8
fix: SubscriptionHandler::new returns Result instead of panicking on …
v0l f135365
fix: correct subscription_type filter in VM lookup queries (IN (3,4) …
v0l faa10f9
feat: add count_vm_subscription_payments DB method and use it for pag…
v0l 0e1457d
fix: from_subscription_payment returns Result to propagate JSON parse…
v0l 024a777
fix: always send expiry notification when NWC auto-renewal is not active
v0l ed10a02
test: add VM/subscription lifecycle unit tests (payment activation, e…
v0l 2f11786
ci: fix build.yml to trigger on push/PR events and update build-and-t…
v0l 1ca231b
chore: dba review
v0l 96289fe
fix: increase MariaDB readiness timeout from 30s to 90s in e2e script
v0l c234bde
chore: increase e2e timeout
v0l 125cb79
chore: increase e2e timeout
v0l 51c2c59
docs: audit and update API docs; add e2e lifecycle tests and LND/work…
v0l 7ebf7bf
Merge branch 'master' of https://github.com/LNVPS/api into feat/vm-pa…
v0l 9633726
feat: implement creating VM state for first-provision UX
v0l 5b03633
fix: add SO_REUSEADDR to API servers and improve cleanup for e2e tests
v0l File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.