Skip to content

Commit a922e19

Browse files
authored
frontend: [SC-2632] Save Executions grid state (#2991)
Why Data Job Executions list (in Data Job Executions page) pagination behaviour is unpredictable whenever the job is running. What Save and reuse executions grid state How was this tested Ran e2e tests locally What type of change is this Bug fix
1 parent 116b1f9 commit a922e19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/frontend/data-pipelines/gui/projects/data-pipelines/src/lib/components/data-job/pages/executions/data-job-executions-grid/data-job-executions-grid.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export class DataJobExecutionsGridComponent implements OnChanges, OnInit, OnDest
126126
jobDeploymentModalData: DataJobDeployment;
127127

128128
paginatedJobExecutions: GridDataJobExecution[] = [];
129+
gridState: ClrDatagridStateInterface;
129130

130131
paginationPageNumber: number;
131132
paginationPageSize: number;
@@ -183,6 +184,7 @@ export class DataJobExecutionsGridComponent implements OnChanges, OnInit, OnDest
183184
}
184185

185186
let skipCriteriaAndComparatorEmitterDebouncing = false;
187+
this.gridState = state;
186188

187189
if (this.isInitialCriteriasEmit) {
188190
this.isInitialCriteriasEmit = false;
@@ -208,7 +210,7 @@ export class DataJobExecutionsGridComponent implements OnChanges, OnInit, OnDest
208210
!CollectionsUtil.isEqual(changes['jobExecutions'].previousValue, changes['jobExecutions'].currentValue)
209211
) {
210212
this.paginationTotalItems = this.jobExecutions.length;
211-
this._paginateExecutions(null);
213+
this._paginateExecutions(this.gridState);
212214
}
213215
}
214216

0 commit comments

Comments
 (0)