[AAE-27160] Fix the structure of data returned from service-tasks API (#10711)

This commit is contained in:
Stephen Donnell 2025-03-14 14:22:24 -05:00 committed by GitHub
parent 5912423f96
commit d5bd97e3d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 34 additions and 33 deletions

View File

@ -230,7 +230,7 @@ describe('ServiceTaskListCloudComponent', () => {
describe('component changes', () => {
beforeEach(() => {
component.rows = fakeServiceTask.list.entries;
component.rows = fakeServiceTask.list.entries.map((task) => task.entry);
fixture.detectChanges();
});

View File

@ -87,7 +87,7 @@ export class ServiceTaskListCloudComponent extends BaseTaskListCloudComponent {
.pipe(takeUntilDestroyed(this.destroyRef))
.subscribe(
([tasks]) => {
this.rows = tasks.list.entries;
this.rows = tasks.list.entries.map((task) => task.entry);
this.success.emit(tasks);
this.pagination.next(tasks.list.pagination);
this.isReloadingSubject$.next(false);

View File

@ -51,6 +51,7 @@ export const fakeServiceTask = {
list: {
entries: [
{
entry: {
activityType: 'serviceTask',
activityName: 'serviceTaskName',
appName: 'simpleapp',
@ -68,6 +69,7 @@ export const fakeServiceTask = {
startedDate: '2020-09-22T16:03:37.444+0000',
status: 'COMPLETED'
}
}
],
pagination: {
skipCount: 0,
@ -79,8 +81,7 @@ export const fakeServiceTask = {
}
};
export const fakeCustomSchema =
[
export const fakeCustomSchema = [
new ObjectDataColumn<ProcessListDataColumnCustomData>({
key: 'fakeName',
type: 'text',