Skip to content

User's table configuration includes errant key available_columns #8564

@jeremystretch

Description

@jeremystretch

NetBox version

v3.1.7

Python version

3.8

Steps to Reproduce

  1. Open the sites list as an authenticated user
  2. Add or remove a table column (to effect a custom configuration)
  3. Inspect the UserConfig instance for the user in the NetBox shell:
>>> config = UserConfig.objects.get(user_id=$USERID)
>>> config.data['tables']['SiteTable']
{'columns': ['name', 'status', 'facility', 'region', 'tenant', 'tags'], 'available_columns': []}

Expected Behavior

The table preferences should include only the columns key.

Observed Behavior

The available_columns key is also present, and contains an empty list.

Although this has no known impact on NetBox's operation, this key should not appear in UserConfig data.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: 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