← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1305735] [NEW] add AJAX support to WorkflowView post

 

Public bug reported:

Currently horizon.workflows.views.WorkflowView post method does
redirection to success URL, thus forces full page reload(re-render of
index template). This is an expensive operation  in many cases.

For example when creating Instance 'openstack_dashboard.dashboards.project.instances.views.LaunchInstanceView' :
the 'Launch Instance' redirects to /project/instances URL
that uses 'openstack_dashboard.dashboards.project.instances.views.IndexView' and template 'project/instances/index.html'
which invokes {{ table.render }}.

How much effort would it take to refactor the code to make an ajax post
from
openstack_dashboard.dashboards.project.instances.views.LaunchInstanceView.post
and update instances table with appropriate row(s)?

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1305735

Title:
  add AJAX support to WorkflowView post

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Currently horizon.workflows.views.WorkflowView post method does
  redirection to success URL, thus forces full page reload(re-render of
  index template). This is an expensive operation  in many cases.

  For example when creating Instance 'openstack_dashboard.dashboards.project.instances.views.LaunchInstanceView' :
  the 'Launch Instance' redirects to /project/instances URL
  that uses 'openstack_dashboard.dashboards.project.instances.views.IndexView' and template 'project/instances/index.html'
  which invokes {{ table.render }}.

  How much effort would it take to refactor the code to make an ajax
  post from
  openstack_dashboard.dashboards.project.instances.views.LaunchInstanceView.post
  and update instances table with appropriate row(s)?

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1305735/+subscriptions


Follow ups

References