Bug 707424 - Add a switchable "This is the live production instance" banner
Summary: Add a switchable "This is the live production instance" banner
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Joshua Wulf
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-25 01:53 UTC by Joshua Wulf
Modified: 2014-10-19 22:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-30 03:48:31 UTC


Attachments (Terms of Use)

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.


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