-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Closed as not planned
Copy link
Labels
status: revisions neededThis issue requires additional information to be actionableThis issue requires additional information to be actionabletype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.5.7
Python version
3.10
Steps to Reproduce
- Define default i.e. :
DEFAULT_USER_PREFERENCES = {"tables":{"DeviceTable":{"columns":["name","rack","device_role","manufacturer","device_type","primary_ip","comments"]}}} - Log in as a new user, and browse to the device table, the default should be honoured
- Make a modification to the Device table using "Configure Table" (i.e. remove the "Comments" column)
- Save
- The "Comments" column is removed
- Click again on "Configure Table"
- Click on "Reset"
- Save
- The layout is reset to the NetBox defaults, not to
DEFAULT_USER_PREFERENCESvalue
Additionaly :
- Define default i.e. :
DEFAULT_USER_PREFERENCES = {"tables":{"DeviceTable":{"columns":["name","rack","device_role","manufacturer","device_type","primary_ip","comments"]}}} - Visit Netbox as a guest
- Go to Devices
- One would expect that if a user isn't logged in (is a guest), then
DEFAULT_USER_PREFERENCESwould be used to display informations, instead the NetBox default layout is used
The issue has been discussed here : #9184 (reply in thread)
Expected Behavior
- For logged in users, the layout should revert to
DEFAULT_USER_PREFERENCESwhen using Reset feature - For guests,
DEFAULT_USER_PREFERENCESshould be used to determine tables columns.
Observed Behaviour
Instead, after reset or when visiting as guest, the table displays the following columns, which I assume are hard coded NetBox defaults :
Name | Status | Tenant | Site | Location | Rack | Role | Manufacturer | Type | IP Address
Also on the dashboard page, the same columns are displayed instead of the one in DEFAULT_USER_PREFERENCES
Metadata
Metadata
Assignees
Labels
status: revisions neededThis issue requires additional information to be actionableThis issue requires additional information to be actionabletype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application