Merge lp:~canonical-ca-hackers/ubuntu-webcatalog/1006362-remove-maverick-add-quantal into lp:ubuntu-webcatalog
Proposed by
Łukasz Czyżykowski
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Łukasz Czyżykowski | ||||
Approved revision: | 142 | ||||
Merged at revision: | 140 | ||||
Proposed branch: | lp:~canonical-ca-hackers/ubuntu-webcatalog/1006362-remove-maverick-add-quantal | ||||
Merge into: | lp:ubuntu-webcatalog | ||||
Diff against target: |
230 lines (+147/-4) 5 files modified
django_project/config/main.cfg (+0/-1) src/webcatalog/management/commands/import_all_app_install_data.py (+47/-0) src/webcatalog/management/commands/import_all_ratings_stats.py (+47/-0) src/webcatalog/management/commands/import_for_purchase_apps.py (+7/-1) src/webcatalog/tests/test_commands.py (+46/-2) |
||||
To merge this branch: | bzr merge lp:~canonical-ca-hackers/ubuntu-webcatalog/1006362-remove-maverick-add-quantal | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Anthony Lenton (community) | Approve | ||
Review via email: mp+109376@code.launchpad.net |
Commit message
Only create distroseries which are set in settings.
Description of the change
Overview
========
This branch makes sure that import for purchase apps only creates distroseries from ubuntu_
Additionally there are two new import commands, import_
To post a comment you must log in.
Hi Łukasz,
Looks good! Another minor improvement: import_ ratings_ stats, import_exhibits, import_ for_purchase_ apps and import_ app_install_ data all create DistroSeries objects if they don't find one in the DB, but they do so with the information they find available at the time, which I think is always only the code_name, not the version. Could you use the UBUNTU_ SERIES_ FOR_VERSIONS setting to create DistroSeries always with the right value for both fields? (If you think this is something for a separate branch, I'm happy to land this as is!)
achuni.