Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter logic for export API #16

Open
Aworwui opened this issue Aug 25, 2022 · 2 comments
Open

filter logic for export API #16

Aworwui opened this issue Aug 25, 2022 · 2 comments

Comments

@Aworwui
Copy link

Aworwui commented Aug 25, 2022

Dear All,
I configured the API Sync module and will kindly asked if I can filter the exported record through the export API module

Regards
Archie

@mmcev106
Copy link
Contributor

We attempted to add this feature a year ago, but ran into some compatibility issues with incremental exports that we would need a larger support budget in order to resolve. It is a lot more complicated than the import "Filter Logic" feature, which only supports full syncs every time. Here are some notes I left in the code in case you're curious:

If ever try to add filter logic here again in the future,
remember a simple export filter logic feature is incompatible with incremental change detection.
During the periods when a record does not match filter logic, incremental changes for that record are ignored permanently
(regardless of whether the record matches the filter logic again in the future).
To work around this, we may need to store the last sync time of each individual record and use it to "catch up"
with past changes if/when unmatched records begin matching again (likely via a full sync of just those records).

@Aworwui
Copy link
Author

Aworwui commented Aug 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants