Add auto refresh to tables page, details page, graphs page.

Registered by hanxiang gao

Auto-refresh will automatically perform a refresh task based on whether the function is enabled and refresh interval in the Horizon configuration.

Auto-refresh will be applied in three ways(the code implementation will also be divided into three parts):
1. Details: Clicking on the name of a resource in the resource table will enter the resource details page. On this page, after a refresh interval, the refresh task will be executed once. Initiate an HTTP request and use response to replace the current details page data.
2. Tables: On the current resource page, after a refresh interval, the refresh task will be executed once. Initiate an HTTP request, replace the data of the current resource page table with response, and update the action of each row of data.
3. Charts: On the overview and hypervisor page, after a refresh interval, the refresh task will be executed once. Initiate an HTTP request and use response to replace the current pie charts.

At present, the Horizon has been implemented in the table. When the resource is in the transition state (for example, the server is in the building state), the table can be automatically refreshed, but this is not enough. Assuming that the browser is currently on the server page, there are three servers in the active state. If you use the CLI to create a new server, the browser cannot sense new resources unless you manually refresh the page. Similarly, a new server created through the CLI cannot be obtained on the network topology page. There will be similar problems in the details page.When the server is in the building state, click on the details page, the status of the server will remain as building, but the server may be in the active state.

Blueprint information

Status:
Started
Approver:
Ivan Kolodyazhny
Priority:
Low
Drafter:
hanxiang gao
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for 16.0.0-train
Implementation:
Needs Code Review
Milestone target:
milestone icon train-3
Started by
Akihiro Motoki

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:auto-refresh

Addressed by: https://review.opendev.org/660612
    [WIP]Auto refresh, part 1

Gerrit topic: https://review.opendev.org/#/q/topic:bp/auto-refresh

Addressed by: https://review.opendev.org/666985
    Auto refresh, part 2

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.