Greedyu opened a new pull request #2769:
URL: https://github.com/apache/incubator-inlong/pull/2769


   ### Title Name: [INLONG-2759][Manager] Fix InlongGroup object  modification 
exception
   
   Fixes #2759 
   
   First of all, the reason is that the GroupState.forCode() function has 
passed a null value. The reason is that the request object InlongGroupRequest 
does not add the annotation @ApiModelProperty() to the status field. 
   
   Originally, an annotation was added to the status field, but the reviewer 
believes that the status should not be set in the request, and there may be 
abnormal status flow caused by front-end parameters. We should handle state in 
the backend system.  
   <img width="852" alt="image" 
src="https://user-images.githubusercontent.com/20356765/155869469-6fbbb136-5e04-4f5e-82c1-b3781eb68128.png";>
   
   Then continue to use the postman tool to form the status parameter for 
testing. A new problem has arisen: Current state=wait_submit is not allowed to 
transfer to state=wait_submit
   
![image](https://user-images.githubusercontent.com/20356765/155869259-cfb1ca57-aa5c-4499-b777-826977b8eb88.png)
   
   
   This is because there is no conversion from GROUP_WAIT_SUBMIT to 
GROUP_WAIT_SUBMIT in the status transition. The above scenario should be missed 
here, so I fixed it and tested it again through the post. Finally verified 
successfully
   
   
![image](https://user-images.githubusercontent.com/20356765/155869264-9e061164-0e8e-4a44-a5c5-e2b39dfa57ff.png)
   
   The state needs to be controlled in the interface, and the background 
business logic is required later here.


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