Skip to content

Conversation

@josenavas
Copy link
Contributor

Depends on #1794 so review/merge that one first.

The QiitaClient is improved to reduce workload on the plugin developer.

# -----------------------------------------------------------------------------


class QiitaClientError(Exception):
Copy link
Member

Choose a reason for hiding this comment

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

What's the plan for these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're used in the Qiita client and I think there are 3 different errors that the developer using the QiitaClient can decide what to do (either propagate the error or try something else). For example, this allows me to code a different behavior in the _heartbeat function below.

Copy link
Member

Choose a reason for hiding this comment

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

K, thanks.

@antgonza
Copy link
Member

One question, then 👍 when test pass.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 83.184% when pulling 89ad399 on josenavas:fix-rest-api-qiita-client into 7c798a1 on biocore:fix-rest-api.

@josenavas
Copy link
Contributor Author

@ElDeveloper available for a quick review in here?

# This error occurs when the Qiita server is not reachable. This
# may occur when we are updating the server, and we don't want
# the job to fail. In this case, we wait for 5 min and try again
time.sleep(300)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be worth mentioning this in the docstring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ElDeveloper
Copy link
Contributor

👍

@ElDeveloper ElDeveloper merged commit d1a7f43 into qiita-spots:fix-rest-api Apr 18, 2016
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.

4 participants