~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bug-private-by-default.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-23 09:54:33 UTC
  • mfrom: (14486.6.4 drop-obsolete-config-items)
  • Revision ID: launchpad@pqm.canonical.com-20111223095433-amgcz7yu4tsxrypz
[r=wgrant][no-qa] Drop various obsolete config definitions that were
        recently dropped from prod.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Private by default bugs
2
 
=======================
 
1
= Private by default bugs =
3
2
 
4
3
A product with private bugs by default must always have a bug supervisor
5
4
(this is enforced by a DB constraint).
6
5
 
7
 
    >>> from lp.testing.layers import LaunchpadZopelessLayer
 
6
    >>> from canonical.testing.layers import LaunchpadZopelessLayer
8
7
    >>> from lp.bugs.interfaces.bug import CreateBugParams
9
8
    >>> from lp.registry.interfaces.person import IPersonSet
10
9
    >>> from lp.registry.interfaces.product import IProductSet
51
50
    >>> security_bug_task.bug.private
52
51
    True
53
52
 
54
 
For a security related bug, the security contact or the product owner
 
53
For a security related bug, the security contact or the product owner 
55
54
(if no security contact) is subscribed.
56
55
 
57
56
    >>> security_bug_task.bug.security_related
60
59
    >>> landscape.security_contact.name
61
60
    u'name16'
62
61
 
63
 
    >>> sorted(
64
 
    ...     sub.name for sub in security_bug_task.bug.getDirectSubscribers())
 
62
    >>> sorted(sub.name for sub in security_bug_task.bug.getDirectSubscribers())
65
63
    [u'name16', u'no-priv']