← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1533910] [NEW] Relocating panel to a different dashboard via Pluggable Settings causes TemplateDoesNotExist

 

Public bug reported:

Steps to reproduce:

1. Move users panel to be under admin dashboard by modifying _3030_identity_users_panel.py
2. Set PANEL_GROUP = 'admin'
3. Set PANEL_DASHBOARD = 'admin'

Expected:

1. Users panel to be under Admin panel group in the navigation.
2. Users panel to load.

Actual:

1. Users panel under Admin panel group in the navigation.
2. Users panel would generate a TemplateDoesNotExist

Observations:

This issue is due to Dashboard.register populates the
panel_template_dirs for horizon template loader with the key
"admin/users" for the Identity Users panel. However,
TemplateLoader.get_template_sources would still look up "identity/users"
for templates by convention (i.e. template "identity/users/index.html")

** Affects: horizon
     Importance: Undecided
         Status: New

** Description changed:

- This issue is due to Dashboard.register is populating the
- panel_template_dirs for horizon template loader with the key
- "admin/users" for the Identity Users panel. However,
- TemplateLoader.get_template_sources would still look up "identity/users"
- for templates by convention (i.e. template "identity/users/index.html")
- 
  Steps to reproduce:
  
  1. Move users panel to be under admin dashboard by modifying _3030_identity_users_panel.py
  2. Set PANEL_GROUP = 'admin'
  3. Set PANEL_DASHBOARD = 'admin'
  
  Expected:
  
  1. Users panel to be under Admin panel group in the navigation.
  2. Users panel to load.
  
  Actual:
  
- 
  1. Users panel under Admin panel group in the navigation.
  2. Users panel would generate a TemplateDoesNotExist
+ 
+ Observations:
+ 
+ This issue is due to Dashboard.register populates the
+ panel_template_dirs for horizon template loader with the key
+ "admin/users" for the Identity Users panel. However,
+ TemplateLoader.get_template_sources would still look up "identity/users"
+ for templates by convention (i.e. template "identity/users/index.html")

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1533910

Title:
  Relocating panel to a different dashboard via Pluggable Settings
  causes TemplateDoesNotExist

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Steps to reproduce:

  1. Move users panel to be under admin dashboard by modifying _3030_identity_users_panel.py
  2. Set PANEL_GROUP = 'admin'
  3. Set PANEL_DASHBOARD = 'admin'

  Expected:

  1. Users panel to be under Admin panel group in the navigation.
  2. Users panel to load.

  Actual:

  1. Users panel under Admin panel group in the navigation.
  2. Users panel would generate a TemplateDoesNotExist

  Observations:

  This issue is due to Dashboard.register populates the
  panel_template_dirs for horizon template loader with the key
  "admin/users" for the Identity Users panel. However,
  TemplateLoader.get_template_sources would still look up
  "identity/users" for templates by convention (i.e. template
  "identity/users/index.html")

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1533910/+subscriptions