refactor: streamline trace loading parameters and enhance logging
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
parent
a84372214b
commit
9d21a6fefc
|
@ -184,14 +184,14 @@ export class ClientTaskLogsComponent implements OnInit {
|
|||
|
||||
this.loading = true;
|
||||
|
||||
let params = new HttpParams()
|
||||
.set('client.id', clientId)
|
||||
.set('page', (this.page + 1).toString())
|
||||
.set('itemsPerPage', this.itemsPerPage.toString());
|
||||
const params: any = {
|
||||
'client.id': clientId,
|
||||
page: this.page + 1,
|
||||
itemsPerPage: this.itemsPerPage,
|
||||
...this.filters
|
||||
};
|
||||
|
||||
if (this.filters['status']) {
|
||||
params = params.set('status', this.filters['status']);
|
||||
}
|
||||
console.log('🌐 GET', `${this.baseUrl}/traces`, params);
|
||||
|
||||
const url = `${this.baseUrl}/traces`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue