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

Long script should alert user to wait for building of Active Choices (Reactive) Parameter

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • active-choices-plugin
    • None
    • Jenkins 2.414.1
      Active Choice Plugin : 2.7.2

      Problem :

      Sometime the configuration Script may take some big seconds to complete (provisionning by webserviceAPI calls, git commands, etc..). During this time, the user has an empty componant or a componant filled with previous state.

       

      It should be interesting to have a setUp script which is call before the "regular" Script.
      Usually this script will return a defaut "waiting" value.
      The purpose of this, is to alert the user that something is building in background.

      Another possible implementation can be to disable the component during the build.

          [JENKINS-72213] Long script should alert user to wait for building of Active Choices (Reactive) Parameter

          That sounds interesting! Not sure if we should let users configure this script, or if we should simply display a loading message and maybe a skeleton or some other web component to let the user know the page is loading and eventually the parameter will be rendered.

          Maybe Jenkins provides something that could be re-used here, which would make it easier to implement and maintain. Alas I have limited time to volunteer on the plug-in, so I will focus on bugs instead of new features. Feel free to start a pull request if you or anyone has time to volunteer on an implementation. Thanks!

          Bruno P. Kinoshita added a comment - That sounds interesting! Not sure if we should let users configure this script, or if we should simply display a loading message and maybe a skeleton or some other web component to let the user know the page is loading and eventually the parameter will be rendered. Maybe Jenkins provides something that could be re-used here, which would make it easier to implement and maintain. Alas I have limited time to volunteer on the plug-in, so I will focus on bugs instead of new features. Feel free to start a pull request if you or anyone has time to volunteer on an implementation. Thanks!

          I will take a look at the [List Git Branches Parameter | Jenkins plugin|https://plugins.jenkins.io/list-git-branches-parameter/] which show a waiting spinner when building the component.

          Cyril Pottiers added a comment - I will take a look at the [List Git Branches Parameter | Jenkins plugin|https://plugins.jenkins.io/list-git-branches-parameter/] which show a waiting spinner when building the component.

          the select component use the class "select-ajax-pending", i will dig in order to find which line of code put this.

          Cyril Pottiers added a comment - the select component use the class "select-ajax-pending", i will dig in order to find which line of code put this.

          Cyril Pottiers added a comment - - edited

          Cyril Pottiers added a comment - - edited kinow , Finally I used the spinner native component : Progress [Jenkins] I've open a PR in order you to test the behaviour : JENKINS-72213 : Add a waiting spinner during parameter building by c3p0-maif · Pull Request #163 · jenkinsci/active-choices-plugin (github.com)

          Released in 2.8.2 minutes ago.

          Bruno P. Kinoshita added a comment - Released in 2.8.2 minutes ago.

            kinow Bruno P. Kinoshita
            cpottiers Cyril Pottiers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: