Error when attempting to view Coach Exam Reports
See original GitHub issueObserved behavior
On my instance, go to view exam report at
Get this TypeError (TypeError: filter_collection() takes exactly 3 arguments (4 given))
ERROR Internal Server Error: /api/examlog/
Traceback (most recent call last):
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/viewsets.py", line 90, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/views.py", line 489, in dispatch
response = self.handle_exception(exc)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/views.py", line 449, in handle_exception
self.raise_uncaught_exception(exc)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/views.py", line 486, in dispatch
response = handler(request, *args, **kwargs)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/mixins.py", line 40, in list
queryset = self.filter_queryset(self.get_queryset())
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/rest_framework/generics.py", line 152, in filter_queryset
queryset = backend().filter_queryset(self.request, queryset, self)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/rest_framework/backends.py", line 54, in filter_queryset
return filter_class(request.query_params, queryset=queryset, request=request).qs
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/rest_framework/filterset.py", line 50, in qs
return super(FilterSet, self).qs
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/filterset.py", line 220, in qs
qs = filter_.filter(qs, value)
File "/Users/jon/.venvs/kolibri/lib/python2.7/site-packages/django_filters/filters.py", line 713, in __call__
return self.method(qs, self.f.field_name, value)
TypeError: filter_collection() takes exactly 3 arguments (4 given)
ERROR "GET /api/examlog/?exam=77d87e49c67c4ff9ac96bc543d836f4f&collection=df6308209356328f726a09aa9bd323b7&1515535689923=1515535689923 HTTP/1.1" 500 30882
Expected behavior
No Error. Exam report shows up.
User-facing consequences
User not able to view Exam reports.
Errors and logs
See description
Steps to reproduce
- Create and activate an Exam
- Try to view report for the exam. (My classroom has 2 learners. One Learner submitted an attempt).
- Get error
Context
- Kolibri version: develop
- Operating system: mac
- Browser: chrome
…
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
BINDING A MAP TO A COACH VIEW RESULTS IN ERROR
When trying to create a Coach View with a business data variable of type map, the following error occurs when binding a map...
Read more >Credentials Archives - International Coaching Federation
Coaching supervisor must hold an active coaching supervision certification, credential or accreditation by a coaching or coaching supervision professional body; ...
Read more >Coaching Actuaries Support
What do I do if I get an error message at checkout? Why is my credit card being blocked when I try to...
Read more >OPTAVIA App | U.S. COACH ANSWERS
The OPTAVIA App is a one-stop resource for OPTAVIA Coaches and Clients seeking Lean & Green recipes, self-service options related to OPTAVIA ...
Read more >Getting started with Reading Progress in Teams
To view the words the student practiced with Reading Coach, select Practiced words. Attempts shows how many times the student practiced, with stars...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the DRF API is a different thing entirely, having to do with the Django App settings. I will write up a separate issue for it, after I find some of the affected endpoints.
Should be fixed by #3147