зеркало из https://github.com/microsoft/clang-1.git
Make a separate parameter class for "Radar classifications".
Do not save the radar classification to the config file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
fe6fa074db
Коммит
8ce622d787
|
@ -146,7 +146,18 @@ class BugzillaReporter:
|
||||||
|
|
||||||
def fileReport(self, report, parameters):
|
def fileReport(self, report, parameters):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
class RadarClassificationParameter(SelectionParameter):
|
||||||
|
def __init__(self):
|
||||||
|
SelectionParameter.__init__(self,"Classification",
|
||||||
|
[['1', 'Security'], ['2', 'Crash/Hang/Data Loss'],
|
||||||
|
['3', 'Performance'], ['4', 'UI/Usability'],
|
||||||
|
['6', 'Serious Bug'], ['7', 'Other']])
|
||||||
|
|
||||||
|
def saveConfigValue(self):
|
||||||
|
return False
|
||||||
|
|
||||||
class RadarReporter:
|
class RadarReporter:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def isAvailable():
|
def isAvailable():
|
||||||
|
@ -167,10 +178,7 @@ class RadarReporter:
|
||||||
|
|
||||||
def getParameters(self):
|
def getParameters(self):
|
||||||
return [ TextParameter('Component'), TextParameter('Component Version'),
|
return [ TextParameter('Component'), TextParameter('Component Version'),
|
||||||
SelectionParameter('Classification',
|
RadarClassificationParameter() ]
|
||||||
[ ['1', 'Security'], ['2', 'Crash/Hang/Data Loss'],
|
|
||||||
['3', 'Performance'], ['4', 'UI/Usability'],
|
|
||||||
['6', 'Serious Bug'], ['7', 'Other'] ]) ]
|
|
||||||
|
|
||||||
def fileReport(self, report, parameters):
|
def fileReport(self, report, parameters):
|
||||||
component = parameters.get('Component', '')
|
component = parameters.get('Component', '')
|
||||||
|
|
Загрузка…
Ссылка в новой задаче