Source

bugs.python.org / initial_data.py

Diff from to

File initial_data.py

 #
 # TRACKER INITIAL PRIORITY AND STATUS VALUES
 #
+stage = db.getclass('stage')
+stage.create(name='test needed', order='2',
+             description='A test which exercises the issue and can be used as'
+                         ' a unit test is needed')
+stage.create(name='needs patch', order='3',
+             description='A patch is needed to fix the issue')
+stage.create(name='patch review', order='4',
+             description='A patch is available and is awaiting a review by a'
+                         ' trusted developer')
+stage.create(name='commit review', order='5',
+             description='A patch is available and is awaiting a review by a'
+                         ' core developer')
+stage.create(name='committed/rejected', order='6',
+             description='The issue has been resolved')
 
 issue_type = db.getclass('issue_type')
 issue_type.create(name='crash', order='1')
 issue_type.create(name='resource usage', order='3')
 issue_type.create(name='security', order='4')
 issue_type.create(name='behavior', order='5')
-issue_type.create(name='rfe', order='6')
+issue_type.create(name='performance', order='6')
+issue_type.create(name='feature request', order='7')
 
 component = db.getclass('component')
-component.create(name="Build", order="1")
-component.create(name="Demos and Tools", order="2")
-component.create(name="Distutils", order="3")
-component.create(name="Documentation", order="4")
-component.create(name="Extension Modules", order="5")
-component.create(name="IDLE", order="6")
-component.create(name="Installation", order="7")
-component.create(name="Interpreter Core", order="8")
-component.create(name="Library (Lib)", order="9")
-component.create(name="Macintosh", order="10")
-component.create(name="Regular Expressions", order="11")
-component.create(name="Tests", order="12")
-component.create(name="Tkinter", order="13")
-component.create(name="Unicode", order="14")
-component.create(name="Windows", order="15")
-component.create(name="XML", order="16")
+component.create(name="None", order="1")
+component.create(name="2to3 (2.x to 3.0 conversion tool)", order="2")
+component.create(name="Build", order="3")
+component.create(name="ctypes", order="4")
+component.create(name="Demos and Tools", order="5")
+component.create(name="Distutils", order="6")
+component.create(name="Documentation", order="7")
+component.create(name="Extension Modules", order="8")
+component.create(name="IDLE", order="9")
+component.create(name="Installation", order="10")
+component.create(name="Interpreter Core", order="11")
+component.create(name="Library (Lib)", order="12")
+component.create(name="Macintosh", order="13")
+component.create(name="Regular Expressions", order="14")
+component.create(name="Tests", order="15")
+component.create(name="Tkinter", order="16")
+component.create(name="Unicode", order="17")
+component.create(name="Windows", order="18")
+component.create(name="XML", order="19")
 
 version = db.getclass('version')
-version.create(name='Python 2.6', order='1')
-version.create(name='Python 2.5', order='2')
-version.create(name='Python 2.4', order='3')
-version.create(name='Python 2.3', order='4')
-version.create(name='Python 2.2.3', order='5')
-version.create(name='Python 2.2.2', order='6')
-version.create(name='Python 2.2.1', order='7')
-version.create(name='Python 2.2', order='8')
-version.create(name='Python 2.1.2', order='9')
-version.create(name='Python 2.1.1', order='10')
-version.create(name='3rd party', order='11')
+version.create(name='Python 3.1', order='1')
+version.create(name='Python 3.0', order='2')
+version.create(name='Python 2.7', order='3')
+version.create(name='Python 2.6', order='4')
+version.create(name='Python 2.5', order='5')
+version.create(name='Python 2.4', order='6')
+version.create(name='3rd party', order='7')
 
 
 severity = db.getclass('severity')
 severity.create(name='minor', order='5')
 
 priority = db.getclass('priority')
-priority.create(name='immediate', order='1')
-priority.create(name='urgent', order='2')
-priority.create(name='high', order='3')
-priority.create(name='normal', order='4')
-priority.create(name='low', order='5')
+priority.create(name='release blocker', order='1',
+                description='Blocks a release')
+priority.create(name='deferred blocker', order='2',
+                description='Blocks a future release')
+priority.create(name='critical', order='3',
+                description='Might block a future release')
+priority.create(name='high', order='4',
+                description='Important but will not block')
+priority.create(name='normal', order='5')
+priority.create(name='low', order='6',
+                description='E.g. spelling errors in documentation')
 
 status = db.getclass('status')
 status.create(name='open', order='1')
 status.create(name='closed', order='2')
-status.create(name='pending', description='user feedback required', order='3')
+status.create(name='pending', order='3', description='user feedback required')
 
 resolution = db.getclass('resolution')
 resolution.create(name='accepted', order='1')
 resolution.create(name='works for me', order='11')
 
 keyword = db.getclass("keyword")
-keyword.create(name="py3k", description="Python 3000 bugs")
-keyword.create(name="patch", description="Contains patch")
+keyword.create(name="26backport",
+               description="Backport 3.0 feature from 2.6")
+keyword.create(name="64bit",
+               description="Affects 64-bit platforms only")
+keyword.create(name="easy",
+               description="This is an easy task (e.g. suitable for GHOP or "
+                           "bug day beginners)")
+keyword.create(name="needs review",
+               description="This issue has a patch which needs the review of"
+                           " a developer.")
+keyword.create(name="patch",
+               description="Contains patch")
 
 #
 # create the two default users