Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sort on module bay status field error #13756

Closed
ahlee1 opened this issue Sep 13, 2023 · 3 comments · Fixed by #13761
Closed

Sort on module bay status field error #13756

ahlee1 opened this issue Sep 13, 2023 · 3 comments · Fixed by #13761
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@ahlee1
Copy link

ahlee1 commented Sep 13, 2023

NetBox version

v3.6.1

Python version

3.10

Steps to Reproduce

  1. Create a module bay
  2. Sort Module bay on Status
  3. Click on module bay tab again

Expected Behavior

Either:

  1. Sort on Module Bay Status
  2. No sorting on module bay status allowed

Observed Behavior

<class 'django.core.exceptions.FieldError'>

image

@ahlee1 ahlee1 added the type: bug A confirmed report of unexpected behavior in the application label Sep 13, 2023
@pv2b
Copy link
Contributor

pv2b commented Sep 14, 2023

This seems to be valid, I can repro this in my own instance. Worse still, the error seems to be persistent, making it impossible to view any more module bays, even after removing browser cookies, implying the corrupted configuration is stored server-side somewhere. I'd say this makes the issue at least "medium" severity because triggering this bug completely disables module bay functionality until a manual fix is made somehow.

@abhi1693
Copy link
Member

You can clear the table configuration from your profile

@pv2b
Copy link
Contributor

pv2b commented Sep 14, 2023

You can clear the table configuration from your profile

Thanks for this, I was half-way through trying to figure out how to do it in nbshell, but the workaround if you get stuck in this place is:

  1. Click your username in top right and select Preferences.
  2. Under "Table Configurations" heading, under the "Clear table preferences" section, check the checkbox next to "DeviceModuleBayTable" and press submit.

@abhi1693 abhi1693 self-assigned this Sep 14, 2023
@abhi1693 abhi1693 added the status: accepted This issue has been accepted for implementation label Sep 14, 2023
abhi1693 added a commit that referenced this issue Sep 14, 2023
@jeremystretch jeremystretch added the severity: low Does not significantly disrupt application functionality, or a workaround is available label Sep 18, 2023
jeremystretch added a commit that referenced this issue Sep 18, 2023
* disables module_status ordering #13756

* Set accessor for module status value

---------

Co-authored-by: Jeremy Stretch <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants