Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix(steps): Cannot update steps that doesn't contain parameters #2105

Merged
merged 1 commit into from
Jul 7, 2023
Merged

fix(steps): Cannot update steps that doesn't contain parameters #2105

merged 1 commit into from
Jul 7, 2023

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Jul 6, 2023

Context

Currently, if a step doesn't contain parameters, like the do/try step, is ignored in the updateStepParameters method.

Changes

The fix is to fill in the parameters with the newValues object if provided, and from that point forward, insert the step in the store since a step extension could modify it.

fixes: #2051
fixes: #2052
fixes: #2053

Currently, if a step doesn't contain parameters, like the do/try
step, is ignored in the updateStepParameters method.

The fix is to fill in the parameters with the newValues object if
provided, and from that point forward, insert the step in the store
since a step extension could modify it.

fixes: #2051
@lordrip lordrip requested a review from a team July 6, 2023 20:09
@sonarcloud
Copy link

sonarcloud bot commented Jul 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #2105 (f5af766) into main (d6ad904) will increase coverage by 0.34%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2105      +/-   ##
==========================================
+ Coverage   67.15%   67.49%   +0.34%     
==========================================
  Files          89       89              
  Lines        2886     2883       -3     
  Branches      667      666       -1     
==========================================
+ Hits         1938     1946       +8     
+ Misses        902      892      -10     
+ Partials       46       45       -1     
Impacted Files Coverage Δ
src/services/stepsService.ts 76.78% <100.00%> (+4.53%) ⬆️

@lordrip lordrip merged commit b5582fa into KaotoIO:main Jul 7, 2023
@lordrip lordrip deleted the fix/cannot-add-step-do-try branch July 7, 2023 05:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants