Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return deleted data provider descriptor and related swagger doc updates #110

Conversation

bhufmann
Copy link
Contributor

@bhufmann bhufmann commented Nov 4, 2024

  • server: Return derived data provider descriptor when deleting it.
    Update swagger description for deletion and method name.
  • swagger: Fix response description for successful DP creation.
    Update also method name.

Signed-off-by: Bernd Hufmann [email protected]

@@ -1326,11 +1326,11 @@ public Response createDataProvider(
@Tag(name = OCG)
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Delete a configuration instance of a given configuration type", responses = {
@ApiResponse(responseCode = "200", description = "The derived data provider (and it's configuration) was successfully deleted", content = @Content(schema = @Schema(implementation = org.eclipse.tracecompass.incubator.internal.trace.server.jersey.rest.core.model.Configuration.class))),
@ApiResponse(responseCode = "200", description = "Returns the deleted derived data provider descriptor. The derived data provider (and it's configuration) was successfully deleted.", content = @Content(schema = @Schema(implementation = DataProvider.class))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1326,11 +1326,11 @@ public Response createDataProvider(
@Tag(name = OCG)
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Delete a configuration instance of a given configuration type", responses = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete a derived data provider.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -1326,11 +1326,11 @@ public Response createDataProvider(
@Tag(name = OCG)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At line 1314, replace 'from created by' with 'created from'?
Also check the param and return tags.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@bhufmann bhufmann force-pushed the return_input_descriptor branch 2 times, most recently from 9591df9 to bddb954 Compare November 4, 2024 19:44
@bhufmann bhufmann requested a review from PatrickTasse November 4, 2024 19:45
@bhufmann bhufmann force-pushed the return_input_descriptor branch 2 times, most recently from ed0df37 to db5a4f3 Compare November 4, 2024 20:28
PatrickTasse
PatrickTasse previously approved these changes Nov 4, 2024
Update swagger description for deletion and corresponding method name.

Signed-off-by: Bernd Hufmann <[email protected]>
Update also method name of the  provider creation operation.

Signed-off-by: Bernd Hufmann <[email protected]>
@bhufmann bhufmann merged commit ddb176a into eclipse-tracecompass-incubator:master Nov 4, 2024
2 checks passed
@bhufmann bhufmann deleted the return_input_descriptor branch November 4, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants