You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2025. It is now read-only.
Add task thin executions by name and fix missing docs. (#5994)
* Change TaskTemplate to use task/thinexecutions instead of task/executions.
Add task thin executions by name.
Update api-guide.adoc with links to generated documentation.
Modify TaskCommands to use thin executions since it provides the data required.
Removed duplicate entries from api docs.
Fixes#5991Fixes#5973
* Fix root controller expected response with thinexecutions/name.
* Add rest docs generation with full profile to CI PR.
* Added a test for invalid name returning empty page on thinexecutions.
Fixes#5989
* Updated thin taskexecutions by name to return 404 when definition is not found.
Provide task/execution and thin executions by name test when task is not defined and where it is defined.
Removed excess `andDo(print())` from tests.
* Fix test with added definition for covering all tasks/executions and tasks/thinexecutions name search scenarios.
* Revert CI-PR.
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-classic-docs/src/test/java/org/springframework/cloud/dataflow/server/rest/documentation/ApiDocumentation.java
linkWithRel("tasks/thinexecutions/name").description("Returns thin Task executions for a given task name"),
118
119
linkWithRel("tasks/info/executions").description("Provides the task executions info"),
119
120
linkWithRel("tasks/schedules").description("Provides schedule information of tasks"),
120
121
linkWithRel("tasks/schedules/instances").description("Provides schedule information of a specific task "),
121
122
linkWithRel("tasks/executions/name").description("Returns all task executions for a given Task name"),
122
123
linkWithRel("tasks/executions/execution").description("Provides details for a specific task execution"),
123
124
linkWithRel("tasks/platforms").description("Provides platform accounts for launching tasks. The results can be filtered to show the platforms that support scheduling by adding a request parameter of 'schedulesEnabled=true"),
124
125
linkWithRel("tasks/logs").description("Retrieve the task application log"),
fieldWithPath("_links.tasks/thinexecutions.href").description("Link to the tasks/thinexecutions"),
223
223
224
+
fieldWithPath("_links.tasks/thinexecutions/name.href").description("Link to the tasks/thinexecutions/name"),
225
+
fieldWithPath("_links.tasks/thinexecutions/name.templated").description("Link to the tasks/thinexecutions/name is templated"),
226
+
224
227
fieldWithPath("_links.tasks/info/executions.href").description("Link to the tasks/info/executions"),
225
228
fieldWithPath("_links.tasks/info/executions.templated").type(JsonFieldType.BOOLEAN).optional().description("Link tasks/info is templated"),
226
229
227
230
fieldWithPath("_links.tasks/logs.href").description("Link to the tasks/logs"),
228
231
fieldWithPath("_links.tasks/logs.templated").type(JsonFieldType.BOOLEAN).optional().description("Link tasks/logs is templated"),
229
232
230
-
fieldWithPath("_links.tasks/thinexecutions.href").description("Link to the tasks/thinexecutions"),
231
-
232
233
fieldWithPath("_links.tasks/schedules.href").description("Link to the tasks/executions/schedules"),
233
234
fieldWithPath("_links.tasks/schedules/instances.href").description("Link to the tasks/schedules/instances"),
234
235
fieldWithPath("_links.tasks/schedules/instances.templated").type(JsonFieldType.BOOLEAN).optional().description("Link tasks/schedules/instances is templated"),
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-classic-docs/src/test/java/org/springframework/cloud/dataflow/server/rest/documentation/TaskExecutionsDocumentation.java
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskOperations.java
+6
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,12 @@ public interface TaskOperations {
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskTemplate.java
+19
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,8 @@ public class TaskTemplate implements TaskOperations {
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/config/DataFlowControllerAutoConfiguration.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -286,8 +286,8 @@ public TaskExecutionController taskExecutionController(
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/RootController.java
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/TaskExecutionController.java
+4-2
Original file line number
Diff line number
Diff line change
@@ -185,9 +185,11 @@ public PagedModel<TaskExecutionResource> retrieveTasksByName(
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/TaskExecutionThinController.java
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/repository/TaskDefinitionRepository.java
+1
Original file line number
Diff line number
Diff line change
@@ -46,4 +46,5 @@ public interface TaskDefinitionRepository extends KeyValueRepository<TaskDefinit
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/task/impl/DefaultDataFlowTaskExecutionQueryDao.java
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/configuration/JobDependencies.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -270,8 +270,8 @@ public TaskExecutionController taskExecutionController(
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/configuration/TestDependencies.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -593,8 +593,8 @@ public TaskExecutionController taskExecutionController(
0 commit comments