mehmax opened a new pull request #17239:
URL: https://github.com/apache/airflow/pull/17239


   UI displayed rendered template dicts and lists as a json.dump.
   This will not add any line breaks.
   Especially when handling templated files (e.g. sql) line breaks will make 
the display more beautiful.
   UI will now render each key+value from dicts and each index+value from lists 
seperately as own lines.
   
   ### Example
   ## Dictionaries
   
   # Old
   
![grafik](https://user-images.githubusercontent.com/84371809/127055240-ba61033e-4b27-4c54-9625-9fb5e2cc6466.png)
   # New
   
![grafik](https://user-images.githubusercontent.com/84371809/127054734-cfa01151-5ba6-45d2-96d3-a2ce4715c674.png)
   
   ## Lists
   
   # Old
   
![grafik](https://user-images.githubusercontent.com/84371809/127055318-592c94e9-8fd8-4deb-ada5-1fb114d690db.png)
   # New
   
![grafik](https://user-images.githubusercontent.com/84371809/127054770-f9473ab5-b4cc-4c0e-b889-df3cd897a9fe.png)
   
   
   ## Nested dicts/lists
   
   
   # Old
   
![grafik](https://user-images.githubusercontent.com/84371809/127055741-9d7293f7-7583-415a-a181-0e534e73e97f.png)
   
   # New
   
![grafik](https://user-images.githubusercontent.com/84371809/127053915-e1ca1ca7-3748-4888-8736-c288cb1c6f58.png)
   
   
   ## Mixed
   
   # Old
   
![grafik](https://user-images.githubusercontent.com/84371809/127055537-b199b8d5-6b2a-4471-95c3-5e598812db3f.png)
   
   # New
   
   
![grafik](https://user-images.githubusercontent.com/84371809/127053858-3dd603b3-b3c3-4555-824d-19565800d402.png)
   
   
   
   
   When the value of a list or dict item is e.g a templated file with line 
breaks, they will be added as well (like it is done with variables)
   
   
   
   
   closes: #17032
   
   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of existing issue, reference it using one of the following:
   
   
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to