Forum LAMS for Tech-Heads - General Forum: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.


 
Search: 

7: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 1 05/05/09 06:08 PM
[ Reply | Forward ]
Yes all students see the same message.

I can't reproduce this now, the users uploaded a new copy of the sequence. I'll try to keep track of this issue and get more data next time.

Posted by Dave Bauer

9: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 7 05/06/09 07:11 AM
[ Reply | Forward ]
I found the previous sequence in the courses run sequences folder.

I went in to Author and I can see none of the activities have Define in MOnitor checked off.

The first activity that gave this message says it is Read Only, I am not sure if that might be related.

Posted by Dave Bauer

10: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 9 05/06/09 02:51 PM
[ Reply | Forward ]
Hi Dave,

If the these activities where not set to Define in later, then what it could have happened is that a monitor/teacher went into the activity (in monitor) and clicked on the "Edit" button.

The moment they click on "Edit" the "define later" flag is set for the activity and it is not released until the teacher either cancels the edit or save the changes. If the browser window is closed, then the flag is still set. Ergo the problem that you guys are having.

I have added a new task to make this obviuos in monitor (see LDEV-2300).

Best thing to do now is to tell the teachers that if they do edit an activity from monitor, they need to remember to save any changes (even if they don't effectively change anything though).

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 10 05/06/09 05:31 PM
[ Reply | Forward ]
Hi Ernie,

This is a pilot course so multiple people have teacher edit privileged.

So if one person doesn't exit correctly, or their computer crashes or runs out of battery at the wrong time, then no one else can fix the course?

Posted by Caroline Meeks

12: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 11 05/06/09 05:59 PM
[ Reply | Forward ]
> So if one person doesn't exit correctly, or their computer
> crashes or runs out of battery at the wrong time, then no
> one else can fix the course?

Sorry, I might have not expressed myself correctly.

If for some reason they have left the "define later" flag on (computer crash, close the browser, etc) any monitor/teacher (including the teacher whos browser crashed) can go back to Edit the activity from monitor, afterwards just click on save (changing or not anything) and that will fix this problem.

Thanks,

Ernie

Posted by Ernie Ghiglione

13: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 12 05/06/09 06:16 PM
[ Reply | Forward ]
Yes, Caroline and I both tried that from the Monitor screen.

Later I looked inside the Authoring screen and the database and the activity was not set to define later.

It is "read only" in authoring, not sure how or why it is in that state.

I was going to look into the source to see what condition triggers that message, but I haven't had a chance to do that yet.

Posted by Dave Bauer

14: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 13 05/06/09 06:57 PM
[ Reply | Forward ]
Hi Dave,

The issue about being read-only is because that's on the run-sequences folder.

When you create a lesson, LAMS creates a copy of the original sequence and puts it in the run-sequences folder for that course. The purpose of creating a copy is so that you can reuse the original sequence as much as you like without affecting the running instances of itself.

The running copy (in the run-sequence folder) is a readonly design from the point of view of LAMS Author. Because you don't want people to edit the design from Authoring as that's a *running* sequence. You can however edit the running design from monitor:

1.- Editing the content of existing activities (as i mentioned above)
2.- Changing the actual design (with Live Edit).


Anyway, that begs the question: "why do I have access to the run-sequences folder from author?". Well, say you modified your design a lot since you create a lesson... you can go back to the run-folder and see the designs as you run them with different courses.

Although when you open them from Author these sequences are read-only, you can "Save As" in your personal folder to get a copy of that running instance.

Hope that helps.

Ernie

Posted by Ernie Ghiglione

15: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 12 05/07/09 10:18 AM
[ Reply | Forward ]
If the define later flag is not set in the lams_learning_activity table, what else could cause this message?

I haven't been able to find where the check is made in the source code yet.

Posted by Dave Bauer

16: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 15 05/07/09 11:37 AM
[ Reply | Forward ]
Specifically I took the lesson_id from the URL and look in the database to fine the activity that was returning that message and the define_later_flag was set to 0 in the database.

Otherwise I would have assumed that the define_later_flag was set and it was a user error.

Posted by Dave Bauer

17: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 15 05/10/09 12:57 AM
[ Reply | Forward ]
Hi Dave,

I'm very certain that this might have been a user error. You can check how the "define_late" flag gets set in a tool when the monitor clicks on Edit as follows:

1.- Create a sequence with one noticeboard activity. When you open the activity to edit its content put "Unique title" on the title field.
2.- Save and Save the design/sequence
3.- Now, create a lesson for it.

Now if you go to mysql and run:

select uid, title, define_later from tl_lanb11_content where title = 'Unique title';

+-----+----------------------+--------------+
| uid | title | define_later |
+-----+----------------------+--------------+
| 2 | Unique title | 0 |
| 21 | Unique title | 0 |
+-----+----------------------+--------------+
2 rows in set (0.00 sec)

The uid 2 is the original sequence design. The second one (uid 21) is for the running lesson.

4.- No go to monitor, open the noticeboard, go to the Edit tab, and edit the activity... before you save it, check on the db again

select uid, title, define_later from tl_lanb11_content where title = 'Unique title';

+-----+----------------------+--------------+
| uid | title | define_later |
+-----+----------------------+--------------+
| 2 | Unique title | 0 |
| 21 | Unique title | 1 |
+-----+----------------------+--------------+
2 rows in set (0.00 sec)

As you can see now the define_later flag has been set.

If you jump as a learner, you will get the "Sorry, teacher editing activity now"

5.- Click on "Save" and that would release the flag.


Doing this I realized that there's an ugly bug here.. if you cancel the edit, the flag doesn't get release. So it does force you to save though.

For 2.3+, I've been thinking that we need better ways to alert monitors of this situations. Probably by making it very obvious which activities have these flags set in the sequence tab in monitor.

Hope that sheds some light.

Ernie

Posted by Ernie Ghiglione

18: Re: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 17 05/10/09 01:09 AM
[ Reply | Forward ]
Two tasks to prevent/improve this issue in 2.3+

When editing in monitor if press the "Cancel" button, the define_later flag does not get removed.
http://bugs.lamsfoundation.org/browse/LDEV-2329

When a define later flag is set for an activity, show an obvious alert in Monitor sequence view
http://bugs.lamsfoundation.org/browse/LDEV-2330

Thanks,

Ernie

Posted by Ernie Ghiglione

19: Re: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 17 05/10/09 07:08 PM
[ Reply | Forward ]
Ernie,

So the define_later flag is set without anyone choosing Define in Monitor?

That sounds like a serious bug all by itself. Why would that flag be set if the author did not choose that option? Or am I totally missing the point here?

Posted by Dave Bauer

20: Re: Re: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 19 05/10/09 07:12 PM
[ Reply | Forward ]
Aha, apparently now I am awake. So define later is set if someone tries to edit the activity in the monitor, but it is not saved. That seems like a bug all by itself. It looks like that was put in place to stop learners while someone is editing, but anytime you set a lock on something you need a way to release it if there is a problem.

It seems like we need to notify the users in Monitor in two places, first, when you click edit it should tell you the activity is not available until you click cancel or save.

Perhaps we need a timeout of some sort? If you don't save it in X mins it should release the lock. If the teacher later comes back and clicks save, it shouldn't cause a problem. In most cases an abandoned edit should not lock everyone out.

Posted by Dave Bauer

21: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Notebook error, please wait for the teacher to compelte the contents of this activity.
In response to 20 05/10/09 08:05 PM
[ Reply | Forward ]
Timeouts are evil. I think it'll be a lot better to make it really clear (with a strong visual indication) to all teachers/monitors that there's an activity being edited though.

I have added the two tasks above to prevent this in the future.

There's also a discussion about whether we need to stop the students while the teacher edit the content.

Perhaps we could do this in certain activities but not in others. Not sure. Any comments welcome

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum