cozy / cozy-client

Document store and React components for the Cozy platform
MIT License
13 stars 12 forks source link

fix: Remove attributes and meta attributes before persisting docs #1525

Closed Ldoppea closed 4 days ago

Ldoppea commented 1 week ago

Those doc's attributes are specific to the JSON API and should not be inserted into the Pouch database

This implies that we will have a difference on documents regarding if they are served through the cozy-stack or through a local PouchDB, the first one may include those fields in their result, but not the second one

So from now we should avoid, as much as possible, to relies on the attributes member to prevent bugs on Offline mode. Multiple commits to fix usages of attributes in cozy-client will be done after this one

Usage of attributes and meta members on cozy-app will also have to be fixed. This will be a requirement to implement Offline mode on cozy-apps


Related PRs: