Steve Donie
2007-Nov-21 15:26 UTC
[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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071121/87047981/attachment-0002.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071121/87047981/attachment-0003.html
Chad Woolley
2007-Nov-21 19:44 UTC
[Cruisecontrolrb-users] duplicated projects listed on webapp dashboard
I think somebody has a ticket and fix for this somewhere on Trac. I saw it, but don''t have time to find it now... On 11/21/07, Steve Donie <steve.donie at gmail.com> wrote:> 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 > > >
Steve Donie
2007-Nov-21 22:19 UTC
[Cruisecontrolrb-users] duplicated projects listed on webapp dashboard
Thanks - two tickets, in fact. Shoulda thought to look there. http://jira.public.thoughtworks.org/browse/CCRB-160 and http://jira.public.thoughtworks.org/browse/CCRB-153 I applied the diff in 160 and all is right with the world. On 11/21/07, Chad Woolley <thewoolleyman at gmail.com> wrote:> > I think somebody has a ticket and fix for this somewhere on Trac. I > saw it, but don''t have time to find it now... > > On 11/21/07, Steve Donie <steve.donie at gmail.com> wrote: > > 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/11cac98d/attachment.html
Rolf Russell
2007-Nov-22 03:27 UTC
[Cruisecontrolrb-users] duplicated projects listed on webapp dashboard
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