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

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

    Details

    • Similar Issues:
    • Epic Link:

      Description

      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.

        Attachments

          Activity

          Hide
          tfennelly Tom FENNELLY added a comment -

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

          Show
          tfennelly Tom FENNELLY added a comment - BTW ... I'd be fairly sure the flicker has nothing to do with the async loading of this data.
          Hide
          michaelneale 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.

          Show
          michaelneale 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.
          Hide
          jamesdumay James Dumay added a comment -

          Michael Neale Tom FENNELLY this would remove a request trip to fetch extensions right?

          Show
          jamesdumay James Dumay added a comment - Michael Neale Tom FENNELLY this would remove a request trip to fetch extensions right?
          Hide
          jamesdumay James Dumay added a comment -
          Show
          jamesdumay James Dumay added a comment - Michael Neale yes to JENKINS-37137
          Hide
          michaelneale Michael Neale added a comment -

          James Dumay 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.

          Show
          michaelneale Michael Neale added a comment - James Dumay 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.
          Hide
          annetheagile AnneTheAgile added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated: