You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 0.23.1 dash will try to set encrypted_* as a default (#276), which gives this error.
We can either:
Change encrypted_* to data-* in dash-flow-example
Change encrypted_* to encrypted-* in dash-flow-example and add encrypted-* as a valid wildcard attribute in dash
Remove the notion of valid wildcard attributes in dash, and accept any string of the form '<string>-*' as a wildcard attribute, or even remove the - and accept '<string>*'.
@nicolaskruchten@chriddyp which solution is sufficient for dash-flow-example, I can make a PR for any of the three, just not sure the significance of encrypted_* and how flexible it is.
I'll also see where we can throw a better error message so this issue doesn't come up in the future.
Remove the notion of valid wildcard attributes in dash, and accept any string of the form '-' as a wildcard attribute, or even remove the - and accept ''.
This seems reasonable to me. I think that this is how I thought things worked anyway. I don't think that this has any implications besides for Python validation.
I'd like to think about this for a couple of more days just to make sure that there aren't any other long term implications of this.
The original use case for wildcards was only to add functionality for the data-* and aria-* attributes for basic HTML elements.
I don't see any technical reason for limiting wildcards, but I also can't really think of a use case where wildcard attributes are necessary.
For example, if you re-implemented a HTML component you could just use data = {attr1: 'value1', ...} and aria = {attr1: 'value1', ...} javascript objects. It seems wildcards only exist in HTML because there was no syntax to represent a map/dict/object, but we have that already in Dash.
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson
Activity
rmarren1 commentedon Aug 7, 2018
encrypted_*is currently not a valid wildcard attribute and would not get parsed out here:dash/dash/development/base_component.py
Lines 530 to 548 in 1f27bac
Dash thinks
encrypted_*is a normal property and prior to 0.23.1,dashwould only complain if you actually tried to set this wildcard attribute here:https://github.com/plotly/dash-flow-example/blob/81e218e7254ba8c444a53f4c2e477fa8e8af7310/usage.py#L11-L19
Since 0.23.1 dash will try to set
encrypted_*as a default (#276), which gives this error.We can either:
encrypted_*todata-*indash-flow-exampleencrypted_*toencrypted-*indash-flow-exampleand addencrypted-*as a valid wildcard attribute indashdash, and accept any string of the form '<string>-*' as a wildcard attribute, or even remove the-and accept '<string>*'.@nicolaskruchten @chriddyp which solution is sufficient for
dash-flow-example, I can make a PR for any of the three, just not sure the significance ofencrypted_*and how flexible it is.I'll also see where we can throw a better error message so this issue doesn't come up in the future.
chriddyp commentedon Aug 7, 2018
This seems reasonable to me. I think that this is how I thought things worked anyway. I don't think that this has any implications besides for Python validation.
I'd like to think about this for a couple of more days just to make sure that there aren't any other long term implications of this.
cc @plotly/dash as well
rmarren1 commentedon Aug 7, 2018
The original use case for wildcards was only to add functionality for the
data-*andaria-*attributes for basic HTML elements.I don't see any technical reason for limiting wildcards, but I also can't really think of a use case where wildcard attributes are necessary.
For example, if you re-implemented a HTML component you could just use
data = {attr1: 'value1', ...}andaria = {attr1: 'value1', ...}javascript objects. It seems wildcards only exist in HTML because there was no syntax to represent a map/dict/object, but we have that already in Dash.gvwilson commentedon Jul 17, 2024
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson