Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#502 closed new feature (fixed)

Indicate BW Rox Version in Layout

Reported by: guaka Owned by: tobixen
Priority: minor Milestone: 0.6-short - full copy release
Component: BW General Keywords: svn revision
Cc: tobixen

Description

Make it clear what is running. The live site should stay the same. alpha, test and local dev machines should have a very clear message.

While at it:

  • Sanitize occurrences of "localhost" in the code.

Change History (25)

comment:1 Changed 11 years ago by guaka

  • Summary changed from Indicate Server Version in Layout to Indicate BW Rox Version in Layout

comment:3 Changed 11 years ago by guaka

try-out in r4919

comment:4 Changed 11 years ago by guaka

  • Component changed from unknown to BW General
  • follow_up changed from none to move to alpha
  • Keywords svn revision added
  • Type changed from unknown to new feature

added property in r4920

comment:5 Changed 11 years ago by guaka

conceptually similar: I added a bug report link in r4921

note: the two functions I added need to be elsewhere, but where?

comment:6 Changed 11 years ago by guaka

  • Owner guaka deleted

comment:7 Changed 11 years ago by guaka

  • follow_up changed from move to alpha to test
  • Owner set to guaka

Hmm, not working yet. $Rev$ only works for the revision of a specific file.

comment:8 Changed 11 years ago by guaka

I added stuff to the update_test.sh script that creates htdocs/revision.txt and changed footer.php in r4928

comment:9 Changed 11 years ago by guaka

  • Cc tobixen added
  • follow_up changed from test to move to alpha

It's working on test!

Before moving to alpha, check if https://alpha.bewelcome.org/revision.txt and https://www.bewelcome.org/revision.txt are working.

comment:10 Changed 11 years ago by guaka

  • Owner guaka deleted

comment:11 Changed 11 years ago by philipp

  • Milestone changed from unassigned to BeVolunteer GA special release

normally you need to be logged in to trac to create a ticket. To make it working I allowed creation of a ticket without login. This will be fine until we get spammed again. In that case one would first have to authenticate as user "public" at trac/login (in the background) and the go to the ticket create form.

maybe replacing anonymous by the username would be fine if people are logged in to bw?

nice thingy!

comment:12 Changed 11 years ago by feuerdaemon

Tested and works fine:

BW Rox version: r4971

user agent: Mozilla/5.0 Windows; U; Windows NT 5.1; de; rv:1.8.1.14 Gecko/20080404 Firefox/2.0.0.14 request uri: http://test.bewelcome.org/

;-)

comment:13 Changed 11 years ago by guaka

Maybe there's a Trac hack that forces a certain input. We can enforce the presence of a couple of strings in anonymous tickets ("user agent", "request uri", "BW Rox version"). I'd be happy to twiddle with Trac to make that possible.

A better solution is probably to send the info to the bug report feedback form and add a link "directly add to Trac" there, I created #574 for that.

Kasper

comment:14 Changed 10 years ago by micha

  • follow_up changed from move to alpha to none
  • Resolution set to fixed
  • Status changed from new to closed

moved to production in r5225 an r5226

comment:15 Changed 10 years ago by guaka

  • follow_up changed from none to test on alpha
  • Resolution fixed deleted
  • Status changed from closed to reopened

https://alpha.bewelcome.org/revision.txt and https://www.bewelcome.org/revision.txt aren't working yet. This requires some hacking the update scripts. I will be happy to do it if given the right access.

comment:16 Changed 10 years ago by henri

not sure if this is the right ticket:

"bug report" link doesn't work on forum page. (production) If you click on the link it forwards you to https://www.bewelcome.org/index

there is the following error: Notice: Undefined variable: versionInfo in /home/bwrox/www.bewelcome.org/templates/apps/rox/footer.php on line 82

use firefox 3/mac

comment:17 Changed 10 years ago by henri

btw: this "bug report" link should be on every page.

crumbking

comment:18 Changed 10 years ago by philipp

  • Milestone changed from BeVolunteer GA special release to 0.6-short

Milestone BeVolunteer GA special release deleted

comment:19 Changed 10 years ago by guaka

Clicking on the link works fine now, but /revision.txt needs to be created by the update script.

comment:20 Changed 10 years ago by guaka

Add something like this to the update scripts:

/usr/bin/svn info https://www.bevolunteer.org/svn/hcvol/trunk --username robot --password XXXXXXX | grep "Last Changed Rev"|awk '{ print $4 }' > /tmp/revision.txt

comment:21 Changed 10 years ago by micha

  • Owner set to tobixen
  • Status changed from reopened to new

comment:23 Changed 10 years ago by guaka

  • follow_up changed from test on alpha to release

comment:24 Changed 10 years ago by guaka

  • Resolution set to fixed
  • Status changed from new to closed

Yay, it's working now!

comment:25 Changed 10 years ago by micha

  • follow_up changed from release to none
Note: See TracTickets for help on using tickets.