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

Edit box in task editor does not list subdirectories #637

Closed
geordi opened this issue Mar 17, 2025 · 2 comments
Closed

Edit box in task editor does not list subdirectories #637

geordi opened this issue Mar 17, 2025 · 2 comments
Assignees

Comments

@geordi
Copy link
Member

geordi commented Mar 17, 2025

Edit box with path in task editor used to display subdirectories when there were some. At this point, it doesn't show anything probably due to the following error in /api/task-list endpoint:

Internal Server Error: /api/task-list
Traceback (most recent call last):
  File "/home/geordi/projects/kelvin/.venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/geordi/projects/kelvin/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/geordi/projects/kelvin/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/geordi/projects/kelvin/api/views.py", line 115, in tasks_list_all
    tasks = params.apply(tasks)
            ^^^^^^^^^^^^^^^^^^^
  File "/home/geordi/projects/kelvin/api/views.py", line 84, in apply
    query = query.order_by(*order)
            ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/geordi/projects/kelvin/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 1659, in order_by
    obj.query.add_ordering(*field_names)
  File "/home/geordi/projects/kelvin/.venv/lib/python3.12/site-packages/django/db/models/sql/query.py", line 2231, in add_ordering
    raise FieldError("Invalid order_by arguments: %s" % errors)
django.core.exceptions.FieldError: Invalid order_by arguments: [None]
@Kobzol
Copy link
Collaborator

Kobzol commented Mar 17, 2025

I noticed this but was too lazy to debug and file and issues, so thanks 😆 I will take a look at this, it's probable that recent changes in the endpoint broke this.

@geordi
Copy link
Member Author

geordi commented Mar 20, 2025

Fixed in #638

@geordi geordi closed this as completed Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants