Import of for-purchase apps broken
Bug #1170742 reported by
Michael Nelson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Apps Directory |
Fix Released
|
Critical
|
Michael Nelson |
Bug Description
jpugh was alerted that recently published for-purchase apps aren't showing up in apps.ubuntu.com.
Checking the log shows the import-
Related branches
lp:~michael.nelson/ubuntu-webcatalog/1170742-import-for-purchase-broken
- Michael Nelson (community): Approve
- Michael Foord (community): Approve
-
Diff: 44 lines (+19/-1)2 files modifiedsrc/webcatalog/models/applications.py (+6/-1)
src/webcatalog/tests/test_models.py (+13/-0)
Changed in ubuntu-webcatalog: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-webcatalog: | |
importance: | Undecided → Critical |
assignee: | nobody → Michael Nelson (michael.nelson) |
tags: | added: u1-by-developer u1-on-production |
tags: |
added: u1-by-dev removed: u1-by-developer |
tags: | added: u1-api |
Changed in ubuntu-webcatalog: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The reason is that apps.u.c currently has a department like:
Name: Role-Playing, slug: role-playing
while the for-pay data being imported has:
Name:Role Playing, slug:role-playing
UWC looks for a department based on the name (rather than the slug) and if not found tries to create a new department with the name and slug.
Updating UWC to instead look for an existing dept. based on the slug and update the name if necessary.