Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

maximlt
Copy link
Member

@maximlt maximlt commented Sep 10, 2025

Fixes #6687, fixes #6688

HoloViews.linked_selections.fix.mp4

@maximlt maximlt changed the title Fix setting selection_expr programatically fix: setting selection_expr programatically Sep 10, 2025
@hoxbro hoxbro changed the title fix: setting selection_expr programatically fix: setting selection_expr programmatically Sep 10, 2025
Copy link

codecov bot commented Sep 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.03%. Comparing base (31209ce) to head (b2959f2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6689      +/-   ##
==========================================
+ Coverage   89.02%   89.03%   +0.01%     
==========================================
  Files         329      329              
  Lines       70389    70443      +54     
==========================================
+ Hits        62661    62721      +60     
+ Misses       7728     7722       -6     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maximlt maximlt requested a review from hoxbro September 11, 2025 12:03
Copy link
Member

@hoxbro hoxbro left a comment

Choose a reason for hiding this comment

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

Something is missing, e.g., after applying the manual replacement, we no longer get the gray boxes when selecting items.

Screencast.From.2025-09-11.15-03-30.mp4

Comment on lines +398 to +403
try:
inst._selection_override.event(selection_expr=new_selection_expr)
inst._cross_filter_stream.selection_expr = new_selection_expr
finally:
with param.parameterized.discard_events(inst):
inst.show_regions = True
Copy link
Member

Choose a reason for hiding this comment

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

Not sure why this has been indented and why the try/finally is needed.

Should there be a special case for inst.show_regions = True when new_selection_expr is None?

@@ -175,6 +175,18 @@ def test_layout_selection_points_table(self):
]
)

def test_select_expr_show_regions(self):
Copy link
Member

Choose a reason for hiding this comment

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

I think we need a UI test for this change.

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.

Setting selection_expr to None has no effect Selection region no longer displayed after setting selection_expr
2 participants