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

Inject static App Config into bootstrap page (index.jelly or whatever)

      Some of the Jenkins confic is static and can be injected as part of the initial page load e.g. the list of extensions (js-extensions) and config added in the clobal JS scope (as part of https://github.com/jenkinsci/blueocean-plugin/pull/405).

      In Scope

      • Add extensions to the global application config object
      • Add security related "stuff" done as part of https://github.com/jenkinsci/blueocean-plugin/pull/405
      • Update frontend to read extensions from this config object
      • Please review how the extension points are cached and calculated

      Notes
      There is noticable flicker if there is an async loading of extension points (via http://localhost:8080/jenkins/blue/javaScriptExtensionInfo) after the webapp has loaded, ideally it would be loaded inside the main index.jelly, making the json available to avoid an extra round trip.

          [JENKINS-35851] Inject static App Config into bootstrap page (index.jelly or whatever)

          Tom FENNELLY added a comment -

          BTW ... I'd be fairly sure the flicker has nothing to do with the async loading of this data.

          Tom FENNELLY added a comment - BTW ... I'd be fairly sure the flicker has nothing to do with the async loading of this data.

          Michael Neale added a comment -

          yes quite probably (and haven't noticed lately at all myself).

          If this isn't an issue we could close it in favour of spending time on things like: JENKINS-37137 to improve the subjective experience.

          Michael Neale added a comment - yes quite probably (and haven't noticed lately at all myself). If this isn't an issue we could close it in favour of spending time on things like: JENKINS-37137 to improve the subjective experience.

          James Dumay added a comment -

          michaelneale tfennelly this would remove a request trip to fetch extensions right?

          James Dumay added a comment - michaelneale tfennelly this would remove a request trip to fetch extensions right?

          James Dumay added a comment -

          James Dumay added a comment - michaelneale yes to JENKINS-37137

          Michael Neale added a comment -

          jamesdumay yes it would - but if JENKINS-37137 was worked on instead, it would be probably a non issue as it would be one of the first things it fetches.

          Michael Neale added a comment - jamesdumay yes it would - but if JENKINS-37137 was worked on instead, it would be probably a non issue as it would be one of the first things it fetches.

          AnneTheAgile added a comment -

          ^^ ticket JENKINS-37137 Cache last state of page for fast subjective loading experience
          was resolved/postponed, not done

          AnneTheAgile added a comment - ^^ ticket JENKINS-37137 Cache last state of page for fast subjective loading experience was resolved/postponed, not done

            imeredith Ivan Meredith
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: