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(InventroyTable): Add activeFiltersConfig to prop cache to trigger refresh #1838

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

bastilian
Copy link
Member

Compliance adds filters via the activeFiltersConfig prop and not the customFilters prop and does not use the redux store to keep active filters and does therefore not trigger a refresh properly and only the first filter change in compliance would trigger a refresh, or if a filter is used coming from the inventory, like tags.

How to test:

  • Run inventory locally, possibly also with compliance
  • Open the Compliance -> Systems page
  • Filter by name, or any other "compliance filter"
  • Add to the filter and the table should refresh again

The last step would fail without this change.

@bastilian bastilian requested a review from a team as a code owner April 20, 2023 10:12
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.03 ⚠️

Comparison is base (f53155a) 64.92% compared to head (6628ee6) 64.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1838      +/-   ##
==========================================
- Coverage   64.92%   64.89%   -0.03%     
==========================================
  Files         135      135              
  Lines        3418     3418              
  Branches     1025     1025              
==========================================
- Hits         2219     2218       -1     
- Misses       1199     1200       +1     
Impacted Files Coverage Δ
src/components/InventoryTable/InventoryTable.js 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@LightOfHeaven1994
Copy link
Contributor

/retest

Copy link
Contributor

@mkholjuraev mkholjuraev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bastilian bastilian merged commit 82b3acb into RedHatInsights:master Apr 21, 2023
gkarat pushed a commit that referenced this pull request Apr 21, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-21)

### Bug Fixes

* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
gkarat pushed a commit that referenced this pull request Apr 21, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-21)

### Bug Fixes

* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
gkarat pushed a commit that referenced this pull request Apr 21, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-21)

### Bug Fixes

* **InventoryTable:** Pass on activeFiltersConfig properly ([#1840](#1840)) ([a8cec1d](a8cec1d))
* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
gkarat pushed a commit that referenced this pull request Apr 25, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-25)

### Bug Fixes

* **InventoryTable:** Pass on activeFiltersConfig properly ([#1840](#1840)) ([a8cec1d](a8cec1d))
* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))
* RHINENG-383 - Fix typo in the tooltip when insights client is not reporting ([#1842](#1842)) ([01b6c8a](01b6c8a))

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
gkarat pushed a commit that referenced this pull request Apr 26, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-26)

### Bug Fixes

* **InventoryTable:** Pass on activeFiltersConfig properly ([#1840](#1840)) ([a8cec1d](a8cec1d))
* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))
* RHINENG-383 - Fix typo in the tooltip when insights client is not reporting ([#1842](#1842)) ([01b6c8a](01b6c8a))

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
gkarat pushed a commit that referenced this pull request Apr 27, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-27)

### Bug Fixes

* **InventoryTable:** Pass on activeFiltersConfig properly ([#1840](#1840)) ([a8cec1d](a8cec1d))
* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))
* RHINENG-383 - Fix typo in the tooltip when insights client is not reporting ([#1842](#1842)) ([01b6c8a](01b6c8a))

### Reverts

* Revert Inventory groups back end mocks (#1845) ([e633f77](e633f77)), closes [#1845](#1845) [#1793](#1793)
* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
gkarat pushed a commit that referenced this pull request Apr 27, 2023
## [1.14.8](v1.14.7...v1.14.8) (2023-04-27)

### Bug Fixes

* **ESSNTL-4714:** fix display name unwanted reset on sort ([#1846](#1846)) ([38ff4c4](38ff4c4))
* **InventoryTable:** Pass on activeFiltersConfig properly ([#1840](#1840)) ([a8cec1d](a8cec1d))
* **InventroyTable:** Add activeFiltersConfig to prop cache to trigger refresh ([#1838](#1838)) ([82b3acb](82b3acb))
* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))
* **LastSeenFilter:** Fixes Validators and adds test ([#1837](#1837)) ([f4d6e6e](f4d6e6e))
* RHINENG-383 - Fix typo in the tooltip when insights client is not reporting ([#1842](#1842)) ([01b6c8a](01b6c8a))

### Reverts

* Revert Inventory groups back end mocks (#1845) ([e633f77](e633f77)), closes [#1845](#1845) [#1793](#1793)
* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)
@gkarat
Copy link
Contributor

gkarat commented Apr 28, 2023

🎉 This PR is included in version 1.14.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

5 participants