Angular policy checks causing too many API calls - slows down pages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Travis Tripp |
Bug Description
On Angular panels that use client side routing and also have policy checks (just about any angular panel with actions), you'll see that the exact same policy API check is repeated when you switch from the table listing to the details and back.
Example:
http://
[01/Mar/2016 15:40:53] "POST /api/policy/ HTTP/1.1" 200 17
[01/Mar/2016 15:40:53] "POST /api/policy/ HTTP/1.1" 200 17
[01/Mar/2016 15:40:53] "POST /api/policy/ HTTP/1.1" 200 17
[01/Mar/2016 15:40:53] "GET /api/keystone/
[01/Mar/2016 15:40:53] "GET /api/keystone/
[01/Mar/2016 15:40:53] "POST /api/policy/ HTTP/1.1" 200 17
Go to the details page:
[01/Mar/2016 15:41:07] "GET /api/glance/
Click back to the Table:
[01/Mar/2016 15:41:15] "POST /api/policy/ HTTP/1.1" 200 17
[01/Mar/2016 15:41:15] "POST /api/policy/ HTTP/1.1" 200 17
[01/Mar/2016 15:41:15] "POST /api/policy/ HTTP/1.1" 200 17
[01/Mar/2016 15:41:15] "POST /api/policy/ HTTP/1.1" 200 17
The policy being checked will not change between these clicks. These checks are using the policy service:
This service doesn't have caching like the other services (User session, service catalog, cinder extensions), causing many extra API hits as the page is navigated.
Changed in horizon: | |
status: | New → In Progress |
Changed in horizon: | |
assignee: | Travis Tripp (travis-tripp) → Matt Borland (palecrow) |
Changed in horizon: | |
assignee: | Matt Borland (palecrow) → Travis Tripp (travis-tripp) |
Changed in horizon: | |
assignee: | Travis Tripp (travis-tripp) → Matt Borland (palecrow) |
Changed in horizon: | |
importance: | Undecided → Medium |
Changed in horizon: | |
milestone: | mitaka-3 → mitaka-rc1 |
summary: |
- Angular policy checks repeated + Angular policy checks causing too many API calls - slows down pages |
Changed in horizon: | |
assignee: | Matt Borland (palecrow) → Travis Tripp (travis-tripp) |
https:/ /review. openstack. org/#/c/ 286268/