You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "GOODBOY008 (via GitHub)" <gi...@apache.org> on 2023/04/09 10:29:34 UTC

[GitHub] [incubator-streampark] GOODBOY008 opened a new issue, #2594: [Feature] Use DTO inster and use validator to validate request params.

GOODBOY008 opened a new issue, #2594:
URL: https://github.com/apache/incubator-streampark/issues/2594

   ### Search before asking
   
   - [X] I had searched in the [feature](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   Like `org.apache.streampark.console.core.controller.ApplicationController#cancel` from controller method , developer can not know what params pass from front end and param validation is missing(cann`t understand which param should not be null).
   <img width="571" alt="企业微信截图_16810354379483" src="https://user-images.githubusercontent.com/13617900/230767175-70887552-1fe8-4464-adb0-da9ead36393c.png">
   <img width="445" alt="企业微信截图_16810361455091" src="https://user-images.githubusercontent.com/13617900/230767623-8ef1e97d-bbfc-4a44-b29d-ca9d6a32df3a.png">
   
   But we change `Application` to `ApplicationCancelDTO`  and add validation. It will be very clear for develpoer and can block bad request with invalidate params.
   <img width="581" alt="企业微信截图_16810358813668" src="https://user-images.githubusercontent.com/13617900/230767427-4f09f76c-4f76-45ca-acd3-ae98c3f2aa2a.png">
   <img width="277" alt="企业微信截图_1681035905236" src="https://user-images.githubusercontent.com/13617900/230767457-df85f257-b910-43ff-b6ba-499fa64c87e1.png">
   
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-streampark] GOODBOY008 commented on issue #2594: [Feature] Use DTO inster and use validator to validate request params.

Posted by "GOODBOY008 (via GitHub)" <gi...@apache.org>.
GOODBOY008 commented on issue #2594:
URL: https://github.com/apache/incubator-streampark/issues/2594#issuecomment-1501096341

   @wolfboys Pls cc. Link to https://github.com/apache/incubator-streampark/issues/2565 .


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-streampark] wolfboys commented on issue #2594: [Feature] Use DTO instead of entity and add validator to validate request params.

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #2594:
URL: https://github.com/apache/incubator-streampark/issues/2594#issuecomment-1501120735

   > @wolfboys Pls cc. Link to #2565 .
   
   Great, I think it is very necessary to add dto


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Use DTO instead of entity and add validator to validate request params. [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #2594:
URL: https://github.com/apache/streampark/issues/2594#issuecomment-5523212244

   Thanks for your feedback. We are closing this issue because it is outdated.


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Use DTO instead of entity and add validator to validate request params. [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys closed issue #2594: [Feature] Use DTO instead of entity and add validator to validate request params.
URL: https://github.com/apache/streampark/issues/2594


-- 
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: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org