Swapped short description and name for extras.u.c apps
Bug #1045691 reported by
David Planella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Directory |
Fix Released
|
Low
|
Michael Nelson |
Bug Description
This is a follow-up from bug 1010655, as one of the issues pointed out there is still not fixed.
In short, it seems that the web catalog swaps the tagline (short description) and app name for applications coming from extras. Examples:
- https:/
- https:/
QA Steps:
1) Request import_sca_apps and import_
2) Verify the above 2 urls, qreator should have a name "Qreator" and tagline "Create your own QR codes".
Related branches
lp:~michael.nelson/ubuntu-webcatalog/1045691-use-the-name
- Anthony Lenton (community): Approve
-
Diff: 41 lines (+21/-0)2 files modifiedsrc/webcatalog/management/commands/import_app_install_data.py (+2/-0)
src/webcatalog/tests/test_commands.py (+19/-0)
tags: | added: arb |
Changed in ubuntu-webcatalog: | |
status: | New → Confirmed |
importance: | Undecided → Low |
description: | updated |
Changed in ubuntu-webcatalog: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
status: | Confirmed → Fix Committed |
Changed in ubuntu-webcatalog: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The current description for qreator on the sca api [1] is:
"Create your own QR codes\nQreator enables you to easily create your own QR codes to encode different types of information in an efficient, compact and cool way."
One possibility is that, since the second duplicate of qreator was deleted yesterday (see bug 1015604), there may not have been an import_ sca_application run (which would set this app with the imported_from_sca flag, and not allow the info from apt to overwrite).
That said, the packages file [2] also has the correct description:
"""
Description: Create your own QR codes
Qreator enables you to easily create your own QR codes to encode
different types of information in an efficient, compact and cool way.
"""
and our code is making the following assumption for imports of app-install data:
{{{
summary_ lines = candidate. summary. split(' \n')
app_ name = summary_lines[0]
app_ comment = '\n'.join( summary_ lines[1: ])
app_ comment = package.name
# USC uses the first line of the summary as the
# application name and the rest as the comment..
if not app_comment:
}}}
which, based on the above, does not look correct... (or the lucid version of the apt package that we're using on the server to extract the data is not doing what we expect).
[1] http:// software- center. ubuntu. com/api/ 2.0/application s/en/ubuntu/ precise/ i386/ extras. ubuntu. com/ubuntu/ dists/precise/ main/binary- amd64/Packages. gz
[2] http://