Tag filter in tags overview

Hi,

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 smile

Flavio.

5 answers

1 accepted

As recommended by @Seth , i open'd a request because at the moment there is no option for such ordering.

 

https://jira.atlassian.com/browse/BSERV-9214

 

Thank you for the help.

Bryan Turner Atlassian Team Oct 06, 2016

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.

It would be nice to have an option for supporting the precedence rules from Semantic Versioning.

How does one submit such a feature request?

 

jira.atlassian.com

Post a link to your FR as an answer to this question. That'll help others find and vote for it.

https://jira.atlassian.com/browse/BSERV-9214 : I created the request, thanks again for the help Seth and Kim.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,790 views 26 12
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you