ruanwenjun opened a new pull request, #18566: URL: https://github.com/apache/dolphinscheduler/pull/18566
## Was this PR generated or assisted by AI? YES. The implementation and tests were assisted by AI and reviewed locally. ## Purpose of the pull request Validate datasource access consistently before task definitions are saved or activated. Closes #18565. ## Brief change log - Add a shared checker for datasource resources declared by task plugins. - Apply the check to task and workflow save, version switch, online, and instance update paths. - Add regression tests for the checker and affected API paths. ## Verify this pull request This change added tests and can be verified as follows: - Run `./mvnw -pl dolphinscheduler-api -DskipE2E=true -DskipITs -Dspotless.check.skip=true -Dcheckstyle.skip=true -Dtest=TaskDatasourcePermissionCheckerTest,TaskDefinitionServiceImplTest,WorkflowDefinitionServiceTest,WorkflowInstanceServiceTest test`. - 68 tests pass. - `./mvnw -pl dolphinscheduler-api -DskipTests spotless:check` passes. -- 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]
