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

feat(cli): Use additional permissions with config-sync command #2822

Merged

Conversation

Rhotimee
Copy link
Contributor

Summary

Update the CLI to use additional permissions

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2022

🦋 Changeset detected

Latest commit: 5f45a61

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@commercetools-frontend/application-config Patch
@commercetools-frontend/application-shell Patch
@commercetools-frontend/cypress Patch
@commercetools-frontend/mc-dev-authentication Patch
@commercetools-frontend/mc-html-template Patch
@commercetools-frontend/mc-scripts Patch
@commercetools-applications/merchant-center-template-starter-typescript Patch
@commercetools-applications/merchant-center-template-starter Patch
@commercetools-local/playground Patch
@commercetools-backend/eslint-config-node Patch
@commercetools-backend/express Patch
@commercetools-backend/loggers Patch
@commercetools-frontend/actions-global Patch
@commercetools-frontend/application-components Patch
@commercetools-frontend/application-shell-connectors Patch
@commercetools-frontend/assets Patch
@commercetools-frontend/babel-preset-mc-app Patch
@commercetools-frontend/browser-history Patch
@commercetools-frontend/codemod Patch
@commercetools-frontend/constants Patch
@commercetools-frontend/create-mc-app Patch
@commercetools-frontend/eslint-config-mc-app Patch
@commercetools-frontend/i18n Patch
@commercetools-frontend/jest-preset-mc-app Patch
@commercetools-frontend/jest-stylelint-runner Patch
@commercetools-frontend/l10n Patch
@commercetools-frontend/notifications Patch
@commercetools-frontend/permissions Patch
@commercetools-frontend/react-notifications Patch
@commercetools-frontend/sdk Patch
@commercetools-frontend/sentry Patch
@commercetools-frontend/url-utils Patch
@commercetools-local/visual-testing-app Patch
@commercetools-website/custom-applications Patch
@commercetools-website/components-playground Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 21, 2022

Deploy preview for merchant-center-application-kit ready!

✅ Preview
https://merchant-center-application-53pc9xndi-commercetools.vercel.app
https://appkit-sha-ec639d410d2b2dc3b1c48fb21876598c04c5355a.commercetools.vercel.app
https://appkit-pr-2822.commercetools.vercel.app

Built with commit 5a7680f.
This pull request is being automatically deployed with vercel-action

@Rhotimee Rhotimee marked this pull request as ready for review September 23, 2022 06:43
@Rhotimee Rhotimee requested a review from a team September 23, 2022 06:44
Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also extend the tests for the CLI config diffs to include additional permissions and make sure the diffing logic still works.

Thanks, otherwise looks pretty straight forward 👌

packages/application-config/src/transformers.ts Outdated Show resolved Hide resolved
packages/application-config/src/transformers.ts Outdated Show resolved Hide resolved
packages/application-config/src/transformers.ts Outdated Show resolved Hide resolved
Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, much better now.

Only a few couple of things to tackle and then we should be good to go.

packages/application-config/src/formatters.ts Outdated Show resolved Hide resolved
packages/application-config/src/formatters.ts Outdated Show resolved Hide resolved
Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 Awesome, thanks!

Copy link
Contributor

@CarlosCortizasCT CarlosCortizasCT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

packages/application-config/src/validations.ts Outdated Show resolved Hide resolved
@Rhotimee Rhotimee merged commit f3d5a6d into SHIELD-580-additionalOAuthScopes-field Sep 27, 2022
@Rhotimee Rhotimee deleted the iy-additional-permissions-cli branch September 27, 2022 13:29
kark pushed a commit that referenced this pull request Nov 22, 2022
* feat(config): include additional permissions when using config-sync

* refactor(cli): validate additional oathScope

* refactor(cli): implement getPermissions function, update tests

* refactor(cli): move getPermission function to transformer.ts

* refactor(cli): add validation for additional permission name

* refactor(cli): show duplicated permission name in error thrown
emmenko pushed a commit that referenced this pull request Dec 9, 2022
* feat(config): include additional permissions when using config-sync

* refactor(cli): validate additional oathScope

* refactor(cli): implement getPermissions function, update tests

* refactor(cli): move getPermission function to transformer.ts

* refactor(cli): add validation for additional permission name

* refactor(cli): show duplicated permission name in error thrown
emmenko pushed a commit that referenced this pull request Dec 9, 2022
* refactor(config): define new field additionalOAuthScopes in app config

* docs: improvements

* docs: code review improvements

* refactor(config): include additional oauth scopes in oidc flow (#2801)

* refactor: make a separate PR with docs changes

* feat(cli): Use additional permissions with config-sync command (#2822)

* feat(config): include additional permissions when using config-sync

* refactor(cli): validate additional oathScope

* refactor(cli): implement getPermissions function, update tests

* refactor(cli): move getPermission function to transformer.ts

* refactor(cli): add validation for additional permission name

* refactor(cli): show duplicated permission name in error thrown

* refactor: update permission group name regex

* test: fix snapshots

* chore: alphabetic not alphanumeric

* chore: update changeset

* refactor: at least one additional oauth scope defined

* test: typo

Co-authored-by: Yemitan Isaiah Olurotimi <yemitanisaiah@gmail.com>
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.

3 participants