-
Notifications
You must be signed in to change notification settings - Fork 890
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 (TableVis): Properly filter table columns when sending to filter … #5619
Fix (TableVis): Properly filter table columns when sending to filter … #5619
Conversation
…event handler Signed-off-by: Josh Romero <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5619 +/- ##
=======================================
Coverage 66.97% 66.97%
=======================================
Files 3301 3301
Lines 63437 63439 +2
Branches 10107 10107
=======================================
+ Hits 42485 42487 +2
- Misses 18499 18503 +4
+ Partials 2453 2449 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
do we want to add a test in the fun tst repo?
Signed-off-by: Josh Romero <[email protected]>
Yeah, I think the regression test would best belong there. But I don't think there will be time to do that for 2.12. |
Signed-off-by: Ashwin P Chandran <[email protected]>
#5619) * Fix (TableVis): Properly filter table columns when sending to filter event handler Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> Signed-off-by: Ashwin P Chandran <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 3e22939) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
#5619) (#5823) * Fix (TableVis): Properly filter table columns when sending to filter event handler Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> Signed-off-by: Ashwin P Chandran <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 3e22939) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#5619) (#5823) * Fix (TableVis): Properly filter table columns when sending to filter event handler Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> Signed-off-by: Ashwin P Chandran <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 3e22939) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit a237e52) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#5619) * Fix (TableVis): Properly filter table columns when sending to filter event handler Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> Signed-off-by: Ashwin P Chandran <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]> (cherry picked from commit 3e22939) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
#5619) (#5823) (#5829) * Fix (TableVis): Properly filter table columns when sending to filter event handler * add changelog --------- (cherry picked from commit 3e22939) # Conflicts: # CHANGELOG.md (cherry picked from commit a237e52) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.11 2.11
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.11
# Create a new branch
git switch --create backport/backport-5619-to-2.11
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 3e2293957c2bca6b17029b238ba077f86236b87d
# Push it to GitHub
git push --set-upstream origin backport/backport-5619-to-2.11
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.11 Then, create a pull request where the |
opensearch-project#5619) * Fix (TableVis): Properly filter table columns when sending to filter event handler Signed-off-by: Josh Romero <[email protected]> * add changelog Signed-off-by: Josh Romero <[email protected]> --------- Signed-off-by: Josh Romero <[email protected]> Signed-off-by: Ashwin P Chandran <[email protected]> Co-authored-by: Ashwin P Chandran <[email protected]>
Description
…event handler
This ensures that the column and row indices match the table cell being renderered.
Note that this is a quick fix - long term, we also want a regression test (to validate that filter actions apply the right data), as well as some refactoring of this handler; it seems a little sill to pass both the entire table and column/row indices rather than the direct reference or even value.
Issues Resolved
fixes #5612
Screenshot
Testing the changes
Can validate via the steps in the linked issue.
Check List
yarn test:jest
yarn test:jest_integration