Fw: OneDrive backend



Hello all,

It was a year since I wrote the last email but from that time fully absorbed by school wchich I finished last week so I will return to the work on libzapojit.

I got together all of the stuff I created then and created a fork of libzapojit [1] wchich I ported to Meson. Since Microsoft rolled the new Microsoft Graph API I will probabbly also need to rewrite part of GNOME Online Accounts but I don't think that would be a problem since the OpenAuth2 tokens should be backwards compatible but I will have to check that. The only problem I see is the need to register an application in the AzureAD [2]. For now I registered a test application on my account so that I could work on the libzapojit migration but I would like to know how this should be handled. Judging by the source code and documentation it is the same with Google accounts.

Anyway I created dummy account backend in the GNOME Online Accounts so I would be able to port libzapojit and found out that the code in GOA needs very little change. It's mostly about changing URLs.

Vilém


Od: Vilém Hořínek <vilem horinek hotmail com>
Odesláno: čtvrtek 31. května 2018 20:03
Komu: Spork Schivago; Debarshi Ray
Kopie: gvfs-list gnome org
Předmět: Re: OneDrive backend
 
On Mon, May 28, 2018, 12:59 PM Debarshi Ray <rishi is lostca se> wrote:
Hey,

Yes, using libzapojit [1] for the over-the-wire communication is a
good idea.  The OneDrive integration in GNOME Documents uses it; it's
quite similar to the libgdata [2] API and is easy to integrate with
GNOME Online Accounts.

That said, I wrote libzapojit six years ago in just about a week and
haven't touched it since (no idea if that's a good or bad thing :/),
and it has managed to keep working as far as GNOME Documents is
concerned.  Since then Microsoft seems to have rolled out a newer
version of the API.  So you might want to check up on that.  I'd
suggest migrating libzapojit to the newer API version before working
on the GVfs backend.  Otherwise you might be surprised by Microsoft
killing off the old API - this actually happened while we were working
on the Google Drive backend!  Oh, and we really need to add a test
suite!

Other than that, as Ondrej mentioned, the Google Drive backend exposes
some limitations of the GIO abstraction; and we need to rethink the
caching to improve performance but that's a bit tied to the way we
handle multiple files with the same title in the same location.  If
OneDrive doesn't allow duplicate titles, then it might have a
significant positive effect on your life. :)

Feel free to ask if you need any help.  Good luck!

Happy hacking,
Rishi

[1] https://developer.gnome.org/libzapojit/0.0/
[2] https://developer.gnome.org/gdata/0.17/
[3] https://github.com/pwithnall/uhttpmock
_______________________________________________
gvfs-list mailing list
gvfs-list gnome org
https://mail.gnome.org/mailman/listinfo/gvfs-list

Hello,

I was looking at the source code of libzapojit and I will slowly start migrating it to the new API in the next couple of days.

Vilém


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]