Skip to content
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

[Multi-Tenant] Tenanted Rates endpoints #3120

Open
2 tasks
Tracked by #2893
njlie opened this issue Nov 21, 2024 · 1 comment
Open
2 tasks
Tracked by #2893

[Multi-Tenant] Tenanted Rates endpoints #3120

njlie opened this issue Nov 21, 2024 · 1 comment
Assignees
Labels
pkg: backend Changes in the backend package.

Comments

@njlie
Copy link
Contributor

njlie commented Nov 21, 2024

As quotes and outgoing payments are now tenanted, tenants should now be responsible for setting their own rates and hosting them at their own endpoint.

In the backend business logic, the existing rates service gets rates from an environment variable for a URL. The Rates service should instead be updated to require a tenantId when acquiring rates, so that it pulls from the tenant's ratesEndpoint when calculating rates.

  • Update the RatesService.rates() method to retrieve rates based on the url from a provided tenant id.
  • Update the RatesService to cache rates on a per-tenant basis.

Prerequisites

@github-project-automation github-project-automation bot moved this to Backlog in Rafiki Nov 21, 2024
@njlie njlie added the pkg: backend Changes in the backend package. label Nov 21, 2024
@njlie njlie changed the title Tenanted Rates endpoints [Multi-Tenant] Tenanted Rates endpoints Nov 21, 2024
@njlie njlie mentioned this issue Nov 21, 2024
38 tasks
@mkurapov
Copy link
Contributor

Depends on #3127

@mkurapov mkurapov moved this from Backlog to Todo in Rafiki Dec 6, 2024
@golobitch golobitch self-assigned this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package.
Projects
Status: Todo
Development

No branches or pull requests

3 participants