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

Upgrade to google-client-api 0.28.4 #14683

Merged
merged 2 commits into from
Feb 28, 2019
Merged

Conversation

ethervoid
Copy link
Contributor

@ethervoid ethervoid commented Feb 20, 2019

Related #14696

We need to upgrade it because it fails with ruby 2.4.x

@ethervoid ethervoid force-pushed the update_google_api_client branch 2 times, most recently from bcc8a36 to b0a5a7f Compare February 20, 2019 17:51
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
services/datasources/lib/datasources/url/gdrive.rb Outdated Show resolved Hide resolved
@ethervoid ethervoid force-pushed the update_google_api_client branch 2 times, most recently from cf99308 to 2826ad5 Compare February 20, 2019 18:58
@ethervoid ethervoid force-pushed the update_google_api_client branch 2 times, most recently from a77338d to 114c5cb Compare February 21, 2019 14:04
@ethervoid ethervoid force-pushed the update_google_api_client branch 8 times, most recently from 5dcd85d to 30bf12e Compare February 25, 2019 13:02
Copy link
Contributor

@gonzaloriestra gonzaloriestra left a comment

Choose a reason for hiding this comment

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

Wow, more changes than I was expecting... Nice work! 💪

We should have more tests (coverage seems to be quite poor here) and code could be cleaner also (smaller methods, more descriptive variable names...), but I guess it would be to ask too much for an unexpected task like this 😅

We'll have to test it very carefully.

@gonzaloriestra gonzaloriestra self-assigned this Feb 25, 2019
@ethervoid
Copy link
Contributor Author

ethervoid commented Feb 25, 2019 via email

@gonzaloriestra
Copy link
Contributor

I've tested it in the dedicated instance you have created, but I couldn't import any file from 2 different Google accounts, while those files do work in production.

It says: Unknown (99999). Sorry, something went wrong and we're not sure what. Try uploading your file again, or contact us and we'll try to help you quickly.

https://rollbar.com/carto/CartoDB/items/8/

@gonzaloriestra
Copy link
Contributor

gonzaloriestra commented Feb 27, 2019

Acceptance:

  • Drive, Box, Dropbox and ArcGIS connectors (connection, file listing, importing and revoke)
  • CSV, XLS, SHP and Zip file types with Drive
  • Listing of Drive account with more than 440 files (limited to that number)
  • Shared files in Drive
  • Single and multilayer imports
  • Synchronizations
  • Repeat the tests using ruby 2.2 to check backward compatibility

@ethervoid
Copy link
Contributor Author

@gonzaloriestra I didn't answer properly to the test part. We can't have tests because this is a third party library use so we should test the integration but for that, we need to have an oauth app + authentication...and that is going to be open in the repository so...

@jgoizueta
Copy link
Member

jgoizueta commented Feb 27, 2019

I've been testing this branch with Ruby 2.2 in a dedicated staging host.

Everything's fine, except we'll need to wait for an hour to see if the synchronization updates correctly.

  • Drive, Box, Dropbox and ArcGIS connectors (connection, file listing, importing and revoke)
  • CSV, XLS, SHP and Zip file types with Drive
  • Listing of Drive account with more than 440 files (limited to that number)
  • Shared files in Drive
  • Single and multilayer imports
  • Synchronizations

@jgoizueta
Copy link
Member

Synchronizations update correctly

@ethervoid ethervoid merged commit e06b2c5 into master Feb 28, 2019
@ethervoid ethervoid deleted the update_google_api_client branch February 28, 2019 10:43
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