Bug 1323330 - hammer puppet-module list --organization ORGNAME --search "author:AUTH AND name:NAME" --order "version": the order is not correct for version numbers that follow semantic versioning [NEEDINFO]
Summary: hammer puppet-module list --organization ORGNAME --search "author:AUTH AND na...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-01 22:05 UTC by Eric Beaudoin
Modified: 2019-10-10 11:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 18:04:25 UTC
Target Upstream Version:
sshtein: needinfo? (inecas)


Attachments (Terms of Use)

Comment 1 Eric Beaudoin 2016-04-01 22:27:22 UTC
Description of problem:
When running the following command, the order is not correct for version numbers that follow semantic versioning:

hammer puppet-module list --organization ORGNAME --search "author:AUTHNAME AND name:NAME" --order "version"

Example:

-------------------------------------|---------|--------|--------
ID                                   | NAME    | AUTHOR | VERSION
-------------------------------------|---------|--------|--------
3cb3f938-e9eb-4593-8fb6-8e7769f0aa2d | <NAME > | <AUTH> | 0.1.10 
a7cf5e1b-f4b6-4918-a764-65f0755cc2aa | <NAME > | <AUTH> | 0.1.11 
3ac43581-fa92-4bfe-940d-10c9f84f7de3 | <NAME > | <AUTH> | 0.1.12 
62fad128-f351-41f0-b324-158e1159ed01 | <NAME > | <AUTH> | 0.1.13 
91851ed8-ba5d-4bcb-89e8-56964637900c | <NAME > | <AUTH> | 0.1.14 
ec520faf-3961-4f35-aebb-f957ad4d5d0a | <NAME > | <AUTH> | 0.1.15 
17b57717-8925-48ee-9ec6-828ca59c0c40 | <NAME > | <AUTH> | 0.1.16 
58d0b4cc-3164-4bea-90d1-292176b16241 | <NAME > | <AUTH> | 0.1.17 
e79d9d12-7c66-4cf8-a169-b9eecc81c717 | <NAME > | <AUTH> | 0.1.18 
3e1f52eb-62b6-44c9-b3bb-afb483e1ab39 | <NAME > | <AUTH> | 0.1.19 
810ec8c4-970b-43e3-967f-efa792253520 | <NAME > | <AUTH> | 0.1.2  
8d8dfcdd-0292-461c-8e93-0bd4ee3e3856 | <NAME > | <AUTH> | 0.1.20 
75151e88-0520-4d0f-8fae-fd0b3fe4d779 | <NAME > | <AUTH> | 0.1.21 
62e7fa43-7186-4003-8e41-d4784a8ef9a3 | <NAME > | <AUTH> | 0.1.22 
ba335b80-e0d4-47a1-b048-6dad5a88c4a1 | <NAME > | <AUTH> | 0.1.23 
c311cedd-fef8-4d5c-8d6e-4d124468a041 | <NAME > | <AUTH> | 0.1.24 
8d24838d-75c8-488f-9d99-719f4ecf4b41 | <NAME > | <AUTH> | 0.1.25 
7d0d4949-df27-4d49-b6d3-bf6583009f52 | <NAME > | <AUTH> | 0.1.26 
00c0db67-aa6c-4a2b-80db-49cc1c13dcce | <NAME > | <AUTH> | 0.1.27 
6559582b-0157-4946-adf0-6cbb4d82f414 | <NAME > | <AUTH> | 0.1.28 
8f3f7b8e-2391-41de-a0ff-f68ddd7e3c7f | <NAME > | <AUTH> | 0.1.29 
f7a3fd46-fce0-4270-91e7-5501b1c35a97 | <NAME > | <AUTH> | 0.1.3  
d16b33f9-bdb9-4de5-b23d-17989a61d38e | <NAME > | <AUTH> | 0.1.30 
863407d8-7ba9-4fce-9215-53b8db809bd1 | <NAME > | <AUTH> | 0.1.4  
1376d2d6-a3ff-4801-9b1a-610a5bed8f76 | <NAME > | <AUTH> | 0.1.5  
5aafd858-3b11-46a5-9ef5-0b90aaea72b9 | <NAME > | <AUTH> | 0.1.6  
48ecc21a-9a2f-4d28-9752-7048e1624df0 | <NAME > | <AUTH> | 0.1.7  
5859e4ea-2469-460e-bc34-3ed1a30d963d | <NAME > | <AUTH> | 0.1.8  
e2af0a44-f851-4b9d-87ae-aab947b22c0f | <NAME > | <AUTH> | 0.1.9  
874b4199-7969-4a27-aa7c-c4272d4a0216 | <NAME > | <AUTH> | 0.2.0  
cbda1d97-7235-425b-8e51-e6f7c850cfde | <NAME > | <AUTH> | 0.2.1  
4324e9d1-214d-4b5d-ab8f-077760199d09 | <NAME > | <AUTH> | 0.2.2  
0ef6cc2a-fc65-451f-91f6-4bdc4ee3411a | <NAME > | <AUTH> | 0.2.3  
d16e6180-3344-415c-bb7b-4d3189bcefb3 | <NAME > | <AUTH> | 0.2.4  
5d2e6dac-7c50-4312-b8a8-d991a42cffe8 | <NAME > | <AUTH> | 0.2.5  
4638a6e8-2272-4971-82ce-64943bd4aa1d | <NAME > | <AUTH> | 0.2.6  
c6a3ec78-3e3a-4e77-9bbe-e7861e14a72b | <NAME > | <AUTH> | 0.2.7  
-------------------------------------|---------|--------|--------

Puppet modules use Semantic Versioning and we are following this standard for our in-house modules.

But hammer does not understand Semantic Versioning apparently:

0.1.2 < 0.1.10, yet 0.1.2 appears after 0.1.10 in the list

Version-Release number of selected component (if applicable):
6.1

How reproducible:
Each time the command is run

Steps to Reproduce:
1) Need a Satellite with many puppet mudules
2) run the following command:
hammer puppet-module list --organization ORGNAME --search "author:AUTHNAME AND name:NAME" --order "version"

Actual results:
The command result lines not sorted

Expected results:
The command result line sorted by version

Additional info:

Comment 3 Bryan Kearney 2016-08-04 20:10:15 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 6 Bryan Kearney 2018-09-04 18:04:25 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


Note You need to log in before you can comment on or make changes to this bug.