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). |
|
after I stopped overseeing that one sentence in the README, that I can import other data easily, I tried: wget http://mirrors.kernel.org/archlinux/extra/os/any/extra.files.tar.gz && uv run ./manage.py reporead --filesonly any extra.files.tar.gz -> 404 wget http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.files.tar.gz && uv run ./manage.py reporead --filesonly x86_64 extra.files.tar.gz works but when I - for example - search for 7zip locally, it is not found. sorry for closing and opening - I am switching platforms to much and had a "ctrl+ Enter" for newline, which is not needed in Github. |
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.