-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1366 from sgratch/release-2.7
[v2.7.3] Update hasObjectChangedInGivenFields to ignore predefined fields
- Loading branch information
Showing
6 changed files
with
40 additions
and
66 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
...ift-console-plugin/src/modules/Plans/views/details/utils/hasObjectChangedInGivenFields.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 11 additions & 15 deletions
26
packages/forklift-console-plugin/src/modules/Providers/hooks/utils/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
export const DEFAULT_FIELDS_TO_COMPARE = [ | ||
'vmCount', | ||
'networkCount', | ||
'storageClassCount', | ||
'regionCount', | ||
'projectCount', | ||
'imageCount', | ||
'volumeCount', | ||
'volumeTypeCount', | ||
'datacenterCount', | ||
'clusterCount', | ||
'hostCount', | ||
'storageDomainCount', | ||
'datastoreCount', | ||
]; | ||
/** | ||
* List of fields to ignore/skip comparing when checking if an inventory's object has changed and required | ||
* re-rendering. | ||
* | ||
* Note: The fields included in this list have values which are changed occasionally in inventory | ||
* while not displayed in UI and therefore if not ignored it will | ||
* generate frequent unnecessary re-rendering. | ||
* | ||
* Need to add more fields to this if required. | ||
*/ | ||
export const DEFAULT_FIELDS_TO_AVOID_COMPARING = ['revision', 'revisionValidated', 'storageUsed']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters