Skip to content

Commit

Permalink
NAS-130337: Reporting graph inconsistency between data, labels and un…
Browse files Browse the repository at this point in the history
…its (#10412)
  • Loading branch information
AlexKarpov98 authored Aug 8, 2024
1 parent 082ee0c commit 6e6a016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute } from '@angular/router';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { Store } from '@ngrx/store';
import { take } from 'rxjs';
import { debounceTime, take } from 'rxjs';
import {
NetdataDialogComponent,
} from 'app/pages/reports-dashboard/components/reports-global-controls/netdata-dialog/netdata-dialog.component';
Expand Down Expand Up @@ -80,7 +80,7 @@ export class ReportsGlobalControlsComponent implements OnInit {
if (this.activeTab?.value !== ReportType.Disk) {
return;
}
this.form.valueChanges.pipe(untilDestroyed(this)).subscribe((values) => {
this.form.valueChanges.pipe(debounceTime(300), untilDestroyed(this)).subscribe((values) => {
this.diskOptionsChanged.emit({
devices: values.devices,
metrics: values.metrics,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
ChangeDetectorRef,
Component,
ElementRef,
Inject,
OnDestroy,
OnInit,
ViewChild,
Expand All @@ -13,7 +12,6 @@ import { ActivatedRoute } from '@angular/router';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { ReportingGraphName } from 'app/enums/reporting.enum';
import { stringToTitleCase } from 'app/helpers/string-to-title-case';
import { WINDOW } from 'app/helpers/window.helper';
import { Option } from 'app/interfaces/option.interface';
import { ReportTab, ReportType } from 'app/pages/reports-dashboard/interfaces/report-tab.interface';
import { Report } from 'app/pages/reports-dashboard/interfaces/report.interface';
Expand Down Expand Up @@ -48,7 +46,6 @@ export class ReportsDashboardComponent implements OnInit, OnDestroy {
private layoutService: LayoutService,
private reportsService: ReportsService,
private cdr: ChangeDetectorRef,
@Inject(WINDOW) private window: Window,
) {}

ngOnInit(): void {
Expand Down

0 comments on commit 6e6a016

Please sign in to comment.