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

Fix bug where locale is not read from session #1878

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

nickpith
Copy link
Contributor

@nickpith nickpith commented Jul 10, 2024

What this PR does

The changes in #1711 introduced a bug where single-page apps that don't include the locale param in subsequent requests were unable to properly set the locale that was persisted in the user session. Instead they would use the default locale.

See https://github.com/Shopify/shopify_app/pull/1711/files#r1664570299 for background.

Reviewer's guide to testing

Things to focus on

Nothing in particular since this is a very small change. A new test case was added to make sure it was accounted for.

Checklist

Before submitting the PR, please consider if any of the following are needed:

  • Update CHANGELOG.md if the changes would impact users
  • Update README.md, if appropriate.
  • Update any relevant pages in /docs, if necessary
  • For security fixes, the Disclosure Policy must be followed.

@nickpith nickpith force-pushed the fix_2_letter_lang_code_issue branch from 1088c57 to b0ec3bb Compare July 10, 2024 17:33
@nickpith nickpith self-assigned this Jul 10, 2024
@nickpith nickpith marked this pull request as ready for review July 10, 2024 18:00
@nickpith nickpith requested a review from a team as a code owner July 10, 2024 18:00
@awd
Copy link
Contributor

awd commented Jul 10, 2024

Thank you @nickpith - LGTM :shipit:

Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Feel free to merge after you resolve that changelog conflict!

The changes in #1711 introduced a bug where single-page apps that don't include the locale param in subsequent requests were unable to properly set the locale that was persisted in the user session. Instead they would use the default locale.

See https://github.com/Shopify/shopify_app/pull/1711/files#r1664570299 for background.
@nickpith nickpith force-pushed the fix_2_letter_lang_code_issue branch from b0ec3bb to 07a695d Compare July 11, 2024 19:33
@nickpith nickpith merged commit b921685 into main Jul 11, 2024
7 checks passed
@nickpith nickpith deleted the fix_2_letter_lang_code_issue branch July 11, 2024 19:35
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