[Cruisecontrolrb-users] duplicated projects listed on webapp dashboard
Rolf Russell
RRussell at thoughtworks.com
Wed Nov 21 22:27:18 EST 2007
just fixed in head. tell me if you have any more problems.
"Steve Donie" <steve.donie at gmail.com>
Sent by: cruisecontrolrb-users-bounces at rubyforge.org
11/21/2007 09:26 AM
To
cruisecontrolrb-users at rubyforge.org
cc
Subject
[Cruisecontrolrb-users] duplicated projects listed on webapp dashboard
Howdy - I've been using cc.rb for a month or two now and just recently
updated to 1.2.1. All was fine until I added lines such as this to several
of my projects:
# This build is triggered only by the successful completion of the named
project
project.triggered_by = [SuccessfulBuildTrigger.new(project,
"LightPermits")]
I am trying to do the setup where some of the builds are not triggered by
svn checkins, but rather by a successful build of another project. In this
case, I want a fast unit test build, and then if that succeeds run the
slower integration tests.
The problem I am seeing is that the webapp dashboard is now showing many
duplicates. Instead of the 6 projects that there should be, I am seeing
11. Strange that it is 11 rather than 12 - it doesn't duplicate all of
them - it seems to not duplicate the one that is first alphabetically.
I've attached a static html version (ccrb.html) of what the dashboard
looks like when it first loads - I got this by using a commandline tool
called graburl. What is interesting is that in both IE and Firefox, when
this is rendered, the first project is rendered differently from the
others. Somehow both IE and Firefox are seeing the first div end
prematurely. I don't understand why - I even pulled the HTML into an XML
editor and the tags all look balanced properly (although there are a
couple of <br> tags that are not self-closing.)
When I view the dashboard in a real browser, I see this view for a few
seconds, and then I think what happens is the PeriodicalExecuter runs and
that is when the duplication happens.
Looking at the javascript, I see this:
page.replace_html('projects', :partial => 'project', :collection =>
@projects) unless @projects.empty?
page.replace_html('projects', :partial => 'no_projects') if @
projects.empty?
in app/views/projects/index_js.rjs
I'm a complete Ruby newbie, so any help with pointers for debugging things
would be welcome. _______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071121/8e11f7f1/attachment-0002.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071121/8e11f7f1/attachment-0003.html
More information about the Cruisecontrolrb-users
mailing list