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

Change _validate_layout to accept functions that return layouts. #336

Merged
merged 7 commits into from
Aug 26, 2018

Conversation

rmarren1
Copy link
Contributor

Fix #334

@rmarren1 rmarren1 requested a review from T4rk1n August 15, 2018 00:42
Copy link
Contributor

@T4rk1n T4rk1n left a comment

Choose a reason for hiding this comment

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

The test looks good, but I would use self._layout_value() to stay dry.

layout_id = getattr(self.layout, 'id', None)

component_ids = {layout_id} if layout_id else set()
for component in self.layout.traverse():
for component in to_validate.traverse():
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use self._layout_value() ? it basically does the same check.

@@ -12,7 +12,7 @@
import time

from dash.dependencies import Input, Output
from dash.exceptions import PreventUpdate
from dash.exceptions import PreventUpdate, NoLayoutException
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see NoLayoutException used anywhere.

@rmarren1
Copy link
Contributor Author

Fixed those, I'll rebase and see if the new CI passes

Copy link
Contributor

@T4rk1n T4rk1n left a comment

Choose a reason for hiding this comment

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

💃

@chriddyp
Copy link
Member

@rmarren1
Copy link
Contributor Author

^ Yes it should.

Can someone check out whats up with Percy, those tests worked out before bumping changelog and version

@rmarren1
Copy link
Contributor Author

Okay, it looks like plotly/dash-core-components#280 and the release of dash-core-components==0.28.0 resulted in some changes in percy. I'll release this since it is working with dash-core-components==0.27.2.

Can someone check to make sure those are okay? I do not currently have permissions to view

@rmarren1 rmarren1 merged commit 8d1c9ce into plotly:master Aug 26, 2018
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.

None yet

3 participants