Skip to content

Adds support for expiry of bigquery access token.#501

Merged
vimota merged 4 commits intomasterfrom
expiry
Mar 8, 2019
Merged

Adds support for expiry of bigquery access token.#501
vimota merged 4 commits intomasterfrom
expiry

Conversation

@vimota
Copy link
Contributor

@vimota vimota commented Mar 7, 2019

No description provided.

@vimota vimota requested review from ifigotin and sebbov March 7, 2019 22:08
Copy link
Contributor

@ifigotin ifigotin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@sebbov sebbov left a comment

Choose a reason for hiding this comment

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

LGTM

raise BackendError('Unexpected response from the service.') from e

def get_bigquery_access_token(self):
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Summary line on this first line, then blank line, then more. E.g.:

"""Retrieves BigQuery access token information from the UserSecrets service.

This returns the token for the current kernel as well as its expiry (abs time) if it
is present.

Example:
   ...

Also provide type information (is the expiry a number of seconds since epoch? a datetime? ...) and explain what the returned expiry is when it is not present (None I suppose).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added typing info.

@vimota vimota merged commit f24718f into master Mar 8, 2019
@vimota vimota deleted the expiry branch March 8, 2019 19:30
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