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

Feature/google drive to folders #205

Merged
merged 10 commits into from
Jul 2, 2020
Merged

Conversation

kevgliss
Copy link
Contributor

@kevgliss kevgliss commented Apr 3, 2020

This PR moves us off google shared drives in favor of using folders instead.

This has a couple of advantages:

  • A user's drive view is no longer cluttered with Google Shared drives.
  • We don't have to move or delete any files when an incident is closed. Which could take a long time if there are many files.
  • Google team drive tend to take longer to create than folders.

Additionally, we don't have to control the individual sharing permissions of every drive, instead of letting the top-level folder or top-level shared drive control general sharing permissions.

This PR also adds two envvars and deprecates two others:

Adds:
INCIDENT_STORAGE_FOLDER_ID: Top level folder where all incident data is stored. Note: viewing actual incident data is still on a per-sub folder basis.
INCIDENT_STORAGE_OPEN_ON_CLOSE: After an incident is closed we as an organization try to be transparent and allow others to view incident data. This is not desirable in all organizations. The default is True or to open after close.

Deprecates:
INCIDENT_STORAGE_ARCHIVAL_FOLDER_ID: Is no longer needed, due to the fact that we won't me moving files for archival.
INCIDENT_STORAGE_RESTRICTED: Is no longer needed because we use whatever top-level permissions are for the folder or shared drive (instead of setting it for each not team drive).

@kevgliss kevgliss requested a review from mvilanova April 3, 2020 21:18
@kevgliss kevgliss marked this pull request as ready for review April 7, 2020 21:35
@kevgliss kevgliss force-pushed the feature/google-drive-to-folders branch from fdb8247 to 075988a Compare April 8, 2020 22:12
docs/configuration/app.md Outdated Show resolved Hide resolved
src/dispatch/incident/flows.py Outdated Show resolved Hide resolved
src/dispatch/incident/flows.py Outdated Show resolved Hide resolved
src/dispatch/incident/flows.py Outdated Show resolved Hide resolved
src/dispatch/plugins/dispatch_google/drive/drive.py Outdated Show resolved Hide resolved
kevgliss and others added 4 commits April 13, 2020 11:56
Co-Authored-By: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Co-Authored-By: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Co-Authored-By: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
Co-Authored-By: Marc Vilanova <39573146+mvilanova@users.noreply.github.com>
@kevgliss
Copy link
Contributor Author

This PR is blocked until the sharing of drive folders reaches GA.

@github-actions
Copy link
Contributor

Stale pull request message

@lgtm-com
Copy link

lgtm-com bot commented Jun 26, 2020

This pull request introduces 2 alerts and fixes 5 when merging b079fab into 070587e - view on LGTM.com

new alerts:

  • 2 for Signature mismatch in overriding method

fixed alerts:

  • 2 for Signature mismatch in overriding method
  • 2 for Unused import
  • 1 for Use of the return value of a procedure

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