refs #1963 Enhance loadTraces method to include command and status filters in HTTP parameters
testing/ogGui-multibranch/pipeline/head This commit looks good Details

pull/22/head
Lucas Lara García 2025-05-09 13:41:00 +02:00
parent d10a209a25
commit 600d5f9b37
1 changed files with 10 additions and 1 deletions

View File

@ -184,11 +184,19 @@ export class ClientTaskLogsComponent implements OnInit {
this.loading = true;
const params = new HttpParams()
let params = new HttpParams()
.set('client.id', clientId)
.set('page', (this.page + 1).toString())
.set('itemsPerPage', this.itemsPerPage.toString());
if (this.filters['command']) {
params = params.set('command.name', this.filters['command']);
}
if (this.filters['status']) {
params = params.set('status', this.filters['status']);
}
const url = `${this.baseUrl}/traces`;
this.http.get<any>(url, { params }).subscribe(
@ -204,6 +212,7 @@ export class ClientTaskLogsComponent implements OnInit {
);
}
loadCommands() {
this.loading = true;
this.http.get<any>(`${this.baseUrl}/commands?&page=1&itemsPerPage=10000`).subscribe(