Moouna opened a new pull request, #18743:
URL: https://github.com/apache/dolphinscheduler/pull/18743

   ## Purpose of the pull request
   
   Closes #18742.
   
   The HTTP task only honored PARAMETER-type request parameters for GET (and 
DELETE since #18696). POST and PUT silently ignored them, even though the task 
form lets users configure parameters for every method. This PR makes parameters 
work for all request methods, including `${...}` placeholder substitution.
   
   ## Brief change log
   
   - `HttpTask`: pass the parameter map (with placeholder substitution via 
`getRequestParams()`) to `OkHttpUtils.post/put` instead of `null`
   - `OkHttpUtils`: add `put` overloads accepting `requestParamsMap`, appended 
to the url the same way as the GET/POST/DELETE paths; existing overloads 
delegate with `null` to keep compatibility
   - UI (`use-http.ts`): allow the `Parameter` type for POST/PUT as well, 
dropping the method-dependent parameter type list
   
   ## Verify this pull request
   
   This pull request was verified with:
   
   - `./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-http -am 
compile -DskipTests -Dspotless.skip=true` (JDK 8) passed
   
   ## Pull Request Notice
   [Pull Request 
Notice](https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)
   
   ## Was this PR generated or assisted by AI?
   
   YES. This pull request was generated with the assistance of an AI coding 
assistant (Qoder): the code changes in OkHttpUtils/HttpTask/use-http.ts and the 
issue/PR text were drafted with AI assistance and manually reviewed by the 
author.


-- 
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]

Reply via email to