Files
netbox/netbox/utilities
Aditya Sharma aa69e96818 Fixes #21173: Fix plugin menu registration order timing issue (#21248)
* Fixes #21173: Fix plugin menu registration order timing issue

- Converted static MENUS list to dynamic get_menus() function
- Ensures plugin menus are built at request time after all plugins complete ready()
- Fixes issue where only first few plugin menus appeared in navigation sidebar
- Updated navigation template tag to call get_menus() dynamically

* Fix ruff linting errors

- Add missing blank line before get_menus() function definition
- Remove trailing whitespace

* Add @cache decorator to get_menus() for performance optimization

Per reviewer feedback, the menu list is now cached since it doesn't change
without a Django restart. This eliminates redundant list building on each request.

---------

Co-authored-by: adionit7 <adionit7@users.noreply.github.com>
2026-01-26 10:34:57 -08:00
..
2026-01-06 13:05:07 -05:00
2016-03-01 11:23:03 -05:00
2025-10-29 13:47:01 -04:00
2025-04-10 17:17:21 -04:00
2025-11-05 14:49:36 -05:00
2025-04-10 17:17:21 -04:00
2025-03-04 08:24:54 -05:00
2023-05-16 14:10:44 -04:00
2025-10-03 11:41:04 -04:00
2025-04-22 16:36:17 -04:00