Currently the Google Drive Connector is hard coded to create a folder on Google Drive named after the current date, and upload all specified files into that folder. The containing folder for this folder is specified in config.json by the google_drive_root_folder_id attribute in the shared_args section. Note that folder id is not the same as folder name (see here for how to find a folder id: https://www.iranthajayasekara.com/blog/how-to-find-your-google-drive-folder-id.html)
The 1-pager states that "Any "file sets" that we want to save for future use should be uploaded to GDrive (at a location that barber will provide) and labelled appropriately".
Currently the folder id for upload is set to root by default - this means the folder containing the uploaded files will be created in the root folder of current user's Google Drive. This should be changed to a specific default location as indicated in the 1-pager.
Design
The folder id of the required folder should be added to config.json, replacing root.
Documentation Changes
Readme/runbook should be changed to explain where files will be uploaded to
Test Evidence
Run app.py with "upload_to_google_drive" set to "true" in config.json for atleast one domain object, then check in the default location to see if the upload was successful.
Issue Description
Currently the Google Drive Connector is hard coded to create a folder on Google Drive named after the current date, and upload all specified files into that folder. The containing folder for this folder is specified in
config.json
by thegoogle_drive_root_folder_id
attribute in theshared_args
section. Note that folder id is not the same as folder name (see here for how to find a folder id: https://www.iranthajayasekara.com/blog/how-to-find-your-google-drive-folder-id.html)The 1-pager states that "Any "file sets" that we want to save for future use should be uploaded to GDrive (at a location that barber will provide) and labelled appropriately".
Currently the folder id for upload is set to
root
by default - this means the folder containing the uploaded files will be created in the root folder of current user's Google Drive. This should be changed to a specific default location as indicated in the 1-pager.Design
The folder id of the required folder should be added to
config.json
, replacingroot
.Documentation Changes
Readme/runbook should be changed to explain where files will be uploaded to
Test Evidence
Run
app.py
with"upload_to_google_drive"
set to"true"
inconfig.json
for atleast one domain object, then check in the default location to see if the upload was successful.Validation in Develop
N/A