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

🐛 Persist filters in URL for applications table #2033

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

rszwajko
Copy link
Collaborator

@rszwajko rszwajko commented Jul 30, 2024

Fix regression after: #1980
Resolves: https://issues.redhat.com/browse/MTA-1390

Initial filter values work best if the table is not persisting state between reloads (default strategy, component state). If the table uses session or local storage then any existing filter overwrites the default value. From the end user perspective the functionality works only on the first load with a clean browser (no previous state).

Switching to URL filter persistence provides the same functionality and ensures we have only one source of filters.

Reference-Url: #1698

Initial filter values work best if the table is not persisting state
between reloads (default strategy, component state). If the table uses
session or local storage then any existing filter overwrites the default
value. From the end user perspective the functionality works only on first
load with a clean browser (no previous state).

Switching to URL filter persistence provides the same functionality and
ensures we have only one source of filters.

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.15%. Comparing base (b654645) to head (940be7f).
Report is 203 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2033      +/-   ##
==========================================
+ Coverage   39.20%   42.15%   +2.95%     
==========================================
  Files         146      171      +25     
  Lines        4857     5503     +646     
  Branches     1164     1305     +141     
==========================================
+ Hits         1904     2320     +416     
- Misses       2939     3167     +228     
- Partials       14       16       +2     
Flag Coverage Δ
client 42.15% <ø> (+2.95%) ⬆️
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

LGTM

@rszwajko rszwajko merged commit a2646a5 into konveyor:main Jul 31, 2024
13 checks passed
@sjd78 sjd78 added this to the v0.5.1 milestone Jul 31, 2024
rszwajko added a commit to rszwajko/tackle2-ui that referenced this pull request Aug 1, 2024
Fix regression after: konveyor#1980
Resolves: https://issues.redhat.com/browse/MTA-1390

Initial filter values work best if the table is not persisting state
between reloads (default strategy, component state). If the table uses
session or local storage then any existing filter overwrites the default
value. From the end user perspective the functionality works only on the
first load with a clean browser (no previous state).

Switching to URL filter persistence provides the same functionality and
ensures we have only one source of filters.

Reference-Url:  konveyor#1698

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
sjd78 pushed a commit that referenced this pull request Aug 1, 2024
#2033) (#2038)

Backport-of:  (#2033)
Fix regression after: #1980
Resolves: https://issues.redhat.com/browse/MTA-1390

Initial filter values work best if the table is not persisting state
between reloads (default strategy, component state). If the table uses
session or local storage then any existing filter overwrites the default
value. From the end user perspective the functionality works only on the
first load with a clean browser (no previous state).

Switching to URL filter persistence provides the same functionality and
ensures we have only one source of filters.

Reference-Url:  #1698

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants