~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/lp/dbschema.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2005-11-18 05:11:00 UTC
  • mfrom: (1102.1.159 launchpad-branches)
  • Revision ID: pqm@pqm.ubuntu.com-20051118051100-b3c97d86dfa45faf
[r=SteveA] Merging bzr branch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
'BountyDifficulty',
33
33
'BountyStatus',
34
34
'BranchRelationships',
 
35
'BranchLifecycleStatus',
 
36
'BranchReviewStatus',
35
37
'BugTaskStatus',
36
38
'BugAttachmentType',
37
39
'BugTrackerType',
2136
2138
        """)
2137
2139
 
2138
2140
 
 
2141
class BranchLifecycleStatus(DBSchema):
 
2142
    """Branch Lifecycle Status
 
2143
 
 
2144
    This indicates the status of the branch, as part of an overall
 
2145
    "lifecycle". The idea is to indicate to other people how mature this
 
2146
    branch is, or whether or not the code in the branch has been deprecated.
 
2147
    Essentially, this tells us what the author of the branch thinks of the
 
2148
    code in the branch.
 
2149
    """
 
2150
 
 
2151
    NEW = Item(1, """
 
2152
        New
 
2153
 
 
2154
        This branch has just been created, and we know nothing else about
 
2155
        it.
 
2156
        """)
 
2157
 
 
2158
    EXPERIMENTAL = Item(10, """
 
2159
        Experimental
 
2160
 
 
2161
        This branch contains code that is considered experimental. It is
 
2162
        still under active development and should not be merged into
 
2163
        production infrastructure.
 
2164
        """)
 
2165
 
 
2166
    DEVELOPMENT = Item(30, """
 
2167
        Development
 
2168
 
 
2169
        This branch contains substantial work that is shaping up nicely, but
 
2170
        is not yet ready for merging or production use. The work is
 
2171
        incomplete, or untested.
 
2172
        """)
 
2173
 
 
2174
    MATURE = Item(50, """
 
2175
        Mature
 
2176
 
 
2177
        The developer considers this code mature. That means that it
 
2178
        completely addresses the issues it is supposed to, that it is tested,
 
2179
        and that it has been found to be stable enough for the developer to
 
2180
        recommend it to others for inclusion in their work.
 
2181
        """)
 
2182
 
 
2183
    MERGED = Item(70, """
 
2184
        Merged
 
2185
 
 
2186
        This code has successfully been merged into its target branch(es),
 
2187
        and no further development is anticipated on the branch.
 
2188
        """)
 
2189
 
 
2190
    ABANDONED = Item(80, """
 
2191
        Abandoned
 
2192
 
 
2193
        This branch contains work which the author has abandoned, likely
 
2194
        because it did not prove fruitful.
 
2195
        """)
 
2196
 
 
2197
 
 
2198
class BranchReviewStatus(DBSchema):
 
2199
    """Branch Review Cycle
 
2200
 
 
2201
    This is an indicator of what the project thinks about this branch.
 
2202
    Typically, it will be set by the upstream as part of a review process
 
2203
    before the branch lands on an official series.
 
2204
    """
 
2205
 
 
2206
    NONE = Item(10, """
 
2207
        None
 
2208
 
 
2209
        This branch has not been queued for review, and no review has been
 
2210
        done on it.
 
2211
        """)
 
2212
 
 
2213
    REQUESTED = Item(20, """
 
2214
        Requested
 
2215
 
 
2216
        The author has requested a review of the branch. This usually
 
2217
        indicates that the code is mature and ready for merging, but it may
 
2218
        also indicate that the author would like some feedback on the
 
2219
        direction in which he is headed.
 
2220
        """)
 
2221
 
 
2222
    NEEDSWORK = Item(30, """
 
2223
        Needs Further Work
 
2224
 
 
2225
        The reviewer feels that this branch is not yet ready for merging, or
 
2226
        is not on the right track. Detailed comments would be found in the
 
2227
        reviewer discussion around the branch, see those for a list of the
 
2228
        issues to be addressed or discussed.
 
2229
        """)
 
2230
 
 
2231
    MERGECONDITIONAL = Item(50, """
 
2232
        Conditional Merge Approved
 
2233
 
 
2234
        The reviewer has said that this branch can be merged if specific
 
2235
        issues are addressed. The review feedback will be contained in the
 
2236
        branch discussion. Once those are addressed by the author the branch
 
2237
        can be merged without further review.
 
2238
        """)
 
2239
 
 
2240
    MERGEAPPROVED = Item(60, """
 
2241
        Merge Approved
 
2242
 
 
2243
        The reviewer is satisfied that the branch can be merged without
 
2244
        further changes.
 
2245
        """)
 
2246
 
 
2247
 
2139
2248
class BugTaskStatus(DBSchema):
2140
2249
    """Bug Task Status
2141
2250