Open raphendyr opened 4 years ago
Add e.g. exercise API URL to download the exercise info (name, points etc, and exercise_info).
Don't we already have this? What is missing?
Add e.g. exercise API URL to download the exercise info (name, points etc, and exercise_info).
Don't we already have this? What is missing?
Ah. Yeah. Was supposed to make clear that it would be the same for exercise and submission posts. I.e. the assessment service would be able to use it as a cache key (well, tuple of api url and etag would be the cache key).
Currently, the assessment tool is unable to determine if the exercise has changed since the last request. Currently, the best is to inavliade the cache after a while.
However, we could add a value, which defines if the exercise configuration has changed, which would be perfect for the cache.
Few things to consider. The
post_url
has been the best guess for the exercise reference (even that was bad). Thus,exercise_info
).etag
, which can be the timestamp of when the above data was changed or a checksum of itaplus-assess-v1
protocol specAlternatively, these fields can be encoded to a single field, i.e., the cache tag could be part of the url (
http://aplus/api/ex/11?c=123
, wherec=123
is the cache invalidation tag).Update assessment services after this is implemented: