Skip to content

Validate signin #668

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

Merged
merged 3 commits into from
Jan 18, 2017
Merged

Validate signin #668

merged 3 commits into from
Jan 18, 2017

Conversation

theengineear
Copy link
Contributor

Simply raises a PlotlyError if we can't hit /v2/users/current successfully given the session credentials.

I decided to let the session creds/config get set and not revert on fail. It felt simpler to me and I didn't know why it would be beneficial to do anything otherwise.

@theengineear
Copy link
Contributor Author

@Kully review pls :)

//cc @chriddyp seem OK?

This was referenced Jan 18, 2017
@@ -24,11 +24,9 @@
import six.moves
from requests.compat import json as _json

from plotly import exceptions, tools, utils, files
from plotly import exceptions, files, session, tools, utils
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm just curious, why did you switch up the order like this? Is it because tools is moving into a different location for 2.0.0. and therefore its priority is being hierarchically diminished? (I don't know the proper jargon for what I'm describing...)

Copy link
Member

Choose a reason for hiding this comment

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

looks like it's just alphabetical 😎

un = 'anyone'
ak = 'something'
# TODO, add this!
# si = ['this', 'and-this']
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this TODO mean exactly? I'm guessing si means something here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's just old code. I just needed to add it to the TestCase class. I think it's for stream ids probably? I'm not going to futz with it in this PR though.

@Kully
Copy link
Contributor

Kully commented Jan 18, 2017

@Kully review pls :)

All good, just a few questions I threw in there. 💃

@chriddyp
Copy link
Member

good to me!

@theengineear
Copy link
Contributor Author

Uggs. GH/CI stuff has been weird the last day or so. These tests all passed in the most recent build:

https://circleci.com/gh/plotly/plotly.py/1883

Gonna merge!

@theengineear theengineear merged commit 02fb1c4 into 2.0.0 Jan 18, 2017
@theengineear theengineear deleted the validate-signin branch January 18, 2017 20:44
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