Tutor plugin to customize catalog visibility

Hello,

following this thread Catalog visibility in Tutor deployed Open edX - #2 by regis - Open edX - Overhang.IO I have created the following plugin named “coursediscovery.py”:

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_item(
    (
        "openedx-lms-common-settings",
        """
FEATURES["ENABLE_COURSE_DISCOVERY"] = False
FEATURES["ENABLE_COURSEWARE_SEARCH"] = False
FEATURES["ENABLE_DASHBOARD_SEARCH"] = False
"""
    )
)

I have activated it and re-launched the platform, however I see that it is not taking effect.

I am using tutor 15.1.0, and after running tutor config save with the enabled plugin, I still get the following for cat .local/share/tutor/env/apps/openedx/config/lms.env.yml:

...
FEATURES:
  
  "ENTRANCE_EXAMS": true
  
  CERTIFICATES_HTML_VIEW: true
  ...
  ENABLE_COURSE_DISCOVERY: true
  ENABLE_COURSEWARE_SEARCH: true
  ENABLE_CSMH_EXTENDED: false
  ENABLE_DASHBOARD_SEARCH:  true
  ENABLE_COMBINED_LOGIN_REGISTRATION: true
  ENABLE_GRADE_DOWNLOADS: true
  ENABLE_LEARNER_RECORDS: false
  ENABLE_MOBILE_REST_API: true
  ENABLE_OAUTH2_PROVIDER: true
  ENABLE_PREREQUISITE_COURSES: true
  ENABLE_THIRD_PARTY_AUTH: true
  MILESTONES_APP: true
...

Is this normal? Why are the customized settings still set to “true”?

Thank you. Best,
Martí

Did you make sure to do tutor config save before either tutor local quickstart or tutor local launch (depending on which version you’re on)?

FWIW I have an older tutor plugin format of the following:

name: disable_course_discovery
version: 0.1.0
patches:
  openedx-lms-common-settings: |
    FEATURES["ENABLE_COURSE_DISCOVERY"] = False
    FEATURES["ENABLE_COURSEWARE_SEARCH"] = False
    FEATURES["ENABLE_DASHBOARD_SEARCH"] = False

And I just enabled it on Quince and it seems to have worked. I don’t see ENABLE_COURSE_DISCOVERY in my .local/share/tutor/config.yml, but I’m not sure if I’m supposed to.