Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DSIP-68] Unify the table structure and table fields in backend and frontend ui sections #16544

Merged
merged 36 commits into from
Sep 4, 2024

Conversation

SbloodyS
Copy link
Member

@SbloodyS SbloodyS commented Aug 29, 2024

Purpose of the pull request

Brief change log

close #16515
close #16525

  • Add @DisableIfTestFails annotation to e2e-test and api-test to the test class, all tests after the first failed one are disabled for better debugging. Junit
  • Schema-check CI improvement

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@github-actions github-actions bot added the e2e e2e test label Aug 29, 2024
@SbloodyS SbloodyS added this to the 3.3.0 milestone Aug 29, 2024
@SbloodyS SbloodyS added improvement make more easy to user or prompt friendly DSIP labels Aug 29, 2024
@SbloodyS SbloodyS marked this pull request as ready for review August 29, 2024 09:02
@SbloodyS SbloodyS marked this pull request as draft August 29, 2024 10:00
@SbloodyS SbloodyS changed the title [Improvement-16525] Unify the table structure and table fields in backend [Improvement-16515] Unify the table structure and table fields in backend Aug 30, 2024
@SbloodyS SbloodyS changed the title [Improvement-16515] Unify the table structure and table fields in backend [Improvement-16515] Unify the table structure and table fields in backend and frontend ui sections Aug 30, 2024
@SbloodyS SbloodyS changed the title [Improvement-16515] Unify the table structure and table fields in backend and frontend ui sections [DSIP-68] Unify the table structure and table fields in backend and frontend ui sections Sep 2, 2024
@github-actions github-actions bot added UI ui and front end related document labels Sep 2, 2024
for (String strProcessInstanceId : processInstanceIdArray) {
int processInstanceId = Integer.parseInt(strProcessInstanceId);
for (String strWorkflowInstanceId : workflowInstanceIdArray) {
int workflowInstanceId = Integer.parseInt(strWorkflowInstanceId);

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
execService.controlWorkflowInstance(loginUser, processInstanceId, executeType);
log.info("Success do action {} on workflowInstance: {}", executeType, processInstanceId);
execService.controlWorkflowInstance(loginUser, workflowInstanceId, executeType);
log.info("Success do action {} on workflowInstance: {}", executeType, workflowInstanceId);

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.
+ "reason: " + e.getMessage());
log.error("Failed do action {} on workflowInstance: {}, error: {}", executeType, processInstanceId, e);
log.error("Failed do action {} on workflowInstance: {}, error: {}", executeType, workflowInstanceId, e);

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.
for (String strProcessInstanceId : processInstanceIdArray) {
int processInstanceId = Integer.parseInt(strProcessInstanceId);
for (String strWorkflowInstanceId : workflowInstanceIdArray) {
int workflowInstanceId = Integer.parseInt(strWorkflowInstanceId);

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
} catch (Exception e) {
log.error("Delete workflow instance: {} error", strProcessInstanceId, e);
log.error("Delete workflow instance: {} error", strWorkflowInstanceId, e);

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
DagData.canEqual
; it is advisable to add an Override annotation.
@@ -30,19 +31,20 @@
/**
* task instance request
*/
@EqualsAndHashCode(callSuper = true)

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
PageQueryDto.canEqual
; it is advisable to add an Override annotation.
@github-actions github-actions bot added the CI&CD label Sep 3, 2024
@SbloodyS SbloodyS marked this pull request as ready for review September 3, 2024 02:05
@SbloodyS SbloodyS requested review from zhongjiajie and removed request for zhuangchong September 3, 2024 02:05
@SbloodyS SbloodyS linked an issue Sep 3, 2024 that may be closed by this pull request
3 tasks
zhongjiajie
zhongjiajie previously approved these changes Sep 4, 2024
Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍 , only have one issue I am not sure


UPDATE t_ds_task_definition SET task_type = 'SUB_WORKFLOW' WHERE task_type = 'SUB_PROCESS';
UPDATE t_ds_task_definition_log SET task_type = 'SUB_WORKFLOW' WHERE task_type = 'SUB_PROCESS';
UPDATE t_ds_task_definition SET task_params = replace(task_params, 'processDefinitionCode', 'workflowDefinitionCode') where task_type = 'SUB_WORKFLOW';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to upgrade t_ds_task_definition_log.

And Dynamic task need to upgrade too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


UPDATE t_ds_task_definition SET task_type = 'SUB_WORKFLOW' WHERE task_type = 'SUB_PROCESS';
UPDATE t_ds_task_definition_log SET task_type = 'SUB_WORKFLOW' WHERE task_type = 'SUB_PROCESS';
UPDATE t_ds_task_definition SET task_params = replace(task_params, 'processDefinitionCode', 'workflowDefinitionCode') where task_type = 'SUB_WORKFLOW';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link

sonarcloud bot commented Sep 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
28.8% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

@SbloodyS SbloodyS merged commit fee4955 into apache:dev Sep 4, 2024
67 of 69 checks passed
@SbloodyS SbloodyS deleted the improvement_16525 branch September 4, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend CI&CD document DSIP e2e e2e test improvement make more easy to user or prompt friendly test UI ui and front end related
Projects
None yet
3 participants