mysociety / verification-pages

Tool to generate and push verification pages to Wikidata
https://www.wikidata.org/wiki/Template:Verification_page
2 stars 1 forks source link

Transaction IDs can change if source CSV is updated #543

Open gbp opened 5 years ago

gbp commented 5 years ago

Every Politician CSVs include the Wikidata QIDs so when a person is reconciled the MD5 hash calculated for the statement transaction ID will change resulting in a new verification pages statements when the CSV source is next fetched and loaded.

As has happened on: https://www.wikidata.org/wiki/User:Verification_pages_bot/verification/bz/Member_of_the_9th_House_of_Representatives

We should either:

gbp commented 5 years ago

Detection could be on the 3 QIDs values we store for the reconciled statement, possible done via a SQL GROUP BY clause?

This might not be possible due to Wikidata item getting merged EG. https://www.wikidata.org/wiki/User:Verification_pages_bot/verification/bz/Member_of_the_9th_House_of_Representatives#s:md5:07cec5a1220debee29d2572d2e2ec8f3 has a different person item than https://www.wikidata.org/wiki/User:Verification_pages_bot/verification/bz/Member_of_the_9th_House_of_Representatives#s:md5:0c7dfaedc9d624659b15d2d892c6c20e