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

Allowing updating the oauth2 info #1965

Conversation

josenavas
Copy link
Contributor

I don't know why I was not allowing the update of the oauth2 info before, but I allow it now. This will allow to run the plugin tests easier.

@antgonza
Copy link
Member

👍 , when tests pass. @ElDeveloper, could you review?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 432df2c on josenavas:plugin-installation-update-keys into * on biocore:plugin-installation*.

'"%s" version "%s" does not match the one in the '
'system' % (name, version))
if update:
sql = """INSERT INTO qiita.oauth_identifiers
Copy link
Contributor

Choose a reason for hiding this comment

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

does this stand to make multiple inserts and is that expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I don't understand your question? This is inserting if it doesn't already exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I understand your question now (thanks @antgonza ). The select that can return a lot of row is inside an EXISTS and it is only used to check if that row already exists or not. The first select, can only return 1 row, since the values are passes as a parameter, i.e. it is effectively doing something similar to SELECT 42.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay thanks

@josenavas josenavas mentioned this pull request Sep 30, 2016
@antgonza antgonza merged commit 38f00e5 into qiita-spots:plugin-installation Sep 30, 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.

None yet

4 participants