Skip to content

DEFAULT_USER_PREFERENCES.tables not applied on Reset or on anonymous dashboard #13312

@ybizeul

Description

@ybizeul

NetBox version

v3.5.7

Python version

3.10

Steps to Reproduce

  1. Define default i.e. : DEFAULT_USER_PREFERENCES = {"tables":{"DeviceTable":{"columns":["name","rack","device_role","manufacturer","device_type","primary_ip","comments"]}}}
  2. Log in as a new user, and browse to the device table, the default should be honoured
  3. Make a modification to the Device table using "Configure Table" (i.e. remove the "Comments" column)
  4. Save
  5. The "Comments" column is removed
  6. Click again on "Configure Table"
  7. Click on "Reset"
  8. Save
  9. The layout is reset to the NetBox defaults, not to DEFAULT_USER_PREFERENCES value

Additionaly :

  1. Define default i.e. : DEFAULT_USER_PREFERENCES = {"tables":{"DeviceTable":{"columns":["name","rack","device_role","manufacturer","device_type","primary_ip","comments"]}}}
  2. Visit Netbox as a guest
  3. Go to Devices
  4. One would expect that if a user isn't logged in (is a guest), then DEFAULT_USER_PREFERENCES would be used to display informations, instead the NetBox default layout is used

The issue has been discussed here : #9184 (reply in thread)

Expected Behavior

  1. For logged in users, the layout should revert to DEFAULT_USER_PREFERENCES when using Reset feature
  2. For guests, DEFAULT_USER_PREFERENCES should 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

No one assigned

    Labels

    status: revisions neededThis issue requires additional information to be actionabletype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions