Jason Guiditta
2008-May-30 22:13 UTC
[Ovirt-devel] [PATCH] fixed some 500 internal server errors
Including all 4 pieces of this patch, for easier application, but the only new one is 0004. Some variables were not getting set, pretty simple fix. -j -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-reload-content-area-when-something-in-the-tree-is-cl.patch Type: text/x-patch Size: 3479 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080530/ac6c98a2/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-make-the-tree-links-ajax-calls-that-refresh-t.patch Type: text/x-patch Size: 182217 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080530/ac6c98a2/attachment-0001.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0003-facebox.close-not-needed-anywhere.patch Type: text/x-patch Size: 951 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080530/ac6c98a2/attachment-0002.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0004-some-of-the-show-methods-had-variaable-to-be-set-bu.patch Type: text/x-patch Size: 2121 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080530/ac6c98a2/attachment-0003.bin>
Hugh O. Brock
2008-Jun-02 16:01 UTC
[Ovirt-devel] [PATCH] fixed some 500 internal server errors
On Fri, May 30, 2008 at 06:13:00PM -0400, Jason Guiditta wrote:> Including all 4 pieces of this patch, for easier application, but the > only new one is 0004. Some variables were not getting set, pretty > simple fix. > > -j[ snipped the first 3 already posted to the list ]> >From 2128e2a6b5aa44387f1a5c2a5d366a25392ac377 Mon Sep 17 00:00:00 2001 > >From: Jason Guiditta <jguiditt at redhat.com> > Date: Fri, 30 May 2008 18:08:15 -0400 > Subject: [PATCH] some of the show methods had variaable to be set, but were calling the parent show method first, so variables werenever set > > > Signed-off-by: Jason Guiditta <jguiditt at redhat.com> > --- > wui/src/app/controllers/hardware_controller.rb | 8 ++++---- > wui/src/app/controllers/resources_controller.rb | 8 ++++---- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/wui/src/app/controllers/hardware_controller.rb b/wui/src/app/controllers/hardware_controller.rb > index b86d929..97f5df2 100644 > --- a/wui/src/app/controllers/hardware_controller.rb > +++ b/wui/src/app/controllers/hardware_controller.rb > @@ -80,14 +80,14 @@ class HardwareController < ApplicationController > show > end > > - def show_users > - show > + def show_users > @roles = Permission::ROLES.keys > + show > end > > - def show_hosts > - show > + def show_hosts > @hardware_pools = HardwarePool.find :all > + show > end > > def show_graphs > diff --git a/wui/src/app/controllers/resources_controller.rb b/wui/src/app/controllers/resources_controller.rb > index e9a0cba..704abd1 100644 > --- a/wui/src/app/controllers/resources_controller.rb > +++ b/wui/src/app/controllers/resources_controller.rb > @@ -71,20 +71,20 @@ class ResourcesController < ApplicationController > end > > # resource's vms list page > - def show_vms > - show > + def show_vms > @actions = [VmTask.label_and_action(VmTask::ACTION_START_VM), > (VmTask.label_and_action(VmTask::ACTION_SHUTDOWN_VM) << "break"), > VmTask.label_and_action(VmTask::ACTION_SUSPEND_VM), > VmTask.label_and_action(VmTask::ACTION_RESUME_VM), > VmTask.label_and_action(VmTask::ACTION_SAVE_VM), > VmTask.label_and_action(VmTask::ACTION_RESTORE_VM)] > + show > end > > # resource's users list page > - def show_users > - show > + def show_users > @roles = Permission::ROLES.keys > + show > end > > def vms_json > -- > 1.5.4.1ACK, this appears to work fine. I have committed and pushed it along with the other three that preceded it. Is it easy, or worth doing, to include a check so that the content pane does not reload if the user clicks its link in the tree again? Or do we *want* it to reload? Take care, --Hugh
Jason Guiditta
2008-Jun-02 17:33 UTC
[Ovirt-devel] [PATCH] fixed some 500 internal server errors
Hugh O. Brock wrote:> [snip] > ACK, this appears to work fine. I have committed and pushed it along > with the other three that preceded it. > > Is it easy, or worth doing, to include a check so that the content > pane does not reload if the user clicks its link in the tree again? Or > do we *want* it to reload? > > Take care, > --Hugh >With the current implementation (that I hope we are cleaning up after summit), this would take a bit of work, but could be done. However, unless we are going to stream data to the browser for everything in that content pane (comet or periodic updates), I would think we would want it to refresh when you click the link again, if only for a simple mechanism to update the content in that pane. This is starting to get to a point where we need some cohesive decisions made on how we want the app to behave. If there will be no refresh on click of the pool for the associated content, then we _have_ to be updating everything in the content area (all tabs, since you could have chosen any). I _really_ would not want to see this done with polling - it is bad enough as a temporary way for updating the tree (what I am working on now), to have it everywhere would be a horrible amount of chattiness to the server. -j