Bug 1024590

Summary: [origin_ui_82] [deploy] Improve deployments list with rollback data
Product: OpenShift Online Reporter: Fabiano Franz <ffranz>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:27:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
list-deployment none

Description Fabiano Franz 2013-10-30 03:16:31 UTC
Description of problem: 

The list deployments command should be improved to follow the layout according the attached screenshot. Deployments will be displayed one activation every line, with tags if a given deploy were rolled back (in that case the line will be displayed in yellow) or is a rollback to a previous version. The deployment currently active will be displayed in green.

While testing this issue make sure to deploy a few times and then activate previous deployments.

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

How reproducible:

Steps to Reproduce:
1. rhc create-app foo php-5
2. rhc configure-app foo --no-auto-deploy --keep-deployments 10
3. Edit any file, commit 1, git push
4. Edit any file, commit 2, git push
5. Edit any file, commit 3, git push
6. rhc deploy <commit 1 sha> -a foo
7. rhc deploy <commit 2 sha> -a foo
8. rhc deploy <commit 3 sha or 'master'> -a foo
9. rhc deployments foo (take note of a previous deployment id)
10. rhc activate-deployment <deployment id> -a foo
11. rhc deployments foo

The deployments list should display a few deployments with rollbacks.

Actual results:


Expected results:


Additional info:

Comment 1 Fabiano Franz 2013-10-30 03:18:39 UTC
Created attachment 817264 [details]
list-deployment

Comment 3 Wei Sun 2013-10-30 06:32:21 UTC
Verified on fork_ami_bug_1024590_921

Result:
[root@ip-10-239-22-68 ~]# rhc activate-deployment 535e4afd -a foo
Activating deployment '535e4afd' on application foo ...
Activating deployment
Stopping PHP cartridge
Waiting for stop to finish
Starting PHP cartridge
Success

[root@ip-10-239-22-68 ~]# rhc deployments foo
2:19 AM, deployment 8bd16f42
2:24 AM, deployment ab44faba
2:24 AM, deployment 535e4afd
2:25 AM, deployment b0752561 (rolled back)
2:27 AM, deployment 535e4afd (rollback to 2:24 AM)