vtex-apps / store-graphql

GraphQL schema and resolvers for the VTEX Commerce Stores API
78 stars 45 forks source link

Adding public namespace to sessionResolver; Respond B2B impersonate a… #597

Closed wender closed 1 year ago

wender commented 2 years ago

What problem is this solving?

B2B impersonation don't require Admin Access / LM Call Center Operator This change makes the directive withCurrentProfile consider B2B impersonation as CallCenterOperator when responding for userType

How to test it?

Access this workspace Login using Kevin.yee@vtex.com and Vtex1234

Using GraphiQL IDE, select storefront-permissions app run this mutation

mutation {
  impersonateUser(userId: "1820b65a-a8e8-418d-9c38-c755e015e22c") {
    message
    status
  }
}

Refresh the site to apply the sessions, navigate to my account > profile

Screenshots or example usage:

Without the change image

With the change image

vtex-io-ci-cd[bot] commented 2 years ago

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

vtex-io-docs-bot[bot] commented 2 years ago

Beep boop :robot:

I noticed you didn't make any changes at the docs/ folder

In order to keep track, I'll create an issue if you decide now is not a good time

rafael-marques commented 2 years ago

Hi, @wender @victorhmp @igorbrasileiro do you guys have an idea when this will be published to prod? Thanks :)

vtex-io-ci-cd[bot] commented 1 year ago

Your PR has been merged! App is being published. :rocket: Version 2.161.2 → 2.161.3

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.store-graphql@2.161.3

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. :book: