Commit b72f3eb
committed
fix: Remove
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
This replies to #1486 (comment)attributes and meta attributes before persisting docs1 parent 4f3e14e commit b72f3eb
1 file changed
+31
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
397 | 424 | | |
398 | 425 | | |
399 | 426 | | |
400 | | - | |
| 427 | + | |
401 | 428 | | |
402 | 429 | | |
403 | 430 | | |
404 | | - | |
| 431 | + | |
405 | 432 | | |
406 | 433 | | |
407 | 434 | | |
| |||
0 commit comments