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

🐛(backend) skip hidden course runs from state calculation #2561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tiago-Salles
Copy link
Contributor

@Tiago-Salles Tiago-Salles commented Dec 16, 2024

This PR fixes a bug of state calculation for related courses. On the state property skip course runs with catalog_visibility as hidden.

Purpose

We at NAU idenfied a bug related to the course run state calculation.

As it is possible to see, the following course presents Feb 2025 as the start, but this course is hidden. This happens on all the pages that show related courses.

Organization detail page

drawing

Course page

drawing

Course search

imagem

Course page on edit mode

imagem

Conclusion

The sequence of images shows that, in the course search page the behavior is as expected, it does not show hidden courses, but when it comes to showing related courses, the hidden ones are being considered. This PR excludes from the query the hidden ones, without impacting on the other places that list course runs, such as in the course page admin.

@Tiago-Salles Tiago-Salles changed the title 🐛(backend) skip hidden course runs from state calculation, 🐛(backend) skip hidden course runs from state calculation Dec 18, 2024
@Tiago-Salles Tiago-Salles force-pushed the Tiago-Salles/issues/281-hidden-course-org-pages branch from b178a98 to c8aba33 Compare December 18, 2024 14:59
- On the state property skip the hidden ones
@Tiago-Salles Tiago-Salles force-pushed the Tiago-Salles/issues/281-hidden-course-org-pages branch from c8aba33 to 6b869dc Compare December 18, 2024 16:01
@Tiago-Salles Tiago-Salles marked this pull request as ready for review December 18, 2024 16:32
@igobranco igobranco self-requested a review December 19, 2024 10:54
Copy link
Collaborator

@igobranco igobranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✔️

@jbpenrath this looks good for me, but I think someone from FUN should also review this PR before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants