bbovenzi commented on a change in pull request #14360:
URL: https://github.com/apache/airflow/pull/14360#discussion_r583943203
##########
File path: airflow/www/templates/airflow/gantt.html
##########
@@ -76,20 +76,11 @@
{{ super() }}
<script src="{{ url_for_asset('d3.min.js') }}"></script>
<script src="{{ url_for_asset('d3-tip.js') }}"></script>
- <script src="{{ url_for_asset('ganttChartD3v2.js') }}"></script>
- <script src="{{ url_for_asset('taskInstances.js') }}"></script>
+ <script src="{{ url_for_asset('gantt.js') }}"></script>
<script>
- $( document ).ready(function() {
- data = {{ data |tojson }};
- var gantt = d3.gantt()
- .taskTypes(data.taskNames)
- .height(data.height)
- .selector('.gantt')
- .tickFormat("%H:%M:%S");
- gantt(data.tasks);
- $('body').on('airflow.timezone-change', () => {
- gantt.redraw(data.tasks);
- });
- });
+ // Loading data via <meta> wasn't loading extra_links in a task
+ const data = JSON.parse('{{ data|tojson }}');
Review comment:
@ryanahamilton Let me know if this is ok.
----------------------------------------------------------------
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]