Skip to content

Commit

Permalink
deprecation: deprecate executionSummary endpoint `api/v1/dataQuality/…
Browse files Browse the repository at this point in the history
…testSuites/dataQualityReport`
  • Loading branch information
TeddyCr committed Oct 18, 2024
1 parent c2929e6 commit 598ef2a
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,42 +448,6 @@ public TestSuite getVersion(
return super.getVersionInternal(securityContext, id, version);
}

@GET
@Path("/executionSummary")
@Operation(
operationId = "getExecutionSummaryOfTestSuites",
summary = "Get the execution summary of test suites",
description = "Get the execution summary of test suites.",
responses = {
@ApiResponse(
responseCode = "200",
description = "Tests Execution Summary",
content =
@Content(
mediaType = "application/json",
schema = @Schema(implementation = TestSummary.class)))
})
public TestSummary getTestsExecutionSummary(
@Context UriInfo uriInfo,
@Context SecurityContext securityContext,
@Context HttpServletResponse response,
@Parameter(
description = "get summary for a specific test suite",
schema = @Schema(type = "String", format = "uuid"))
@QueryParam("testSuiteId")
UUID testSuiteId) {
ResourceContext<?> resourceContext = getResourceContext();
OperationContext operationContext =
new OperationContext(Entity.TABLE, MetadataOperation.VIEW_TESTS);
authorizer.authorize(securityContext, operationContext, resourceContext);
// Set the deprecation header based on draft specification from IETF
// https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-deprecation-header-02
response.setHeader("Deprecation", "Monday, October 30, 2024");
response.setHeader(
"Link", "api/v1/dataQuality/testSuites/dataQualityReport; rel=\"alternate\"");
return repository.getTestSummary(testSuiteId);
}

@GET
@Path("/dataQualityReport")
@Operation(
Expand Down

0 comments on commit 598ef2a

Please sign in to comment.