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(ClusterRules): Open rows memorization #251

Merged
merged 6 commits into from
May 9, 2022

Conversation

Fewwy
Copy link
Collaborator

@Fewwy Fewwy commented May 3, 2022

Fixes https://issues.redhat.com/browse/CCXDEV-7900.

Recording the opened rows for the single cluster page
Fixed the test

The expand collapse behavior:
1)When the user opens the page for the first time - the first row is expanded
2)If he clicks sort after that, only the rows that were expanded will stay that way
if he expands several different rows\all rows before that -> only these rows will stay expanded

@Fewwy Fewwy self-assigned this May 3, 2022
@Fewwy Fewwy added the enhancement New feature or request label May 3, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #251 (8b54d0d) into master (ab4f7e7) will decrease coverage by 2.27%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #251      +/-   ##
==========================================
- Coverage   83.00%   80.73%   -2.28%     
==========================================
  Files          24       24              
  Lines         924      929       +5     
  Branches      331      336       +5     
==========================================
- Hits          767      750      -17     
- Misses        157      179      +22     
Impacted Files Coverage Δ
src/Components/ClusterRules/ClusterRules.js 68.07% <75.00%> (-12.68%) ⬇️
src/Components/Common/Tables.js 82.90% <0.00%> (-2.57%) ⬇️
src/Components/RecsListTable/RecsListTable.js 77.22% <0.00%> (+1.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab4f7e7...8b54d0d. Read the comment docs.

@gkarat
Copy link
Collaborator

gkarat commented May 3, 2022

Copy link
Collaborator

@gkarat gkarat left a comment

Choose a reason for hiding this comment

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

This does fixes the bug, however breaks other things, see the video:

vokoscreenNG-2022-05-03_14-53-51.mp4

src/Components/ClusterRules/ClusterRules.spec.ct.js Outdated Show resolved Hide resolved
src/Components/ClusterRules/ClusterRules.spec.ct.js Outdated Show resolved Hide resolved
src/Components/ClusterRules/ClusterRules.js Outdated Show resolved Hide resolved
@Fewwy Fewwy changed the title enh(ClusterRules): Open rows memorization fix(ClusterRules): Open rows memorization May 3, 2022
@gkarat gkarat marked this pull request as draft May 3, 2022 15:28
There are some bugs still present
@Fewwy Fewwy force-pushed the ccx7900-cluster-list-sorting branch from 6d6c4f7 to 167df42 Compare May 5, 2022 09:55
Rewrote the test
@Fewwy Fewwy force-pushed the ccx7900-cluster-list-sorting branch from 167df42 to 80b24ee Compare May 5, 2022 10:00
@gkarat gkarat marked this pull request as ready for review May 5, 2022 13:23
Implemented set
@gkarat gkarat self-requested a review May 6, 2022 10:25
@gkarat gkarat merged commit 83f754e into RedHatInsights:master May 9, 2022
gkarat pushed a commit that referenced this pull request May 9, 2022
## [1.3.10](v1.3.9...v1.3.10) (2022-05-09)

### Bug Fixes

* **ClusterRules:** Open rows memorization  ([#251](#251)) ([83f754e](83f754e))
@gkarat
Copy link
Collaborator

gkarat commented May 9, 2022

🎉 This PR is included in version 1.3.10 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@gkarat gkarat added the released label May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants