Skip to content

docs: remove query_detail open API documentation#3731

Merged
morningman merged 1 commit into
masterfrom
remove-query-detail
May 22, 2026
Merged

docs: remove query_detail open API documentation#3731
morningman merged 1 commit into
masterfrom
remove-query-detail

Conversation

@morrySnow
Copy link
Copy Markdown
Contributor

Summary

Remove all documentation for the query_detail (QueryDetailAction) open API endpoint across all versions and locales.

Changes

  • Deleted 16 markdown files from:
    • docs/ (current)
    • versioned_docs/ (versions 1.2, 2.0, 2.1, 3.x, 4.x)
    • i18n/zh-CN/ (all versions + current)
    • ja-source/ (versions 2.1, 3.x, 4.x + current)
  • Removed sidebar entries from sidebars.ts and all versioned_sidebars/*.json files

@morrySnow
Copy link
Copy Markdown
Contributor Author

run buildall

@morrySnow
Copy link
Copy Markdown
Contributor Author

/review

@morrySnow
Copy link
Copy Markdown
Contributor Author

run buildall

@zclllyybb
Copy link
Copy Markdown
Contributor

/review

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

I found one issue: the PR removes the query_detail page from historical 1.2 and 2.0 docs, but the corresponding Doris source branches still expose GET /api/query_detail via fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/QueryDetailAction.java.

Checkpoint conclusions from AGENTS.md:

  • Goal: remove docs for an API endpoint that is gone from current supported code. This is satisfied for current, 4.x, 3.x, and 2.1; it is not satisfied for 1.2/2.0 because the endpoint still exists there.
  • Scope: the change is mechanically focused, but it overreaches by deleting valid historical-version content.
  • Documentation information architecture: active versions/locales are updated consistently, but 1.2/2.0 English and zh docs plus their sidebar entries should be preserved unless those archived docs are intentionally being desupported.
  • Links, redirects, and navigation: in-repo searches did not find remaining references to query-detail-action or /api/query_detail; sidebar entries were removed consistently, but the 1.2/2.0 sidebar removals are part of the issue above. No redirect was added for deleted active pages; this may be acceptable only if there is no suitable replacement page for the removed API.
  • Docusaurus/frontend/build scripts: not applicable; this PR only changes docs and sidebars.
  • Validation: git diff --check passed; modified versioned sidebar JSON files parse successfully; targeted text search found no remaining exact references. yarn docs:links:changed could not run in this runner because dependencies are not installed (Cannot find module 'gray-matter'). I also checked Doris source branches: master, branch-4.0, branch-3.0, and branch-2.1 do not contain QueryDetailAction, while branch-2.0 and branch-1.2-lts do.
  • Other issues: no additional correctness, usability, accessibility, SEO, or maintainability issues found beyond the historical version deletion.


## Request

`GET /api/query_detail`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This deletion looks incorrect for the 1.2 docs. The corresponding Doris branch-1.2-lts source still contains fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/QueryDetailAction.java with @RequestMapping(path = "/api/query_detail", method = RequestMethod.GET), so 1.2 users still need this version-specific API reference. Please keep the 1.2 English/zh pages and sidebar entries unless the archived 1.2 docs are intentionally being desupported.


## Request

`GET /api/query_detail`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This deletion looks incorrect for the 2.0 docs. The corresponding Doris branch-2.0 source still contains fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/QueryDetailAction.java with @RequestMapping(path = "/api/query_detail", method = RequestMethod.GET), so 2.0 users still need this version-specific API reference. Please keep the 2.0 English/zh pages and sidebar entries unless the archived 2.0 docs are intentionally being desupported.

morningman added a commit that referenced this pull request May 22, 2026
#3742)

## Summary
- `build-check.yml` previously forwarded every version segment it found
in changed file paths straight to Docusaurus' `onlyIncludeVersions`.
Touching files under retired version dirs (e.g.
`versioned_docs/version-1.2/`, `version-2.0/`) made the build fail with
`unknown versions (1.2,2.0) found`, even when those files were just
being deleted.
- This change intersects the detected versions with the active set
(`current` + entries from `versions.json`) before building.
Retired/unknown versions are logged and skipped; if everything is
retired, we fall back to a minimal `4.x` build so the workflow still
validates the site.

## Repro
PR #3731 (deletes `query_detail` doc from every version dir including
1.2 and 2.0) failed with:
```
Invalid docs option "onlyIncludeVersions": unknown versions (1.2,2.0) found.
Available version names are: current, 4.x, 3.x, 2.1
```
Failed job:
https://github.com/apache/doris-website/actions/runs/26280229035/job/77354293705?pr=3731

## Test plan
- [ ] Local simulation with PR #3731's changed-file list now produces
`DOCS_VERSIONS=current,4.x,3.x,2.1` and logs `Ignoring changes to
retired/unknown versions: 2.0,1.2`.
- [ ] CI of this PR passes (only `.github/workflows/build-check.yml`
changes; this PR itself touches no doc versions, so the workflow takes
the minimal `4.x` fallback branch — verify by reading the `=== Build
plan ===` line in the job log).
- [ ] After merge, re-run CI on #3731 and confirm it goes green without
reverting the 1.2/2.0 file deletions.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Remove all query-detail-action docs across all versions and locales:
- Delete 16 markdown files from docs/, versioned_docs/, i18n/zh-CN/, and ja-source/
- Remove sidebar entries from sidebars.ts and all versioned_sidebars/*.json files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@morningman morningman force-pushed the remove-query-detail branch from 3e45c48 to 3c37930 Compare May 22, 2026 17:54
@morningman morningman merged commit c7f49fe into master May 22, 2026
3 checks passed
@morrySnow morrySnow deleted the remove-query-detail branch May 25, 2026 02:40
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.

3 participants