Bug 707424

Summary: Add a switchable "This is the live production instance" banner
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: Web-UIAssignee: Joshua Wulf <jwulf>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: lcarlon, topic-tool-list
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: 2011-05-30 03:48:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joshua Wulf 2011-05-25 01:53:57 UTC
20110525-1028 /CustomSearchTopics.xhtml

People are starting to do development work and to run test instances. 

We need a banner on the live production instance that clearly indicates that it's the live one, and we need a single place to switch it on and off, so that development / test instances that run against a different database can switch it off. 

Maybe a banner that is switchable between red "This is the live production instance" and green "This is a test development instance"

I am going to start producing builds of a Skynet appliance for people to play with, so I'd like to be able to flick a switch in the source code, and then export a war that announces: "I'm not running against the production database".

The  banner needs to be on all pages. 

I can imagine a scenario where someone has a dev instance and the prod instance open in browser windows, and gets confused about which is which, and runs some massive tagging query against the production dataset.....

Comment 1 Matthew Casperson 2011-05-30 03:27:15 UTC
Fixed in 20110530-1321

The text "CONNECTED TO PRODUCTION DATABASE" is shown on the top bar when the database connection url contains the string jboss-eap.bne.redhat.com.

Comment 2 Joshua Wulf 2011-05-30 03:48:31 UTC
Verified on jboss-eap and my local build running against a local database.