Bug 813613

Summary: No outage information in community
Product: OKD Reporter: Clayton Coleman <ccoleman>
Component: WebsiteAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 1.xCC: rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-08 17:58:57 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
OpenIssue button in console page
none
Fixed Issue Color none

Description Clayton Coleman 2012-04-18 03:30:47 UTC
The community can't display outage information - it would be better if we include it.

Switch from reading filesystem to using a JS call to inject the dom behavior necessary.

Change status_app to support taking an id attribute on the JS call, which updates an existing dom node.  Change site to remove references to outage_notification.  Add a new hidden element to the top navigation bar of console and site and community.  When an issue is open, the nav bar should have an orange button in the site and a gray link in the header (may be orange in new console). Status will be cached for up to 5 minutes in the browser but will then be refreshed.

To test:
Visit site, community, and console in different browsers.  Only link in upper right should be signin, signout, and manage apps.
From command line on devenv, in /var/www/stickshift/site/app/subsites/status/ run ./rhc-outage 'issue title' 'issue body' to create a new issue.
Go back to the browser.  
Clear the browser cache.
Visit community, site, and console.  Verify in all three there is a link in upper right that says "1 open issue".  Verify link goes to status page.
Go back to command line and issue "./rhc-outage resolve <issue number from previous issue> 'resolved'"
Go back to browser, wait 6 minutes.  Click another link in the browser, verify link in upper right has disappeared.

Comment 1 Clayton Coleman 2012-04-18 03:31:01 UTC
Fixed in master

Comment 2 Xiaoli Tian 2012-04-19 06:49:57 UTC
Tested in on devenv_1731 on IE9, Firefox3.6, Chrome 17,

When a new issue is created, an outage button will show on marketing page, console and community.

When another new issue is created, outage button will increase the open issues number

When issue are all resolved, the button will be hidden.


But the button in marketing page and community page is yellow,  but in console page, it's black, not be highlighted (see attachment below)

Comment 3 Xiaoli Tian 2012-04-19 06:50:44 UTC
Created attachment 578519 [details]
OpenIssue button in console page

Comment 4 Xiaoli Tian 2012-05-15 05:49:43 UTC
Move it to ON_QA, since we found the fix in latest devenv-stage build

Comment 5 Xiaoli Tian 2012-05-15 05:50:44 UTC
Created attachment 584542 [details]
Fixed Issue Color

Verified it on devenv-stage_194, it's fixed now