Merge lp:~sinzui/launchpad/unchanged-bug-supervisor into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11177 |
Proposed branch: | lp:~sinzui/launchpad/unchanged-bug-supervisor |
Merge into: | lp:launchpad |
Diff against target: |
114 lines (+45/-7) 3 files modified
lib/lp/bugs/browser/bugrole.py (+15/-4) lib/lp/bugs/browser/bugtarget.py (+5/-3) lib/lp/bugs/browser/tests/test_bugtarget_configure.py (+25/-0) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/unchanged-bug-supervisor |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+29998@code.launchpad.net |
Description of the change
This is my branch to not raise a bug_supervisor field error for a no-change
event.
lp:~sinzui/launchpad/unchanged-bug-supervisor
Diff size: 113
Launchpad bug:
https:/
Test command: ./bin/test -vv \
-t test_bug_
Pre-
Target release: 10.08
Do not raise a bug_supervisor field error for a no-change event
-------
I'm trying to change the bug guidelines for a project in which the supervisor
is set to a team and I'm a member for that team. Unfortunately, when a click
on 'change' I get an error because I'm trying to set supervisor to a team for
which I don't have administrator rights.
However, the bug supervisor is already set to that value, I just try to change
the bug guidelines. Is there any way to do so? Thanks.
This is a bug 1. there should be no error because there is no change. 2. in
the case of a project, the owner (any member of the owning team) must have
permission to set all fields on the project.
After talking with the bug team, the field permissions will be revised so that
they are the same, and any one who is an owner can make the change, but that
is a separate bug that requires send email. This bug is about the fact the
bug_supervisor field was not changed, there should be no error. This issue
probably affect security_contact too.
Rules
-----
* Do not raise admin/owner errors for bug_supervisor and security_contact
if they have not changed. This just affects the +configure-bugs.
QA
--
* As an member of an owning team, set a team as the project bug
supervisor using Configure bug tracker.
* As another member of the owning team, and no an admin of the bug
supervisor, change the bug reporting guidelines.
* Verify that the form is saved.
Lint
----
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
Test
----
* lib/lp/
* Added a test to verify a project owner who is not an admin of the
the form.
Implementation
--------------
* lib/lp/
* Revised the validators to consider the current state of the field
and return OK if the state has not changed. Add changeSecurityC
since the rule is more complex now.
* lib/lp/
* Updated the change_action to remove the security_contact from data
as is done with bug_supervisor to avoid permission constraints.