refactor: rework scores pages for improved usability and performance
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
User answer compaction should only be available to admin users and only on an exam wide basis.
|
||||
We need to rework the scores pages for all of the app exams. we need to try to make sure that we keep all of the content that currently exists but display it in a more usable format. at the same time we need to optimise the request as for some of the app with large number of users this results in a large number of sql queries. it would be work splitting some of the page content into different sections that can be loaded via htmx partials (so that they are also reusable elsewhere).
|
||||
|
||||
We need to update tests so that they can handle the new format of answer submission from rts (although this may actually be due to a bug in the underlying submission code):
|
||||
|
||||
res = client.post(reverse("global_exam_answers_submit"), data=post_json)
|
||||
json_res = json.loads(res.content)
|
||||
assert json_res["success"] == False
|
||||
> assert json_res["error"] == "Invalid data"
|
||||
E AssertionError: assert 'user / cid mismatch' == 'Invalid data'
|
||||
E
|
||||
E - Invalid data
|
||||
E + user / cid mismatch
|
||||
At the same time we need to have a look at how the scores are calculated, some of the apps currently use exam caching. if possible we want to avoid this, if not we want it to be fully transparent to the end user.
|
||||
Reference in New Issue
Block a user