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

feat: Support editing steps from multiple flows #1770

Merged
merged 1 commit into from
May 10, 2023
Merged

feat: Support editing steps from multiple flows #1770

merged 1 commit into from
May 10, 2023

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented May 9, 2023

Context

This commit adds the functionality to edit steps from multiple flows

related: #801

@lordrip lordrip requested a review from a team May 9, 2023 12:52
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #1770 (6effffd) into main (ed17316) will increase coverage by 0.03%.
The diff coverage is 64.70%.

❗ Current head 6effffd differs from pull request most recent head 87d0fd5. Consider uploading reports for the commit 87d0fd5 to get more accurate results

@@            Coverage Diff             @@
##             main    #1770      +/-   ##
==========================================
+ Coverage   65.84%   65.88%   +0.03%     
==========================================
  Files          74       74              
  Lines        2199     2210      +11     
  Branches      507      510       +3     
==========================================
+ Hits         1448     1456       +8     
- Misses        706      708       +2     
- Partials       45       46       +1     
Impacted Files Coverage Δ
src/components/VisualizationStep.tsx 61.90% <0.00%> (ø)
src/components/Visualization.tsx 66.17% <42.10%> (+1.02%) ⬆️
src/store/flowsStore.tsx 43.13% <50.00%> (+2.32%) ⬆️
src/services/stepsService.ts 76.86% <80.00%> (-0.56%) ⬇️
src/store/integrationJsonStore.tsx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

igarashitm
igarashitm previously approved these changes May 9, 2023
@Delawen Delawen added this to the 1.1.0 milestone May 9, 2023
igarashitm
igarashitm previously approved these changes May 10, 2023
Currently we're calculating the step's ids by leveraging object references, this come
handy for branches but presents the problem of leaking object references between single
and multiple flows.

This commit leverages lodash.clonedeep dependency to make a copy of the steps as a
workaround for those situations.

This should change in the future with a more robust solution like immer.

relates to: #801
@sonarcloud
Copy link

sonarcloud bot commented May 10, 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
8.4% 8.4% Duplication

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants