Merge lp:~michael.nelson/launchpad/bug-235279-old-series-in-sources-list into lp:launchpad
Proposed by
Michael Nelson
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Deryck Hodge | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~michael.nelson/launchpad/bug-235279-old-series-in-sources-list | ||||
Merge into: | lp:launchpad | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~michael.nelson/launchpad/bug-235279-old-series-in-sources-list | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | Approve | ||
Review via email: mp+9327@code.launchpad.net |
To post a comment you must log in.
= Summary =
Currently the distroseries selector, used on the PPA index page,
presents as an option a distroseries for which all packages have been
deleted in that PPA.
See https:/ /bugs.edge. launchpad. net/soyuz/ +bug/235279
for further explanation and an example.
== Proposed fix ==
It turned out that the underlying Archive. series_ with_sources method was
not checking the status of the published sources.
This fix ensures that non-active publications (ie. deleted or superseded
publications) are ignored when determining an archive's series with sources.
== Pre-implementation notes ==
None.
== Implementation details ==
I took the chance to convert the query to Storm, and reduced it to one
single query rather than two separate ones.
I know we have a policy against lambda functions, but I just used the serieses. I'll be
same sorting that is already present on Distribution.
happy to convert it to a normal function if that's preferable.
== Tests ==
bin/test -vvt TestSeriesWithS ources
== Demo and Q/A ==
There is an example linked from the bug that can be used for QA.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/tests/ test_archive. py soyuz/model/ archive. py
lib/lp/
lib/lp/
--
Michael