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

New Google Sheets connector #202

Merged
merged 13 commits into from
Sep 4, 2020
Merged

New Google Sheets connector #202

merged 13 commits into from
Sep 4, 2020

Conversation

davinov
Copy link
Member

@davinov davinov commented Sep 4, 2020

Change Summary

Contains @testinnplayin's work to create a new Google Sheets connector, that can use provided OAuth2 secrets.
Secrets are to be acquired and stored outside of this project scope, and provided before doing any data request using the set_secret method.
Any connector that will need such secrets will be flagged with authFlow: "oauth2"

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable

@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #202 into master will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #202      +/-   ##
==========================================
+ Coverage   97.63%   97.72%   +0.09%     
==========================================
  Files          44       43       -1     
  Lines        2196     2198       +2     
==========================================
+ Hits         2144     2148       +4     
+ Misses         52       50       -2     
Impacted Files Coverage Δ
...s/facebook_insights/facebook_insights_connector.py 100.00% <ø> (ø)
...ors/google_analytics/google_analytics_connector.py 95.90% <ø> (ø)
...ors/google_big_query/google_big_query_connector.py 100.00% <ø> (ø)
toucan_connectors/google_credentials.py 100.00% <ø> (ø)
...google_spreadsheet/google_spreadsheet_connector.py 100.00% <ø> (ø)
...nectors/micro_strategy/micro_strategy_connector.py 100.00% <ø> (ø)
toucan_connectors/mongo/mongo_connector.py 100.00% <ø> (ø)
toucan_connectors/odata/odata_connector.py 100.00% <ø> (ø)
...ucan_connectors/oracle_sql/oracle_sql_connector.py 100.00% <ø> (ø)
toucan_connectors/aircall/aircall_connector.py 97.11% <100.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5c6174...14347b8. Read the comment docs.

@davinov davinov force-pushed the f/bearer-api-replacement branch from 4a5e13d to 624bb20 Compare September 4, 2020 10:38
tests/google_sheets_2/test_google_sheets_2.py Outdated Show resolved Hide resolved
async with ClientSession(headers=headers) as session:
return await fetch(url, session)

def set_secrets(self, secrets: Dict[str, str]):
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, en local je l'avais changé à Dict[str, Any] mais si mypy ne fait pas ouin ouin on le laisse en tant que tel ?

@testinnplayin
Copy link
Contributor

Je l'ai approuvé mais il y a juste un petit print a enlevé avant de merger ce code

@testinnplayin testinnplayin removed their assignment Sep 4, 2020
@testinnplayin testinnplayin force-pushed the f/bearer-api-replacement branch from f891fa7 to f300b3b Compare September 4, 2020 12:30
@davinov davinov merged commit d6bd71a into master Sep 4, 2020
@davinov davinov deleted the f/bearer-api-replacement branch September 4, 2020 13:21
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.

2 participants