[openstack-dev] add AJAX support to WorkflowView(LaunchInstanceView) post method

Andriy Hrytskiv ahrytskiv at gmail.com
Thu Apr 10 11:02:19 UTC 2014


Hello,
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)?

Would such behavior be reliable? Are the any reasons to completely re-fetch and reload all instances after the instance was added?

Please see:
https://bugs.launchpad.net/horizon/+bug/1305735
https://answers.launchpad.net/horizon/+question/246807

Thanks in advance.

Thanks,
Andriy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140410/8de86829/attachment.html>


More information about the OpenStack-dev mailing list