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

Server Error on name sort #47

Closed
FabryUr opened this issue Oct 3, 2024 · 1 comment · Fixed by #51
Closed

Server Error on name sort #47

FabryUr opened this issue Oct 3, 2024 · 1 comment · Fixed by #51
Assignees
Labels
bug Something isn't working

Comments

@FabryUr
Copy link

FabryUr commented Oct 3, 2024

Plugin version

v1.1.3

NetBox version

v4.1.1

Python version

3.9

Steps to Reproduce

  1. Click on the "Name" column to sort the data.
  2. Refresh the page.
    NOTE:
    If the error doesn't occur delete the sorting that you have in the url. Also if you want to solve it, in the url insert the following:
    "/plugins/lifecycle/lifecycle/?sort=end_of_support"

Expected Behavior

Firstly it should not throw an error. Also it would be nice to sort the data with the name column.
In addition it doesn't work for the "hardware" and "assigned object count" fields, so it would be nice to sort by those too.

Observed Behavior

A Server Error occured, and you cannot make it disappear with reload. The only solution is to modify the url as mentioned before.
kép_2024-10-03_103844113

@DanSheps DanSheps self-assigned this Oct 4, 2024
@DanSheps DanSheps added the bug Something isn't working label Oct 4, 2024
@DanSheps
Copy link
Owner

DanSheps commented Oct 4, 2024

To clarify, these are GenericForeignKeys and are not orderable. I could likely introduce a specific view for "DeviceType Lifecycle" and "ModuleType Lifecycle" that would be orderable but unfortunately these fields are not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants