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 UI refresh issues for providers secret data and for migration plan VMs list #511

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

sgratch
Copy link
Contributor

@sgratch sgratch commented Jun 27, 2023

Fixes: #369

Fix UI refresh issues that are a result of a wrong react query fetching/caching options.

  1. For the providers secret data sync issue, apply the invalidateQueries option for the 'secret' query.

  2. For the migration plan VMs list sync issue, avoid the 'keepPreviousData' option and apply the invalidateQueries option for the 'inventory-tree' query.

Fix result:
  1. When editing an existing provider's secret data, the data is updated successfully and immediately in the UI, without the need to hard refresh.

  2. When adding a new VM(s) to the source provider, while the migration plan UI wizard is already opened , the new VM is added successfully in the UI, without the need to re-open the migration plan wizard.

…n VMs list

Fix UI refresh issues that are a result of a wrong react query fetching/caching options.

1. For the providers secret data sync issue, apply the invalidateQueries
option for the 'secret' query.

2. For the migration plan VMs list sync issue, avoid the 'keepPreviousData'
option and apply the invalidateQueries option for the 'inventory-tree' query.

Signed-off-by: Sharon Gratch <sgratch@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Jun 27, 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
No Duplication information No Duplication information

@yaacov yaacov merged commit 0531f87 into kubev2v:release-v2.4.2 Jun 27, 2023
5 checks passed
@sgratch sgratch deleted the release-v2.4.2 branch June 27, 2023 14:59
@yaacov
Copy link
Member

yaacov commented Jun 27, 2023

cc:// @ahadas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants