Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Migrate from cozy-client-js to cozy-client #2375

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

taratatach
Copy link
Member

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

@taratatach taratatach self-assigned this Feb 11, 2025
@taratatach taratatach force-pushed the chore/replace-cozy-client-js-with-cozy-client branch from e2bc55d to cce70f3 Compare February 17, 2025 16:54
@taratatach taratatach force-pushed the chore/replace-cozy-client-js-with-cozy-client branch 4 times, most recently from 6d9780b to 2d5fdbb Compare February 28, 2025 13:18
@taratatach taratatach force-pushed the chore/replace-cozy-client-js-with-cozy-client branch 3 times, most recently from 0e58346 to 870de5b Compare March 7, 2025 09:59
  This version brings the necessary features to switch from
  `cozy-client-js` to `cozy-client` entirely.
  When a local file move to a destination where a file already exists is
  converted into an update of the existing file, if the existing and
  moved files have the exact same modification date then the
  modification will be ignored and not saved in PouchDB.

  This choice was made on purpose to avoid merging intermediary file
  changes in some situations like the propagation of a remote change to
  the local filesystem.

  Although having the exact same modification date for 2 files should be
  almost impossible in production, it can quite easily happen in tests
  where documents and their metadata are generated very closely.
  This was the case in the unit test for this specific situation which
  was failing from time to time (more often on the CI).
  Upgrade `pouchdb-find` and `pouchdb-adapter-memory` as well since
  they're linked.

  We change the way we handle the `_rev` attribute when creating views
  as the revision validation code has changed in PouchDB v9.
@taratatach taratatach force-pushed the chore/replace-cozy-client-js-with-cozy-client branch from 870de5b to d9098b9 Compare March 7, 2025 11:16
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