Extras isn't pulling in screenshots
Bug #987838 reported by
Dave Morley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Directory |
Fix Released
|
Low
|
Michael Nelson |
Bug Description
Bug Description:
Extras isn't displaying screenshots, even though it has them in USC
UAD Version:
Django 1.3
Python 2.6.5 (r265:79063, Apr 16 2010, 14:15:55) [GCC 4.4.3]
preflight 0.1
OS:
64bit precise
Browser:
FF 11.0
Problem URL:
https:/
Steps To Reproduce:
1. goto the link above
2. open USC in Oneiric
3. check the ask ubuntu lens in both
4. USC has a screenchot UAD doesn't
Expected Result:
I expect what I see in USC to be displayed in UAD
Related branches
lp://staging/~michael.nelson/ubuntu-webcatalog/987838-no-screenshot-for-extras
- Łukasz Czyżykowski (community): Approve
-
Diff: 38 lines (+15/-2)2 files modifiedsrc/webcatalog/tests/test_views.py (+14/-0)
src/webcatalog/views.py (+1/-2)
lp://staging/~michael.nelson/ubuntu-webcatalog/987838-no-screenshots-for-extras-2
- Natalia Bidart (community): Approve
-
Diff: 74 lines (+30/-2)2 files modifiedsrc/webcatalog/management/commands/import_app_install_data.py (+7/-0)
src/webcatalog/tests/test_commands.py (+23/-2)
Changed in ubuntu-webcatalog: | |
importance: | Undecided → Low |
description: | updated |
Changed in ubuntu-webcatalog: | |
status: | New → Confirmed |
Changed in ubuntu-webcatalog: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-webcatalog: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
milestone: | none → 12.05 |
Changed in ubuntu-webcatalog: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This can be verified by someone with admin access, but I think the issue is that the application_ screenshots view is 404'ing:
https:/ /apps.ubuntu. com/cat/ applications/ screenshots/ unity-lens- askubuntu/
because the package isn't marked as the latest package. I get the same 404 locally for the firefox package, and noticed this:
{{{ screenshots( request, package_name): or_404( Application, package_ name=package_ name, ).get_screensho ts_for_ package( package_ name) json.dumps( screenshots) , 'application/ json') objects. get(package_ name=package_ name) objects. get(package_ name=package_ name, is_latest=True)
235 def application_
236 import pdb;pdb.set_trace()
237 -> app = get_object_
238 is_latest=True)
239 screenshots = WebServices(
240 return HttpResponse(
241 mimetype=
242
(Pdb) Application.
<Application: Safe and easy web browser from Mozilla (firefox)>
(Pdb) Application.
*** DoesNotExist: Application matching query does not exist.
}}}