sardell commented on a change in pull request #1477: METRON-2199: [UI] Add 
ability to turn off query building in Alerts UI search input
URL: https://github.com/apache/metron/pull/1477#discussion_r314347662
 
 

 ##########
 File path: 
metron-interface/metron-alerts/src/app/alerts/alerts-list/alerts-list.component.ts
 ##########
 @@ -477,12 +499,17 @@ export class AlertsListComponent implements OnInit, 
OnDestroy {
     this.router.navigateByUrl('/alerts-list(dialog:save-search)');
   }
 
-  tryStartPolling() {
-    if (!this.isRefreshPaused) {
+  tryStartPolling(manualSearch?: SearchRequest) {
+    if (!this.isRefreshPaused && !manualSearch) {
       this.tryStopPolling();
       this.refreshTimer = 
this.searchService.pollSearch(this.queryBuilder.searchRequest).subscribe(results
 => {
         this.setData(results);
       });
+    } else if (!this.isRefreshPaused && manualSearch) {
 
 Review comment:
   If polling and the manual query is enabled, we should be using the query 
provided in the input by the user. 

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


With regards,
Apache Git Services

Reply via email to