cozy-labs / cozy-desktop

File Synchronisation for Cozy on Desktop and Laptop
https://cozy-labs.github.io/cozy-desktop/
GNU Affero General Public License v3.0
98 stars 45 forks source link

core/remote/cozy: Use cozy-client queryAll method #2252

Closed taratatach closed 1 year ago

taratatach commented 1 year ago

We added our own RemoteCozy.queryAll() method to fetch the content of a directory from the remote Cozy but its implementation was flawed and would result in errors when there were multiple pages of documents to fetch (i.e. we use 3000 docs pages).

Instead of fixing this implementation, we will now use cozy-client's queryAll() method which is battle tested. I don't understand why we didn't use it before.

Please make sure the following boxes are checked: