-
Notifications
You must be signed in to change notification settings - Fork 90
feat(backend): tenanted quotes and outgoing payments #3171
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
Merged
sanducb
merged 43 commits into
2893/multi-tenancy-v1
from
3118-multi-tenant-tenanted-quotes
Feb 17, 2025
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
8ef2027
feat: tenanted quotes - first iteration with dummy tenant
sanducb 77a9a26
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb ed89fb9
feat: tenanted quotes - replace hardcoded tenantId values with creati…
sanducb 5991a8c
feat: tenanted quotes - formatting
sanducb 1fb446d
feat: tenanted quotes - fix outgoing payments service test
sanducb 8dd4ebd
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb 2194e97
WIP
sanducb 2780cb9
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb 3c574ee
Fix tests - TODOs not resolved yet
sanducb e689be9
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb 6ede5ea
feat: tenanted quotes and outgoing payments - update resolvers and fi…
sanducb eaba290
feat: tenanted quotes and outgoing payments - remove unnecessary comm…
sanducb d8bbefb
feat: tenanted quotes and outgoing payments - fix integration tests
sanducb 8844e14
feat: tenanted quotes and outgoing payments - fix vulnerabilities scan
sanducb 69279c0
feat: tenanted quotes and outgoing payments - partially fix vulnerabi…
sanducb b9323cf
feat: tenanted quotes and outgoing payments - fix get routes for quot…
sanducb c0b7af7
feat: tenanted quotes and outgoing payments - fix outgoing payments r…
sanducb 0adcf53
chore: fix docker image scans (#3272)
mkurapov f72390f
feat: tenanted quotes and outgoing payments - remove tenantId from IL…
sanducb c0ca55c
feat: tenanted quotes and outgoing payments - remove tenantId from St…
sanducb babf2bb
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb a8b8f73
feat: tenanted quotes and outgoing payments - fix unit tests
sanducb 6b00c00
feat: tenanted quotes and outgoing payments - remove tenantId from Gr…
sanducb cec31f8
feat: tenanted quotes and outgoing payments - format
sanducb 6eedfe6
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb 274fd5b
feat: tenanted quotes and outgoing payments - remove tenantId from in…
sanducb b9324cd
feat: tenanted quotes and outgoing payments - remove unnecessary tena…
sanducb df90532
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb 30e608f
feat: tenanted quotes and outgoing payments - update Bruno collection
sanducb 06d0d18
feat: tenanted quotes and outgoing payments - address PR comments
sanducb 092e15c
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb dd7299c
feat: tenanted quotes and outgoing payments - fix Bruno collection me…
sanducb 799026a
feat: tenanted quotes and outgoing payments - add tenantId to outgoin…
sanducb f4b141e
feat: tenanted quotes and outgoing payments - update comments for Gra…
sanducb 1376e62
feat: tenanted quotes and outgoing payments - update quote resolver c…
sanducb f02d1d7
feat: tenanted quotes and outgoing payments - add tenantId to outgoin…
sanducb 59b6f05
feat: tenanted quotes and outgoing payments - add test for getting ou…
sanducb 96816dc
feat: tenanted quotes and outgoing payments - modify get outgoing pay…
sanducb 1499e5e
feat: tenanted quotes and outgoing payments - add test for getting WA…
sanducb f16b26c
feat: tenanted quotes and outgoing payments - remove unused import
sanducb 3d99892
Merge branch '2893/multi-tenancy-v1' of https://github.com/interledge…
sanducb eac6e59
feat: tenanted quotes and outgoing payments - remove unused import
sanducb ec3d256
feat: tenanted quotes and outgoing payments - format
sanducb 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
packages/backend/migrations/20241208214023_add_tenant_id_to_quote.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.up = function (knex) { | ||
return knex.schema | ||
.alterTable('quotes', (table) => { | ||
table.uuid('tenantId').references('tenants.id').index() | ||
}) | ||
.then(() => { | ||
return knex.raw( | ||
`UPDATE "quotes" SET "tenantId" = (SELECT id from "tenants" LIMIT 1)` | ||
) | ||
}) | ||
.then(() => { | ||
return knex.schema.alterTable('quotes', (table) => { | ||
table.uuid('tenantId').notNullable().alter() | ||
}) | ||
}) | ||
} | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.down = function (knex) { | ||
return Promise.all([ | ||
knex.schema.alterTable('quotes', function (table) { | ||
table.dropColumn('tenantId') | ||
}) | ||
]) | ||
} |
32 changes: 32 additions & 0 deletions
32
packages/backend/migrations/20241223104532_add_tenant_id_to_outgoing_payments.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.up = function (knex) { | ||
return knex.schema | ||
.alterTable('outgoingPayments', (table) => { | ||
table.uuid('tenantId').references('tenants.id').index() | ||
}) | ||
.then(() => { | ||
return knex.raw( | ||
`UPDATE "outgoingPayments" SET "tenantId" = (SELECT id from "tenants" LIMIT 1)` | ||
) | ||
}) | ||
.then(() => { | ||
return knex.schema.alterTable('outgoingPayments', (table) => { | ||
table.uuid('tenantId').notNullable().alter() | ||
}) | ||
}) | ||
} | ||
|
||
/** | ||
* @param { import("knex").Knex } knex | ||
* @returns { Promise<void> } | ||
*/ | ||
exports.down = function (knex) { | ||
return Promise.all([ | ||
knex.schema.alterTable('outgoingPayments', function (table) { | ||
table.dropColumn('tenantId') | ||
}) | ||
]) | ||
} |
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
52 changes: 52 additions & 0 deletions
52
packages/backend/src/graphql/generated/graphql.schema.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.