~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/tests/person-bug-views.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-26 06:01:53 UTC
  • mfrom: (14575.2.4 megalint-9)
  • Revision ID: launchpad@pqm.canonical.com-20111226060153-1rfmi1yn90lu4fuf
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
= Person Pages =
 
1
Person Pages
 
2
============
2
3
 
3
4
In every person page, the 'Bugs' facet has a series of bug listings for
4
5
that person. These pages provide simple and advanced search forms.
16
17
    ...     view.initialize()
17
18
    ...     return view
18
19
 
19
 
== Assigned bugs ==
 
20
 
 
21
Assigned bugs
 
22
-------------
20
23
 
21
24
All bug tasks assigned to this person.
22
25
 
43
46
    ...     for bugtask in closed_bugtasks]
44
47
    [(8, 'FIXRELEASED')]
45
48
 
46
 
== Reported bugs ==
 
49
 
 
50
Reported bugs
 
51
-------------
47
52
 
48
53
All bug tasks reported by someone. By default we'll get assigned and
49
54
unassigned bug tasks.
128
133
    >>> flush_database_updates()
129
134
 
130
135
 
131
 
== Subscribed bugs ==
 
136
Subscribed bugs
 
137
---------------
132
138
 
133
139
All bug tasks someone is subscribed to. By default we'll get bug tasks
134
140
with any importance.
164
170
    [(8, 'FIXRELEASED', u'name16')]
165
171
 
166
172
 
167
 
== Bugs for Bug Supervisor ==
 
173
Bugs for Bug Supervisor
 
174
-----------------------
168
175
 
169
176
Malone can generate bug reports for packages on which a user is a bug
170
177
supervisor. The Person context is used only to get a list of packages that
453
460
    []
454
461
 
455
462
 
456
 
== Bugs commented on by a Person ==
 
463
Bugs commented on by a Person
 
464
-----------------------------
457
465
 
458
466
It is possible to search for all the bugs commented on by a specific Person
459
467
using that Person's +commentedbugs page. Since No Privileges Person hasn't
481
489
    [1, 1, 1]
482
490
 
483
491
 
484
 
== Milestone lists in Person advanced bug search pages ==
 
492
Milestone lists in Person advanced bug search pages
 
493
---------------------------------------------------
485
494
 
486
495
The lists of milestones to select from on bug search pages is
487
496
calculated by doing an unmodified search (i.e. as if the user had gone
492
501
    >>> user = factory.makePerson()
493
502
 
494
503
 
495
 
=== Related bugs ===
 
504
Related bugs
 
505
............
496
506
 
497
507
    >>> related_bugs_view = create_view(
498
508
    ...     user, '+bugs', {'advanced': 1})
537
547
      'value': ...}]
538
548
 
539
549
 
540
 
=== Reported bugs ===
 
550
Reported bugs
 
551
.............
541
552
 
542
553
Similar behavior is found when searching for reported bugs.
543
554
 
568
579
      'value': ...}]
569
580
 
570
581
 
571
 
=== Assigned bugs ===
 
582
Assigned bugs
 
583
.............
572
584
 
573
585
    >>> assigned_bugs_view = create_view(
574
586
    ...     user, '+assignedbugs', {'advanced': 1})
589
601
      'value': ...}]
590
602
 
591
603
 
592
 
=== Commented bugs ===
 
604
Commented bugs
 
605
..............
593
606
 
594
607
    >>> commented_bugs_view = create_view(
595
608
    ...     user, '+commentedbugs', {'advanced': 1})
611
624
      'value': ...}]
612
625
 
613
626
 
614
 
=== Subscribed bugs ===
 
627
Subscribed bugs
 
628
...............
615
629
 
616
630
    >>> new_user = factory.makePerson()
617
631
    >>> subscribed_bugs_view = create_view(