-
Notifications
You must be signed in to change notification settings - Fork 0
DEVX-670: fixing the issue with the tools not being loaded when isAdm #24
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
base: main
Are you sure you want to change the base?
DEVX-670: fixing the issue with the tools not being loaded when isAdm #24
Conversation
|
| import {Context, Configuration} from '../types/configuration'; | ||
| import {AvailableNamespaces} from '../types/tools'; | ||
|
|
||
| export const contextToResourceTools = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why we need this 🤔
| types: contextToTypeTools(context), | ||
| 'payment-intents': contextToPaymentIntentTools(context), | ||
| transactions: contextToTransactionTools(context), | ||
| 'business-unit': getToolsForResource( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why we are not doing this at the individual contextToTools level?
ajimae
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ShipilA
I took a look at the PR great work 👍🏽 I left a few comment.
Also, I tested the PR locally and the behaviour is a bit different from what we should have had from this PR and this docs. In summary, when the --tools is all then the --isAdmin must also be true, but that is not the case here.
https://commercetools.atlassian.net/browse/DEVX-670?atlOrigin=eyJpIjoiOGM5MmFmYjljYWYyNDJmNDg2MzM4NmMwYmQzZmJlYzUiLCJwIjoiaiJ9