Skip to content

Commit

Permalink
Update task execution list
Browse files Browse the repository at this point in the history
  • Loading branch information
oodamien committed Apr 17, 2024
1 parent 21825fa commit ba1c95f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {AppsModule} from './apps/apps.module';
import {UrlUtilities} from './url-utilities.service';
import {TaskService} from './shared/api/task.service';
import {JobService} from './shared/api/job.service';
import {DevModule} from './dev/dev.module';

@NgModule({
declarations: [AppComponent],
Expand All @@ -44,7 +45,7 @@ import {JobService} from './shared/api/job.service';
FormsModule,
LayoutModule,
// DashboardModule,
// DevModule,
DevModule,
StreamsModule,
TasksJobsModule,
ManageModule,
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/shared/api/task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class TaskService {
params = params.append('sort', `${sort},${order}`);
}
return this.httpClient
.get<any>(UrlUtilities.calculateBaseApiUrl() + 'tasks/executions', {headers, params})
.get<any>(UrlUtilities.calculateBaseApiUrl() + 'tasks/thinexecutions', {headers, params})
.pipe(map(TaskExecutionPage.parse), catchError(ErrorUtils.catchError));
}

Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/shared/model/task-execution.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export class TaskExecution {
export class TaskExecutionPage extends Page<TaskExecution> {
static parse(input: any): Page<TaskExecution> {
const page = Page.fromJSON<TaskExecution>(input);
if (input && input._embedded && input._embedded.taskExecutionResourceList) {
page.items = input._embedded.taskExecutionResourceList.map(TaskExecution.parse);
if (input && input._embedded && input._embedded.taskExecutionThinResourceList) {
page.items = input._embedded.taskExecutionThinResourceList.map(TaskExecution.parse);
}
return page;
}
Expand Down

0 comments on commit ba1c95f

Please sign in to comment.