-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Fix tree view if config contains " #9250
Conversation
If you run DAG with `{"\"": ""}` configuration tree view will be broken: ``` tree:1 Uncaught SyntaxError: Unexpected string in JSON at position 806 at JSON.parse (<anonymous>) at tree?dag_id=hightlight_test&num_runs=25:1190 ``` JSON.parse is given incorrectly escaped json string.
Have you checked whether the problem also occurs elsewhere? Similar problems like to be repeated. |
@mik-laj I've checked the code by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're holding off merging anything until we've fixed tests though. Should be done soon
Yeah, this used to be just |
It seems that this change has broken the tests on the master branch. |
@mik-laj tests were green on PR... Do you want me to fix tests or you can do it? |
It was green, but it was this build that ended three days ago. I am already working on it. |
The problem with the CI in this build was that it only tested the static tests. As no ".py" file was changed, CI skipped rest of the unit test. However on Master we run all the tests, hence Master failed with below error:
|
I finished change: Here is PR: #9307 |
If you run DAG with `{"\"": ""}` configuration tree view will be broken: ``` tree:1 Uncaught SyntaxError: Unexpected string in JSON at position 806 at JSON.parse (<anonymous>) at tree?dag_id=hightlight_test&num_runs=25:1190 ``` JSON.parse is given incorrectly escaped json string. (cherry-picked from a8cd23c)
If you run DAG with `{"\"": ""}` configuration tree view will be broken: ``` tree:1 Uncaught SyntaxError: Unexpected string in JSON at position 806 at JSON.parse (<anonymous>) at tree?dag_id=hightlight_test&num_runs=25:1190 ``` JSON.parse is given incorrectly escaped json string.
If you run DAG with `{"\"": ""}` configuration tree view will be broken: ``` tree:1 Uncaught SyntaxError: Unexpected string in JSON at position 806 at JSON.parse (<anonymous>) at tree?dag_id=hightlight_test&num_runs=25:1190 ``` JSON.parse is given incorrectly escaped json string. (cherry-picked from a8cd23c)
If you run DAG with `{"\"": ""}` configuration tree view will be broken: ``` tree:1 Uncaught SyntaxError: Unexpected string in JSON at position 806 at JSON.parse (<anonymous>) at tree?dag_id=hightlight_test&num_runs=25:1190 ``` JSON.parse is given incorrectly escaped json string. (cherry-picked from a8cd23c)
If you run DAG with `{"\"": ""}` configuration tree view will be broken: ``` tree:1 Uncaught SyntaxError: Unexpected string in JSON at position 806 at JSON.parse (<anonymous>) at tree?dag_id=hightlight_test&num_runs=25:1190 ``` JSON.parse is given incorrectly escaped json string. (cherry-picked from a8cd23c)
(cherry-picked from 2c18a3f)
#9251
If you run DAG with
{"\"": ""}
configuration tree view will be broken:JSON.parse is given incorrectly escaped json string.
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.