Skip to content

Conversation

@ShipilA
Copy link
Collaborator

@ShipilA ShipilA commented Dec 18, 2025

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

⚠️ No Changeset found

Latest commit: fc98b85

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

import {Context, Configuration} from '../types/configuration';
import {AvailableNamespaces} from '../types/tools';

export const contextToResourceTools = (
Copy link
Member

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(
Copy link
Member

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?

Copy link
Member

@ajimae ajimae left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants