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

When creating a new app, default to using required_scopes #5091

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

Conversation

pobed2
Copy link

@pobed2 pobed2 commented Dec 12, 2024

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

Copy link
Author

pobed2 commented Dec 12, 2024

Copy link
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
75.29% (+0.01% 🔼)
8771/11650
🟡 Branches
70.57% (+0.03% 🔼)
4277/6061
🟡 Functions 75.04% 2294/3057
🟡 Lines
75.84% (+0.02% 🔼)
8293/10935
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / app-event-watcher.ts
93.83% (-1.23% 🔻)
86.49% 90.48% 98.61%

Test suite run success

1975 tests passing in 896 suites.

Report generated by 🧪jest coverage report action from 440bc82

@@ -930,7 +930,7 @@
specificationIdentifier: AppAccessSpecIdentifier,
config: {
redirect_url_allowlist: isLaunchable ? ['https://example.com/api/auth'] : [MAGIC_REDIRECT_URL],
...(scopesArray && {scopes: scopesArray.map((scope) => scope.trim()).join(',')}),
...(scopesArray && {required_scopes: scopesArray.map((scope) => scope.trim())}),
Copy link
Author

Choose a reason for hiding this comment

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

Note to self: this is only for app management. For partners, this will happen in https://app.graphite.dev/github/pr/Shopify/shopify/561286

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.

1 participant