-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] Fix storing and retrieving selection, and unconditional auto commit #3957
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3957 +/- ##
==========================================
+ Coverage 85.42% 85.47% +0.05%
==========================================
Files 385 385
Lines 68873 69007 +134
==========================================
+ Hits 58832 58986 +154
+ Misses 10041 10021 -20 |
21e7f57
to
6dddb3b
Compare
2dc4f0e
to
9145e74
Compare
9145e74
to
5afd276
Compare
On Travis on Python 3.7 this |
Orange/widgets/visualize/owmosaic.py
Outdated
@@ -442,6 +443,7 @@ def set_data(self, data): | |||
|
|||
self.init_combos(self.data) | |||
self.openContext(self.data) | |||
self.__pending_selection = self.selection |
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.
Shouldn't this be a 'schema only' setting?
@@ -76,6 +76,8 @@ class Outputs: | |||
add_scores = settings.Setting(False) | |||
auto_commit = settings.Setting(True) | |||
|
|||
pending_selection = settings.ContextSetting(None, schema_only=True) |
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.
I think we have not handled 'schema only' context settings, so setting the flag to True has no effect.
1dc4880
to
fc22065
Compare
self.set_color_data() | ||
self.reset_graph() | ||
self.update_graph() | ||
self.send_selection() |
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.
@VesnaT, copying from projection widget indeed helped (and you were right about not using pack_settings
, I should have listened more carefully and be less self confident :)).
However, every widget has also its own tricks, so you can't just copy. In this case, it was important to call send_selection
after update_graph
.
fc22065
to
278caca
Compare
Fixes #3762. Fixes #3763.
Following @markotoplak suggestion, instance selections are schema-only because data is not a part of the context.