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] Add tenant selection when creating resources in Admin UI #3273

Open
3 tasks
Tracked by #2893
mkurapov opened this issue Feb 5, 2025 · 0 comments
Open
3 tasks
Tracked by #2893
Assignees

Comments

@mkurapov
Copy link
Contributor

mkurapov commented Feb 5, 2025

Context

As an operator, you should be able to create assets, peers and wallet addresses on behalf of other tenants. We need to reflect this in the UI, and have the tenantId be selectable when creating those resources (via dropdowns).

For non-operator tenants, we can hide the UI elements to select different tenants (since in the backend, the resolvers will use the tenantId from the signature/apollo context).

Todo

  • For the create asset page, if you are an operator, we need to provide a dropdown that lists the tenants (with name and id). An operator can then select a particular tenant to create the asset for. This will pass in the tenantId in the createAsset mutation. The mutation input will need to be updated if it hasn't been done so.
  • For the create wallet address page, if you are an operator, we need to update the dropdown of assets to provide information about the tenant as well. (alternatively, maybe two dropdowns, where you select the tenant first, then select the asset).
  • For the create peers page, if you are an operator, we will need to update the asset dropdown similar to the create wallet address page, such that we can select assets across different tenants.
@mkurapov mkurapov mentioned this issue Feb 5, 2025
41 tasks
@github-project-automation github-project-automation bot moved this to Backlog in Rafiki Feb 5, 2025
@mkurapov mkurapov changed the title Asset, peer, wallet address creation pages (selecting tenants in a dropdown component) [Multi-Tenant] Add tenant selection when creating resources in Admin UI Feb 5, 2025
@mkurapov mkurapov moved this from Backlog to Todo in Rafiki Feb 5, 2025
@njlie njlie self-assigned this Feb 5, 2025
@njlie njlie moved this from Todo to In Progress in Rafiki Feb 6, 2025
@mkurapov mkurapov marked this as a duplicate of #3201 Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants