Fix duplicate maintainers on package pages (#427)#661
Conversation
|
Whats an example package where this bug occurs? 😊 |
The bug still appears here: https://archlinux.org/packages/extra/any/python-qt.py. I also tried reproducing it locally using the commands from the current README.md step no. 7 to load real prod data locally, but python-qt then was not found when running locally. So I assume it might be worth a thought providing some updated dumps (which would be a separate issue/todo ofc). I also think the distinct is rather a "workaround" then a real fix. I assume we would have to check prod tables and maybe do an according migration to clean up data actually causing the bug in the first place (out of my reach however). |
Update: I used the geo mirror to correctly import core & extra. Yet, python-qt is still missing locally. I am also not sure if I can reproduce it locally bc. the packagedata are of no help regarding corrupted data in archweb's DB. Is there any way I can obtain a db dump from archweb production? (might not be that easy/possible regarding sensitive data/data privacy). Without data insight, it seems near impossible to fix the root cause |
Fixes: #427
This pull requests appends .distinct() to the User queryset in Package.maintainers so each user is returned at most once, regardless of duplicate relation rows.