Browse Source

SONAR-18740 Drop the 'logs' response field of api/ce/activity and api/ce/component

tags/10.0.0.68432
Zipeng WU 1 year ago
parent
commit
33012ae9fa

+ 1
- 0
server/sonar-webserver-webapi/src/main/java/org/sonar/server/ce/ws/ActivityAction.java View File

@@ -111,6 +111,7 @@ public class ActivityAction implements CeWsAction {
new Change("6.6", "fields \"branch\" and \"branchType\" added"),
new Change("7.1", "field \"pullRequest\" added"),
new Change("7.6", format("The use of module keys in parameters '%s' is deprecated", TEXT_QUERY)),
new Change("8.8", "field \"logs\" is dropped"),
new Change("10.0", "Remove deprecated field 'componentId'"))
.setSince("5.2");


+ 1
- 0
server/sonar-webserver-webapi/src/main/java/org/sonar/server/ce/ws/ComponentAction.java View File

@@ -68,6 +68,7 @@ public class ComponentAction implements CeWsAction {
new Change("6.1", "field \"logs\" is deprecated and its value is always false"),
new Change("6.6", "fields \"branch\" and \"branchType\" added"),
new Change("7.6", format("The use of module keys in parameter \"%s\" is deprecated", PARAM_COMPONENT)),
new Change("8.8", "field \"logs\" is dropped"),
new Change("8.8", "Deprecated parameter 'componentId' has been removed."),
new Change("8.8", "Parameter 'component' is now required."))
.setHandler(this);

+ 0
- 2
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json View File

@@ -15,7 +15,6 @@
"startedAt": "2015-08-13T23:35:00+0200",
"executedAt": "2015-08-13T23:35:10+0200",
"executionTimeMs": 10000,
"logs": false,
"hasErrorStacktrace": false,
"hasScannerContext": true
},
@@ -32,7 +31,6 @@
"startedAt": "2015-09-17T23:35:00+0200",
"executedAt": "2015-08-13T23:37:00+0200",
"executionTimeMs": 120000,
"logs": false,
"errorMessage": "Failed to unzip analysis report",
"hasErrorStacktrace": true,
"hasScannerContext": true

+ 1
- 3
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/component-example.json View File

@@ -9,8 +9,7 @@
"componentName": "HttpRequest",
"componentQualifier": "TRK",
"status": "PENDING",
"submittedAt": "2015-09-21T19:28:54+0200",
"logs": false
"submittedAt": "2015-09-21T19:28:54+0200"
}
],
"current": {
@@ -27,7 +26,6 @@
"startedAt": "2015-09-21T19:25:57+0200",
"finishedAt": "2015-09-21T19:25:58+0200",
"executionTimeMs": 1371,
"logs": false,
"errorMessage": "the error message",
"errorType": "the optional error type",
"hasErrorStacktrace": false,

Loading…
Cancel
Save