eduNEXT / eox-core

eox-core is a plugin to extend the core functionality in Open edX
GNU Affero General Public License v3.0
15 stars 9 forks source link

["BUG"] get_course_overview doesn't return CourseOverview class #210

Closed cristianMeli closed 2 years ago

cristianMeli commented 2 years ago

Describe the bug

Hi there!! I am developing a plugin to use it in Tutor (with the latest openedx release). I am trying to get a ClassOverview with eox_core.edxapp_wrapper.courses.get_course_overview and always returns me a <class 'object'>. I think that it is because in eox_core.edxapp_wrapper.backends.courses_h_v1 there is a wrong import. Following the same line like this import, the "wrong import" should be cms.djangoapps.contentstore.views.course import ..... Because that import does not work, CourseOverview is an object.

I don't know if I missed a configuration (I used get_valid_course_key and it worked): image

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior eox_core.edxapp_wrapper.courses.get_course_overview should returns a ClassOverview class.

Screenshots If applicable, add screenshots to help explain your problem.

Here I'm using the function: image

And this is the log:

image

Additional context Add any other context about the problem here.

cristianMeli commented 2 years ago

I did a test, I cloned the repository inside tutor_config/env/build/openedx/requirements and I modified the import: image

Then: image

image