add AJAX support to WorkflowView post

Asked by Andriyko

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

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1305735.

Revision history for this message
Andriyko (ahrytskiv) said :
#1

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

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.