Caching of main menu panel list
Bug #1367716 reported by
Radomir Dopieralski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Sam Betts |
Bug Description
As we are adding more logic to panels for hiding or showing them depending on what is available in other services, we will inevitably have to call out to those other services' APIs to check things. Since the main menu with the panel list is displayed practically on every page, those calls would be made on almost every single request to Horizon. This would slow things considerably, and is also very inconvenient to mock in tests.
The solution to this is to introduce a caching mechanism, which would keep the list of dashboards and panels to be displayed in the session's cache, and which could be conveniently mocked as a whole in tests.
Changed in horizon: | |
milestone: | none → juno-rc1 |
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in horizon: | |
assignee: | nobody → Sam Betts (sambetts) |
Changed in horizon: | |
assignee: | Sam Betts (sambetts) → Vlad Okhrimenko (vokhrimenko) |
Changed in horizon: | |
assignee: | Vlad Okhrimenko (vokhrimenko) → Sam Betts (sambetts) |
Changed in horizon: | |
milestone: | juno-rc1 → kilo-1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-1 → 2015.1.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/120790
Review: https:/