[Improvement][Api] Interface and entity optimization to improve code scalability (#10466).#10468
[Improvement][Api] Interface and entity optimization to improve code scalability (#10466).#10468lenboo merged 5 commits intoapache:devfrom
Conversation
|
Hi @hstdream , can you describe why did you want to do that? This may cause ui request error. |
|
I think if some new content is added later, the restrictions here are relatively large. UI currently has a child partner to modify |
We suggest adding a feature to the same pr. It is not necessary to make meaningless changes in advance. |
I think if some new content is added later, the restrictions here are relatively large. UI currently has a child partner to modify |
How to operate? |
|
Descirbed what feature you want to implement in the associate issue and develop it in the same branch. Submit this branch to a PR after completion. @hstdream |
|
@hstdream please add some detail into pr description, includes |
ok |
@SbloodyS |
In this case, i think we should create a general issue to describe all APIs that need to be modified. Then create sub issues to associate them. And then create the pr link to the sub issues. WDYT? @lenboo |
purpose: to make the interface and entity easier to expand and improve the extensibility interface: there are new interface parameters behind. You can use otherparamsjson in the code entity: extend entity |
Codecov Report
@@ Coverage Diff @@
## dev #10468 +/- ##
============================================
- Coverage 40.90% 40.90% -0.01%
- Complexity 4852 4853 +1
============================================
Files 883 885 +2
Lines 35972 35982 +10
Branches 3991 3991
============================================
+ Hits 14714 14717 +3
- Misses 19802 19807 +5
- Partials 1456 1458 +2
Continue to review full report at Codecov.
|
| @RequestParam(value = "tenantCode", required = true) String tenantCode, | ||
| @RequestParam(value = "taskRelationJson", required = true) String taskRelationJson, | ||
| @RequestParam(value = "taskDefinitionJson", required = true) String taskDefinitionJson, | ||
| @RequestParam(value = "otherParamsJson", required = false) String otherParamsJson, |
There was a problem hiding this comment.
We should add this param to the swagger's doc.
There was a problem hiding this comment.
This is not the swagger's param. You can take a look at @ApiImplicitParam.
purpose: to make the interface and entity easier to expand and improve the extensibility interface: there are new interface parameters behind. You can use otherparamsjson in the code entity: extend entity |
Good idea! But how can we let contributors know this when they modify the code? |
At present, the issue can only be associated when the committers review the code. |
|
Kudos, SonarCloud Quality Gate passed! |
| int releaseState, | ||
| String taskRelationJson, | ||
| String taskDefinitionJson, | ||
| String otherParamsJson, |
There was a problem hiding this comment.
This change will fail python API submit function, maybe we should change python integrate test to avoid regression
|
|
||
| Map<String, Object> result = processDefinitionService.updateProcessDefinition(loginUser, projectCode, name, code, description, globalParams, | ||
| locations, timeout, tenantCode, taskRelationJson, taskDefinitionJson,executionType); | ||
| locations, timeout, tenantCode, taskRelationJson, taskDefinitionJson,otherParamsJson, executionType); |
There was a problem hiding this comment.
I wonder why this addition can pass checktyle, i think it is should be a space before otherParamsJson
…scalability (apache#10466). (apache#10468) * [Improvement][Api] Interface and entity optimization to improve code scalability (apache#10466). * [Improvement][Api] Interface and entity optimization to improve code scalability (apache#10466). * [Improvement][Api] Interface and entity optimization to improve code scalability (apache#10466). * [Improvement][Api] Interface and entity optimization to improve code scalability (apache#10466). * fix ut timezone. Co-authored-by: houshitao <shitaohou@163.com>









close #10466
Purpose of the pull request
To make the interface and entity easier to expand and improve the extensibility
Brief change log
Interface: there are new interface parameters behind. You can use
otherparamsjsonin the codeEntity: extend entity Dto
Add burying point
Verify this pull request
Add interface parms
otherparamsjson