I noticed my tags does not filter properly for two-digits tag
e.g. 6.18.1 is shown before 6.2.0,
18 should certainly be after 2 in my version number, although the bitbucket filter consider 1 to be before 2, therefore place 18 before 2 (only the first digit of the tag number is compared to order it)
Is there a workaround, or any update planned ?
Thanks a lot
That issue was created for Bitbucket Server, not Bitbucket Cloud (bitbucket.org). An equivalent issue already existed for Bitbucket Cloud in their issue tracker. I've commented on BSERV-9214 with this correction as well.
When discussing Bitbucket Cloud, issues should be raised here, not in the BSERV project on jira.atlassian.com.
The tags are being ordered alphabetically, so 1 comes before 2. If you get up to 6.20.0, the 0 in 20 will come later than the . in 2.0, so it will be listed after.
Sure, the ordering is obvious to us, but by normal programming standards, "6.18.1" is NOT numeric (it's a series of numbers separated by a character that itself could be numeric). Sure Bitbucket could program a specific exception for version numbers in that format (submit a feature request at jira.atlassian.com if you like), but it's not the only possible version number format out there. The git book itself would use "v6.18.1" for the tag (https://git-scm.com/book/en/v2/Git-Basics-Tagging), and my company would use "Release6_18_1".
If you want to force the tags to get ordered correctly, you need to predict the maximum number of digits for each part of you version tag, and 0-pad appropriately (06.18.001 and 06.02.000 would get ordered the way you want)
Thank you Seth for the detailed answered, i now understand why they would use it here.
However, I still think the sequencial version numbering is so common nowadays that there would be an option to display the order that way on bitbucket.
I'll follow your advice and submit a request, although considering the relatively low aggregate value that it brings to the table, i'm not really sure it's going to work.
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot