trampgeek / moodle-qtype_coderunner

CodeRunner: A moodle quiz question type that runs student-submitted program code in a sandbox to check if it satisfies a given set of tests.
GNU General Public License v2.0
207 stars 120 forks source link

Development - grade result cache with on/off switch for local testing #215

Closed mckeownp closed 2 months ago

mckeownp commented 2 months ago

Hi Richard, here is the updated grade result cache code for testing.

It has the on/off switch and doesn't cache WS requests (eg, try-it or scratchpad jobs).

Cheers, Paul

trampgeek commented 2 months ago

Thanks Paul. I merged and pulled to my own machine.

Interestingly, when I then tried to use the updated Moodle I landed on an error page, telling me that I was missing some strings relating to gradecache. I couldn't find any way out of that error page. I was able to get going again by updating version.php, so that when I reloaded the page I got thrown into the admin update-plugsin page, which cleared the cache and loaded in your new settings. I guess the moral there is always to update version.php to the current date when pushing to development (not something I'm in the habit of doing, either).

The plugin update page then nicely presented me with:

[cid:41d748d7-7856-4c04-b3a2-9ce531db953d]

Which looks nice. Thanks 🙂

Richard


From: Paul McKeown @.> Sent: Wednesday, 17 July 2024 5:24 pm To: trampgeek/moodle-qtype_coderunner @.> Cc: Subscribed @.***> Subject: [trampgeek/moodle-qtype_coderunner] Development - grade result cache with on/off switch for local testing (PR #215)

Hi Richard, here is the updated grade result cache code for testing.

It has the on/off switch and doesn't cache WS requests (eg, try-it or scratchpad jobs).

Cheers, Paul


You can view, comment on, or merge this pull request online at:

https://github.com/trampgeek/moodle-qtype_coderunner/pull/215

Commit Summary

File Changes

(5 fileshttps://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files)

Patch Links:

— Reply to this email directly, view it on GitHubhttps://github.com/trampgeek/moodle-qtype_coderunner/pull/215, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIM2VQ5EOC56FPOU2IX2K3ZMX5ZZAVCNFSM6AAAAABK73WEYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTENRXG42TMOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

This email may be confidential and subject to legal privilege, it may not reflect the views of the University of Canterbury, and it is not guaranteed to be virus free. If you are not an intended recipient, please notify the sender immediately and erase all copies of the message and any attachments.

mckeownp commented 2 months ago

Hi,

ah yes, I did wonder about the versioning implications but I figured you'd know what to do there 😄

On Wed, 17 Jul 2024, 19:50 Richard Lobb, @.***> wrote:

Thanks Paul. I merged and pulled to my own machine.

Interestingly, when I then tried to use the updated Moodle I landed on an error page, telling me that I was missing some strings relating to gradecache. I couldn't find any way out of that error page. I was able to get going again by updating version.php, so that when I reloaded the page I got thrown into the admin update-plugsin page, which cleared the cache and loaded in your new settings. I guess the moral there is always to update version.php to the current date when pushing to development (not something I'm in the habit of doing, either).

The plugin update page then nicely presented me with:

[cid:41d748d7-7856-4c04-b3a2-9ce531db953d]

Which looks nice. Thanks 🙂

Richard


From: Paul McKeown @.> Sent: Wednesday, 17 July 2024 5:24 pm To: trampgeek/moodle-qtype_coderunner @.> Cc: Subscribed @.***> Subject: [trampgeek/moodle-qtype_coderunner] Development - grade result cache with on/off switch for local testing (PR #215)

Hi Richard, here is the updated grade result cache code for testing.

It has the on/off switch and doesn't cache WS requests (eg, try-it or scratchpad jobs).

Cheers, Paul


You can view, comment on, or merge this pull request online at:

https://github.com/trampgeek/moodle-qtype_coderunner/pull/215

Commit Summary

File Changes

(5 files< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files>)

Patch Links:

— Reply to this email directly, view it on GitHub< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AAIM2VQ5EOC56FPOU2IX2K3ZMX5ZZAVCNFSM6AAAAABK73WEYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTENRXG42TMOI>.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

This email may be confidential and subject to legal privilege, it may not reflect the views of the University of Canterbury, and it is not guaranteed to be virus free. If you are not an intended recipient, please notify the sender immediately and erase all copies of the message and any attachments.

— Reply to this email directly, view it on GitHub https://github.com/trampgeek/moodle-qtype_coderunner/pull/215#issuecomment-2232657860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM335VFXIWILWSE6GV3YNJDZMYO2ZAVCNFSM6AAAAABK73WEYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGY2TOOBWGA . You are receiving this because you authored the thread.Message ID: @.***>