refs #1963 Enhance loadTraces method to include command and status filters in HTTP parameters
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
parent
d10a209a25
commit
600d5f9b37
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue