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

fix: start param for wf not work #15544

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Conversation

zhongjiajie
Copy link
Member

fix: #15280

Purpose of the pull request

Brief change log

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)

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

@@ -199,7 +224,7 @@ public Map<String, Property> paramParsingPreparation(@NonNull TaskInstance taskI
}

if (MapUtils.isNotEmpty(cmdParam)) {
prepareParamsMap.putAll(ParameterUtils.getUserDefParamsMap(cmdParam));
prepareParamsMap.putAll(parseWorkflowStartParam(cmdParam));
Copy link
Member Author

Choose a reason for hiding this comment

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

the key reason for this bug.
and others just for some refactor

caishunfeng
caishunfeng previously approved these changes Feb 1, 2024
Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM if CI pass

@rickchengx
Copy link
Contributor

Hi, @zhongjiajie please fix the CI

@codecov-commenter
Copy link

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (e5a208f) 38.40% compared to head (89e6359) 38.39%.

❗ Current head 89e6359 differs from pull request most recent head d52aa5a. Consider uploading reports for the commit d52aa5a to get more accurate results

Files Patch % Lines
...nscheduler/service/process/ProcessServiceImpl.java 50.00% 4 Missing ⚠️
...eduler/service/expand/CuringParamsServiceImpl.java 84.61% 0 Missing and 2 partials ⚠️
.../server/master/runner/WorkflowExecuteRunnable.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15544      +/-   ##
============================================
- Coverage     38.40%   38.39%   -0.02%     
+ Complexity     4752     4747       -5     
============================================
  Files          1305     1305              
  Lines         44847    44831      -16     
  Branches       4810     4801       -9     
============================================
- Hits          17225    17213      -12     
+ Misses        25748    25744       -4     
  Partials       1874     1874              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Feb 5, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

2 New issues
0 Security Hotspots
71.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM

@caishunfeng caishunfeng merged commit 01eb8f8 into apache:dev Feb 5, 2024
56 checks passed
@zhongjiajie zhongjiajie deleted the start-param-pass branch February 5, 2024 08:17
zhongjiajie added a commit that referenced this pull request Feb 6, 2024
* fix: start param for wf not work

fix: #15280

* fix test

(cherry picked from commit 01eb8f8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [parameter] StartParams can't update local params
6 participants