import org.sonar.api.server.ws.WebService;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
+import org.sonar.db.permission.OrganizationPermission;
import org.sonar.db.qualitygate.QualityGateDto;
import org.sonar.server.organization.DefaultOrganizationProvider;
-import org.sonar.db.permission.OrganizationPermission;
import org.sonar.server.qualitygate.QualityGateUpdater;
import org.sonar.server.user.UserSession;
import org.sonarqube.ws.WsQualityGates.CreateWsResponse;
CreateWsResponse.Builder createWsResponse = CreateWsResponse.newBuilder()
.setId(newQualityGate.getId())
.setName(newQualityGate.getName());
- writeProtobuf(createWsResponse.build(), request, response);
dbSession.commit();
+ writeProtobuf(createWsResponse.build(), request, response);
}
}