TAM-Lab opened a new issue, #15429:
URL: https://github.com/apache/dolphinscheduler/issues/15429

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When i try to create a Task Definition as Batch Task or create a Workflow 
Definition as SQL, i found that the custom parameter module could not trigger 
the validator in some situation. The condition as below
   
   ### What you expected to happen
   
   In normal case, the custom parameter module would verify that whether 
duplicate values exist in prop property values. If so, it would prompt:  prop 
is repeat. When the creation task is performed, the custom parameter form 
appears fine, as below screenshot, but when the task is modified, some 
unexpected problems occur.
   ![situation 
0](https://github.com/apache/dolphinscheduler/assets/25904711/596726dd-7395-447a-bc2b-bb826320b89b)
   
   
   Situation 1:
   If the number of custom parameters added during task creation is greater 
than two, the validator verification would not be performed when the custom 
parameters are added. The screenshot is as follows:
   
![situation1](https://github.com/apache/dolphinscheduler/assets/25904711/b7487fb7-abc5-4682-93a4-2b847b541039)
   
   and the save operation could be performed.
   
   Also, When adding the custom parameter, if the prop property is the same as 
the first prop value, it would prompt the message: prop is repeat. 
   
![situation2](https://github.com/apache/dolphinscheduler/assets/25904711/1585dcfa-1035-4f44-90dc-d06fddf53d70)
   
   Situation 2:
   If the number of custom parameters added during task creation is less than 
two, the validator verification would be performed fine. the situation is as 
follows:
   ![situation 
3](https://github.com/apache/dolphinscheduler/assets/25904711/94c77485-897c-4d8d-9e1a-9599ce3f51c4)
   
   
   ### How to reproduce
   
   According to the above description and screenshots can be reproduced
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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