Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Bugfix check api availability #161

Merged
merged 3 commits into from
Sep 1, 2015
Merged

Conversation

csaunders
Copy link
Contributor

In order to make the tool more user friendly this causes pre-emptive API checks to ensure that the API is accessible and the configuration is setup correctly.

When the configuration is not valid, the user will be presented with a screen that helps them debug what could be going wrong. This relies on their store being correct, but if it isn't should look wrong and might help them debug it more easily.

screenshot 2015-09-01 10 54 05

Note: I've bumped the version because I plan on releasing a new gem since this will help reduce duplicate bug reports.

Fixes #160 #146

Please review @nickhoffman @ilikeorangutans

/cc @stevebosworth @cshold @mpiotrowicz

This should help to build something that will
provide more information as to what is going
wrong with client configuration
end

private
attr_reader :client

Choose a reason for hiding this comment

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

attr_reader is usually placed near the top of classes. It doesn't need to be after private .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's mostly just so I can make the method call instead of saying @ivar in my classes.

Choose a reason for hiding this comment

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

Yup. But attr_reader is usually placed near the top of the class, and doesn't need to be located after private . I'd move it up.

@csaunders csaunders force-pushed the bugfix-check-api-availability branch 2 times, most recently from e95ee60 to 47005f7 Compare September 1, 2015 18:02
In order to provide more details to users and give better
failure modes, we verify the validity of a configuration.

If the configuration is not valid we let the user know and
reference them to the shopify_theme configuration page.

We also check to see if the API is down, and if it is, let the
user know and reference them to the shopify status page.
csaunders added a commit that referenced this pull request Sep 1, 2015
@csaunders csaunders merged commit 690f3ca into master Sep 1, 2015
@csaunders csaunders deleted the bugfix-check-api-availability branch September 1, 2015 18:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants