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
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. Exist
2. Users panel would generate a TemplateDoesNot