Project

General

Profile

Defect #1159

[PATCH] position attribute isn't calculated correctly

Added by Christian Luginbühl over 8 years ago.

Status:
New
Priority:
Normal
Category:
Product backlog
Target version:
-
Source:
Development
Detected on version:
Blocked:
No
Alone:
Milestones:
Sprint:

Description

When using the "move to top" button in the Product backlog overview, one can generate a zero or even negative position values.

Also if you debug the issues, you'll find out, that the position values are not updated correctly (although this has no direct impact on the current views).

Expected behaviour: The position attribute should always be updated correctly, meaning that in every Sprint or in the Product Backlog, the values should be 1, 2, 3, ..., n without holes.

I did create a patch that should fix all this. It is a bit more extensive and cleans up quite a few things in issue_patch.

Thanks for considering this patch. I'm willing to update if you don't like it.

N.b. Currently the frontend code for the Product Backlog is not updated, so when moving PBIs, they still show the Position number the had before the client side move (as the released version), the backend is updated and as soon as one reloads the page, the correct numbers appear. I will try to do that as well.


Files

fix_issues_position_backend.diff (6.11 KB) fix_issues_position_backend.diff Christian Luginbühl, 2016-05-12 18:36

No data to display

Also available in: Atom PDF