ashb commented on a change in pull request #6684: [AIRFLOW-6095] Filter dags
returned by task_stats
URL: https://github.com/apache/airflow/pull/6684#discussion_r353145559
##########
File path: airflow/www/templates/airflow/dags.html
##########
@@ -249,10 +249,12 @@ <h2>DAGs</h2>
}
return false;
}
- all_dags = $("[id^=toggle]");
- $.each(all_dags, function(i,v) {
+
+ var encoded_dag_ids = [];
+ $.each($("[id^=toggle]"), function(i,v) {
Review comment:
`.dags input[id^=toggle][dag_id]` is a better selector I think.
Slightly simpler:
```js
$("#dags [id^=toggle-][dag_id]").map(function() {
return encodeURIComponent($(this).attr('dag_id'));
}).get().join()
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services