Show Team Drives
Open, Needs TriagePublic

Description

LibKGAPI has added support for the Team Drive portion of the api which will be available in the Applications 19.04 release. This task will add support for such functionalities.

Team Drives can be show in a couple of ways:

  1. Shown at accounts level
─── Google Drive
    ├── someaccount@gmail.com
    │   └── < My Drive contents >
    ├── someaccount@gmail.com Team Drives
    │   └── < list of Team Drives >
    │       └── < Team Drive contents >
    └── New Account
  1. Show as an accounts subdirectory
─── Google Drive
    ├── someaccount@gmail.com
    │   ├── Team Drives
    │   │   └── < list of Team Drives >
    │   │       └── < Team Drive contents >
    │   └── < My Drive contents >
    └── New Account
  1. Reorganize account directory like https://drive.google.com
─── Google Drive
    ├── someaccount@gmail.com
    │   ├── My Drive
    │   │   └── < My Drive contents >
    │   └── Team Drives
    │       └── < list of Team Drives >
    │           └── < Team Drive contents >
    └── New Account

I'm undecided on whether I prefer #1 or #3, I haven't had a chance to ever use an official client so I don't know how folders are presented there. #3 would invalidate any user bookmarks (because of tree change) unless some sort of backwards compatibility url lookup is added.

Team Drives can be show in a couple of ways

How do you choose which way will be used? Is there an API for that?

No the API only exposes the list, clients choose how to present them to users.

I see. Then I'd exclude #3 for the reason you mentioned. I'd be ok with either #1 or #2, with a slight preference for #2.

barchiesi moved this task from Backlog to In Progress on the KIO GDrive board.Apr 25 2019, 12:42 AM

As per Google's new naming, Team Drives have been renamed to Shared Drives.

I have updated my working copy to reflect the above changes and the resulting gDriveUrl structure is:

─── Google Drive
    ├── someaccount@gmail.com
    │   ├── Shared Drives
    │   │   └── < list of Shared Drives >
    │   │       └── < Shared Drive contents >
    │   └── < My Drive contents >
    └── New Account

I'm in the process of cleaning everything up and soon I would like to push a branch so people can test. Would that be ok?

I just created the branch named drives. Most if not all Shared Drives operations have been implemented if I'm not mistaken. I'm not convinced with the permission handling, I couldn't find a way to instruct Dolphin regarding special specific permissions (i.e. disable deleting a Shared Drive but allow adding files).

Please try it out!

barchiesi moved this task from In Progress to Done on the KIO GDrive board.
barchiesi removed barchiesi as the assignee of this task.