Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40487

OPTIMIZATION: Pre-load Run data on fresh load of the Run Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • arctic, tasman, frank, tethys

      Prefetch and embed the Run object on the Run Details page.

      Process should be to create a RESTFetchPreloader implementation that checks the current url to see if it links to a pipeline run details page and adds the Run object data if it is. See PipelineStatePreloader.

      In Scope

      • This data is attached to the $.blueOceanConfig object
      • When the page loads the data is injected into the store
      • We never have to do a XHR when loading the run details

          [JENKINS-40487] OPTIMIZATION: Pre-load Run data on fresh load of the Run Details

          James Dumay added a comment - - edited

          tfennelly I think we might have to prefetch the Pipeline that the run belongs to as well as the run. See screenshot.

          James Dumay added a comment - - edited tfennelly I think we might have to prefetch the Pipeline that the run belongs to as well as the run. See screenshot.

          Tom FENNELLY added a comment -

          And Favorites too I think.

          Tom FENNELLY added a comment - And Favorites too I think.

          Tom FENNELLY added a comment - - edited

          Tom FENNELLY added a comment - - edited PR: https://github.com/jenkinsci/blueocean-plugin/pull/690

          Tom FENNELLY added a comment - - edited

          Have this specific optimization on the above linked PR. Also added 2 others while I was at it.

          Not going to do any more on this for now (need to work/help on other issues). There are others too that we could do for MBP branch run details pages. I'll add a JIRA for that (JENKINS-40941).

          Tom FENNELLY added a comment - - edited Have this specific optimization on the above linked PR. Also added 2 others while I was at it. Not going to do any more on this for now (need to work/help on other issues). There are others too that we could do for MBP branch run details pages. I'll add a JIRA for that ( JENKINS-40941 ).

          James Dumay added a comment -

          Nice one tfennelly

          James Dumay added a comment - Nice one tfennelly

            tfennelly Tom FENNELLY
            tfennelly Tom FENNELLY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: