Feed Advanced Search

Jul 7 2019

barchiesi updated the diff for D22298: Add supportsAllDrives query parameter to FileAbstractModifyJob and FileAbstractDataJob jobs..

Moved supportsAllDrives from FileAbstractUploadJob to FileAbstractDataJob so both FileCopyJob and FileCreateJob benefit.

Jul 7 2019, 12:46 PM · KDE PIM

Jul 6 2019

barchiesi added a comment to T10630: Show Team Drives.

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

Jul 6 2019, 2:36 PM · KIO GDrive
barchiesi added a reviewer for D22009: Re get Google credentials from KAccounts when a refresh is needed.: elvisangelaccio.
Jul 6 2019, 2:23 PM
barchiesi added a comment to D22009: Re get Google credentials from KAccounts when a refresh is needed..

Looking at accounts-sso/signon-plugin-oauth2, it seems they switch to refreshing if a previous token request returned a refresh_token in the response (which should be our case).

Jul 6 2019, 2:22 PM
barchiesi updated subscribers of D22298: Add supportsAllDrives query parameter to FileAbstractModifyJob and FileAbstractDataJob jobs..
Jul 6 2019, 12:50 PM · KDE PIM
barchiesi requested review of D22298: Add supportsAllDrives query parameter to FileAbstractModifyJob and FileAbstractDataJob jobs..
Jul 6 2019, 12:49 PM · KDE PIM
barchiesi updated the diff for D22009: Re get Google credentials from KAccounts when a refresh is needed..

Changed commit email address.

Jul 6 2019, 11:30 AM
barchiesi updated the diff for D22009: Re get Google credentials from KAccounts when a refresh is needed..

Fixed the const issues.

Jul 6 2019, 11:27 AM

Jul 3 2019

barchiesi committed R219:f81aed7bd13f: Remove useless FileFetchJob field specifications. Fixes D21838 related issues. (authored by barchiesi).
Remove useless FileFetchJob field specifications. Fixes D21838 related issues.
Jul 3 2019, 6:29 PM

Jul 2 2019

barchiesi committed R219:a13fb3e6fc80: Rename Team Drives to Shared Drives. Add hidden drives support. (authored by barchiesi).
Rename Team Drives to Shared Drives. Add hidden drives support.
Jul 2 2019, 10:39 AM
barchiesi committed R219:b46efa3d47f4: Add delete shared drive. (authored by barchiesi).
Add delete shared drive.
Jul 2 2019, 10:39 AM
barchiesi committed R219:9b65f0b3a6a0: wip (authored by barchiesi).
wip
Jul 2 2019, 10:39 AM

Jun 23 2019

barchiesi committed R477:1f2f38fa72c0: Add Drive resource and example. (authored by barchiesi).
Add Drive resource and example.
Jun 23 2019, 4:01 PM
barchiesi closed D21838: Add Drive resource and example..
Jun 23 2019, 4:01 PM · LibKGAPI, KDE PIM

Jun 22 2019

barchiesi updated subscribers of D22009: Re get Google credentials from KAccounts when a refresh is needed..

@elvisangelaccio We have a refresh token available that could be used but I couldn't find any information regarding refreshing an account through KAccounts. Do you know if such functionality is available? If not, would you perhaps know who I can reach out to?

Jun 22 2019, 6:36 PM
barchiesi requested review of D22009: Re get Google credentials from KAccounts when a refresh is needed..
Jun 22 2019, 6:32 PM

Jun 19 2019

barchiesi updated the diff for D21838: Add Drive resource and example..
  • Silence Team Drive deprecation warnings for examples and tests.

@dvratil this seems like a possible solution, what do you think?

Jun 19 2019, 10:56 PM · LibKGAPI, KDE PIM

Jun 17 2019

barchiesi added a comment to D21838: Add Drive resource and example..
  • Deprecate Teamdrive fetch/create/modify/delete jobs.

    I added KGAPIDRIVE_DEPRECATED_EXPORT to the create/delete/modify/fetch jobs and afterwards all tests and the teamdrive example show warnings. Is that correct? Or should I delete tests/examples?
Jun 17 2019, 3:05 PM · LibKGAPI, KDE PIM

Jun 16 2019

barchiesi updated the diff for D21838: Add Drive resource and example..

Fixing previous edit mistakes (not sure what happened, still trying to understand arc).

Jun 16 2019, 4:13 PM · LibKGAPI, KDE PIM
barchiesi updated the diff for D21838: Add Drive resource and example..
  • Added canCreateDrives attribute to About.
Jun 16 2019, 4:10 PM · LibKGAPI, KDE PIM
barchiesi updated the diff for D21838: Add Drive resource and example..

Renamed wrong attributes in Drives::Capabilities.

Jun 16 2019, 12:25 PM · LibKGAPI, KDE PIM
barchiesi added a project to D21838: Add Drive resource and example.: LibKGAPI.
Jun 16 2019, 11:31 AM · LibKGAPI, KDE PIM
barchiesi updated the diff for D21838: Add Drive resource and example..
  • Deprecate Teamdrive fetch/create/modify/delete jobs.
Jun 16 2019, 11:21 AM · LibKGAPI, KDE PIM
barchiesi added a comment to D21838: Add Drive resource and example..

In this revision I would like to also include deprecation notices/warnings on the Teamdrive resource, as it is officially deprecated by Google. What is the correct way to do this?

Jun 16 2019, 12:14 AM · LibKGAPI, KDE PIM
barchiesi requested review of D21838: Add Drive resource and example..
Jun 16 2019, 12:10 AM · LibKGAPI, KDE PIM

May 23 2019

barchiesi added a comment to D20843: Fix CMakeLists always building examples..

Sorry, I must have overlooked this one :( You should be able to commit it for yourself now (arc land).

May 23 2019, 8:41 AM · LibKGAPI, KDE PIM
barchiesi closed D20843: Fix CMakeLists always building examples..
May 23 2019, 8:39 AM · LibKGAPI, KDE PIM
barchiesi committed R477:2fc71a173504: Fix CMakeLists always building examples. (authored by barchiesi).
Fix CMakeLists always building examples.
May 23 2019, 8:39 AM

May 22 2019

barchiesi updated the diff for D20843: Fix CMakeLists always building examples..

Changed (wrong) commit email address.

May 22 2019, 10:50 PM · LibKGAPI, KDE PIM

May 19 2019

barchiesi updated the diff for D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities.

Fixed

May 19 2019, 9:44 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

Yes I did

May 19 2019, 9:43 PM · KIO GDrive
barchiesi abandoned D19948: DRAFT Add Standard Query Parameters support.

All changes have been covered by other differentials, this can be abandoned.

May 19 2019, 5:00 PM · KDE PIM, LibKGAPI
barchiesi set the repository for D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities to R219 KIO GDrive.
May 19 2019, 4:58 PM · KIO GDrive
barchiesi updated the diff for D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities.

Updated after changes to D20064

May 19 2019, 4:58 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

You are correct, fixed those issues

May 19 2019, 4:54 PM · KIO GDrive

May 14 2019

barchiesi updated the diff for D20886: Add fields standard query parameter to Job and use it in FileFetchJob..

I bumped PIM_VERSION, but I'm not sure how versioning works in this project so I only increased the PATCH number.

May 14 2019, 8:00 AM · KDE PIM, LibKGAPI

May 1 2019

barchiesi set the repository for D20883: Apply Authorization headers in Job instead of in each Job implementation. to R477 KGAPI Library.
May 1 2019, 6:17 PM · LibKGAPI, KDE PIM
barchiesi set the repository for D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs. to R477 KGAPI Library.
May 1 2019, 6:17 PM · KDE PIM, LibKGAPI
barchiesi set the repository for D20886: Add fields standard query parameter to Job and use it in FileFetchJob. to R477 KGAPI Library.
May 1 2019, 6:16 PM · KDE PIM, LibKGAPI
barchiesi added a comment to D20886: Add fields standard query parameter to Job and use it in FileFetchJob..

LibKGAPI 19.04 has full support for the Teamdrives REST API but unfortunately that isn't sufficient for completely manipulating them in KIO GDrive. The KIO GDrive patch for Team Drives that I'm working on requires this revision for querying if the user can create Team Drives and it requires D20789 for uploading files and finding parents. I'll probably find more stuff that needs to be added to LibKGAPI.
Therefore KIO GDrive won't be able to support Team Drives until LibKGAPI 19.08. As soon as I have most of the functionality ready, I will submit a revision so you can start looking at it.

May 1 2019, 6:05 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities.

Add commit to revision.

May 1 2019, 5:29 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

Add commit to revision.

May 1 2019, 5:28 PM · KIO GDrive
barchiesi added a dependency for D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities: D20064: Add usefull functions to GDriveUrl..
May 1 2019, 5:25 PM · KIO GDrive
barchiesi added a dependent revision for D20064: Add usefull functions to GDriveUrl.: D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities.
May 1 2019, 5:25 PM · KIO GDrive
barchiesi requested review of D20941: Refactor kio_gdrive to make use of new GDriveUrl functionalities.
May 1 2019, 5:25 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

Maybe this time

May 1 2019, 5:19 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

Got it.

May 1 2019, 5:16 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

I'm still new to phabricator, I hope this is what you meant.

May 1 2019, 5:07 PM · KIO GDrive
barchiesi updated the diff for D20886: Add fields standard query parameter to Job and use it in FileFetchJob..

Updated after revision D20789 change.

May 1 2019, 4:57 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs..

Updated after revision D20789 change.

May 1 2019, 4:56 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D20883: Apply Authorization headers in Job instead of in each Job implementation..

Updated after revision D20789 change.

May 1 2019, 4:53 PM · LibKGAPI, KDE PIM
barchiesi updated the summary of D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.
May 1 2019, 4:51 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.

Added the supportsAllDrives query param to other Jobs that can use it.

May 1 2019, 4:49 PM · KDE PIM, LibKGAPI

Apr 30 2019

barchiesi updated the summary of D20064: Add usefull functions to GDriveUrl..
Apr 30 2019, 1:00 PM · KIO GDrive
barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

Added more functions and refactored KIOGDrive.

Apr 30 2019, 12:25 PM · KIO GDrive

Apr 29 2019

barchiesi updated the diff for D20886: Add fields standard query parameter to Job and use it in FileFetchJob..

Since this changes the API, we must also bump the version in CMakeLists.txt. KIO GDrive will then have to have an #ifdef on LibKGAPI version to use either the old or the new approach, based on against what version of LibKGAPI it is compiled. This LibKGAPI API will not be publicly available until August (KDE Applications 19.08 release).

Another option is to have KIO GDrive master depend on the master of LibKGAPI and not doing any KIO GDrive release from master until LibKGAPI 19.08 is released (but I doubt @elvisangelaccio would be too happy about that :-) )

I guess we should let @elvisangelaccio decide, I believe the first approach is better because it allows building a newer KIO GDrive against older versions of LibKGAPI.

Apr 29 2019, 3:01 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D20886: Add fields standard query parameter to Job and use it in FileFetchJob..

Added Teamdrive field mappings.

Apr 29 2019, 11:52 AM · KDE PIM, LibKGAPI
barchiesi retitled D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it from FileFetchJob: unconditionally set `includeTeamDriveItems`, `includeItemsFromAllDrives`, `supportsTeamDrives`, `supportsAllDrives` query params to FileFetchJob: unconditionally set `includeItemsFromAllDrives`, `supportsAllDrives` query params.
Apr 29 2019, 8:27 AM · KDE PIM, LibKGAPI
barchiesi added a comment to D20886: Add fields standard query parameter to Job and use it in FileFetchJob..

Yes this change affects all LibKGAPI users that used the FileFetchJob::setFields() function. A patch for KIO Gdrive fixes the incompatibility, although I'm not sure how to specify that it should be blocked until the new LibKGAPI release.

Apr 29 2019, 8:26 AM · KDE PIM, LibKGAPI
barchiesi added a dependency for D20888: Adapt to LibKGAPI setFields() changes.: D20886: Add fields standard query parameter to Job and use it in FileFetchJob..
Apr 29 2019, 8:24 AM · LibKGAPI, KIO GDrive
barchiesi added a dependent revision for D20886: Add fields standard query parameter to Job and use it in FileFetchJob.: D20888: Adapt to LibKGAPI setFields() changes..
Apr 29 2019, 8:24 AM · KDE PIM, LibKGAPI
barchiesi requested review of D20888: Adapt to LibKGAPI setFields() changes..
Apr 29 2019, 8:24 AM · LibKGAPI, KIO GDrive

Apr 28 2019

barchiesi added a dependent revision for D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs.: D20886: Add fields standard query parameter to Job and use it in FileFetchJob..
Apr 28 2019, 9:47 PM · KDE PIM, LibKGAPI
barchiesi added a dependency for D20886: Add fields standard query parameter to Job and use it in FileFetchJob.: D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs..
Apr 28 2019, 9:47 PM · KDE PIM, LibKGAPI
barchiesi requested review of D20886: Add fields standard query parameter to Job and use it in FileFetchJob..
Apr 28 2019, 9:47 PM · KDE PIM, LibKGAPI
barchiesi added a dependent revision for D20883: Apply Authorization headers in Job instead of in each Job implementation.: D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs..
Apr 28 2019, 9:41 PM · LibKGAPI, KDE PIM
barchiesi added a dependency for D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs.: D20883: Apply Authorization headers in Job instead of in each Job implementation..
Apr 28 2019, 9:41 PM · KDE PIM, LibKGAPI
Restricted Application added a project to D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs.: KDE PIM.
Apr 28 2019, 9:41 PM · KDE PIM, LibKGAPI
barchiesi requested review of D20884: Add prettyPrint standard query parameter for all jobs except DELETE jobs..
Apr 28 2019, 9:40 PM · KDE PIM, LibKGAPI
barchiesi added a dependency for D20883: Apply Authorization headers in Job instead of in each Job implementation.: D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.
Apr 28 2019, 9:35 PM · LibKGAPI, KDE PIM
barchiesi added a dependent revision for D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it: D20883: Apply Authorization headers in Job instead of in each Job implementation..
Apr 28 2019, 9:35 PM · KDE PIM, LibKGAPI
barchiesi requested review of D20883: Apply Authorization headers in Job instead of in each Job implementation..
Apr 28 2019, 9:34 PM · LibKGAPI, KDE PIM
barchiesi updated the diff for D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.
Apr 28 2019, 9:19 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.

It seems like Google updated the v2 and v3 Drive references. The Teamdrive part of the API that I recently added is now considered deprecated and Drives should be used instead. Sintactically they are very similar, if not same apart from the added features.

Apr 28 2019, 6:40 PM · KDE PIM, LibKGAPI

Apr 26 2019

barchiesi requested review of D20843: Fix CMakeLists always building examples..
Apr 26 2019, 1:22 PM · LibKGAPI, KDE PIM

Apr 25 2019

barchiesi moved T10630: Show Team Drives from Backlog to In Progress on the KIO GDrive board.
Apr 25 2019, 12:42 AM · KIO GDrive
barchiesi updated the diff for D19948: DRAFT Add Standard Query Parameters support.

Changed DeleteJob and ContactModifyJob to demonstrate prettyPrint overriding.

Apr 25 2019, 12:35 AM · KDE PIM, LibKGAPI
barchiesi updated the diff for D19948: DRAFT Add Standard Query Parameters support.

So I ditched Job::authorizedRequest() and now apply auth headers and standard params directly in Job::Private::_k_dispatchTimeout(). Basically I realized that perhaps some kind of jobs don't need the prettyPrint param set to false (no output or the cost is greater than the gain? delete methods maybe?) and in these cases I want to be able to remove the query param in the dispatchRequest implementation (eg. DeleteJob::dispatchRequest).
Does the above seem reasonable?
I also fixed up a little FileLogger so it produces a cleaner output.

Apr 25 2019, 12:17 AM · KDE PIM, LibKGAPI

Apr 24 2019

barchiesi added a dependency for D19948: DRAFT Add Standard Query Parameters support: D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.
Apr 24 2019, 3:06 PM · KDE PIM, LibKGAPI
barchiesi added a dependent revision for D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it: D19948: DRAFT Add Standard Query Parameters support.
Apr 24 2019, 3:06 PM · KDE PIM, LibKGAPI
barchiesi updated the diff for D19948: DRAFT Add Standard Query Parameters support.

