#5489 Please delete my deprecated updates from Bodhi
Closed: Fixed None Opened 7 years ago by jskarvad.

= bug description =
I have some packages that remained in the testing state and didn't get into the stable on time before the Fedora release got obsoleted. Unfortunately, it seems I cannot do anything with the updates in Bodhi, please could you delete them from Bodhi? It's the following updates:

https://bodhi.fedoraproject.org/updates/FEDORA-2015-e75992a62a
https://bodhi.fedoraproject.org/updates/FEDORA-2015-f3431f59c9
https://bodhi.fedoraproject.org/updates/FEDORA-2015-98fd50ae09

Thanks.


So, to clarify the reason you want them gone is that they are showing up on your profile page?

Or is there some other reason(s)?

If the updates were still there in the same state, but no longer appearing on your profile page would that be a solution?

Yes, I do not care about F21, the packages can stay in updates testing repo on old mirrors (better would be to go to stable, but I can live with it :), but I would like them not to polute my profile page.

Hello jskarvad! I've filed this request for you against upstream Bodhi, since it would require a code change. If you are handy with Python, we would welcome a pull request!

https://github.com/fedora-infra/bodhi/issues/963

I'm going to close this Trac ticket since we'd like to keep code change requests with the upstream tracker. Thank you for reporting this to us!

Replying to [comment:3 bowlofeggs]:
Thanks. I can do pull request, but I don't have running instance of bodhi, thus I cannot test whether it works. I think that something similar to the following should do the trick, but maybe there are better ways:
{{{
--- a/bodhi/server/services/updates.py
+++ b/bodhi/server/services/updates.py
@@ -247,6 +247,9 @@ def query_updates(request):
if release is not None:
query = query.filter(Update.release==release)

  • if release is None and releases is None:
  • query = query.filter(Update.release.state is not ReleaseState.archived)
    +
    req = data.get('request')
    if req is not None:
    query = query.filter(Update.request==req)
    }}}

Login to comment on this ticket.

Metadata