Issue 66013 - [STAGE] Change velocity template on STAGE to publish static /index.html
Summary: [STAGE] Change velocity template on STAGE to publish static /index.html
Status: CLOSED FIXED
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: Upgrade (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: CEE Danube
Assignee: Unknown
QA Contact: issues@www
URL:
Keywords: oooqa, regression
Depends on:
Blocks:
 
Reported: 2006-06-01 20:35 UTC by lsuarezpotts
Modified: 2008-05-16 03:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description lsuarezpotts 2006-06-01 20:35:33 UTC
The current velocity template on stage.openoffice.org renders project index.html pages with full dynamic 
content. On production (2.6.2; what we use now) most project index pages are staticized and as a result of 
a bug the ~/index.html page is rendered without the project header.

We like that.

We would like to change the velocity template so that ~/index.html is rendered.  Please also detail the 
consequences of this change....

Thanks
louis
Comment 1 lsuarezpotts 2006-06-01 20:40:55 UTC
 changing prio and issue type and summary
Comment 2 lsuarezpotts 2006-06-02 00:19:29 UTC
adding pcn # to status whiteboard and [STAGE] to summary.
Comment 3 lsuarezpotts 2006-06-05 09:41:12 UTC
from the collabnet engineer:

"This can be done by overriding ProjectHome.vm by placing it in the following
path : look/www/overrides/templates/org/tigris/helm/project/.

I've done this now. I've commented out the axial table that contains the
Summary, Categories, other details there and the Description.
(http://look.stage.openoffice.org/source/browse/look/www/overrides/templates/org/tigris/helm/
project/ProjectHome.vm?r1=1.1&r2=1.2)

If it can be removed from the file let me know.

===

If commenting out does the job, do we need to remove?  I think commenting out might provide a nice 
trail, should we wish to undo this or should an upgrade require us to reiterate this.

louis
Comment 4 lsuarezpotts 2006-06-05 09:42:00 UTC
a little hasty in resolving
Comment 5 stx123 2006-06-05 10:14:37 UTC
Commenting out is fine with me.
Please note there is still some header left:
api
Project home
If you were registered and logged in, you could join this project.
Comment 6 lohmaier 2006-06-05 13:23:48 UTC
Now that the template is in look, we can do further tweaking ourselves, so this
issue can be solved/put away from support's pile

Now the table is commented out in the generated HTML, I'd like to comment it out
in the template, so that it is not generated at all. OK for you?
Comment 7 stx123 2006-06-05 15:39:58 UTC
Feel free to go ahead.
Comment 8 lsuarezpotts 2006-06-06 12:57:10 UTC
I asked the engineer to remove it and to see if it is possible to clean up the rest of the template.
-louis
Comment 9 lsuarezpotts 2006-06-07 10:51:44 UTC
per engineer: commented lines removed.

I haven't checked, however.

Louis
Comment 10 lohmaier 2006-06-07 23:16:30 UTC
lous seems to have misunderstood me, but that's fine as well..
I meant "comment out the instructions that now generate the commented-out html",
deleting them is fine as well.

But still the following is generated:
##########
<name>
Project home
##########
and:
##########
If you were registered and logged in, you could join this project. 
##########

We want to get rid of it too for the main pages, so I modified PreServlet.vm
accordingly.

If there are pages that should show this remark, then let me know.
Comment 11 lsuarezpotts 2006-06-09 16:38:20 UTC
Cloph,
I actually understood you; I was following what I understood to be Stefan's instructions, or rather, relaying 
them to the engineer.

I'll further communicate your comments (cut and paste as before) to CollabNet.

best
louis


Comment 12 stx123 2006-06-15 11:48:26 UTC
What is left is
"If you were registered and logged in, you could join this project." resp.
"Request project role".
Any opinions whether this should be removed too?
Comment 13 lsuarezpotts 2006-06-15 15:18:04 UTC
I think it should be removed; it can be confusing. We stipulate what roles people can have elsewhere. 

However, we need to be clear to CollabNet what we want removed, what left in.

Comment 14 lsuarezpotts 2006-06-15 16:29:16 UTC
optimal solution:
* IF not logged in remove link "register or login"
* IF logged in: leave edit/request role 

If not possible remove the link.

Comment 15 stx123 2006-06-15 19:44:00 UTC
Please note that the recent change
http://look.stage.openoffice.org/servlets/ReadMsg?list=cvs&msgNo=811
PreServlet.vm, Rev. 1.17 removes *all* links like "Add new project role", "Start
new project", ... in this position.
I would strongly suggest to revert this change.
The requirements are still as described by Louis - but for the project home page
only!
Comment 16 lsuarezpotts 2006-06-15 20:08:29 UTC
updated pcn and underscored priority.
Comment 17 lsuarezpotts 2006-06-16 05:07:36 UTC
engineer ananda reverted the changes

I'm asking to implement this change:
optimal solution:
* IF not logged in remove link "register or login"
* IF logged in: leave edit/request role 

If not possible remove the link.
Comment 18 lsuarezpotts 2006-06-16 05:09:34 UTC
... minus, that is, "remove the link"....
Comment 19 lohmaier 2006-06-16 11:26:40 UTC
Why not use the simple rule: Not for the project-home, show it for everything else?

e.g. on the membership-pages, I'd like to have 
"If you were registered and logged in, you could join this project." when not
logged in and "Request project membership/role" when logged in.
the simple

#if (!$helmR.inServlet("ProjectHome"))
#parsePrefix("$servletTaskBar.resolvePath($helmR.getServletName())")	
#end

did do that.

With the latest changes, the project-homes again show the "Request project role"
e.g. on http://de.stage.openoffice.org/ when logged-in, but I don't get the "i
you were registered.... (when not logged-in) on
http://fr.stage.openoffice.org/servlets/ProjectMemberList for example.

I don't really care whether to show the "If you were registered" message when
not logged-in, but I certainly don't want the "Request project role" on the
project-home.
Comment 20 lsuarezpotts 2006-06-16 14:26:29 UTC
ST, would you agree with cloph's suggestion?
Comment 21 stx123 2006-06-16 16:26:30 UTC
We (cloph and I) agreed on IRC that the suppression of the links should only
affect the project home pages. Currently we miss "If you were registered and
logged in, you could join this project." on project's Membership list - if not
logged in. See
http://ucb.stage.openoffice.org/servlets/ProjectMemberList

I tried to achieve this with
http://look.stage.openoffice.org/source/browse/look/www/overrides/templates/PreServlet.vm?r1=1.19&r2=1.20
which didn't restrict the change to the homepage.

As said I would like to retain the "Request Role", "Edit Project" links on
project home pages for logged in users - if possible.
Comment 22 Unknown 2006-06-16 16:43:13 UTC
Hello Stephan, Cloph,

Your proposed change *will* be done after the site upgrade. 

As an upgrade manager, I have concerns with any last minute such changes; 
hence wanted to defer this as a post-upgrade task. That way we can "close" all 
activities on the stage box and have the proper branding files during the 
production upgrade.

Also, the stage box will be available for some time after the upgrade is 
complete to test/verify any upgrade issues.

Please let us know if that would work for you.

Thanks
Comment 23 stx123 2006-06-16 16:56:31 UTC
I would consider playing on a production site even worse than last-minute
changes on a staging server. We can easily test changes and their consequences
without bothering thousands of users.

What concerns me more is that we so far don't have a satisfying solution.
Comment 24 lsuarezpotts 2006-06-16 21:08:28 UTC
from beril: 

I made this change, the site needs a restart after the indexer is complete.

LSP:  a quick view of api.stage.openoffice.org logged on and not indicated that the fix was as desired.  
Cloph or ST, would you want to look it over?

Comment 25 Unknown 2006-06-17 00:48:14 UTC
Assigning to Stefan to verify. Looks OK to me, right now.
Comment 26 stx123 2006-06-17 10:00:58 UTC
The behaviour looks ok wrt to appearance of the links.
There is an supoerfluous '#' as a first character in
"#If you were registered and logged in, you could join this project."
Comment 27 Unknown 2006-06-19 07:15:55 UTC
That "#" is now removed; please verify and if it now looks ok, can this issue 
be closed?

All the stage changes are now collected in the final branding set for OO.o 
production upgrade.
Comment 28 stx123 2006-06-19 11:56:27 UTC
looks good
Comment 29 stx123 2006-06-19 11:57:10 UTC
verified on stage
Comment 30 stx123 2006-06-19 11:57:32 UTC
verified on stage
Comment 31 ace_dent 2008-05-16 03:29:57 UTC
This Issue is 'Verified' and not updated in 1yr+, so Closing.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~