You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/12/01 11:49:58 UTC

[GitHub] mik-laj commented on a change in pull request #4201: [AIRFLOW-3360] Make the DAGs search respect other querystring parameters

mik-laj commented on a change in pull request #4201: [AIRFLOW-3360] Make the DAGs search respect other querystring parameters
URL: https://github.com/apache/incubator-airflow/pull/4201#discussion_r238061268
 
 

 ##########
 File path: airflow/www/templates/airflow/dags.html
 ##########
 @@ -233,11 +233,32 @@ <h2>DAGs</h2>
       const DAGS_INDEX = "{{ url_for('admin.index') }}";
       const ENTER_KEY_CODE = 13;
 
+      function createOrAppendToQueryString(parameter, value) {
+        var query_string_parameters = {};
+        if (typeof window.location.search !== "undefined") {
+          window.location.search.substr(1).split('&').forEach(function (query_string_parameter) {
+            query_string_parameter_delimeted = query_string_parameter.split('=');
 
 Review comment:
   The `String.split` method supports the `limit` parameter, which should be used here.
   
   Reference: 
   https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services