-
Couldn't load subscription status.
- Fork 101
feat(wallet-address)!: possibility to specify wallet address range #3325
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
golobitch
merged 26 commits into
2893/multi-tenancy-v1
from
feature/3278-wallet-address-range
Apr 7, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1d02666
feat(graphql): schema update for specifying settings when creating te…
golobitch 5537c17
feat(tenant): add possibility to specify initial tenant settings as a…
golobitch dfb42e9
test(tenant): create with settings
golobitch ae1ab4b
feat(wallet-address): rename url to address
golobitch fba2634
fix(tenant-settings): duplicate key for tenant
golobitch 7e5c363
feat(wallet-address): replace url field with address field
golobitch 212ce26
chore(backend): format
golobitch 1a88f2c
fix(tests): some of them
golobitch 1f6c450
fix(frontend): due to wallet address url change
golobitch f86d832
fix(mase): due to wallet address url change
golobitch 052af1c
fix(backend): tests due to wallet address url change
golobitch fef7f92
test(integration): fix tests and have default address for operator
golobitch 455a9c3
fix(wallet-address): test for operator can perform cross tenant create@
golobitch 09c0b1f
test(tenant-settings): remove pagination tests for tenant settings
golobitch 194dbec
docs(bruno): rename of the walletaddress url variable
golobitch 0d59233
test(wallet-address): create with tenant settings or not as an operat…
golobitch 63453be
feat(wallet-address): put creation of it into new function
golobitch 98c1ac5
chore(format): everything
golobitch 493c5a2
feat(tenant-settings): add tests for upsert
golobitch 67538ce
feat(tenant-settings): add more tests and remove pagination
golobitch cfdcfbe
Update packages/backend/src/open_payments/wallet_address/service.ts
golobitch 7c6b938
Update packages/backend/src/graphql/resolvers/tenant_settings.ts
golobitch b19d84a
Update packages/backend/src/graphql/schema.graphql
golobitch 98fa108
chore(graphql): generate schema
golobitch 312c242
fix(tenant): mapping settings to tenant
golobitch 0302d69
chore(graphql): generate schema
golobitch 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
43 changes: 43 additions & 0 deletions
43
bruno/collections/Rafiki/Rafiki Admin APIs/Get Tenant Settings.bru
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,43 @@ | ||
| meta { | ||
| name: Get Tenant Settings | ||
| type: graphql | ||
| seq: 60 | ||
| } | ||
|
|
||
| post { | ||
| url: {{RafikiGraphqlHost}}/graphql | ||
| body: graphql | ||
| auth: none | ||
| } | ||
|
|
||
| headers { | ||
| tenant-id: 438fa74a-fa7d-4317-9ced-dde32ece1787 | ||
| } | ||
|
|
||
| body:graphql { | ||
| mutation CreateTenantSettings($input: CreateTenantSettingsInput!) { | ||
| createTenantSettings(input:$input) { | ||
| settings { | ||
| key | ||
| value | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| body:graphql:vars { | ||
| { | ||
| "input": { | ||
| "settings": [ | ||
| { "key": "EXCHANGE_RATES_URL", "value": "https://example.com" } | ||
| ] | ||
| } | ||
| } | ||
|
|
||
| } | ||
|
|
||
| script:pre-request { | ||
| const scripts = require('./scripts'); | ||
|
|
||
| scripts.addApiSignatureHeader(); | ||
| } |
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 |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ body:graphql { | |
| node { | ||
| id | ||
| publicName | ||
| url | ||
| address | ||
| walletAddressKeys { | ||
| edges { | ||
| cursor | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ body:graphql { | |
| node { | ||
| id | ||
| publicName | ||
| url | ||
| address | ||
| } | ||
| } | ||
| } | ||
|
|
||
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
59 changes: 9 additions & 50 deletions
59
localenv/mock-account-servicing-entity/generated/graphql.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
packages/backend/migrations/20250301103930_rename_wallet_address_url_to_address.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,19 @@ | ||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.up = function (knex) { | ||
| return knex.schema.alterTable('walletAddresses', (table) => { | ||
| table.renameColumn('url', 'address') | ||
| }) | ||
| } | ||
|
|
||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.down = function (knex) { | ||
| return knex.schema.alterTable('walletAddresses', (table) => { | ||
| table.renameColumn('address', 'url') | ||
| }) | ||
| } |
19 changes: 19 additions & 0 deletions
19
packages/backend/migrations/20250301203110_unique_tenant_settings_key.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,19 @@ | ||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.up = function (knex) { | ||
| return knex.schema.alterTable('tenantSettings', function (table) { | ||
| table.unique(['tenantId', 'key']) | ||
| }) | ||
| } | ||
|
|
||
| /** | ||
| * @param { import("knex").Knex } knex | ||
| * @returns { Promise<void> } | ||
| */ | ||
| exports.down = function (knex) { | ||
| return knex.schema.alterTable('tenantSettings', function (table) { | ||
| table.dropUnique(['tenantId', 'key']) | ||
| }) | ||
| } |
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.