overhangio / tutor-discovery

Course Discovery plugin for Tutor
GNU Affero General Public License v3.0
11 stars 40 forks source link

"Explore programs" incorrectly redirects to localhost:8080 in dev mode #42

Closed borgdrone7 closed 5 months ago

borgdrone7 commented 9 months ago

Using tutor version 16.1.1, edx Palm and Discovery plugin 16.0.0. I added couple of programs however when I login as student and click on programs since I didn't enroll into any programs I can see button "Explore programs". When I click it, it points to "http://localhost:8080/programs" which is a broken link. Anyone knows what's the issue?

Screenshot from 2023-09-25 16-45-43 Screenshot from 2023-09-25 16-44-51

regisb commented 9 months ago

Thanks for the issue! Please edit your initial post and add screenshots of the "explore programs" button. Also, can you confirm whether the feature works as expected in tutor local mode?

borgdrone7 commented 9 months ago

Thanks for the issue! Please edit your initial post and add screenshots of the "explore programs" button. Also, can you confirm whether the feature works as expected in tutor local mode?

Hi, I edited the post and added the screenshots. Regarding does it work in local mode, really it is very weird. Sometimes it does work and sometimes not. Still trying to figure out why. Please note that I followed all the instructions from the plugin docs page including setting lms catalog user permissions, updating metadata, indexes and cache. Attaching 2 screenshots of examples when it works and when not. In general there is very little help regarding programs on the internet and currently it really doesn't work consistently. I am willing to help and contribute but I am still new and need to setup debugging, understand more about deployment, used containers, etc.

Thanks for all the support!

Screenshot from 2023-09-25 16-56-09 Screenshot from 2023-09-25 16-55-52

borgdrone7 commented 9 months ago

Jut to add, when the error is "page not found" it's because the explore programs link leads to http://local.overhang.io/programs/ instead of http://local.overhang.io/dashboard/programs/. However there is another issue, I have one local and one remote version of the same database (data folder cloned) and locally when I access http://local.overhang.io/dashboard/programs/ it shows one program and remotely 3 as in above image. Please check image below. (btw metadata, index and cache were all refreshed).

Screenshot from 2023-09-25 17-04-01