Closed wasimsandhu closed 2 years ago
Handling user opt-in for Google Drive sync. The current plan for the workflow is as follows:
instruments
tablegdrive_users
tableNeed to fix user sign-in to workspace. Relevant documentation: https://developers.google.com/drive/api/guides/search-files
Fixed database search in Google Drive on user sign-in to workspace: https://github.com/czbiohub/MS-AutoQC/commit/95b57de5ae09f6cbfdf361710d427c15a607617f
Overlooked one aspect of Google Drive sync: if the user opts to complete first-time setup without enabling cloud sync, but then later decides they want to opt in from Settings > General, this needs to be handled appropriately.
If user opts in to cloud sync from Settings > General, a workspace associated with their Google account either exists or does not exist.
Currently, MS-AutoQC is configured to read our Google Drive folders. This needs to be changed so that any user can authenticate and have the SQL database (and relevant .csv files) stored in their Drive.
Relevant PyDrive2 documentation
Relevant Google Drive API documentation
Helpful StackOverflow threads