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(ESSNTL-4714): fix display name unwanted reset on sort #1846

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

mkholjuraev
Copy link
Contributor

This fixes a random issue on the Inventory table. When you enter a string into the display name filter and remove the filter one char at a time in the input element and then sort by any column, the display name filter gets reset.

To test the issue happens randomly, but this way seems more frequent, so please play with the filter and sorting more:

  1. Go to the inventory app and table
  2. Search for a string
  3. delete the filter one by one in the input
  4. sort the table by any column
  5. observe that the filter is still active

@mkholjuraev mkholjuraev requested a review from a team as a code owner April 27, 2023 12:14
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (e633f77) 65.15% compared to head (5f40997) 65.15%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1846   +/-   ##
=======================================
  Coverage   65.15%   65.15%           
=======================================
  Files         136      136           
  Lines        3421     3421           
  Branches     1025     1025           
=======================================
  Hits         2229     2229           
  Misses       1192     1192           
Impacted Files Coverage Δ
src/components/InventoryTable/InventoryTable.js 100.00% <ø> (ø)

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

@adonispuente
Copy link
Contributor

adonispuente commented Apr 27, 2023

I ran into this issue while testing
https://user-images.githubusercontent.com/60629070/234872518-7e1e6ab9-0ec6-4b37-97d5-37125060087e.mp4

When trying to make another video with more detail, I actually couldnt repro the issue. I also couldnt repro the bug on master for some reason. Going to keep testing

@Fewwy
Copy link
Contributor

Fewwy commented Apr 27, 2023

Works! LGTM

@mkholjuraev mkholjuraev merged commit 38ff4c4 into RedHatInsights:master Apr 27, 2023
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