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
- Start an instance of Bitbucket 4.14
- Insert projects "TEST001" through to "TEST150" in random order
- Confirm /projects shows all items in alphanumeric order
- 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)
[BSERV-9807] Projects list unordered, project names duplicated and projects missing after first 100 items
Summary | Original: Projects list unordered and project names duplicated after first 100 items | New: Projects list unordered, project names duplicated and projects missing after first 100 items |
Description |
Original:
h3. 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 due to insertion order. h3. Steps to Reproduce # Start an instance of Bitbucket 4.14 # Insert projects "TEST001" through to "TEST150" in _random_ order # Confirm */projects* shows all items in alphanumeric order # Upgrade the same instance to 5.0 For reference, I inserted the 150 projects via a python script, like so: {code} 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) {code} h3. Expected Results All items should be in alphanumeric order h3. Actual Results After the first 100 projects, the remaining projects are displayed in insertion order (i.e. by {{PROJECT.ID}}) |
New:
h3. 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. h3. Steps to Reproduce # Start an instance of Bitbucket 4.14 # Insert projects "TEST001" through to "TEST150" in _random_ order # Confirm */projects* shows all items in alphanumeric order # Upgrade the same instance to 5.0 For reference, I inserted the 150 projects via a python script, like so: {code} 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) {code} h3. Expected Results All items should be in alphanumeric order h3. Actual Results After the first 100 projects, the remaining projects are displayed in insertion order (i.e. by {{PROJECT.ID}}) |
Workflow | Original: Stash Workflow - Restricted [ 2301740 ] | New: JAC Bug Workflow v3 [ 3137229 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Affects Version/s | New: 5.1.0 [ 71491 ] |
Summary | Original: Projects list unordered after first 100 items | New: Projects list unordered and project names duplicated after first 100 items |
Description |
Original:
h3. Summary
In Bitbucket 5, the */projects* page only shows the first 100 items in alphanumeric order. The remaining items are shown in insertion order h3. Steps to Reproduce # Start an instance of Bitbucket 4.14 # Insert projects "TEST001" through to "TEST150" in _random_ order # Confirm */projects* shows all items in alphanumeric order # Upgrade the same instance to 5.0 For reference, I inserted the 150 projects via a python script, like so: {code} 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) {code} h3. Expected Results All items should be in alphanumeric order h3. Actual Results After the first 100 projects, the remaining projects are displayed in insertion order (i.e. by {{PROJECT.ID}}) |
New:
h3. 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 due to insertion order. h3. Steps to Reproduce # Start an instance of Bitbucket 4.14 # Insert projects "TEST001" through to "TEST150" in _random_ order # Confirm */projects* shows all items in alphanumeric order # Upgrade the same instance to 5.0 For reference, I inserted the 150 projects via a python script, like so: {code} 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) {code} h3. Expected Results All items should be in alphanumeric order h3. Actual Results After the first 100 projects, the remaining projects are displayed in insertion order (i.e. by {{PROJECT.ID}}) |
Resolution | New: Fixed [ 1 ] | |
Status | Original: To be reviewed [ 10026 ] | New: Closed [ 6 ] |
Status | Original: Quality Review [ 10029 ] | New: To be reviewed [ 10026 ] |
Status | Original: To be reviewed [ 10026 ] | New: Quality Review [ 10029 ] |