{"id":536,"date":"2016-06-20T13:33:32","date_gmt":"2016-06-20T13:33:32","guid":{"rendered":"http:\/\/www.piglets.org\/blog\/?p=536"},"modified":"2016-06-20T13:43:01","modified_gmt":"2016-06-20T13:43:01","slug":"opus-and-assessment-3-regime-change","status":"publish","type":"post","link":"https:\/\/www.piglets.org\/blog\/2016\/06\/20\/opus-and-assessment-3-regime-change\/","title":{"rendered":"OPUS and Assessment 3 - Regime Change"},"content":{"rendered":"<p>This is the third and final article in a short series on how OPUS, a system for managing placement on-line, handles assessment. You probably want to read the <a href=\"http:\/\/www.piglets.org\/blog\/2016\/06\/20\/opus-and-assessment-1\/\">first<\/a> and <a href=\"http:\/\/www.piglets.org\/blog\/2016\/06\/20\/opus-and-assessment-2-adding-custom-assessments\/\">second<\/a> article before getting into this.<\/p>\n<h1>Regime Change<\/h1>\n<p>It's not just in geo-political diplomacy that regime change is a risky proposition. In general you <strong>should not change a regime once it has been established and students entered on to it<\/strong>. If you do, there is a risk that marks and feedback will become unavailable for existing assessments, or that marks are calculated incorrectly and so on. Obviously it is also non-ideal practice for the transparency of assessment.<\/p>\n<p>Instead you should create a new regime in advance of a new academic year, change the assessment settings in the relevant programmes of study to indicate that regime will come into force in the new year, and brief all parties appropriately. All of this is done by the techniques covered in the first two articles. If you have done all that, well done, and you can stop reading now.<\/p>\n<p>This article is about what to do if students are on a given assessment regime in OPUS, and somebody decides to change that regime midstream, when marks are already recorded for early items.<\/p>\n<h1><strong>TL;DR DON'T DO THIS, TURN BACK NOW!<\/strong><\/h1>\n<p>This shouldn't ever happen, as noted really you need to ensure your regime changes are correctly configured and enabled before any students start collecting marks.<\/p>\n<p>And yet, it does happen, or at least it has happened to me twice that I have been asked to make tweaks to a regime where student marks already exist. Indeed it is happened to me this week, hence this article.<\/p>\n<p>Even changing small details like titles will effect the displayed data for students from previous years. Tweaking weightings could cause similar or more serious problems.<\/p>\n<p>So what happens if we create a new regime and move our students onto it midstream? Well, the existing marks and feedback are recorded against the old regime, so they will \"disappear\" unless and until the students are placed back on that regime.<\/p>\n<p>If you want to do this, and copy over the marks from the old regime into the new regime, there is a potential way to do this. It is only been used a handful of times and should be considered dangerous. It also probably won't work if your original marks use a regime where the same assessment appears more than once in the regime for any given student.<\/p>\n<p>But, if you're here and want to proceed, it will probably be possible using what was deliberately undocumented functionality.<\/p>\n<p>You will need command line, root access (<strong>deliberately - this is not a bug<\/strong>), in order to do this. If you haven't got root access you need to get someone who does so you can... Read all the instructions before starting.<\/p>\n<h2>0. BACK UP ALL YOUR DATA NOW<\/h2>\n<p>Before contemplating this insanity, ensure your OPUS database is backed up appropriately. I'd also extract a broadsheet of all existing collected assessment for good measure from the <em>Information, Reports<\/em> section of the Admin interface.<\/p>\n<p><strong>That said, this functionality deliberately copies data, it doesn't delete it - but still.<\/strong><\/p>\n<h2>0. NO REALLY, BACK UP ALL YOUR DATA NOW, I REALLY MEAN IT.<\/h2>\n<p>&nbsp;<\/p>\n<p>Ok, you're still here.<\/p>\n<p>First of all this approach only makes sense (obviously) if the marks you have already captured are valid. I.e. the assessment(s) you want to change are in the future for the students and haven't been recorded. If not, then obviously OPUS can't help you do anything meaningful with the marks you have already collected.<\/p>\n<h2><strong>1. Make your New Assessment(s)<\/strong><\/h2>\n<p>Maybe you plan to just change from one stock assessment to another, or perhaps you want to adjust a weighting on an existing assessment that hasn't been undertaken by students in this year. In this case, you can skip this step<strong>.<\/strong><\/p>\n<p>But if needed, create and test any new assessments following the approach laid out in the <a href=\"http:\/\/www.piglets.org\/blog\/2016\/06\/20\/opus-and-assessment-2-adding-custom-assessments\/\">second article in this series<\/a>. Do make sure you spend some time testing the form.<\/p>\n<h2>2. Add and Configure a New Assessment Regime<\/h2>\n<p>Create your new assessment regime, as <a href=\"http:\/\/www.piglets.org\/blog\/2016\/06\/20\/opus-and-assessment-1\/\">detailed in the first article<\/a>, <strong>but don't link it to any programmes yet.<\/strong><\/p>\n<p>Your new regime should be configured as you wish it to be. Remember, for there to be any point in this exercise, the early assessments already undertaken by the students need to be the same (though not necessarily in the same order) - otherwise OPUS can't help and you need to sort out all the marks in transition entirely manually.<\/p>\n<h2>3. Note the IDs of the Old and New Regimes<\/h2>\n<p>Things start to get clunky at this point. Remember, we are heading off road. You will need the database ID of both the old regime and the new one.<\/p>\n<p>You can obtain these by, for instance, going to <em>Assessment Groups<\/em> in the <em>Configuration<\/em> menu and editing the regimes in turn. The URL will show something like this:<\/p>\n<p><a href=\"http:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.10.29.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-538\" src=\"http:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.10.29.png\" alt=\"URL\" width=\"520\" height=\"19\" srcset=\"https:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.10.29.png 520w, https:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.10.29-300x11.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/a><\/p>\n<p>At the very end, you will \"id=2\" so 2 is the id we want. Write these down for both regimes, noting carefully the old and new one. It's almost certain the new id will be larger than the old one.<\/p>\n<h2>4. Choose your timing well<\/h2>\n<p>You want to complete the steps from here on in, smoothly, in a relatively short time period. It is advisable that you <strong>switch OPUS into maintenance mode<\/strong> in a scheduled way with prior warning. This can be done from the <em>Superuser<\/em>, Services menu in the admin interface, if you are a superuser level admin - if you aren't you shouldn't be doing this without the help of such a user. You can also enter maintenance mode with the command line tool.<\/p>\n<h2>5. Use the Command Line Tool with root access<\/h2>\n<p>OPUS ships with a command line utility. With luck, typing \"opus\" from a root command prompt will reveal it. It's usually installed in \/usr\/sbin\/ and may not require root access in general, but it most certainly will insist on it for this use.<\/p>\n<p><a href=\"http:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.16.13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-539\" src=\"http:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.16.13.png\" alt=\"OPUS Command Line Tool\" width=\"563\" height=\"463\" srcset=\"https:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.16.13.png 563w, https:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.16.13-300x247.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>If that didn't work, go find it in the <em>cron<\/em> directory of your OPUS install and run it with<\/p>\n<pre class=\"lang:sh decode:true\">php opus.php<\/pre>\n<p>If you needed this to work, you'll need to use instead of just using \"opus\" in the next command. We need a command called <em>copy_assessment_results<\/em> and you'll note it's not on the list. It's not on the <em>dev_help<\/em> list either, because ... did I mention this is a stupid thing to do? You need to enter in the command as follows <strong>changing the id for old and new regimes to be those you wrote down in step 3. All on one line.<\/strong><\/p>\n<pre class=\"lang:default decode:true\">opus copy_assessment_results old_regime_id=1&amp;new_regime_id=2<\/pre>\n<p>Don't run this more than once, the code isn't smart enough not to copy over an additional set of data with possibly \"exciting\" results.<\/p>\n<p>This copies assessment results and feedback, and marks from one regime to another. It's potentially wasteful but it can't identify the correct students and doesn't delete data as an obvious precaution.<\/p>\n<h2>6. Enable the New Regime for Students<\/h2>\n<p>Even in maintenance mode, Superuser admins can log in and act. You can switch over your regime now. Maybe do this for one programme and test the results before using the <a href=\"http:\/\/www.piglets.org\/blog\/2016\/06\/20\/opus-and-assessment-1\/\">bulk change facility<\/a> discussed in the previous article.<\/p>\n<p>With luck you will see your shiny new assessment regime with the old marks and feedback for the existing work in the old regime copied over. Older students on the old regime should still show their results and feedback correctly.<\/p>\n<p>If not - well, this is what that backup in step 0 was for, right? And you'll have to do it manually from the broadsheet you exported as well.<\/p>\n<h2>7. Re-enable Normal Access<\/h2>\n<p>Either from the command line tool with<\/p>\n<pre class=\"lang:default decode:true \">opus start<\/pre>\n<p>or from the <em>Superuser, Services<\/em> menu, re-open OPUS for formal access.<\/p>\n<h2>8. Corrective Action<\/h2>\n<p>Explain to relevant colleagues the pain and stress of having to do this and that in future all assessment regime changes should be done appropriately, before students begin completing assessments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the third and final article in a short series on how OPUS, a system for managing placement on-line, handles assessment. You probably want to read the first and second article before getting into this. Regime Change It's not just in geo-political diplomacy that regime change is a risky proposition. In general you should [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"vkexunit_cta_each_option":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[7,125],"tags":[168,126,121,167,166],"class_list":["post-536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-11-free-software","category-higher-education","tag-assessment","tag-higher-education","tag-opus","tag-placement","tag-work-based-learning"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.piglets.org\/blog\/wp-content\/uploads\/2016\/06\/Screen-Shot-2016-06-20-at-14.16.13.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/p52I4w-8E","_links":{"self":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":4,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"predecessor-version":[{"id":542,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions\/542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/media\/539"}],"wp:attachment":[{"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.piglets.org\/blog\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}