Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-8976

Navigating to a finally task using URL parameters (?taskName=<task>), the log viewer does not select the corresponding task tab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • Pipelines 1.22.0
    • None
    • UI
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      When there were two tasks with names 'tkn' and 'kn' the application returned the first partial string match, and this caused an issue with incorrect navigation via url, this fix ensures that the task names are matched with strict equality checks so that partial matches can be avoided.
      Show
      When there were two tasks with names 'tkn' and 'kn' the application returned the first partial string match, and this caused an issue with incorrect navigation via url, this fix ensures that the task names are matched with strict equality checks so that partial matches can be avoided.
    • Bug Fix
    • Done
    • Pipelines Sprint Pioneers 41

      Description of problem:
      When navigating to a finally task using URL parameters (?taskName=<task>), the log viewer does not select the corresponding task tab. The auto-selection works as expected for regular tasks but fails for finally tasks.

      Workaround:
      No current workaround. Users must manually click on the task tab to view its logs.

      Prerequisites (if any, like setup, operators/versions):

      • OpenShift Pipelines Operator installed (version X.Y.Z)
      • Console with pipeline and taskRun log viewer feature enabled
      • Pipeline with at least one finally task defined

      Steps to Reproduce:

      1. Create and run a pipeline with both normal tasks and at least one finally task.
      1. Open the PipelineRun logs tab in the console.
      1. Append URL parameters with a valid finally task, e.g.:

      ?taskName=name-of-finally-task

      1. Observe the log viewer behavior.

      Actual results:

      • The console does not auto-select the finally task tab.

      Expected results:

      • Log viewer should auto-select the correct task tab (including finally tasks) when accessed via URL parameters.

      Reproducibility:

      • Always

      Acceptance criteria:

      • Navigating to a finally task using URL parameters should auto-select the corresponding task tab in the logs tab.
      • Behavior should match that of regular tasks.
      • Works in both PipelineRun and TaskRun views.

      Definition of Done:

      • Code changes merged and verified in QA environment.
      • Unit and integration tests updated to cover finally task tab selection.
      • Documentation updated if applicable.

      Build Details:

      • [Build number / commit SHA / image tag]

      Additional info (Such as Logs, Screenshots, etc):

      • Screenshots showing regular task selection vs. missing finally task selection.
      • Browser console logs if applicable.

              rh-ee-apalit Anwesha Palit
              rh-ee-apalit Anwesha Palit
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: