diff --git a/apps/dnet-orgs-database-application/README.txt b/apps/dnet-orgs-database-application/README.txt index b7a663b3..eed52612 100644 --- a/apps/dnet-orgs-database-application/README.txt +++ b/apps/dnet-orgs-database-application/README.txt @@ -78,15 +78,14 @@ Super Admin: The ID is a valid OpenOrgId (generated by the system) 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' - 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') + 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 organization: the duplicated org will have status = 'duplicate' + 4) Discard a suggested duplicate in oa_duplicates: reltype = 'is_different' @@ -94,7 +93,7 @@ Super Admin: Generate a new org New org status: 'approved' Conflict reltype: 'is_similar' - Old orgs: 'hidden' + Old orgs status: 'hidden' Rels new <-> old : 'merges' Rels old <-> new : 'merged_in' 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 previous suggestions (orgs, dups and conflicts) are deleted 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 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