Merge lp:~bac/launchpad/904335-milestone-edit into lp:launchpad
Proposed by
Brad Crittenden
on 2012-01-06
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Curtis Hovey on 2012-01-06 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 14677 | ||||
| Proposed branch: | lp:~bac/launchpad/904335-milestone-edit | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~bac/launchpad/904335-create-milestones-tags | ||||
| Diff against target: |
367 lines (+111/-22) 7 files modified
lib/lp/registry/browser/milestone.py (+30/-3) lib/lp/registry/browser/tests/milestone-views.txt (+5/-2) lib/lp/registry/browser/tests/test_milestone.py (+49/-5) lib/lp/registry/javascript/milestoneoverlay.js (+11/-2) lib/lp/registry/javascript/tests/test_milestone_creation.js (+11/-4) lib/lp/registry/model/milestone.py (+3/-4) lib/lp/registry/tests/test_milestonetag.py (+2/-2) |
||||
| To merge this branch: | bzr merge lp:~bac/launchpad/904335-milestone-edit | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | code | 2012-01-06 | Approve on 2012-01-06 |
|
Review via email:
|
|||
Commit Message
[r=sinzui] [r=gary_
Description of the Change
Add the tags field to the milestone +edit page.
If there is a cleaner way to insert the tags field into the form I'm
open for suggestions.
Tests:
bin/test -vv lp.registry.
No lint.
To post a comment you must log in.
| Curtis Hovey (sinzui) wrote : | # |
Oh, and you might find that this syntax is easier to read in a few months after your forgot what you were doing:
self.field_

Thank you for this improvement. I do not see an issue with how you add tags to the list. There are a few lines that of code that I see repeat: names[: ] names.index( 'summary' ) names[summary_ index:summary_ index] = [tag_entry. __name_ _]
+ self.field_names = self._field_
+ # Insert the tags field before the summary.
+ summary_index = self.field_
+ self.field_
^ You might consider a private method or helper function so that there is one right way to add the field.