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

Provide a paging feature for long option lists

      There are cases where an ActiveChoice parameter is used to list long directory contents. In one of my use cases I display as options the file names of images generated by an automated microscope which collects anywhere from 1K -8K images per folder.
      Although this works, it makes the UI unresponsive while the script parses the folder and loads the image filenames. In this use case it would be useful to provide a parameter option that allows for paging throught this long list of options. I'm envisioning an option that allows the AC control to page through options similar to this:

          [JENKINS-39357] Provide a paging feature for long option lists

          I like this idea! But sounds like we will indeed need a new parameter type. Hard to add an option to the existing parameter types for that.

          Bruno P. Kinoshita added a comment - I like this idea! But sounds like we will indeed need a new parameter type. Hard to add an option to the existing parameter types for that.

          Ing. Christoph Obexer added a comment - Or maybe use https://select2.github.io/examples.html#data ?

          Oh! Nice! I liked this component/widget. Not just for this issue, I may actually use it in another project at work. Thanks Christopher! I'm away for the next days in a conference. In case anyone has spare time to give it a try and implement and send a PR, will gladly review. Otherwise, on the next development cycle (after scriptler plug-in is removed from the blacklist) I intend to try to implement it.

           

          Thanks!!!

          Bruno

          Bruno P. Kinoshita added a comment - Oh! Nice! I liked this component/widget. Not just for this issue, I may actually use it in another project at work. Thanks Christopher! I'm away for the next days in a conference. In case anyone has spare time to give it a try and implement and send a PR, will gladly review. Otherwise, on the next development cycle (after scriptler plug-in is removed from the blacklist) I intend to try to implement it.   Thanks!!! Bruno

            kinow Bruno P. Kinoshita
            ioannis Ioannis Moutsatsos
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: