sync-engine icon indicating copy to clipboard operation
sync-engine copied to clipboard

Feature Request: Delta sync with custom filters

Open jhaber1 opened this issue 9 years ago • 2 comments

First: Not sure what the demand would be for something like this, but for our use case, we only care about a subset of a user's inbox i.e. only pulling down messages where any_email = x, y, z. Would be great if the same logic could be applied to the delta sync endpoint. E.g. something like /delta?cursor=<cursor>&[email protected],[email protected] would return only email messages since the last sync that involve those two emails. Mainly requesting this out of wanting to reduce bandwidth.

Second: Kind of related, but didn't want to split it into its own issue. Having an event participants filter would be useful too. E.g /[email protected],[email protected], and also having that available for the delta sync endpoint.

jhaber1 avatar Mar 09 '15 21:03 jhaber1

Great suggestions! We've been looking into filters for the delta sync endpoint, and just want to make sure we do them efficiently. (Sometimes we collapse changes, which could get inconsistent if we improperly only do a subset.

For events, you're looking to filter on people who have been invited to the event, correct?

grinich avatar Mar 09 '15 23:03 grinich

Sometimes we collapse changes, which could get inconsistent if we improperly only do a subset.

Yeah I can imagine that that is the scary/ugly part.

And for events, yes. Obviously by email would be easier than by name.

jhaber1 avatar Mar 10 '15 11:03 jhaber1