Skip to content

Commit

Permalink
delete only records which have deleted zoho record as proxy id #EA-3896
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Jul 30, 2024
1 parent 0f57263 commit 8c617e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ protected void performOperations(BatchOperations operations, ZohoSyncReport zoho

}

/**
* run permanent delete operations, use {@link ZohoSyncService#synchronizeDeletedZohoOrganizations(OffsetDateTime, ZohoSyncReport)}
* @deprecated the modified in zoho do not results in permanent delete operations
* @param permanentDeleteOperations operation to perform
* @param zohoSyncReport report to collect results
*/
@Deprecated
void performPermanentDeleteOperations(SortedSet<Operation> permanentDeleteOperations, ZohoSyncReport zohoSyncReport) {
if (permanentDeleteOperations == null || permanentDeleteOperations.isEmpty()) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,8 @@ void synchronizeDeletedZohoOrganizations(OffsetDateTime modifiedSince,
boolean hasNext = true;
int currentPageSize = 0;
List<String> entitiesZohoCoref = null;
// Zoho doesn't return the total results
List<EntityRecord> deletedEntityRecords;
List<String> entityIdsToDelete;
// Zoho doesn't return the total results
while (hasNext) {
try {
// list of (europeana) organizations ids
Expand Down

0 comments on commit 8c617e5

Please sign in to comment.