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

Avoid live theme from being set in the shopify theme dev session #4257

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

karreiro
Copy link
Contributor

@karreiro karreiro commented Aug 1, 2024

WHY are these changes introduced?

The _shopify_essential may be redefined in the backend with a new theme id. This change ensures the CLI don't use that theme ID and renews the session using the existing workflow defined by the #secure_session_id method.

WHAT is this pull request doing?

This PR changes the logic in the CLI proxy that renews the secure_session_id.

How to test your changes?

  • Run shopify theme dev --verbose
  • Refresh the browser
  • Notice the live theme is no longer rendered

Post-release steps

N/A

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

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Aug 1, 2024

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
72.58% (+0.11% 🔼)
7900/10885
🟡 Branches
69.36% (+0.05% 🔼)
3878/5591
🟡 Functions
71.31% (+0.03% 🔼)
2075/2910
🟡 Lines
72.91% (+0.12% 🔼)
7465/10239

Test suite run success

1801 tests passing in 822 suites.

Report generated by 🧪jest coverage report action from 19f230f

Copy link
Contributor

@lukeh-shopify lukeh-shopify left a comment

Choose a reason for hiding this comment

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

:shipit:

@karreiro karreiro added this pull request to the merge queue Aug 2, 2024
Merged via the queue into main with commit 81c7a4c Aug 2, 2024
36 checks passed
@karreiro karreiro deleted the fix-theme-dev branch August 2, 2024 11:33
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