Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Toggle the visibility of navigation menu items #9070

Closed
jeremystretch opened this issue Apr 7, 2022 · 6 comments
Closed

Toggle the visibility of navigation menu items #9070

jeremystretch opened this issue Apr 7, 2022 · 6 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@jeremystretch
Copy link
Member

NetBox version

v3.2.0

Feature type

New functionality

Proposed functionality

Enable NetBox administrators to disable certain navigation menu headings (e.g. Wireless or Circuits). This would most likely be implemented as a dynamic configuration option.

Use case

This has come up a few times in various forums. I think the main theme is wanting to "hide" areas of NetBox that are unused. With the change to programmatically-rendered menu items in v3.0, I think this is more feasible than it has been in the past.

Database changes

No response

External dependencies

No response

@jeremystretch jeremystretch added type: feature Introduction of new functionality to the application status: under review Further discussion is needed to determine this issue's scope and/or implementation labels Apr 7, 2022
@stephanblanke
Copy link
Contributor

I would propose to tie the visibility of menu items to the users permissions, instead of a separate option in the admin panel. Usually we want to hide an object type for the user in the web interface and the API.

@emersonfelipesp
Copy link
Contributor

I would propose to tie the visibility of menu items to the users permissions, instead of a separate option in the admin panel. Usually we want to hide an object type for the user in the web interface and the API.

I agree with @stephanblanke, having a global way of manage which navigation buttons must appear is cool. But for me, the real solution is to have this related to the permission group.

I work at an ISP and there are Netbox users which only uses the "Devices (DCIM)" section while others uses only the logical ones, like "Virtualization" and "IPAM".

But again, having a global visibility configuration is fine too, as none of the users of Netbox at the ISP uses the "Wireless" section.

@joaolucasmacedo
Copy link

That is pretty nice, but I would go further and consider some configuration to hide certain fields from objects, because there is so much information but mos people don't use all of them. So, if I'm proposing something feasible, it would be nice to have a way to hide some fields making navigation and object manipulation much cleaner and quicker.

@emersonfelipesp
Copy link
Contributor

That is pretty nice, but I would go further and consider some configuration to hide certain fields from objects, because there is so much information but mos people don't use all of them. So, if I'm proposing something feasible, it would be nice to have a way to hide some fields making navigation and object manipulation much cleaner and quicker.

Maybe instead of "simply" manage the Model permissions as Netbox currently do, it would be necessary to create some mechanism to manage the field permissions of the Model.

@lknflexfone
Copy link

we can defently concour on this feature, would be nice if the view was bound the permissions model so you only presented what your permissions gave you access to.

@jeremystretch jeremystretch added needs milestone Awaiting prioritization for inclusion with a future NetBox release and removed status: under review Further discussion is needed to determine this issue's scope and/or implementation labels May 24, 2022
@jeremystretch
Copy link
Member Author

I'm going to tag this for v3.3 with the modification that permissions will be used to control the display of menu items. A user will be able to see only the navigation menu items for which he or she has permission to view the relevant objects (instead of the menu items being grayed out).

That is pretty nice, but I would go further and consider some configuration to hide certain fields from objects, because there is so much information but mos people don't use all of them.

Any discussion along this vein would be wholly out of scope for this FR I'm afraid.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed needs milestone Awaiting prioritization for inclusion with a future NetBox release labels Jun 29, 2022
@jeremystretch jeremystretch self-assigned this Jun 29, 2022
@jeremystretch jeremystretch added this to the v3.3 milestone Jun 29, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

5 participants