tiborm commented on a change in pull request #1514: METRON-2190: [UI] Alerts
UI: Indicating loading and preventing parallel requests
URL: https://github.com/apache/metron/pull/1514#discussion_r327019948
##########
File path: metron-interface/metron-alerts/src/app/service/search.service.ts
##########
@@ -79,21 +76,12 @@ export class SearchService {
catchError(HttpUtil.handleError));
}
- public pollSearch(searchRequest: SearchRequest): Observable<SearchResponse> {
- return this.ngZone.runOutsideAngular(() => {
- return this.ngZone.run(() => {
- return observableInterval(this.interval * 1000).pipe(switchMap(() => {
- return this.search(searchRequest);
- }));
- });
- });
- }
-
Review comment:
polling interval logic was refactored to auto-polling.service.
----------------------------------------------------------------
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