Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Issue 745 - Rename async modules #762

Merged
merged 7 commits into from
Feb 27, 2020
Merged

Issue 745 - Rename async modules #762

merged 7 commits into from
Feb 27, 2020

Conversation

Marc-Andre-Rivet
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet commented Feb 27, 2020

Closes #745

'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/async~graph~plotlyjs.js'
'/dash_core_components/async-plotlyjs.js'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pretty bad error here and below with serve_locally=False

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yikes, nice find! Is there anything we can do to test this? I'm thinking like a standard test we can put in dash.testing and then run in all our repos with appropriate parameters, looping over _js_dist and ensuring external_url matches a certain pattern vs relative_package_path?

Copy link
Collaborator

Choose a reason for hiding this comment

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

a followup issue would be fine for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow up in https://github.com/plotly/dash-core/issues/171 - providing at least two approaches: pattern matching as suggested and something more robust / matching e2e usage but requiring more effort.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@Marc-Andre-Rivet Marc-Andre-Rivet merged commit 8bb6a58 into dev Feb 27, 2020
@Marc-Andre-Rivet Marc-Andre-Rivet deleted the 745-async-tilde branch February 27, 2020 17:33
@ManojSN
Copy link

ManojSN commented Feb 27, 2020

Team, Thank you for changing the ~ to a -. The use @ sign in the URLS is may also not be considered safe and be blocked.

Would it be possible to alter that too?

'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/dash_core_components.min.js'
).format(version)

@alexcjohnson
Copy link
Collaborator

alexcjohnson commented Feb 27, 2020

The use @ sign in the URLS is may also not be considered safe and be blocked.

That's just the way https://unpkg.com/ works, we have no control over that. But your app will only access those URLs if you explicitly set serve_locally=False

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename async modules
3 participants