Closed mckeownp closed 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.
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
- 63db0bb< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/commits/63db0bbc85ef7bef5fa39c190f88717c1d3e0980> Pre-release version of grade caching with cache read and write switches
- ad84a80< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/commits/ad84a803a6d8f2b82a584ab24e9e94618936b805> Result caching added for Jobe runs. It is turned off by default.
- 4e07518< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/commits/4e0751812bede0b8f80ef78be5a2fdab4a94f3b4> Small tweak to run_in_sandbox to keep old versions of PHP happy.
- 45ebaa3< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/commits/45ebaa3ab7a0923a6470a86dd1837bede1060d3f> Minor wording updates for grade cache settings.
File Changes
(5 files< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files>)
- D .~lock.loadtestingresults2.ods#< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files#diff-f68db786300683cf2491a90c03b925297c9a247eb6d90b9e7790bb4471ea2570> (1)
- M classes/external/run_in_sandbox.php< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files#diff-60488f099429e27cb21c4cddf0c60edbdc2a9c48c1d18434dc6239e172501558> (3)
- M classes/jobesandbox.php< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files#diff-9091470be75c3c568e037e04faef6cd512bca78793d27661d6b27f4449b3eeb1> (38)
- M lang/en/qtype_coderunner.php< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files#diff-3f4992c797fc3fcd8b093a2722560e00b345ed56f2185a1c876017ca221f67f9> (6)
- M settings.php< https://github.com/trampgeek/moodle-qtype_coderunner/pull/215/files#diff-4092c491c25e7e19aceafbe3c49d234ce7d1eca769519197d2ccba7bde75a27e> (21)
Patch Links:
- https://github.com/trampgeek/moodle-qtype_coderunner/pull/215.patch
- https://github.com/trampgeek/moodle-qtype_coderunner/pull/215.diff
— 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: @.***>
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