XD-DENG commented on a change in pull request #8742:
URL: https://github.com/apache/airflow/pull/8742#discussion_r421407905
##########
File path: airflow/www/views.py
##########
@@ -337,6 +337,9 @@ def get_int_arg(value, default=0):
num_of_pages = int(math.ceil(num_of_all_dags / float(dags_per_page)))
+ state_color_mapping = State.state_color.copy()
+ state_color_mapping["null"] = state_color_mapping.pop(None)
Review comment:
Python already handles it for us:
```python
import json
print(json.dumps({None: 123}))
```
gives us `{"null": 123}`.
The issue is the `sort_keys` argument when we run `json.dumps()`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]