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

When not ordered ascending by name, the "+" does open the list somewhere else

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Jenkins 1.554.1
      categorized-view-plugin 1.8

      We have about 150 Jobs the names are all like "2.0.0_SP01_HF03_bla", "2.0.3_bla", "2.0.3_HF01_foo" and so on. In categorized-view I grouped the jobs by versionnumber, servicepack and hotfix.
      When the view then is loaded, the groups are not ordered; when I then try to open a group by clicking on "+", the list of jobs get opened below some other group. The same issue occures when sorting by name descending.
      After resorting the groups by name ascending, the list get opend below the right job.

      I attached two pictures which show the described behaviour.

          [JENKINS-27889] When not ordered ascending by name, the "+" does open the list somewhere else

          Sean Jordan added a comment - - edited

          Workaround:
          Start your name with a letter not a number.
          If for example your category is designed to display major.minor versions regex might be

          (.*?)(\d\.\d)(.*?) 
          or 
          (.*?)(\d\.\d)(\d?\d?)(.*?) 

          and the name is
          $2
          Then you'll always start with a number change your name to
          v$2
          and Voila, there you have it works like a charm.

          Background:
          I just ran across this issue myself and it seem to be related to having categories that start with a number.

          I believe the root cause is that CSS Selectors cannot start with a number (affects things like jQuery that use CSS selectors).

          FWIW, I was able to reproduce this issue in Chrome but IE does not seem to be affected by this specific issue.
          Also, I only seemed to notice this issue when I mixed categories some starting with a number and some starting with a letter.
          *edited for formatting

          Sean Jordan added a comment - - edited Workaround: Start your name with a letter not a number. If for example your category is designed to display major.minor versions regex might be (.*?)(\d\.\d)(.*?) or (.*?)(\d\.\d)(\d?\d?)(.*?) and the name is $2 Then you'll always start with a number change your name to v$2 and Voila, there you have it works like a charm. Background: I just ran across this issue myself and it seem to be related to having categories that start with a number. I believe the root cause is that CSS Selectors cannot start with a number (affects things like jQuery that use CSS selectors). FWIW, I was able to reproduce this issue in Chrome but IE does not seem to be affected by this specific issue. Also, I only seemed to notice this issue when I mixed categories some starting with a number and some starting with a letter. *edited for formatting

            Unassigned Unassigned
            chmoser Christoph Moser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: