openstate / open-raadsinformatie

Doorzoek vergaderstukken van gemeenten en provincies
https://openbesluitvorming.nl
MIT License
28 stars 12 forks source link

Update_source not matching scenario 2 #357

Closed jurrian closed 4 years ago

jurrian commented 4 years ago

Error in ori

LogWARNING in models/postgres_database.py:321 Unable to update source: No matching scenario 2 while updating Source for resource https://id.openraadsinformatie.nl/2417366 with IRI https://openbesluitvorming.nl/voc/mapping/oss/ibabs/party/groenlinks-pvda

View on Bugsnag

Stacktrace

models/postgres_database.py:321 - update_source
models/postgres_database.py:122 - save

View full stacktrace

Created by Jurrian Tromp via Bugsnag

jorritb commented 4 years ago

Most likely this is happening because the production Source table is still slightly contaminated from when we ran a wrong version of the code for a few days. It doesn't happen on a clean database.

The only solution I can think of is to try and create an SQL query that deletes any invalid entries in the Source table but that wouldn't be easy.

jorritb commented 4 years ago

@jurrian thoughts? The error has barely happened in the last 2 weeks so I would close this for now.

jurrian commented 4 years ago

Okay, we will close this for now until new problems are logged.