This commit is contained in:
Michele Artini 2021-04-27 10:26:40 +02:00
parent 9bfb0dbda2
commit 8cbe97abfa
1 changed files with 6 additions and 7 deletions

View File

@ -78,15 +78,14 @@ Super Admin:
The ID is a valid OpenOrgId (generated by the system) The ID is a valid OpenOrgId (generated by the system)
The status is 'approved' The status is 'approved'
2) Approve a suggested org 2) Approve a suggested org (prefix: pending_org_::)
ID: A new org is created with OpenOrg Id and status='approved' ID: A new org is created with OpenOrg Id and status='approved'
Stasus of old organizazion: 'duplicate'
Add a new duplicate to the old Id (status = 'approved')
Copy the duplicates from old to new organizations (status will be 'suggested') Copy the duplicates from old to new organizations (status will be 'suggested')
The pending org is deleted
3) Approve a suggested duplicate 3) Approve a suggested duplicate (the status of the duplicates is always 'raw')
in oa_duplicates: reltype = 'is_similar' in oa_duplicates: reltype = 'is_similar'
in organization: the duplicated org will have status = 'duplicate'
4) Discard a suggested duplicate 4) Discard a suggested duplicate
in oa_duplicates: reltype = 'is_different' in oa_duplicates: reltype = 'is_different'
@ -94,7 +93,7 @@ Super Admin:
Generate a new org Generate a new org
New org status: 'approved' New org status: 'approved'
Conflict reltype: 'is_similar' Conflict reltype: 'is_similar'
Old orgs: 'hidden' Old orgs status: 'hidden'
Rels new <-> old : 'merges' Rels new <-> old : 'merges'
Rels old <-> new : 'merged_in' Rels old <-> new : 'merged_in'
6) Resolve a conflict using a subset of suggested conflicts (discard) 6) Resolve a conflict using a subset of suggested conflicts (discard)
@ -104,7 +103,7 @@ Super Admin:
The dedup wf writes the suggestions on the tmp_dedup_events at the end it calls the method /import/dedupEvents The dedup wf writes the suggestions on the tmp_dedup_events at the end it calls the method /import/dedupEvents
The previous suggestions (orgs, dups and conflicts) are deleted The previous suggestions (orgs, dups and conflicts) are deleted
The suggestions are moved from the temp table according to: The suggestions are moved from the temp table according to:
1) not(isOpenOrg(oa_original_id)) AND (oa_original_id = local_id OR isEmpty(local_id)) -> suggested org 1) not(isOpenOrg(oa_original_id)) AND (oa_original_id = local_id OR isEmpty(local_id)) -> new suggested org with id = 'pending_org_::...'
2) not(isOpenOrg(oa_original_id)) AND (oa_original_id != local_id OR isEmpty(local_id)) -> duplicate of a suggested org 2) not(isOpenOrg(oa_original_id)) AND (oa_original_id != local_id OR isEmpty(local_id)) -> duplicate of a suggested org
3) isOpenOrg(oa_original_id) AND (oa_original_id != local_id OR isEmpty(local_id)) -> duplicate of a existing openOrgs 3) isOpenOrg(oa_original_id) AND (oa_original_id != local_id OR isEmpty(local_id)) -> duplicate of a existing openOrgs
4) Create a group using 'group_id', it should contain only OpenOrg Ids (using oa_original_id and local_id): each couple of the group is a conflict 4) Create a group using 'group_id', it should contain only OpenOrg Ids (using oa_original_id and local_id): each couple of the group is a conflict