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

[Backport] Fix BZ#1958649 and BZ#1958652: Use correct query when looking up storage mappings for prefilling wizard in edit mode (#591) #592

Merged

Conversation

mturley
Copy link
Collaborator

@mturley mturley commented May 10, 2021

Backports #591.

Note: this PR includes additional changes related to these bugs, since I happened to fix part of it on the main branch in #585. The commit 785ea07 replicates the changes from 406b098#diff-55b411ad333b40962073e7eb43e4f9db265aaada61377172a4e4b5e98384ec07R163-R185 in order to properly prevent the user from opening wizard steps that depend on earlier steps with invalid values. This means if the mappings are somehow still invalid after prefilling even with these fixes, the user will be forced to visit those steps and fix the mappings before proceeding. See https://github.com/konveyor/forklift-ui/issues/590.

@mturley mturley requested a review from a team May 10, 2021 16:47
@konveyor-preview-bot
Copy link

🚀 Deployed Preview: http://konveyor-forklift-ui-pr-592-preview.surge.sh

Compare with current main branch: http://konveyor-forklift-ui-preview.surge.sh

@mturley mturley force-pushed the release-v2.0.0-bz1958649-and-1958652 branch from 785ea07 to 3843d2f Compare May 10, 2021 16:57
@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #592 (bc2f996) into release-v2.0.0 (29e3ef1) will decrease coverage by 0.28%.
The diff coverage is 62.50%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           release-v2.0.0     kubev2v/forklift-ui#592      +/-   ##
==================================================
- Coverage           59.96%   59.68%   -0.29%     
==================================================
  Files                 137      137              
  Lines                4396     4395       -1     
  Branches             1203     1198       -5     
==================================================
- Hits                 2636     2623      -13     
- Misses               1727     1739      +12     
  Partials               33       33              
Impacted Files Coverage Δ
src/app/queries/mocks/mappings.mock.ts 100.00% <ø> (ø)
src/app/queries/plans.ts 45.00% <0.00%> (-1.76%) ⬇️
src/app/Plans/components/Wizard/PlanWizard.tsx 84.40% <100.00%> (-0.56%) ⬇️
src/app/Plans/components/Wizard/helpers.tsx 92.98% <100.00%> (ø)
.../components/MappingBuilder/MappingTargetSelect.tsx 73.68% <0.00%> (-19.30%) ⬇️
.../app/Mappings/components/MappingBuilder/helpers.ts 84.05% <0.00%> (-1.45%) ⬇️
src/app/Mappings/components/helpers.ts 62.68% <0.00%> (+4.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29e3ef1...bc2f996. Read the comment docs.

@mturley mturley marked this pull request as draft May 10, 2021 17:19
@mturley mturley marked this pull request as ready for review May 10, 2021 17:33
@sonarcloud
Copy link

sonarcloud bot commented May 10, 2021

Kudos, SonarCloud 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
No Duplication information No Duplication information

@ghost ghost merged commit ebcd499 into kubev2v:release-v2.0.0 May 10, 2021
@mturley mturley deleted the release-v2.0.0-bz1958649-and-1958652 branch May 10, 2021 19:24
This pull request was closed.
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.

2 participants