Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9807

Projects list unordered, project names duplicated and projects missing after first 100 items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.2.0, 5.1.1, 5.0.4
    • 5.1.0, 5.0.2
    • Projects
    • None

    Description

      Summary

      In Bitbucket 5, the /projects page only shows the first 100 items in alphanumeric order. The remaining items are shown in insertion order.

      In addition some project links may be duplicated or missing completely due to insertion order.

      Steps to Reproduce

      1. Start an instance of Bitbucket 4.14
      2. Insert projects "TEST001" through to "TEST150" in random order
      3. Confirm /projects shows all items in alphanumeric order
      4. Upgrade the same instance to 5.0

      For reference, I inserted the 150 projects via a python script, like so:

      import random
      import requests
      
      BITBUCKET_URL = 'http://localhost:7990'
      BITBUCKET_USER = 'admin'
      BITBUCKET_PASS = 'admin'
      auth = (BITBUCKET_USER, BITBUCKET_PASS)
      
      # Create a list of project keys TEST001 --> TEST150
      projects = ['TEST' + str(i).zfill(3) for i in range(1,151)]
      # Randomise the list
      random.shuffle(projects)
      
      for p in projects:
          data = {'key': p, 'name': 'Project {}'.format(p)}
          r = requests.post(BITBUCKET_URL + '/rest/api/1.0/projects', json=data, auth=auth)
      

      Expected Results

      All items should be in alphanumeric order

      Actual Results

      After the first 100 projects, the remaining projects are displayed in insertion order (i.e. by PROJECT.ID)

      Attachments

        1. projects-4.14.png
          projects-4.14.png
          478 kB
        2. projects-5.0.png
          projects-5.0.png
          453 kB

        Activity

          People

            behumphreys Ben Humphreys
            dchevell Dave Chevell
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: