Merge lp:~sinzui/launchpad/team-membership-breadcrumbs into lp:launchpad
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~sinzui/launchpad/team-membership-breadcrumbs |
Merge into: | lp:launchpad |
Diff against target: |
241 lines 8 files modified
lib/lp/registry/browser/configure.zcml (+5/-0) lib/lp/registry/browser/person.py (+4/-6) lib/lp/registry/browser/teammembership.py (+10/-10) lib/lp/registry/doc/teammembership-views.txt (+65/-0) lib/lp/registry/stories/foaf/xx-team-membership.txt (+4/-4) lib/lp/registry/stories/teammembership/xx-add-member.txt (+1/-2) lib/lp/registry/stories/teammembership/xx-renew-subscription.txt (+2/-2) lib/lp/registry/templates/teammembership-index.pt (+1/-1) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/team-membership-breadcrumbs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code | Approve | |
Review via email: mp+13028@code.launchpad.net |
To post a comment you must log in.
This is my branch to add breadcrumbs to team membership pages (+member and teammembership because that is what it adapts. I decided not to
+invitation). I am tempted to move TeamInvitationView from browser.person
to browser.
do it since it makes the diff harder to read.
lp:~sinzui/launchpad/team-membership-breadcrumbs /bugs.launchpad .net/bugs/ 429663 -views" implementation: barry, salgado
Diff size: 174
Launchpad bug: https:/
Test command: ./bin/test -vvt "teammembership
Pre-
Target release: 3.1.10
= Add breadcrumbs to team membership pages =
After conversion to UI 3.0, ~team/+ invitation/ team has no breadcrumbs.
TeamMembership needs a Breadcrumb adapter. We expect to see:
* +invitation/<team> (accept/decline invitation)
“Launchpad Foundations” team >> “Registry Team” team invitation
Team membership is subordinate to team, so we expect to see the team
breadcrumbs first. What follows should be the member team:
* +member/<member> (Edit membership)
“Registry Team” team >> Members of “Registry Team” >> Guilherme Salgado
== Rules ==
* Create a Breadcrumb adapter for ITeamMembership person. displayname. iew.page_ title to make a better breadcrumb
* It usesto TeamMembership.
* It is appropriate for +member
* Redefine TeamInvitationV
since the membership is not accepted.
== QA ==
On Staging
* Visit a team you are the owner of.
* Choose the members link, then edit a member.
* Verify that the page has breadcrumbs
* Invite another team to be be an owner of the first team.
* Visit the other team and choose the Invitation link
* Choose the invitation
* Verify that the page has breadcrumbs
* Decline the invitation
== Lint ==
Linting changed files: registry/ browser/ configure. zcml registry/ browser/ person. py registry/ browser/ teammembership. py registry/ doc/teammembers hip-views. txt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Test ==
* lib/lp/ registry/ doc/teammembers hip-views. txt ditView which did not have any
verification for its label
* Added a test for the breadcrumb.
* Added a test TeamMembershipE
* Added a test to verify the TeamInvitationView page_title.
== Implementation ==
* lib/lp/ registry/ browser/ configure. zcml readcrumb registry/ browser/ person. py registry/ browser/ teammembership. py readcrumb readcrumb provides
* Registered TeamMembershipB
* lib/lp/
* Redefined TeamInvitationView page_title to make a breadcrumb that
appropriate for a TeamMembership instance that was not accepted or
declined.
* lib/lp/
* Added TeamMembershipB
* Removed the page_title because the TeamMembershipB
the text.