Skip to content
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

Merged
merged 7 commits into from
Oct 24, 2024

Conversation

corneil
Copy link
Contributor

@corneil corneil commented Oct 16, 2024

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 #5991
Fixes #5973

…ions.

 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 spring-attic#5991
 Fixes spring-attic#5973
@corneil corneil requested a review from cppwfs October 16, 2024 16:22
@cppwfs cppwfs added this to the 3.0.x milestone Oct 16, 2024
@cppwfs
Copy link
Contributor

cppwfs commented Oct 16, 2024

Hmm... Looks like the build failed with the following test failure: RootControllerTests.rootControllerResponse:71

@corneil corneil marked this pull request as draft October 17, 2024 08:46
@corneil corneil marked this pull request as ready for review October 17, 2024 08:53
@corneil corneil requested a review from onobc October 17, 2024 11:27
@corneil corneil mentioned this pull request Oct 17, 2024
Copy link
Contributor

@cppwfs cppwfs left a comment

Choose a reason for hiding this comment

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

When I tested the PR with the following URL http://localhost:9393/tasks/thinexecutions?name=nope I expected no results, but all task executions were returned.

@@ -17,7 +17,7 @@ jobs:
shell: bash
timeout-minutes: 75
run: |
./mvnw -B -s .github/settings.xml -Pdocs clean install --no-transfer-progress
./mvnw -B -s .github/settings.xml -Pfull,docs clean install --no-transfer-progress
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to generate full docs on a PR build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to catch errors in a PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably want to put this in another PR, since it relates to a process change.

@corneil
Copy link
Contributor Author

corneil commented Oct 21, 2024

When I tested the PR with the following URL http://localhost:9393/tasks/thinexecutions?name=nope I expected no results, but all task executions were returned.

Added test for name=nope resulting in empty page.

@corneil corneil requested a review from cppwfs October 21, 2024 08:58
@cppwfs
Copy link
Contributor

cppwfs commented Oct 21, 2024

Thank you for verifying. I pulled down the latest and rebuilt the project and now seeing something a different, investigating.

…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.
@cppwfs
Copy link
Contributor

cppwfs commented Oct 21, 2024

Looks like we picked up a CI test failure.

…tasks/thinexecutions name search scenarios.



[[api-guide-resources-task-thin-executions-list-by-name-request-parameters]]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you verify that the request parameters are being generated properly. I'm seeing,

Unresolved directive in api-guide.adoc - include::/Users/grenfro/project/spring-cloud-dataflow/spring-cloud-dataflow-docs/../spring-cloud-dataflow-classic-docs/target/generated-snippets/task-executions-documentation/list-task-thin-executions-by-name/request-parameters.adoc[]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Found the issue that caused this. Created #6008 to record it. I'll fix all of them.

@corneil corneil requested a review from cppwfs October 23, 2024 10:06
Copy link
Contributor

@cppwfs cppwfs left a comment

Choose a reason for hiding this comment

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

LGTM Thanks for your work on this!

@corneil corneil merged commit 78085ce into spring-attic:main Oct 24, 2024
3 checks passed
onobc pushed a commit that referenced this pull request Nov 14, 2024
This commit is a back port of "Add task thin executions by name and fix missing
docs" (#5994).

- changes TaskTemplate to use task/thinexecutions instead of task/executions
- adds task thin executions by name
- updates api-guide.adoc with links to generated documentation
- modifies TaskCommands to use thin executions since it provides the data required.

Resolves #5995
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants