Browse Source

SONAR-17705 Remove deprecated WS componentId from ce/activity and ce/activity_status

tags/10.0.0.68432
Léo Geoffroy 1 year ago
parent
commit
f878f29cfe

+ 0
- 13
sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ActivityRequest.java View File

@@ -32,7 +32,6 @@ import javax.annotation.Generated;
public class ActivityRequest {

private String component;
private String componentId;
private String maxExecutedAt;
private String minSubmittedAt;
private String onlyCurrents;
@@ -42,18 +41,6 @@ public class ActivityRequest {
private List<String> status;
private String type;

/**
* Example value: "AU-TpxcA-iU5OvuD2FL0"
*/
public ActivityRequest setComponentId(String componentId) {
this.componentId = componentId;
return this;
}

public String getComponentId() {
return componentId;
}

/**
* Example value: "sample:src/main/xoo/sample/Sample2.xoo"
*/

+ 5
- 18
sonar-ws/src/main/java/org/sonarqube/ws/client/ce/ActivityStatusRequest.java View File

@@ -30,30 +30,17 @@ import javax.annotation.Generated;
@Generated("sonar-ws-generator")
public class ActivityStatusRequest {

private String componentId;
private String componentKey;

/**
* Example value: "AU-TpxcA-iU5OvuD2FL0"
*/
public ActivityStatusRequest setComponentId(String componentId) {
this.componentId = componentId;
return this;
}

public String getComponentId() {
return componentId;
}
private String component;

/**
* Example value: "my_project"
*/
public ActivityStatusRequest setComponentKey(String componentKey) {
this.componentKey = componentKey;
public ActivityStatusRequest setComponent(String component) {
this.component = component;
return this;
}

public String getComponentKey() {
return componentKey;
public String getComponent() {
return component;
}
}

+ 1
- 3
sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java View File

@@ -56,7 +56,6 @@ public class CeService extends BaseService {
public ActivityResponse activity(ActivityRequest request) {
return call(
new GetRequest(path("activity"))
.setParam("componentId", request.getComponentId())
.setParam("component", request.getComponent())
.setParam("maxExecutedAt", request.getMaxExecutedAt())
.setParam("minSubmittedAt", request.getMinSubmittedAt())
@@ -79,8 +78,7 @@ public class CeService extends BaseService {
public ActivityStatusWsResponse activityStatus(ActivityStatusRequest request) {
return call(
new GetRequest(path("activity_status"))
.setParam("componentId", request.getComponentId())
.setParam("componentKey", request.getComponentKey()),
.setParam("component", request.getComponent()),
ActivityStatusWsResponse.parser());
}


Loading…
Cancel
Save