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
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 ofattributes
in cozy-client will be done after this oneUsage of
attributes
andmeta
members on cozy-app will also have to be fixed. This will be a requirement to implement Offline mode on cozy-appsRelated PRs:
1507