-
Notifications
You must be signed in to change notification settings - Fork 130
Parsing Dash initial_arguments broken in v1.6.1 #328
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
Comments
@gabegrand not that I can recall! Sorry for the regression! |
@sdementen No worries! Let us know if you're able to work the fix into the next release. Thanks! |
- converting initial_arguments given as json string into a dict in `store_initial_arguments` - add in the test of the template tag a call to the _dash-layout to ensure the initial_arguments are parsed properly
hi @gabegrand, |
I've confirmed that downgrading to v1.6.0 does fix the error! |
Sorry, I meant "can you check if the PR fixes your issue ?"
…________________________________
From: Gabe Grand ***@***.***>
Sent: Tuesday, March 16, 2021 6:12:20 PM
To: GibbsConsulting/django-plotly-dash ***@***.***>
Cc: DE MENTEN Sébastien (Electrabel) ***@***.***>; Mention ***@***.***>
Subject:
|
Looks like merging the PR automatically closed the issue. The fix is now released as 1.6.2 - please reopen this issue if it doesn't address it. |
@GibbsConsulting @sdementen thanks very much for the prompt fix! |
and did the fix work?
…On Thu, Mar 18, 2021 at 5:18 PM Gabe Grand ***@***.***> wrote:
@GibbsConsulting <https://github.com/GibbsConsulting> @sdementen
<https://github.com/sdementen> thanks very much for the prompt fix!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ6S5WIRJV3ZVX5325KKC3TEIRVTANCNFSM4ZHCGSNQ>
.
|
Yes, the fix did work :) |
I've identified a regression in release 1.6.1 that causes a bug when parsing
initial_arguments
as a serialized string.We have an app that uses
initial_arguments
as follows. Thedash_initial_arguments
is a string of serialized JSON that is generated viaviews.py
and passed to the Django template viacontext
.Prior to v1.6.1, this worked as intended. However, there was a change to dash_wrapper.py in v1.6.1 that removed the JSON deserialization logic. Specifically, this change occurred in cddf575.
initial_arguments
is still a string, but since the parsing has been removed, this now results in the following error:@sdementen or @sebastiendementen do you have any context for why this parsing logic was removed?
The text was updated successfully, but these errors were encountered: