-
Notifications
You must be signed in to change notification settings - Fork 699
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
Improve upgrade docs #1525
Improve upgrade docs #1525
Conversation
generate a block in the `shopify_app` initializer. To do so manually, ensure the following is | ||
part of the `after_initialize` block in `shopify_app.rb`. | ||
|
||
```ruby |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(For easier long-term maintenance of this document, I think it's better to refer to the template rather than duplicating its contents here.)
FYI @teddy. (I have more to add). I'm also thinking it maybe useful to have separate internal page for aspects that apply only to first-party apps. |
|
||
Previously, we set the entire app user object in the `session` object. | ||
As of v19, since we no longer save the app user to the session (but only the shopify user id), we now store it as `session[:shopify_user_id]`. Please make sure to update any references to that object. | ||
|
||
#### Webhook Jobs | ||
|
||
It is assumed that you have an ActiveJob implementation configured for `perform_later`, e.g. Sidekiq. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(some apps may have been using a plain Ruby class with the perform
method).
28199b4
to
67dfce6
Compare
docs/Upgrading.md
Outdated
# Common Errors | ||
|
||
* `redirect_uri is not whitelisted` – you likely need to update the App Setup on https://partners.shopify.com/. | ||
* `This app can’t load due to an issue with browser cookies` - this can be caused by an infinite redirect due to coding error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we proceed with #1530 then it should hopefully reduce the need for this.
f6c0c9d
to
381293c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great additions here! 🎉 One added suggestion on whitelist issues, but looking great!
d188e55
to
d261a19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to get into more specific examples that we know of from the many reported issues?
docs/Upgrading.md
Outdated
This can be caused by an infinite redirect due to a coding error. | ||
To investigate the cause, you can add a breakpoint or logging to the `rescue` clause of `ShopifyApp::CallbackController`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add in specific examples that we are aware of that would cause this redirect loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we might want to mention that this could be cause by using the Authenticated concern in a Fetch request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 909b6f8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes make sense to me.
04ff80b
to
25d19f0
Compare
/shipit |
25d19f0
to
86f8fc1
Compare
Co-authored-by: Andy Waite <[email protected]>
What this PR does
Reviewer's guide to testing
Things to focus on
Checklist
Before submitting the PR, please consider if any of the following are needed:
CHANGELOG.md
if the changes would impact usersREADME.md
, if appropriate./docs
, if necessary