Function | merge_people | Helper for merge and delete methods. |
Function | _merge_person_decoration | Merge a table that "decorates" Person. |
Function | _mergeAccessArtifactGrant | Undocumented |
Function | _mergeAccessPolicyGrant | Undocumented |
Function | _mergeGitRuleGrant | Undocumented |
Function | _mergeBranches | Undocumented |
Function | _mergeGitRepositories | Undocumented |
Function | _mergeSourcePackageRecipes | Undocumented |
Function | _mergeLoginTokens | Undocumented |
Function | _mergeMailingListSubscriptions | Undocumented |
Function | _mergeBranchSubscription | Undocumented |
Function | _mergeGitSubscription | Undocumented |
Function | _mergeBugAffectsPerson | Undocumented |
Function | _mergeAnswerContact | Undocumented |
Function | _mergeQuestionSubscription | Undocumented |
Function | _mergeBugNotificationRecipient | Undocumented |
Function | _mergeStructuralSubscriptions | Undocumented |
Function | _mergeSpecificationSubscription | Undocumented |
Function | _mergeSprintAttendance | Undocumented |
Function | _mergePOExportRequest | Undocumented |
Function | _mergeTranslationMessage | Undocumented |
Function | _mergeTranslationImportQueueEntry | Undocumented |
Function | _mergeCodeReviewVote | Undocumented |
Function | _mergeTeamMembership | Undocumented |
Function | _mergeProposedInvitedTeamMembership | Undocumented |
Function | _mergeKarmaCache | Undocumented |
Function | _mergeDateCreated | Undocumented |
Function | _mergeCodeReviewInlineCommentDraft | Undocumented |
Function | _mergeLiveFS | Undocumented |
Function | _mergeSnap | Undocumented |
Function | _purgeUnmergableTeamArtifacts | Purge team artifacts that cannot be merged, but can be removed. |
Because "person decoration" is becoming more frequent, we create a helper function that can be used for tables that decorate person.
A Person decorator is a table that uniquely references Person, so that the information in the table "extends" the Person table. Because the reference to Person is unique, there can only be one row in the decorator table for any given Person. This function checks if there is an existing decorator for the to_person, and if so, it just leaves any from_person decorator in place as "noise". Otherwise, it updates any from_person decorator to point to the "to_person". There can also be other columns in the decorator which point to Person, these are assumed to be non-unique and will be updated to point to the to_person regardless.
Unknown Field: to_person | the IPerson that is "real" | |
Unknown Field: from_person | the IPerson that is being merged away | |
Unknown Field: skip | a list of table/column pairs that have been handled | |
Unknown Field: decorator_table | the name of the table that decorated Person | |
Unknown Field: person_pointer_column | the column on decorator_table that UNIQUE'ly references Person.id | |
Unknown Field: additional_person_columns | additional columns in the decorator_table that also reference Person.id but are not UNIQUE |