diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-02-24 11:44:01 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-02-26 14:30:35 +0100 |
commit | bc6df3ab12c13a5da5fbd5105d11e16c08a43639 (patch) | |
tree | 53a67094b6a9acc448d817f5ede1b77fb5ae2282 /sonar-ws/src/main/protobuf | |
parent | 12e70acc1a8cdcbc5e6af31c4c0ed6894435a75c (diff) | |
download | sonarqube-bc6df3ab12c13a5da5fbd5105d11e16c08a43639.tar.gz sonarqube-bc6df3ab12c13a5da5fbd5105d11e16c08a43639.zip |
SONAR-7333 add field "type" to issues (db and elasticsearch)
Diffstat (limited to 'sonar-ws/src/main/protobuf')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-issues.proto | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto index 87a34a07390..077871bebe1 100644 --- a/sonar-ws/src/main/protobuf/ws-issues.proto +++ b/sonar-ws/src/main/protobuf/ws-issues.proto @@ -54,6 +54,17 @@ message Operation { repeated ActionPlan actionPlans = 5; } +enum IssueType { + // Zero is required in order to not get MAINTAINABILITY as default value + // See http://androiddevblog.com/protocol-buffers-pitfall-adding-enum-values/ + UNKNOWN = 0; + + // same name as in Java enum IssueType, + // same index values as in database (see column ISSUES.ISSUE_TYPE) + CODE_SMELL = 1; + BUG = 2; + VULNERABILITY = 3; +} message Issue { optional string key = 1; @@ -90,6 +101,8 @@ message Issue { optional string updateDate = 24; optional string fUpdateAge = 25; optional string closeDate = 26; + + optional IssueType type = 27; } message Transitions { |