Closed ppazos closed 6 years ago
Sync Accounts
This applies to other items that can be edited, like queries, or updated, like OPTs.
Instead of using a sync_dirty flag we can save the lastUpdated date of the resource in the syncLog.
The issue is updating a User won't change the lastUpdated of an Account, so the Account won't be updated. We need more services to be able to sync just individual entities when modifications happen, and use aggregated syncs only for the first sync.
This is for all but Contribution since contribs can't be updated.
This is for another issue.
MIGRATIONS:
One job per type of resource(wont work because sync has a precedence order following the hierarchy): account should be synced first, then orgs, users and roles, then ehrs (for orgs), folders *for ehrs), contributions (for ehrs), queries (for org), opt (for org)