Uploaded image for project: 'Konflux UI'
  1. Konflux UI
  2. KFLUXUI-668

Create hooks to fetch PipelineRuns from kubearchive

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None

      Create hooks to fetch PipelineRuns:

      • usePipelineRunsV2 hook implemented with feature flag controlled data source switching
        • should fetch data from either kubearchive or tekton results based on the feature flag
        • should disable hook using the `enabled` and `watch` flag on both hooks.
      • Return interface matches existing usePipelineRuns exactly
        • [PipelineRunKind[], boolean, unknown, GetNextPage, NextPageProps]
      • Infinite loading works correctly with both data sources
      • Error handling maintained for both sources
      • Both data sources return identical interface

       

      Kubearchive implementation of PipelineRuns should not use customFilters but should use matchLabels,matchExpressions, fieldSelectors.
      Create transform utils that convert `filterBy` to label/field selector filters or vice versa.
      For example:

      • filterByName: "my-pipeline-run" => fieldSelectors: {"metadata.name": "my-pipeline-run"}
      • filterByCreationTimestampAfter: "2024-01-01T00:00:00Z" => fieldSelectors: {"metadata.creationTimestamp": ">2024-01-01T00:00:00Z"}

              djanaki Janaki Dehankar (Inactive)
              sbudhwar-1 Sahil Budhwar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: