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

[v2.7.3] Update hasObjectChangedInGivenFields to ignore predefined fields #1366

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

sgratch
Copy link
Collaborator

@sgratch sgratch commented Oct 30, 2024

Reference: https://issues.redhat.com/browse/MTV-1546

  • Check if the inventory data has changed for re-loading the data to UI and re-rendering only for specified fields by ignoring a pre-defined list of fields.
  • Remove unused hasObjectChangedInGivenFields duplicate method implementation.

Up till now, all fields have been compared to check if something was changed for reloading. But since there are few fields that are changed occasionally in inventory, while not being displayed in UI, we can ignore them while checking for new data, for less requent unnecessary re-rendering.

Reference: https://issues.redhat.com/browse/MTV-1546

- Check if the inventory data has changed for re-loading the data to UI
and re-rendering only for specified fields by ignoring a pre-defined list of fields.
- Remove unused hasObjectChangedInGivenFields duplicate method
  implementation.

Up till now, all fields have been compared to check if something was
changed for reloading. But since there are few fields that are changed occasionally in inventory,
while not being displayed in UI, we can ignore them while checking for new data, for less requent unnecessary re-rendering.

Signed-off-by: Sharon Gratch <[email protected]>
@sgratch sgratch added this to the 2.7.3 milestone Oct 30, 2024
Copy link

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 18.75000% with 13 lines in your changes missing coverage. Please review.

Please upload report for BASE (release-2.7@5790bd4). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ers/utils/helpers/hasObjectChangedInGivenFields.ts 0.00% 6 Missing and 1 partial ⚠️
...rc/modules/Providers/hooks/useProviderInventory.ts 25.00% 3 Missing ⚠️
...dules/Providers/hooks/useProvidersInventoryList.ts 25.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff               @@
##             release-2.7    #1366   +/-   ##
==============================================
  Coverage               ?   36.46%           
==============================================
  Files                  ?      159           
  Lines                  ?     2589           
  Branches               ?      616           
==============================================
  Hits                   ?      944           
  Misses                 ?     1450           
  Partials               ?      195           

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

@sgratch sgratch requested a review from yaacov October 30, 2024 18:57
@sgratch sgratch added the bug Categorizes issue or PR as related to a bug. label Oct 30, 2024
@sgratch sgratch merged commit 990afa3 into kubev2v:release-2.7 Oct 30, 2024
10 checks passed
@sgratch sgratch deleted the release-2.7 branch October 30, 2024 19:15
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