-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixed select all behavior across Data views #7200
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
Conversation
I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: eca0c68 I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: e5be44a I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: ee25d24 I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: 9698311 I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: 42b1c24 I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: 557c5f3 I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: 3ab027a I, Matt Glissmann <mdglissmann@gmail.com>, hereby add my Signed-off-by to this commit: ddf4052 Signed-off-by: Matt Glissmann <mdglissmann@gmail.com>
Signed-off-by: Matt Glissmann <mdglissmann@gmail.com>
No. You are correct, we would expect the selected count to equal the total records. |
@britt6612 - Actually, I believe it is behaving correctly. The story had multiple items disabled which is why when 'Amos-17' was selected and disabled, 'CRS-21' was still just disabled. ('CRS-22' doesn't actually exist in the data set).
I'm going to remove the 'disabled' from the story after you complete your review. It's helpful for QA but not for the story itself. |
your correct the |
Signed-off-by: Matt Glissmann <mdglissmann@gmail.com>
I, Taylor Seamans <taylor.seamans@yahoo.com>, hereby add my Signed-off-by to this commit: 835893f Signed-off-by: Taylor Seamans <taylor.seamans@yahoo.com> Signed-off-by: Matt Glissmann <mdglissmann@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What does this PR do?
Closes #7199 by persisting selected records across various Data views.
Where should the reviewer start?
DataTable/Header.js
What testing has been done on this PR?
Using the story Data/OnSelect
Select all & unselect all across a variety of views, altering current page, filters, search, etc.
How should this be manually tested?
Using the story Data/OnSelect
Do Jest tests follow these best practices?
screen
is used for querying.asFragment()
is used for snapshot testing.Any background context you want to provide?
What are the relevant issues?
#7199
Screenshots (if appropriate)
Do the grommet docs need to be updated?
No.
Should this PR be mentioned in the release notes?
Yes.
Is this change backwards compatible or is it a breaking change?
Backwards compatible.