Merge lp:~benji/launchpad/bug-669701 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12169 |
Proposed branch: | lp:~benji/launchpad/bug-669701 |
Merge into: | lp:launchpad |
Diff against target: |
273 lines (+114/-28) 6 files modified
lib/lp/registry/browser/tests/test_projectgroup.py (+1/-3) lib/lp/services/features/browser/edit.py (+35/-18) lib/lp/services/features/browser/tests/test_feature_editor.py (+64/-2) lib/lp/services/features/rulesource.py (+4/-1) lib/lp/services/features/templates/feature-rules.pt (+7/-1) lib/lp/services/features/tests/test_flags.py (+3/-3) |
To merge this branch: | bzr merge lp:~benji/launchpad/bug-669701 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Edwin Grubbs (community) | code | Approve | |
Curtis Hovey (community) | ui | Approve | |
Leonard Richardson (community) | Approve | ||
Review via email: mp+45171@code.launchpad.net |
Commit message
[r=edwin-
Description of the change
When saving the features flag rules the user is given no indication that
anything actually happened (bug 669701). This branch fixes that by
adding a message and displaying the changes applied in the form of a
diff.
This branch also fixes a bug discovered during development: if a user
who is not authorized to make feature flag changes attempts to do so a
NameError will be raised because of a missing import in untested code.
Both the import and a test were added.
The tests for the modified code can be run with:
bin/test -c lp.services.
The feature can be interactively tested by starting a dev Launchpad
instance and logging in as an admin user (<email address hidden>/test)
will work and then interacting with https:/
Several bits of lint were also fixed on this branch.
r=me with minor changes. Around line 151 you have some line breaks that violate the style guide. diff_rules() should be a method of the view so that it's clear which code it belongs to.