Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Issue 745 - Rename async modules#762

Merged
Marc-Andre-Rivet merged 7 commits intodevfrom
745-async-tilde
Feb 27, 2020
Merged

Issue 745 - Rename async modules#762
Marc-Andre-Rivet merged 7 commits intodevfrom
745-async-tilde

Conversation

@Marc-Andre-Rivet
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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