[Drive] Implement Team Drives portion of the API
Closed, ResolvedPublic

Description

Implement Team Drives portion of the API.

dvratil created this task.Feb 24 2019, 12:38 AM
barchiesi moved this task from Backlog to In Progress on the LibKGAPI board.

Considering D19403, fetch is missing support for the q parameter, which works the same way as in FileSearchQuery. FileSearchQuery is basically just missing team drive specific field definitions as described here. How should we handle this?

My understanding of the documentation is that you can /only/ use the four fields for teamdrive.list to search for Team Drives, so adding those fields to FileSearchQuery doesn't feel right to me. So I'd say let's create TeamDriveSearchQuery. You can just duplicate the code form FileSearchQuery, or you could try to refactor the sub-query handling code from FileSearchQuery into SearchQuery, that both FileSearchQuery and TeamDriveSearchQuery would inherit - they would then only specify the list of fields and their (de-)serialization and the overall query-building and serialization would be handled by the base class.

As of D19546, fetch support should be complete. I already started working on create functionality, after that only delete and update are missing.

@barchiesi Cool, thanks for working on this! :)

When D19836 gets approved I believe this task is complete, @dvratil correct me if I'm wrong.

@elvisangelaccio I want to start working on the KIO GDrive side of Team Drive integration, care to create a task there so we can start discussing it?

When D19836 gets approved I believe this task is complete, @dvratil correct me if I'm wrong.

@elvisangelaccio I want to start working on the KIO GDrive side of Team Drive integration, care to create a task there so we can start discussing it?

Awesome, feel free to create one at https://phabricator.kde.org/project/board/72/

@barchiesi how much is still missing in the KGAPI code for the Teamdrive support?

@barchiesi how much is still missing in the KGAPI code for the Teamdrive support?

I believe nothing is missing

Great, nice job David! We are after Applications 19.04 freeze now for April release, so any new features added after this point will be available in Applications 19.08 in August (we can still add bugfixes to the stable branch of course). I sneaked the ModifyJob into the stable branch for 19.04, so if nothing is missing, we should now have full Teamdrive support in KGAPI in 19.04 release. Well done!

KIO GDrive does not follow the Applications release cycle, so once you add the support there, Elvis can do a release, so you are not limited by the freeze there. He just needs to wait for Applications 19.04 to be released, as KIO GDrive cannot depend on features from an unreleased version of libkgapi obviously.

barchiesi closed this task as Resolved.Mar 17 2019, 7:46 PM