Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update task execution list #1997

Closed
wants to merge 9 commits into from
Closed

Update task execution list #1997

wants to merge 9 commits into from

Conversation

claudiahub
Copy link
Contributor

Resolves #1996

@claudiahub claudiahub self-assigned this Apr 9, 2024
@oodamien oodamien marked this pull request as ready for review April 10, 2024 07:40
Copy link
Contributor

@corneil corneil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thinexecutions output has _embedded.taskExecutionThinResourceList not _embedded.taskExecutionResourceList

@corneil
Copy link
Contributor

corneil commented Apr 11, 2024

We also need a change in task.service.ts

@@ -44,14 +44,14 @@ export class TaskService {
params = params.append('sort', `${sort},${order}`);
}
return this.httpClient
.get<any>(UrlUtilities.calculateBaseApiUrl() + 'tasks/definitions', {headers, params})
.get<any>(UrlUtilities.calculateBaseApiUrl() + 'tasks/executions', {headers, params})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these changes? I was only expecting tasks/executions in getExecutions to become tasks/thinexecutions

@claudiahub
Copy link
Contributor Author

@corneil when reading the description on #1996 (comment) (see the first comment)
I've read the mention to _links['tasks/definitions'].
Is this is for another purpose, correct ?

@corneil
Copy link
Contributor

corneil commented Apr 12, 2024

@corneil when reading the description on #1996 (comment) (see the first comment) I've read the mention to _links['tasks/definitions']. Is this is for another purpose, correct ?

That link was added in case you wanted to use it to retrieve the detail. I believe the UI already has an approach in place which works and does the same thing. When people use the REST API and previously used tasks/executions and not use the faster tasks/thinexecutions they will want to retrieve the previous level of detail then using the link makes that easy.

@oodamien oodamien self-requested a review April 12, 2024 12:59
.pipe(map(TaskPage.parse), catchError(ErrorUtils.catchError));
}

getTask(name: string, manifest = false): Observable<Task | unknown> {
const headers = HttpUtils.getDefaultHttpHeaders();
return this.httpClient
.get<any>(UrlUtilities.calculateBaseApiUrl() + `tasks/definitions/${name}?manifest=${manifest}`, {headers})
.get<any>(UrlUtilities.calculateBaseApiUrl() + `tasks/executions/${name}?manifest=${manifest}`, {headers})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these represent an old error that didn't surface?

@oodamien
Copy link
Member

Close for #1998

@oodamien oodamien closed this Apr 17, 2024
@oodamien oodamien deleted the gh/fix-1996 branch October 1, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Task Execution list to use tasks/thinexecutions
3 participants