Skip to content

Speck setprops fix#241

Closed
shammamah-zz wants to merge 9 commits intomasterfrom
speck-setprops-fix
Closed

Speck setprops fix#241
shammamah-zz wants to merge 9 commits intomasterfrom
speck-setprops-fix

Conversation

@shammamah-zz
Copy link
Contributor

About

  • This is a new component
  • I am adding a feature to an existing component, or improving an existing feature
  • I am closing an issue

Description of changes

Remove all "unprotected" calls to setProps, which is only defined as a function if there is a callback in the Dash app that uses the component as input. Also ensure that view has a full set of parameters at any given time (before, it would be restricted to the dictionary supplied by the user and there would be errors related to not being able to compute the rendering because of missing properties).

Before merging

Shammamah Hossain added 5 commits March 14, 2019 15:21
@shammamah-zz shammamah-zz temporarily deployed to dash-bio-test-pr-241 March 14, 2019 19:30 Inactive
@mkcor
Copy link
Contributor

mkcor commented Mar 14, 2019

I'm on https://dash-bio-test-pr-241.herokuapp.com/dash-bio/speck but I don't know how to test or experience the change: As a user, where can I supply a dictionary? What kind of dictionary?

@shammamah-zz
Copy link
Contributor Author

@mkcor Sorry about that! Basically, the dictionary values are set by the controls in the app (so, things like "atom size", "ambient occlusion", etc.) -- this doesn't really affect the app itself, since I do have callbacks that take the speck component as input (

). (But now that you mention it -- I should try to remove that callback/dcc.Store component and see if it still works.)

Bachibouzouk
Bachibouzouk previously approved these changes Mar 14, 2019
Copy link
Contributor

@Bachibouzouk Bachibouzouk left a comment

Choose a reason for hiding this comment

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

Nice work!
💃

@shammamah-zz shammamah-zz temporarily deployed to dash-bio-test-pr-241 March 14, 2019 20:06 Inactive
@Bachibouzouk Bachibouzouk dismissed their stale review March 14, 2019 20:11

I noticed that the app had troubles which I will describe in the conversation

@mkcor
Copy link
Contributor

mkcor commented Mar 15, 2019

@shammamah ok, right, the end user never passes a dict (explicitly) as an input. Feel free to poke me when the PR is ready for final review!

@mkcor
Copy link
Contributor

mkcor commented Mar 19, 2019

I can't approve as long as there are merge conflicts. I'm happy to resolve them if you let me work on your branch. Let me know.

@shammamah-zz
Copy link
Contributor Author

@mkcor This branch is still in progress! I'll ping you when it's ready :)

@alexcjohnson
Copy link
Collaborator

This fix will become moot in the next dash release (cc @Marc-Andre-Rivet ) plotly/dash-renderer#126

@mkcor
Copy link
Contributor

mkcor commented Mar 20, 2019

Oh, okay!

@shammamah-zz shammamah-zz temporarily deployed to dash-bio-test-pr-241 April 1, 2019 15:02 Inactive
@shammamah-zz shammamah-zz had a problem deploying to dash-bio-test-pr-241 April 1, 2019 17:30 Failure
@shammamah-zz
Copy link
Contributor Author

@mkcor We should get this merged in anyway, since it fixes the issue with view as well -- please approve if you agree!

@mkcor
Copy link
Contributor

mkcor commented Apr 1, 2019

Wait, I'm confused because this PR seems to contain these commits as well: https://github.com/plotly/dash-bio/pull/296/commits
I would be in favour of closing this PR (unmerged) and updating dependency dash-renderer==0.18.0 to the latest version (see @alexcjohnson's comment) and take it from there...

@shammamah-zz
Copy link
Contributor Author

Closing this PR in light of the updates to dash-renderer that will make part of this fix redundant.

@shammamah-zz shammamah-zz deleted the speck-setprops-fix branch April 1, 2019 19:07
@shammamah-zz shammamah-zz mentioned this pull request Apr 1, 2019
3 tasks
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