AAE-33589 Get task variables when preferences are updated (#10813)

This commit is contained in:
Ehsan Rezaei 2025-04-23 16:58:28 +02:00 committed by GitHub
parent 9575fe633b
commit f34bbf59be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -230,6 +230,9 @@ describe('TaskListCloudComponent', () => {
done(); done();
}); });
component.ngAfterContentInit();
spyOn(component, 'createDatatableSchema');
component.appName = 'fake-app-name';
component.reload(); component.reload();
}); });
@ -375,6 +378,9 @@ describe('TaskListCloudComponent', () => {
done(); done();
}); });
component.ngAfterContentInit();
spyOn(component, 'createDatatableSchema');
component.appName = 'fake-app-name';
component.reload(); component.reload();
}); });
@ -390,7 +396,7 @@ describe('TaskListCloudComponent', () => {
fixture.detectChanges(); fixture.detectChanges();
expect(fetchTaskListSpy).toHaveBeenCalledTimes(1); expect(fetchTaskListSpy).toHaveBeenCalledTimes(2);
}); });
describe('component changes', () => { describe('component changes', () => {
beforeEach(() => { beforeEach(() => {

View File

@ -280,10 +280,10 @@ export class TaskListCloudComponent extends BaseTaskListCloudComponent<ProcessLi
) { ) {
super(appConfigService, taskCloudService, userPreferences, PRESET_KEY, cloudPreferenceService); super(appConfigService, taskCloudService, userPreferences, PRESET_KEY, cloudPreferenceService);
combineLatest([this.isColumnSchemaCreated$, this.fetchProcessesTrigger$]) combineLatest([this.isLoadingPreferences$, this.isColumnSchemaCreated$, this.fetchProcessesTrigger$])
.pipe( .pipe(
tap(() => this.isReloadingSubject$.next(true)), tap(() => this.isReloadingSubject$.next(true)),
filter((isColumnSchemaCreated) => !!isColumnSchemaCreated), filter(([isLoadingPreferences, isColumnSchemaCreated]) => !isLoadingPreferences && !!isColumnSchemaCreated),
switchMap(() => { switchMap(() => {
if (this.searchApiMethod === 'POST') { if (this.searchApiMethod === 'POST') {
const requestNode = this.createTaskListRequestNode(); const requestNode = this.createTaskListRequestNode();