Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to fix inconsistent references to people from SayIt speakers #1611

Merged
merged 3 commits into from
Feb 2, 2015

Conversation

mhl
Copy link
Contributor

@mhl mhl commented Feb 2, 2015

We have changed the form of IDs in the South African PopIt instance
several times, but without removing the entries corresponding to old
PopIt IDs from the popit-django popit_person table. This meant that the
name resolution on importing new committee proceedings could associate
the speeches with various SayIt speakers corresponding to different
entries in that table.

This pull request introduces a script to hopefully clean up that mess; it
tries to remove any row with an deprecated format ID from the
popit_person table, safely removing any SayIt Speaker associated with
that row.

This should fix #1597 and hopefully #1601.

The underlying issue (that Pombola ZA stores the identity of people in
five different places) is being addressed by #1594.

@mhl mhl force-pushed the 1597-fix-committee-appearances branch from 3ab8da2 to 57bf083 Compare February 2, 2015 15:26
@dracos
Copy link
Member

dracos commented Feb 2, 2015

It's been tested on the copy of the data, and it's coded quite safely so shouldn't delete anything that might still be in use, so 👍

…kers

We have changed the form of IDs in the South African PopIt instance
several times, but without removing the entries corresponding to old
PopIt IDs from the popit-django popit_person table. This meant that the
name resolution on importing new committee proceedings could associate
the speeches with various SayIt speakers corresponding to different
entries in that table.

This commit introduces a script to hopefully clean up that mess; it
tries to remove any row with an deprecated format ID from the
popit_person table, safely removing any SayIt Speaker or EntityName
associated with that row. It also removes any rows from this table that
can't be associated with any Pombola core Person any more, so long as
they are not referenced any more.

This should fix #1597 and hopefully #1601.

The underlying issue (that Pombola ZA stores the identity of people in
five different places) is being addressed by #1594.
@mhl mhl force-pushed the 1597-fix-committee-appearances branch from 57bf083 to 82bb11c Compare February 2, 2015 17:57
@mhl mhl merged commit 82bb11c into master Feb 2, 2015
@jacksonj04 jacksonj04 deleted the 1597-fix-committee-appearances branch July 28, 2015 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ZA: some committee appearances from November 2014 are missing
2 participants