pre-release versions displayed by default

Bug #1017930 reported by Michael Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Apps Directory
Confirmed
Medium
Unassigned

Bug Description

This is just a heads-up for a bug noticed in the code [1]

Currently when accessing a url like:

https://apps.ubuntu.com/cat/applications/whatever/

it returns the app for the latest series, whether or not that's a pre-release series or not.

While discussing solutions for that, we said:
- check_all_latest will set the is_latest bit for the latest *released* distroseries
- find_best and find_best_or_404 will just check the is_latest bit or be removed entirely so that call-sites can just do: Application.objects.filter(package_name=package_name, is_latest=True) (or use get_object_or_404)
- Ensure check_all_latest is called at the end of import_all_app_install_data automatically.

[1] https://pastebin.canonical.com/68868/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.