Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

SE-1152 Fix ccx visibility on catalog #6

Conversation

samuelallan72
Copy link

@samuelallan72 samuelallan72 commented Jun 7, 2019

This PR hides all ccx courses from the course catalog. Previously the catalog visibility was inherited from the base course at the time of ccx creation, resulting in the possibility of ccx courses to be unexpectedly visible in the catalog.

Dependencies: None

Sandbox URL:

  • LMS: TBD
  • Studio: TBD

Merge deadline: None

Testing instructions:

  1. Enable CCX courses (CUSTOM_COURSES_EDX: true)
  2. go through the process of creating a custom course.
  3. log in as a non-staff user and view the course catalog page. the ccx course overview should not be seen.
  4. also test with COURSE_CATALOG_VISIBILITY_PERMISSION set to see_in_catalog

Author notes and concerns:

  • The default catalog/about visibility permissions are see_exists, which renders the catalog_visibility advanced course setting useless.

Settings

EDXAPP_FEATURES:
    CUSTOM_COURSES_EDX: true

This works if COURSE_CATALOG_VISIBILITY_PERMISSION is the default
(`see_exists`) or `see_in_catalog`.

(cherry picked from commit 857c5e26569fcaafce2b00161fde4ffbcec61326)
@samuelallan72 samuelallan72 force-pushed the samuel/fix-ccx-visibility-ginkgo branch from d7d56d7 to b44713f Compare June 11, 2019 08:13
@samuelallan72 samuelallan72 changed the title WIP: Samuel/fix ccx visibility ginkgo Fix ccx visibility on catalog Jun 11, 2019
Copy link

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

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

👍 once tests pass, thanks @swalladge !

  • I tested this according to the PR instructions on my Campus devstack with their configuration, which includes COURSE_CATALOG_VISIBILITY_PERMISSION: "see_in_catalog".
    Verified that CCX courses no longer appear in the /courses list.
  • I checked the code against the original https://github.com/edx/edx-platform/pull/20746

@samuelallan72 samuelallan72 merged commit adc65bc into opencraft-release/ginkgo.2-campus Jun 12, 2019
@samuelallan72 samuelallan72 deleted the samuel/fix-ccx-visibility-ginkgo branch June 12, 2019 00:38
@samuelallan72 samuelallan72 changed the title Fix ccx visibility on catalog SE-1152 Fix ccx visibility on catalog Oct 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants