RunestoneComponents icon indicating copy to clipboard operation
RunestoneComponents copied to clipboard

:optional: activities counted when not logged in?

Open bhoffman0 opened this issue 4 years ago • 1 comments

A student reported he could only get 13 out of 14 activities in https://csawesome.runestone.academy/runestone/books/published/csawesome/Unit1-Getting-Started/topic-1-4-assignment.html When I log in, that page says there are a total of 13 activities, but in incognito mode not logged in, it says a total of 14 activities. I have the CodeLens activity on that page marked as :optional: and I think that's the cause of the mismatch. I think I marked it as optional because it doesn't record completion so that's a different problem. I checked some other pages like 2.1 and 3.1 where I have videos as optional and they also showed different total number of activities if you're logged on or not.

One more unrelated thing I noticed is that Parsons problems are not getting labelled and numbered as Activity: with number.

bhoffman0 avatar Oct 01 '21 15:10 bhoffman0

Thanks,

Yes when you are not logged in it just counts every runestone component. I didn't ever really think about it for the not-logged in case since it won't save to the database. Will have to look at how to fix it.

I did a quick investigation and it appears that parsons problems are missing the data-question-label attribute. That should not be too hard to fix.

bnmnetp avatar Oct 02 '21 17:10 bnmnetp