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 2019/07/03 20:52:29 UTC

[GitHub] [airflow] Doncode commented on a change in pull request #5503: [AIRFLOW-3360] Make the DAGs search respect other querystring parameters

Doncode commented on a change in pull request #5503: [AIRFLOW-3360] Make the DAGs search respect other querystring parameters
URL: https://github.com/apache/airflow/pull/5503#discussion_r300149383
 
 

 ##########
 File path: airflow/www/templates/airflow/dags.html
 ##########
 @@ -218,8 +218,9 @@ <h2>DAGs</h2>
       $('#dag_query').on('keypress', function (e) {
         // check for key press on ENTER (key code 13) to trigger the search
         if (e.which === ENTER_KEY_CODE) {
-          search_query = $('#dag_query').val();
-          window.location = DAGS_INDEX + "?search="+ encodeURI(search_query);
+          var query = new URLSearchParams(window.location.search);
 
 Review comment:
   @ashb please review

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services