Skip to content
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

0.18 - Home > Class - The assigned lessons and quizzes are not visible to the learner #12955

Closed
pcenov opened this issue Dec 17, 2024 · 4 comments · Fixed by #12992
Closed

0.18 - Home > Class - The assigned lessons and quizzes are not visible to the learner #12955

pcenov opened this issue Dec 17, 2024 · 4 comments · Fixed by #12992
Assignees
Labels
APP: Learn Re: Learn App (content, quizzes, lessons, etc.) bug Behavior is wrong or broken DEV: frontend P0 - critical Priority: Release blocker or regression TAG: regression Something that previously worked

Comments

@pcenov
Copy link
Member

pcenov commented Dec 17, 2024

Observed behavior

Observed on latest develop - when I sing in as a Learner and I go to Home > Class > then I don't see any of my assigned lessons and quizzes. I can see the following error in the console:

TypeError: Cannot read properties of undefined (reading '$router')
    at setup (ClassAssignmentsPage.vue:64:1)
    at Ke (vue.runtime.common.prod.js:11:19108)
    at vue.runtime.common.prod.js:11:37000
    at _o (vue.runtime.common.prod.js:11:36904)
    at e._init (vue.runtime.common.prod.js:11:41637)
    at new i (vue.runtime.common.prod.js:11:39089)
    at vue.runtime.common.prod.js:11:29493
    at init (vue.runtime.common.prod.js:11:29336)
    at n (vue.runtime.common.prod.js:11:33371)
    at vue.runtime.common.prod.js:11:62186
2024-12-17_14-13-29.mp4

Logs: logs.zip

Expected behavior

All assigned lessons and quizzes should be visible.

Steps to reproduce the issue

  1. Install the latest develop build
  2. As a Coach assign lessons and quizzes to a learner
  3. As a Learner sign in and attempt to see the assigned lessons and resources

Usage Details

Windows 11, Ubuntu 22 - Chrome

@pcenov
Copy link
Member Author

pcenov commented Dec 17, 2024

@radinamatic

@radinamatic radinamatic added bug Behavior is wrong or broken P0 - critical Priority: Release blocker or regression TAG: regression Something that previously worked APP: Learn Re: Learn App (content, quizzes, lessons, etc.) DEV: frontend labels Dec 17, 2024
@Ammog-Warrier
Copy link

Hi, could I be assigned this issue if it's still open? I went through the code base and believe I have an idea about why it's not working.

@LianaHarris360
Copy link
Member

Hi @Ammog-Warrier , thanks for your interest in helping with this! This issue is not open for contributors at this time, those issues are marked with a "help wanted" label. You can take a look at some of those issues here.

@Ammog-Warrier
Copy link

@LianaHarris360 Ok Thank You very much. If i may just suggest, I think based on the error displayed the issue is because of $router isn't directly accessible in setup() in Vue3. Using a userouter() inside the setup() probably solves it. Thank You again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Learn Re: Learn App (content, quizzes, lessons, etc.) bug Behavior is wrong or broken DEV: frontend P0 - critical Priority: Release blocker or regression TAG: regression Something that previously worked
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants