fix(task-logs): allow selecting and cancelling SENT traces
oggui-debian-package/pipeline/tag This commit looks good Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
oggui-debian-package/pipeline/head This commit looks good Details

main 1.17.1
Juan Manuel Bardallo 2026-10-22 13:29:27 +02:00
parent bc74caad42
commit 6994ab580b
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## [1.17.1] - 2026-10-22
### Fixed
- **Selección y Cancelación de Tareas en Estado Enviado (`task-logs.component`)**:
- Habilitados los checkboxes de selección para trazas en estado `Enviado` (`sent`), permitiendo su selección tanto individual como masiva a través del checkbox de cabecera.
- Actualizada la lógica de cancelación (`cancelTrace`, `cancelSelectedTraces`) para permitir cancelar tareas en estado `sent`, delegando su cancelación a la API sin bloquear la interfaz.
## [1.17.0] - 2026-10-22
### Added

View File

@ -182,7 +182,7 @@ export class TaskLogsComponent implements OnInit, OnDestroy {
}
isCancellable(trace: any): boolean {
return trace.status === 'pending' || trace.status === 'in-progress';
return trace.status === 'pending' || trace.status === 'in-progress' || trace.status === 'sent';
}
get cancellableTraces(): any[] {
@ -308,7 +308,7 @@ export class TaskLogsComponent implements OnInit, OnDestroy {
}
cancelTrace(trace: any): void {
if (trace.status !== 'pending' && trace.status !== 'in-progress') {
if (trace.status !== 'pending' && trace.status !== 'in-progress' && trace.status !== 'sent') {
this.toastService.warning(this.translate.instant('onlyTracesCanBeCanceled'), 'Advertencia');
return;
}
@ -325,7 +325,7 @@ export class TaskLogsComponent implements OnInit, OnDestroy {
dialogRef.afterClosed().subscribe(result => {
if (result) {
if (trace.status === 'in-progress') {
if (trace.status === 'in-progress' && trace.jobId) {
this.http.post(`${this.baseUrl}${trace['@id']}/kill-job`, {
jobId: trace.jobId
}).subscribe(