Comments (1)
It's not different for different objects; I think you're looking at updates to lists (queries) vs updates to types.
For getFooListUpdates, we need to return what has been added to the query (and their index) and what has been removed.
For getFooUpdates, we return the ids of objects that have been created/updated (as the changed response), and those that have been destroyed. The removed is separate because the client can just purge these from the cache. The created/updated are merged because this is easier for the server (less book keeping required) and shouldn't matter to the client: if you have the object already it was clearly an update, and you need to refresh any mutable properties. If you don't have the object, it doesn't matter if it's new or modified – if you want a complete offline cache you need to fetch it (and its probably new if you were previously synced) and if you are doing a partial cache you will probably ignore it – you only fetch if it appears in one of the queries you're interested in.
from jmap.
Related Issues (20)
- Update instructions
- Who's using JMAP? HOT 2
- From Cyrus: use of EmailSubmission/set#onSuccess* without :mail capability HOT 1
- Require "urn:ietf:params:jmap:mail" capability when calling MDN/set? HOT 1
- update multiple records via ResultReference HOT 1
- Why is the Invocation type an Array? HOT 1
- Client and server guides seems to be outdated HOT 3
- VTODO support HOT 4
- How to avoid re-fetching objects after syncing changes? HOT 5
- bodyStructure on message/delivery-status HOT 1
- Future feature : quickly tell servers of a mail adress move HOT 2
- Question: Mandate core capability on each API call? HOT 1
- Question: Why isn't JMAP getting much traction? HOT 2
- Missing refs to RFC-8887 (JMAP over WebSockets) ? HOT 1
- Document authentication discovery on top of JMAP HOT 4
- Add WIP JMAP library? HOT 5
- Scheduled / delayed sending is not documented? HOT 3
- Does JMAP supports the FXP mode ? HOT 1
- Questions about JSON Pointer (result reference) HOT 2
- Ability to download original email content HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmap.