Merge lp:~rvb/launchpad/dds-missing-base-version-747202 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12780 |
Proposed branch: | lp:~rvb/launchpad/dds-missing-base-version-747202 |
Merge into: | lp:launchpad |
Diff against target: |
226 lines (+103/-11) 4 files modified
lib/lp/registry/browser/distroseriesdifference.py (+1/-0) lib/lp/registry/browser/tests/test_distroseriesdifference_views.py (+89/-7) lib/lp/registry/templates/distroseriesdifference-listing-extra.pt (+7/-3) lib/lp/testing/factory.py (+6/-1) |
To merge this branch: | bzr merge lp:~rvb/launchpad/dds-missing-base-version-747202 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Review via email: mp+56311@code.launchpad.net |
Commit message
[r=jcsackett][bug=747202] Fix the UI on the localpackagediffs page when dsd's base_version is None.
Description of the change
This branch fixes the UI on the localpackagediffs page when dsd's base_version is None. It displays 'unknown' instead of an empty line for "Last common version:" and prevents the package diff slot to be displayed.
== Tests ==
./bin/test -cvv test_distroseri
== QA ==
- Fire up a local instance.
- Turn on the feature flag :
'soyuz.
- Update the dsd:
update distroseriesdif
- Access the page
https:/
- Open up the first row.
- Make sure:
- "Last common version:" is Unknown.
- the package diff request link is not there.
As discussed in IRC, I think this needs to be investigated, as I'm not sure the boolean logic ever evaulates to True
=== modified file 'lib/lp/ registry/ templates/ distroseriesdif ference- listing- extra.pt' registry/ templates/ distroseriesdif ference- listing- extra.pt 2011-03-31 20:40:32 +0000 registry/ templates/ distroseriesdif ference- listing- extra.pt 2011-04-05 10:03:19 +0000 package_ diffs_request_ link"> "python: not(view. show_package_ diffs_request_ link) and context. base_version" > base_version" > "context/ base_version" > package- diff-status" >
<tal: source- diff-option condition= "view/display_ child_diff" > "context/ package_ diff">
--- lib/lp/
+++ lib/lp/
@@ -48,10 +48,13 @@
</span>
</dt>
<dt
- tal:condition="not: view/show_
+ tal:condition=
Differences from last common version:
</dt>
- <dd>
+ <dd class="greyed-out" tal:condition="not: context/
+ Unknown
+ </dd>
+ <dd tal:condition=
<ul class="
<li tal:condition=
As you said, it could probably use a test to make sure things *are* displayed under the right conditions and not just *not* displayed as appropriate.