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
_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev