gqlAvailabilityTypes on EmploymentContract CRUD list causes 500 #59
magicfelix
commented 2026-04-15 10:59:52 +02:00
(Migrated from edugit.org)
```
Traceback (most recent call last):
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/core/handlers/base.py", line 198, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python3.13/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/usr/lib/python3.13/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/views/generic/base.py", line 106, in view
return self.dispatch(request, *args, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/utils/decorators.py", line 48, in _wrapper
return bound_method(*args, **kwargs)
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/utils/decorators.py", line 192, in _view_wrapper
result = _process_exception(request, e)
File "/srv/aleksis-venv/lib/python3.13/site-packages/django/utils/decorators.py", line 190, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene_django/views.py", line 201, in dispatch
result, status_code = self.get_response(request, data, show_graphiql)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene_django/views.py", line 218, in get_response
execution_result = self.execute_graphql_request(
request, data, query, variables, operation_name, show_graphiql
)
File "/srv/aleksis-venv/lib/python3.13/site-packages/aleksis/core/views.py", line 258, in execute_graphql_request
validation_errors = validate(
schema=schema.graphql_schema,
document_ast=parse(query),
rules=(depth_limit_validator(max_depth=10),),
)
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphql/validation/validate.py", line 82, in validate
visitors = [rule(context) for rule in rules]
~~~~^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene/validation/depth_limit.py", line 68, in __init__
query_depths[name] = determine_depth(
~~~~~~~~~~~~~~~^
node=queries[name],
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
ignore=ignore,
^^^^^^^^^^^^^^
)
^
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene/validation/depth_limit.py", line 159, in determine_depth
return max(
map(
...<10 lines>...
)
)
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene/validation/depth_limit.py", line 161, in <lambda>
lambda selection: determine_depth(
~~~~~~~~~~~~~~~^
node=selection,
^^^^^^^^^^^^^^^
...<5 lines>...
ignore=ignore,
^^^^^^^^^^^^^^
),
^
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene/validation/depth_limit.py", line 132, in determine_depth
return 1 + max(
~~~^
map(
^^^^
...<10 lines>...
)
^
)
^
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene/validation/depth_limit.py", line 134, in <lambda>
lambda selection: determine_depth(
~~~~~~~~~~~~~~~^
node=selection,
^^^^^^^^^^^^^^^
...<5 lines>...
ignore=ignore,
^^^^^^^^^^^^^^
),
^
File "/srv/aleksis-venv/lib/python3.13/site-packages/graphene/validation/depth_limit.py", line 148, in determine_depth
node=fragments[node.name.value],
~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'availabilityTypeFields'
```
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-App-Kolego#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?