Skip to content

options.loadObjects dependent depth (verification advisable)#139

Open
Apehaenger wants to merge 1 commit intolambdabaa:masterfrom
Apehaenger:hotfix/loadObjects-dependent-depth
Open

options.loadObjects dependent depth (verification advisable)#139
Apehaenger wants to merge 1 commit intolambdabaa:masterfrom
Apehaenger:hotfix/loadObjects-dependent-depth

Conversation

@Apehaenger
Copy link
Contributor

@Apehaenger Apehaenger commented Jan 9, 2019

I tried to get a quick retrieve of the available address books via
dav.createAccount({accountType : 'carddav', loadCollections: true,
loadObjects: false}), but it wasn't "quick"!
After some debugging I recognized that I also retrieved a list of all
contacts (some hundreds), beside the expected address books.
I'm not very familiar with WebDAV and also not an RFC extraterrestrial,
but after some reading I interpreted the specs in that way that I only
have to expect the contacts when loadObject = true.
This is what this fix does and now the address book query is quick.

I tried to get a quick retrieve of the available address books via
dav.createAccount({accountType : 'carddav', loadCollections: true,
loadObjects: false}), but it wasn't "quick"!
After some debugging I recognized that I also retrieved a list of all
contacts (some hundreds), beside the address books.
I'm not very familiar with WebDAV and also not an RFC extraterrestrial,
but after some reading I interpreted the specs in that way that I only
have to expect the contacts when loadObject = true.
This is what this fix does and now the address book query is quick.
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.

1 participant