Skip to content
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

[ENH] Save painted data to schema #1452

Merged
merged 3 commits into from
Jul 13, 2016

Conversation

astaric
Copy link
Member

@astaric astaric commented Jul 13, 2016

Introduce a concept of schema only setting - a setting that does not update its defaults, but is still saved with schema.

Use schema only setting to store painted points in PaintData widget.

Fixes #1451

@codecov-io
Copy link

codecov-io commented Jul 13, 2016

Current coverage is 87.91%

Merging #1452 into master will not change coverage

@@             master      #1452   diff @@
==========================================
  Files            77         77          
  Lines          7582       7582          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           6666       6666          
  Misses          916        916          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by 7a6c034...48a47d6

@BlazZupan
Copy link
Contributor

Works great, thanks! Tiny bug: paint the data, set Send to Send Automatically, connect scatter plot to Paint Data, save the workflow. Open the saved worflow, the data is in Paint Data, but although Send Automatically is on the data has not been sent out from the widget (scatter plot is empty).

@BlazZupan
Copy link
Contributor

Perhaps while fixing the bug above, there is another one somehow related: after Undo, this widget does not commit the data when Send Automatically is on.

Schema_only settings are saved in schema, but do not change their
default values, so new widget always start with the same (empty) default
value.
Remove invalidate in newtool.editingFinished to avoid sending the data
twice.
@BlazZupan BlazZupan merged commit d0d9b84 into biolab:master Jul 13, 2016
@astaric astaric deleted the schema-only-settings branch September 8, 2017 08:36
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.

4 participants