Fix tree view if config contains "#9250
Fix tree view if config contains "#9250ashb merged 1 commit intoapache:masterfrom Khrol:tree_view_fix
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 |
ashb
left a comment
There was a problem hiding this comment.
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.
(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.