ruanwenjun opened a new pull request, #18584:
URL: https://github.com/apache/dolphinscheduler/pull/18584
## Was this PR generated or assisted by AI?
YES. OpenAI Codex assisted with repository usage analysis, implementation,
tests, and the pull request description.
## Purpose of the pull request
Remove the obsolete `GET /cluster/query-by-code` API. A repository-wide
usage audit found no production caller for this route, and its UI service
wrapper is not imported.
This cleanup is intentionally narrow: the Cluster model and DAO remain
because namespace management, auditing, cluster updates, and Kubernetes
integrations still use them. The public API compatibility change is recorded in
the English and Chinese incompatible-change guides.
## Brief change log
- Remove the cluster query-by-code controller and service path.
- Remove its unused UI wrapper, status code, i18n metadata, and obsolete
service test.
- Add a controller test confirming the removed route returns HTTP 404.
- Add English and Chinese incompatible-change notes.
## Verify this pull request
This change added tests and can be verified as follows:
- `./mvnw verify -B -pl dolphinscheduler-api -Dmaven.test.skip=false
-Dspotless.skip=true -DskipUT=false -Danalyze.skip=true
-Dtest='ClusterControllerTest,ClusterServiceTest'`
- Tests run: 13, failures: 0, errors: 0, skipped: 0.
- `./mvnw -B -pl dolphinscheduler-api -DskipTests=true spotless:check`
- `git diff --check`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]