-
-
Notifications
You must be signed in to change notification settings - Fork 391
Fix SelectFromList retrieving behaviour #2806
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
base: develop
Are you sure you want to change the base?
Conversation
…ntexts (not only filtered or currently displayed group)
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.
PR Summary:
Fixes multiselect bug in SelectFromList where only selections from the currently active group were returned, losing selections from other groups. Adds _get_all_ctx()
helper method and modifies _get_options()
to use it instead of _get_active_ctx()
in multiselect mode.
Review Summary:
The fix correctly addresses the reported issue and the implementation is technically sound. However, this introduces a breaking change that contradicts explicit maintainer guidance from issue #2286, where @sanzoghenzo recommended implementing this via an optional parameter to maintain backward compatibility. The current approach changes default behavior for existing users.
Follow-up suggestions:
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.
Devlo misunderstood things a little, here's my two cents...
@jmcouffin should we merge this ? |
@MohamedAsli If you resolved the latest comment from Andrea, yes |
Sorry for the late reply, I got sidetracked, then forgot about the remaining modification |
My focus on pythyon 3.10+ collides with pyRevit 😅 We can ignore my last comment and proceed with the merge! |
Your comment came in just as I pushed my commit :) |
Description
Fixes multiselect bug in SelectFromList where only selections from the currently active group were returned, losing selections from other groups.
This behavior seems unintended, as there's no logical reason for selections to be lost when switching between groups.
What I've changed:
No regressions detected as far as I tested
Checklist
Related Issues
#2286