-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No progress indication on Lesson #11879
Comments
Hii @marcellamaki , I would like to work on this. Can you assign this issue to me? |
Hi @Abhishekzod007, thanks for volunteering, I'm assigning you. |
Thanks for assigning @MisRob. I'll give you updates about it. |
@MisRob How is the progress calculated? |
Hii @marcellamaki I tried this for 2 - 3 times and I observed the same behaviour every time. |
Hii @marcellamaki @MisRob could you please give example about this issue because I trying this for the last 2 days but didn't get the point. |
Hi @Abhishekzod007 - thanks for working on this and I'm sorry for the confusion. Please double check and make sure you have follow the first few items in the "Steps to reproduce" directions. It looks from the page here that this learner does not have any lessons assigned.
The other important note is that the bug is on the lesson page (see further down in the steps to reproduce), not the home page. Therefore, in order to reproduce, you must take the steps to create the lessons, so that you can access the lesson page when logged in as a learner, rather than just browse resources, as it looks like you are doing in the screenshots you have shared. If more information about these different roles would be helpful, you can take a look at our general user documentation, in addition to the dev docs. If you have further questions or uncertainties about the steps to reproduce, please ask them here. |
Thanks a lot @marcellamaki , I will give updates about this |
Hey @marcellamaki , I tried as you said , First I created a learner as a name of Learner itself so now in Admin account I assigned the learner a task or lesson and then I went again in the learner account and without completing it I came outside of the lesson and then the next part as you are mentioning that learner will not be able to view lesson indication progress but I facing issue there , but I am able to see the progress indication every time when I closes it or If I return to home screen then also no issue is there. |
Hi @Abhishekzod007 I just recorded a Video to make the issue clearer, the problem is that the lesson is not updating its progress state when we return from the resource. In the video you can see that I need to go back to the home page, or reload the page to have the progress state updated. Compartir.pantalla.-.2024-03-14.11_41_42.mp4 |
Thanks a lot @AlexVelezLl , now I have a better understanding of this. |
Oh Lesson 1 is there only because of previous tests, you can ignore it |
That's ok |
Hii @marcellamaki is there any problem when we allocate a resource or manage it , then it shows like that |
And you mentioned Kolibri 0.16.x server , what is that ? |
Hi @Abhishekzod007 - it's possible that there is a problem with previewing the resource, although your second question might help us understand if there is a bug there, and whether or not it is related to the issue described here. In github, for Kolibri, we have many different branches of work. The current issue, as reported, exists in the line of work for the So, the first step would be to make sure then when running your local dev environment, you are running that branch, rather than If you still encounter this problem with the lessons when running this branch, could you share any error message you see in your terminal and/or in the browser console? |
|
Hi @Abhishekzod007 |
Hii @marcellamaki @bjester |
Hi @Abhishekzod007! did you remove your node_modules folder before doing this? I would recommend deleting the node_modules folder, applying the fix that @marsian83 has mentioned then try running yarn install. |
Hii @ozer550 I did what u said |
just to confirm you updated the URL adding .git suffix in the package.json of perseus_viewer? |
@ozer550 I didn't understand , what is perseus_viewer ? and where it is in the codebase |
Thanks @ozer550 I solved it |
Hey @ozer550 @marcellamaki the issue is there when a learner completes the lesson then "completed" is marked there and then when we return to lesson page then it still shows "in progress" after we refresh then it marks "completed". |
The screenshot is from the file |
Hello @Abhishekzod007, sounds you are perhaps onto something. You can try to debug this place in more detail, for example by console logging or some other technique, to confirm that this computed property is indeed causing the issue. |
Hii @MisRob , I have tried by all the ways which I can, but I think the issue is associated with the class Id in the computed part |
Alright, thanks for debugging @Abhishekzod007. You may need to look in more detail at the ways that class ID is updated in the codebase. Also, not sure if this helps but from the issue description it seems that quizzes are working so you could perhaps study that logic and see if you can find some inspiration to resolve lessons issues. |
Hi team, I started looking into this and it seems like the issue is due to a combination of the 30 second delay between polling for updates + the updates not triggering a refresh of the active lessons. If I tweak the delay to 1 second and force a refresh of the active lessons I am able to get the progress indicator to show up. However, there is something funky going on with the way lesson progress is persisted across the different media types, which I would like to look into further. I'd love to hear if you have any thoughts on this and I'd be happy to pick this issue up. @MisRob |
Hi @nathanaelg16! Thanks for looking into this :). Reducing polling from 30s to 1s doesn't look like the best option here, we'll probably have to look at reloading the resources or updating the status of lessons. Please fell free to open a PR with with the proposed solution that you have, and we can continue the discussion there. I will assign you this issue. |
Yeah, I figured reducing the polling wasn't desirable, I just wanted to share what I had discovered so far. I'll continue to look into this and keep you updated. Thanks! |
Fixed in #12185 |
Reported by @nucleogenesis in the 0.16 sync session Feb 14 2024
Observed behavior
I completed a lesson and see no info on the card about it akin to that which I see on the completed quizzes.
This is after going back from viewing the lesson back to the home page. When I navigate away from the Home page and then back to it, the progress indicators are there
Expected behavior
Progress indicators should be visible on the lesson, just like it is with quizzes
Steps to reproduce
(progress indicator in the lesson content renderer)
Context
Kolibri 0.16.x
Note: this is reproducible in 0.15 kolibri demo server, and therefore isn't a 0.16 regression but is likely an earlier regression.
The text was updated successfully, but these errors were encountered: