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

Disable local payments extension #5469

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isaacroldan
Copy link
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to test your changes?

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

Comment on lines +79 to +81
if (isTruthy(process.env.SHOPIFY_CLI_USE_LOCAL_PAYMENTS_SPEC)) {
moduleSpecs.push(paymentExtensionSpec as unknown as ExtensionSpecification)
}
Copy link

Choose a reason for hiding this comment

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

When this ships, only new versions of the CLI will require setting SHOPIFY_CLI_USE_LOCAL_PAYMENTS_SPEC this value to false for them to use the previous experience, right? Where and how do we communicate these changes to partners?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just a failsafe in case everything goes wrong with contracts.

  • Old versions of the CLI will use both the local Schema and the Contract for validations.
  • New versions of the CLI will only use the contract for validation, this flag allows us to eventually re-enable local schemas in case we need to revert contract changes.

Ideally we never use this and in the next version of the CLI this is removed (along with all the payments code in the CLI)

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.

2 participants