Ok so I updated most test urls to reflect the prettyPrint change. I'm not sure what is left out but I will soon find out.
I also refactored File and FileFetchJob so the setFields is centralized. This will require that dependent projects rewrite their FileFetchJob::setFields() invocations, not sure how much of a negative impact that is...

Apr 24 2019, 3:05 PM · KDE PIM, LibKGAPI
barchiesi requested review of D20789: Set supportsAllDrives and includeItemsFromAllDrives on requests that allow it.
Apr 24 2019, 2:50 PM · KDE PIM, LibKGAPI

Apr 23 2019

barchiesi updated the diff for D20064: Add usefull functions to GDriveUrl..

Added test case, is the test sufficient?

Apr 23 2019, 8:48 AM · KIO GDrive

Mar 26 2019

barchiesi requested review of D20064: Add usefull functions to GDriveUrl..
Mar 26 2019, 5:06 PM · KIO GDrive

Mar 22 2019

barchiesi updated the diff for D19948: DRAFT Add Standard Query Parameters support.

I noticed most jobs set the Authorization header on their own so perhaps a standard request builder is needed. I added Job::authorizedRequest with encapsulates this and also adds standard query parameters.

Mar 22 2019, 11:01 PM · KDE PIM, LibKGAPI
barchiesi added inline comments to D19948: DRAFT Add Standard Query Parameters support.
Mar 22 2019, 5:19 PM · KDE PIM, LibKGAPI

Mar 21 2019

barchiesi requested review of D19948: DRAFT Add Standard Query Parameters support.
Mar 21 2019, 6:25 PM · KDE PIM, LibKGAPI

Mar 17 2019

barchiesi added a comment to T10630: Show Team Drives.

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

Mar 17 2019, 8:36 PM · KIO GDrive
barchiesi closed T10521: [Drive] Implement Team Drives portion of the API as Resolved.
Mar 17 2019, 7:46 PM · LibKGAPI
barchiesi created T10630: Show Team Drives.
Mar 17 2019, 7:46 PM · KIO GDrive
barchiesi added a comment to T10521: [Drive] Implement Team Drives portion of the API.

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

Mar 17 2019, 6:07 PM · LibKGAPI
barchiesi updated the diff for D19836: Add TeamdriveModifyJob and update teamdrive example to allow renaming a Team Drive..
Mar 17 2019, 5:53 PM · KDE PIM, LibKGAPI
barchiesi added a comment to D19836: Add TeamdriveModifyJob and update teamdrive example to allow renaming a Team Drive..

Had some typos in copyright notices.

Mar 17 2019, 5:31 PM · KDE PIM, LibKGAPI
barchiesi added a comment to T10521: [Drive] Implement Team Drives portion of the API.

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

Mar 17 2019, 5:15 PM · LibKGAPI
barchiesi added a revision to T10521: [Drive] Implement Team Drives portion of the API: D19836: Add TeamdriveModifyJob and update teamdrive example to allow renaming a Team Drive..
Mar 17 2019, 5:11 PM · LibKGAPI
barchiesi added a task to D19836: Add TeamdriveModifyJob and update teamdrive example to allow renaming a Team Drive.: T10521: [Drive] Implement Team Drives portion of the API.
Mar 17 2019, 5:11 PM · KDE PIM, LibKGAPI
barchiesi requested review of D19836: Add TeamdriveModifyJob and update teamdrive example to allow renaming a Team Drive..
Mar 17 2019, 5:11 PM · KDE PIM, LibKGAPI

Mar 11 2019

barchiesi added a task to D19693: Add TeamdriveDeleteJob with updated example and test: T10521: [Drive] Implement Team Drives portion of the API.
Mar 11 2019, 7:35 PM · LibKGAPI, KDE PIM
barchiesi added a revision to T10521: [Drive] Implement Team Drives portion of the API: D19693: Add TeamdriveDeleteJob with updated example and test.
Mar 11 2019, 7:35 PM · LibKGAPI
barchiesi requested review of D19693: Add TeamdriveDeleteJob with updated example and test.
Mar 11 2019, 7:35 PM · LibKGAPI, KDE PIM