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

eject session storage #1155

Merged
merged 8 commits into from
May 15, 2023
Merged

Conversation

nelsonwittwer
Copy link
Contributor

@nelsonwittwer nelsonwittwer commented May 15, 2023

Description

Removes session storage from API library. This feature was deprecated in #1055. It was decided that session persistance is best handled by shopify_app gem.

As part of rejecting session storage, we needed to refactor GraphQLProxy#proxy_query to pass in a session instead of reading it from cookie / header.

How has this been tested?

In addition to the automated testing, this branch was pointed at with a generated app from the CLI. Was able to install the app on a store, and uninstall the app a store. Was able to make API calls.

Checklist:

  • My commit message follow the pattern described in here
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the project documentation.
  • I have added a changelog line.

@nelsonwittwer nelsonwittwer changed the title Nelsonwittwer/remove session storage eject session storage May 15, 2023
@nelsonwittwer nelsonwittwer changed the title eject session storage WIP - eject session storage May 15, 2023
@nelsonwittwer nelsonwittwer changed the title WIP - eject session storage eject session storage May 15, 2023
@nelsonwittwer nelsonwittwer merged commit 006e7af into main May 15, 2023
8 checks passed
@nelsonwittwer nelsonwittwer deleted the nelsonwittwer/remove_session_storage branch May 15, 2023 19:38
@jaredbeck
Copy link

jaredbeck commented Aug 16, 2023

[ ShopifyAPI | WARN ] The use of SessionStorage in the API library has been deprecated. The ShopifyAPI will no longer have responsibility for session persistence. Upgrading to shopify_app 21.3 will allow you to remove session_storage from the API library Context configuration.

Please confirm that there are exactly two upgrade steps:

  1. upgrade shopify_app to 21.3
  2. remove session_storage from ShopifyAPI::Context.setup

Are any other changes necessary? Thanks.

@mattsrobot
Copy link

@jaredbeck did you find any solution? I'm lost.

@jaredbeck
Copy link

@jaredbeck did you find any solution? I'm lost.

I asked my Shopify Support contact, and received the following response:

From what our engineers have explained, removing session_storage from your API context block in the initializer, will [be sufficient].

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.

None yet

4 participants