ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Is this a bug


  • 2015-02-18 06:45:05

    Is this a bug

    Hi Greg

    I think I have found a bug in ATutor with regard to prerequisites and lesson order. I am not sure so I thought I would ask you.

    First, I discovered that you don't need to create folders for prerequisites to work. Simply attaching a test to a piece of content and setting the prerequisites will do it.

    Anyway I have tests 1 2 3 4 5 etc numbered in the order they are entered each test or attached content, has all the preceding tests set as prerequisites.

    so

    1 has none
    2 has 1
    3 has 1 and 2
    4 has 123
    5 has 1234

    The prerequisites work well until you delete and recreate the test.


    if for instance you delete test 1 and recreate it and reattach its questions
    it then has a test id of 6 even if it is the first test set by the priorities of the prerequisites. So the test order becomes

    6 2 3 4 5 and the prerequisite looks like this

    6
    2 has 6
    3 has 2 and 6
    4 has 236
    5 has 2346

    The problem comes when you then try to enforce a new user to follow the prerequisite.

    So for someone who has not started the course the following happens.

    Whether the tests are in folders with prerequisites or just attached to content with prerequisites, if you click on item 2 it will tell you to complete item 1 and show you the appropriate content for test 1.

    This is because item 2 only has one prerequisite which is test 1 with an id of 6.

    But if you select item 3 or greater it will tell you you have to do the prerequisite of 2 and show you the corresponding test start with the begin button. And a user can press it and attempt the questions, but upon submission get an error saying there is no such item.

    What I believe is happening is that the prerequisite function is looking at the test id in the database but assuming that the lowest test id is the prerequisite rather than an actual prerequisite order.

    I hope this is clear

    The answer of course is to delete all the tests and recreate them in order and reattach questions then reattach them to their content.

    So is there a way to set prerequisite order other than just saying which tests have to be done before a piece of content is available?

    Thanks

    Jim Barnes

  • 2015-02-18 09:18:20

    Re: Is this a bug

    First I'd suggest just one prerequisite per folder. You can sequence them so that earlier prerequisites need to be complete before access to latter prerequisites.

    Test this on the demo site and see if you can reproduce it there.

  • 2015-02-18 16:58:30

    Re: Is this a bug

    Hello Greg

    That's what I did one, prerequisite per folder.

    All prerequisites were set correctly to ensure their sequence.

    Then the first test was deleted and recreated. Checking the database shows that it was allocated a higher id than the last test.

    But I will test it on the demo server and see what happens there.

    cheers

    Jim

  • 2015-02-18 18:03:40

    Re: Is this a bug

    Hello Greg

    The problem exists.

    I tested on the demo server (My Test)

    I created 5 tests with two questions each.

    I attached each of them to a separate piece of content which had the prerequisite set, so that preceding tests must be completed.

    Placed that content in a folder with the prerequisite set also so that all preceding tests must be completed.

    I created a user john john1234 and enrolled him in the course, then tested.
    but did not answer any questions so there were no submissions.

    The prerequisites worked exactly as expected, selecting anything other than test 1 was greeted with a message that test 1 must be completed and showed you the start button for test 1.

    I then deleted test 1 and recreated it and reattached its questions and set the prerequisites in all content and folders again since test 1 prerequisite had been erased when I deleted the test.

    I then logged in as the student I created and just as I said in the OP. If I select test 1 there is no prerequisite, if I select test 2 it shows that I must complete test 1, If I select test 3 it shows that I must complete test 2, and so on for all the tests after test 2.

    All of them tell me I need to complete test 2. Rather than as happened before I deleted and recreated test 1. Where they all told me I needed to complete test 1.

    I have attached before and after backups but I fear there is no point in providing them as the id's probably get created in order when restoring. So the problem may not be evident.

    Best regards

    Jim Barnes

  • 2015-02-19 18:50:52

    Re: Is this a bug

    Hello Greg

    I should have started the last post with the message that I understand what you meant.

    set up the tests and content and folders so that each item only has one prerequisite instead of multiple, like this:

    1 has none
    2 has 1
    3 has 2
    4 has 3
    5 has 4
    6 has 5

    The problem is that if someone who has not started the course clicks on test six they will be shown the start button for 5 and be allowed to do the test but get no results, and so on down the line to 1.

    That or they would go to 5 then be told to go to 4 then to 3 then 2 and finally arrive at 1.

    I know people are curious and sometimes even blatantly ignore requests to follow the clearly labeled order of test.

    So I was trying (hoping really) that I could enforce a progression order without relying on peoples compliance.

    Cheers

    Jim Barnes

  • 2015-02-20 09:29:36

    Re: Is this a bug

    Have add this to the tracker for the next dev cycle:
    http://atutor.ca/atutor/mantis/view.php?id=5568

  • 2015-12-30 12:42:03

    Re: Is this a bug

    This should be fixed in ATutor 2.2.1. The problem was the prerequisites were not being deleted when a test was deleted. Here's the change:

    https://github.com/atutor/ATutor/commit/5572cad4aeacb7dbeb59132864c13148ae4f03c8

    Otherwise, pages take on the release date of the parent folder, so if a folder has a release date before the test's release date, the folders release date will replace the test's release date.