Skip to content

[Doc-18680] Fix Shell task documentation inconsistencies - #18681

Merged
SbloodyS merged 3 commits into
apache:devfrom
chovy-3012:Improvement-18680
Oct 10, 2026
Merged

SbloodyS merged 3 commits into
apache:devfrom
chovy-3012:Improvement-18680

Conversation

@chovy-3012

@chovy-3012 chovy-3012 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Was this PR generated or assisted by AI?

NO.

Purpose of the pull request

Fix Shell task documentation inconsistencies between Chinese and English versions, grammar errors, missing appendix rows, and undocumented deprecated fields.

Brief change log

  • docs/docs/zh/guide/task/shell.md: Add missing parameter table; add note for deprecated ResourceInfo.id and res fields
  • docs/docs/en/guide/task/shell.md: Fix 4 grammar errors; add note for deprecated fields
  • docs/docs/en/guide/task/appendix.md: Add missing Cache Execution and Group Priority rows

Verify this pull request

This pull request is code cleanup without any test coverage.

@SbloodyS SbloodyS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These two issues are of different types. Please split them into two issue and PR and submit them separately.

@chovy-3012 chovy-3012 changed the title [Improvement-18680][TaskPlugin] Fix Shell task docs and parameter validation [Doc-18680] Fix Shell task documentation inconsistencies Oct 9, 2026
@chovy-3012

Copy link
Copy Markdown
Contributor Author

Thanks for the review @SbloodyS. I've split the PR as requested.

  • Removed the code change (ShellParameters.checkParameters() trim fix) and its unit tests from this PR
  • Updated issue [Doc][Task-Shell] Shell task documentation inconsistencies and grammar errors #18680 to be documentation-only (removed the parameter validation point)
  • This PR now contains only 3 documentation files: zh/shell.md, en/shell.md, en/appendix.md
  • The parameter validation fix will be submitted as a separate issue and PR

@SbloodyS SbloodyS added the improvement make more easy to user or prompt friendly label Oct 9, 2026
@SbloodyS SbloodyS added this to the 3.5.0 milestone Oct 9, 2026

@SbloodyS SbloodyS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do not document execution caching as a current task option

The added “Cache Execution” row describes configurable result reuse based on task definition, version, and parameters. However, the current Shell task form has no cache-execution setting, and TaskDefinition has no corresponding field.

The Chinese appendix already contains this stale description; copying it into English spreads the inconsistency rather than correcting it.

Please remove this row from both language versions.

- Fix grammar errors in en/shell.md (redundant 'shell type', misplaced img tag, 'whether is' -> 'whether it is', 'will be use' -> 'will be used')
- Add parameter table (Script, User-defined parameter) to zh/shell.md, remove '此任务没有其他参数'
- Add deprecated fields note to both zh/shell.md and en/shell.md
- Add missing 'Group Priority' row to en/appendix.md
- Remove stale 'Cache Execution' row from both en/appendix.md and zh/appendix.md
- Apply spotless formatting to zh/shell.md
@chovy-3012

Copy link
Copy Markdown
Contributor Author

Thanks @SbloodyS for the review.

I've made the following changes:

  1. Removed the "Cache Execution" row from both language versions — removed from en/appendix.md (which I had added) and also from zh/appendix.md (where it was stale), since the Shell task form has no cache-execution setting and TaskDefinition has no corresponding field.
  2. Applied ./mvnw spotless:apply to fix the markdown formatting violations (the style check failure).

The PR now contains 4 files:

  • en/shell.md — grammar fixes + deprecated fields note
  • zh/shell.md — parameter table + deprecated fields note + spotless formatting
  • en/appendix.md — added missing "Group Priority" row
  • zh/appendix.md — removed stale "缓存执行" row

@SbloodyS SbloodyS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@SbloodyS
SbloodyS merged commit 3ea75b1 into apache:dev Oct 10, 2026
34 of 35 checks passed
@chovy-3012
chovy-3012 deleted the Improvement-18680 branch October 10, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

document improvement make more easy to user or prompt friendly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants