openfun / richie

:pencil: An opensource CMS to build education portals
https://richie.education
MIT License
260 stars 84 forks source link

Organization courses should by listed with course runs in mind #1834

Open sandroscosta opened 1 year ago

sandroscosta commented 1 year ago

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe. We have organizations using their organization pages as an index for their courses. We've observed that courses listed there are not sorted in the best possible way. Due to them not being listed by course runs, there are archived courses appearing before the on-going or soon to start courses.

Screenshot from 2022-11-22 14-42-02

Describe the solution you'd like A simple solution could be implemented by ordering courses on this list by latest course run. If the course is still running or about to start, It'll be listed on the first page and not the last.

Describe alternatives you've considered The only other route to go for is to create a React component that filters the courses by "state", just like the course search page.

Do you want to work on it through a Pull Request? Yes. Something we can discuss first though.

sampaccoud commented 1 year ago

@sandroscosta we received the same feedback on our side but could not make it a priority yet. I think we definitely need ES for this and there are two ways to do it:

The second option probably makes more sense if it doesn't deteriorate SEO? :man_shrugging:

sandroscosta commented 1 year ago

@sampaccoud It doesn't need to be as feature rich as the courses search but yeah, the API can come in handy in this case. I tried to do some reording, resorting to a small tweak to the get_courses() method, but it still wasn't clear, so yes, create a component might be the way forward.

NamFra commented 1 year ago

My 2 cts :) This feedback comes up regularly. Resorting is requested both for organization and category pages, but person pages are also affected by this classification based on the creation date rather than course runs.

sandroscosta commented 1 year ago

@NamFra Its something we hear a lot. Organizations with 10+ courses have a hard time displaying them in a correct order, where the newer ones with open runs are first. There was also a request to list them by category, because most of our organizations work multiple categories on their catalogues. I think we can go for a simple sort by course runs and then think about filtering later.