Skip to content

fix: course outline not found issue for ccx courses - #36128

Closed
Anas12091101 wants to merge 2 commits into
openedx:masterfrom
mitodl:anas/fix-ccx
Closed

fix: course outline not found issue for ccx courses#36128
Anas12091101 wants to merge 2 commits into
openedx:masterfrom
mitodl:anas/fix-ccx

Conversation

@Anas12091101

@Anas12091101 Anas12091101 commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

Description

CCX courses are created from LMS and the course publish signals are in CMS. This PR adds cms.djangoapps.contentstore.apps.ContentstoreConfig in INSTALLED_APPS for CCX feature in LMS production settings. Without this, the course publish signals are not triggered at the time of CCX creation resulting in a CourseOutlineData.DoesNotExist error for the CCX courses.

Useful information to include:

  • Which edX user roles will this change impact? "Learner", "Course Author"
  • Provide links to the description of corresponding configuration changes. Remember to correctly annotate these
    changes.

Supporting information

https://github.com/mitodl/hq/issues/3880

Testing instructions

To test this locally, follow the steps below

  • In your private.py in LMS, add these settings to enable CCX:
FEATURES["CUSTOM_COURSES_EDX"]=True
INSTALLED_APPS += ['lms.djangoapps.ccx', 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig']
COURSE_IMPORT_EXPORT_STORAGE = 'django.core.files.storage.FileSystemStorage'
COURSEGRAPH_DUMP_COURSE_ON_PUBLISH = False
MODULESTORE_FIELD_OVERRIDE_PROVIDERS += ('lms.djangoapps.ccx.overrides.CustomCoursesForEdxOverrideProvider',)
  • In your private.py in CMS, add this setting:
FEATURES["CUSTOM_COURSES_EDX"]=True
  • In Studio, create a course and go to advanced settings. Toggle the "Enable CCX" setting there.

  • Next, go to the course's instructor dashboard, open the membership tab, and add a CCX coach.

  • Log in as the CCX coach, open the course you created, go to the CCX coach tab, and create a CCX. (You can find all the steps to create a CCX in the docs).

  • Save your changes in the Schedule Tab, then check the course outline of the CCX course.

    • You’ll notice the course outline won’t load, and you’ll see a CourseOutlineData.DoesNotExist error in your LMS logs.
  • To fix this, update the INSTALLED_APPS line in LMS settings to:

INSTALLED_APPS += ['lms.djangoapps.ccx', 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig', 'cms.djangoapps.contentstore.apps.ContentstoreConfig', 'openedx.core.djangoapps.content.search', 'openedx.core.djangoapps.content_staging']
  • Go back to the Schedule Tab, make any changes, and save again.

  • Finally, revisit the course outline page of the CCX course.

    • The outline will now load perfectly without any errors.

Deadline

"None"

Other information

Include anything else that will help reviewers and consumers understand the change.

  • Does this change depend on other changes elsewhere?
  • Any special concerns or limitations? For example: deprecations, migrations, security, or accessibility.
  • If your database migration can't be rolled back easily.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Jan 17, 2025
@openedx-webhooks

openedx-webhooks commented Jan 17, 2025

Copy link
Copy Markdown

Thanks for the pull request, @Anas12091101!

This repository is currently maintained by @openedx/wg-maintenance-edx-platform.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@Anas12091101
Anas12091101 force-pushed the anas/fix-ccx branch 2 times, most recently from 5713d56 to 3321319 Compare January 17, 2025 14:55
@Anas12091101
Anas12091101 marked this pull request as draft January 17, 2025 14:55
@Anas12091101
Anas12091101 force-pushed the anas/fix-ccx branch 3 times, most recently from 4fdfece to 810b157 Compare January 17, 2025 15:47
@Anas12091101
Anas12091101 marked this pull request as ready for review January 17, 2025 15:50
@mphilbrick211 mphilbrick211 added the needs reviewer assigned PR needs to be (re-)assigned a new reviewer label Jan 22, 2025
@pdpinch

pdpinch commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

Is all this code behind the feature flag, FEATURES['CUSTOM_COURSES_EDX'] ?

Comment thread lms/envs/production.py
MODULESTORE_FIELD_OVERRIDE_PROVIDERS += (
'lms.djangoapps.ccx.overrides.CustomCoursesForEdxOverrideProvider',
)
COURSE_IMPORT_EXPORT_STORAGE = DEFAULT_FILE_STORAGE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We included cms.djangoapps.contentstore.apps.ContentstoreConfig in the INSTALLED_APPS of the LMS to ensure the app is properly loaded and our course publish signals are triggered properly. The app relies on the COURSE_IMPORT_EXPORT_STORAGE setting, which must be defined in the LMS configuration.

Failure to define this setting results in an error, as demonstrated in this related build log.

Comment thread lms/envs/production.py
'cms.djangoapps.contentstore.apps.ContentstoreConfig',
'openedx.core.djangoapps.content.search',
'openedx.core.djangoapps.content_staging',
]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd like to understand this better.

First of all, you're only adding 3 new apps here, right?

  • ContentstoreConfig
  • search
  • content-staging

How is it that these aren't running already? Why does the CCX feature need them turned on?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The problem is that a CCX course is created from LMS. All the above apps are already defined in CMS. The course publishing signals are not triggered in LMS until we define cms.djangoapps.contentstore.apps.ContentstoreConfig in our INSTALLED_APPS in LMS. The last 2 apps (openedx.core.djangoapps.content.search and openedx.core.djangoapps.content_staging) are required to be defined as they are being used in the code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How did you determine that these were the minimal required apps to add from CMS?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We needed to ensure that signals were triggered when creating a CCX course. When I added ContentstoreConfig to INSTALLED_APPS, I ran into this error:
RuntimeError: Model class openedx.core.djangoapps.content.search.models.SearchAccess doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

After some debugging, I found that ContentstoreConfig depends on the search app, which wasn't listed in INSTALLED_APPS for LMS. Adding search fixed the issue, and the course outline started publishing.

However, I then saw another error in the logs when the course publish signals were triggered:
RuntimeError: Model class openedx.core.djangoapps.content_staging.models.StagedContent doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

Adding content_staging to INSTALLED_APPS resolved this, and everything worked without errors.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We needed to ensure that signals were triggered when creating a CCX course.

Tying this into my other comment, is it possible to add a test for triggering signals?

@pdpinch

pdpinch commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

Is it feasible to add some tests for this?

@Anas12091101

Anas12091101 commented Jan 24, 2025

Copy link
Copy Markdown
Contributor Author

Is all this code behind the feature flag, FEATURES['CUSTOM_COURSES_EDX'] ?

Yes

Is it feasible to add some tests for this?

I am not sure, are you suggesting adding tests for the feature flag?

@pdpinch

pdpinch commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

What changed since we merged #34220 ?

@pdpinch

pdpinch commented Feb 3, 2025

Copy link
Copy Markdown
Contributor

Another question for you: is this related at all to #33878 ?

@mphilbrick211

Copy link
Copy Markdown

Another question for you: is this related at all to #33878 ?

Friendly ping on this, @Anas12091101!

@Anas12091101

Copy link
Copy Markdown
Contributor Author

Friendly ping on this, @Anas12091101!

I don’t believe this is related to #33878. This PR introduces the settings required for course publish signals to be triggered. #33878, on the other hand, focuses on failing async tasks that are triggered by these signals but fail due to delays in modulestore processing.

@sarina

sarina commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

@pdpinch @Anas12091101 is this PR still being reviewed?

@sarina

sarina commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

@pdpinch @Anas12091101 friendly ping. This is one of our top 10 oldest PRs in the project. Are you still working on it or shall we close it?

@pdpinch

pdpinch commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

I'm still not convinced this is the right way to fix this bug, but the scope is limited by being behind the CUSTOM_COURSES_EDX feature flag.

@Anas12091101 can you resolve the merge conflict?

Comment thread lms/envs/production.py
Comment on lines +451 to +453
'cms.djangoapps.contentstore.apps.ContentstoreConfig',
'openedx.core.djangoapps.content.search',
'openedx.core.djangoapps.content_staging',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR @Anas12091101. It makes sense that CCX outline creation is failing because it's happening in the LMS, whereas outline regeneration signal handler is part of the CMS. But, adding CMS apps to the LMS is not a viable solution--we need to keep separation between these two systems. Enabling these apps to fix this bug will over time lead to a dependency cascade of CMS that need to be turned on in the LMS.

I'm not sure yet what the right solution is. @ormsbee , do you have thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't looked at what CCX does in a while, but my initial inclination is to actually add CCX to CMS, and stop the cross-process thing where we emit course_published on the CMS side to spawn celery workers on the LMS side. It's been the cause of a number of annoying-to-track down bugs in things like block transformers, particularly since a lot of dev/test runs celery in-process.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Anas12091101 Can you elaborate on what it means that CCX is published in LMS? Is there code you can point to? Towards Dave's point, maybe we can adjust this publishing to occur in the CMS process.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@kdmccormick, the course publish signals are fired from
https://github.com/openedx/edx-platform/blob/master/lms/djangoapps/ccx/views.py#L333-L336

These are the logs printed after I clicked the save button:

2025-07-23 15:56:31 2025-07-23 10:56:31,148 INFO 58 [tracking] [user 200050] [ip 172.21.0.1] logger.py:41 - {"name": "/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/save_ccx", "context": {"course_id": "ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2", "course_user_tags": {}, "user_id": 200050, "path": "/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/save_ccx", "org_id": "UAI_SOURCE", "enterprise_uuid": ""}, "username": "anas_", "session": "f863d7d21d0bf519e5b474419dd7d8ac", "ip": "172.21.0.1", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36", "host": "local.openedx.io:8000", "referer": "http://local.openedx.io:8000/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/ccx_coach", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2025-07-23T10:56:31.147584+00:00", "event_type": "/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/save_ccx", "event_source": "server", "page": null}
2025-07-23 15:56:31 2025-07-23 10:56:31,266 INFO 58 [openedx.core.djangoapps.cors_csrf.helpers] [user 200050] [ip 172.21.0.1] helpers.py:64 - Origin 'http://local.openedx.io:8000' was not in `CORS_ORIGIN_WHITELIST`; full referer was 'http://local.openedx.io:8000/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/ccx_coach' and requested host was 'local.openedx.io:8000'; CORS_ORIGIN_ALLOW_ALL=False
2025-07-23 15:56:31 2025-07-23 10:56:31,407 INFO 58 [openedx.core.djangoapps.content.course_overviews.models] [user 200050] [ip 172.21.0.1] models.py:299 - Attempting to load CourseOverview for course ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2 from modulestore.
2025-07-23 15:56:31 2025-07-23 10:56:31,423 INFO 58 [openedx.core.djangoapps.content.course_overviews.models] [user 200050] [ip 172.21.0.1] models.py:197 - Updating course overview for ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2.
2025-07-23 15:56:31 2025-07-23 10:56:31,707 INFO 58 [openedx.core.djangoapps.content.block_structure.models] [user 200050] [ip 172.21.0.1] models.py:260 - BlockStructure: Deleted 1 out of total 6 files in store; data_usage_key: ccx-block-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2+type@course+block@course, num_to_keep: 5.
2025-07-23 15:56:31 2025-07-23 10:56:31,708 INFO 58 [openedx.core.djangoapps.content.block_structure.models] [user 200050] [ip 172.21.0.1] models.py:296 - BlockStructure: Updated in store <class 'django.core.files.storage.filesystem.FileSystemStorage'> at /openedx/media; data_usage_key: ccx-block-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2+type@course+block@course, data_version: 687f4901712771d041005ce0, data_edit_timestamp: 2025-07-22 08:16:57.009000+00:00, transformers_schema_version: UbgW6dMpqAfez+wDHqiK7iIZOMU=, block_structure_schema_version: 2, size: 2678
2025-07-23 15:56:31 2025-07-23 10:56:31,711 INFO 58 [openedx.core.djangoapps.content.block_structure.store] [user 200050] [ip 172.21.0.1] store.py:144 - BlockStructure: Added to cache; data_usage_key: ccx-block-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2+type@course+block@course, data_version: 687f4901712771d041005ce0, data_edit_timestamp: 2025-07-22 08:16:57.009000+00:00, transformers_schema_version: UbgW6dMpqAfez+wDHqiK7iIZOMU=, block_structure_schema_version: 2, size: 0.00MB
2025-07-23 15:56:31 2025-07-23 10:56:31,828 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task openedx.core.djangoapps.content.block_structure.tasks.update_course_in_cache_v2[c32d00b4-402c-4e22-b399-224f9a502814] succeeded in 0.3449637449812144s: None
2025-07-23 15:56:31 2025-07-23 10:56:31,836 INFO 58 [openedx.core.djangoapps.course_date_signals.handlers] [user 200050] [ip 172.21.0.1] handlers.py:125 - Extracting course dates for ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:31 2025-07-23 10:56:31,852 INFO 58 [openedx.core.djangoapps.course_date_signals.handlers] [user 200050] [ip 172.21.0.1] handlers.py:159 - Extracting dates from 23 items in ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:31 2025-07-23 10:56:31,858 INFO 58 [edx_when.api] [user 200050] [ip 172.21.0.1] api.py:94 - Setting date for CCXBlockUsageLocator(CCXLocator('UAI_SOURCE', 'CS11011', '2019_t5', None, None, '2'), 'course', 'course'), start, datetime.datetime(2025, 1, 1, 0, 0, tzinfo=tzlocal())
2025-07-23 15:56:31 2025-07-23 10:56:31,867 INFO 58 [edx_when.api] [user 200050] [ip 172.21.0.1] api.py:94 - Setting date for CCXBlockUsageLocator(CCXLocator('UAI_SOURCE', 'CS11011', '2019_t5', None, None, '2'), 'course', 'course'), end, datetime.datetime(2029, 7, 24, 0, 0, tzinfo=<bson.tz_util.FixedOffset object at 0x7fc21ccaedd0>)
2025-07-23 15:56:31 2025-07-23 10:56:31,873 INFO 58 [edx.celery.task] [user 200050] [ip 172.21.0.1] tasks.py:162 - Starting XBlockCaches update for course_key: ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:31 2025-07-23 10:56:31,900 INFO 58 [edx.celery.task] [user 200050] [ip 172.21.0.1] tasks.py:164 - Ending XBlockCaches update for course_key: ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:31 2025-07-23 10:56:31,901 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task openedx.core.djangoapps.bookmarks.tasks.update_xblocks_cache[3d39dfaf-1dba-4569-a721-819cfefcc2dd] succeeded in 0.02816107898252085s: None
2025-07-23 15:56:31 2025-07-23 10:56:31,903 INFO 58 [openedx.core.djangoapps.course_apps.tasks] [user 200050] [ip 172.21.0.1] tasks.py:41 - Caching course apps status for course with id: ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:31 2025-07-23 10:56:31,986 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task openedx.core.djangoapps.course_apps.tasks.update_course_apps_status[799074af-0a65-4130-a92e-3e00764475f0] succeeded in 0.08319871698040515s: None
2025-07-23 15:56:31 2025-07-23 10:56:31,996 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task lms.djangoapps.discussion.tasks.update_discussions_map[f5ee4b73-3dd4-48ca-94a6-1e1f43641c88] succeeded in 0.008286842989036813s: None
2025-07-23 15:56:31 2025-07-23 10:56:31,998 INFO 58 [celery_utils.logged_task] [user 200050] [ip 172.21.0.1] logged_task.py:25 - Task lms.djangoapps.discussion.tasks.update_discussions_map[f5ee4b73-3dd4-48ca-94a6-1e1f43641c88] submitted with arguments [{'course_id': 'ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2'}], None
2025-07-23 15:56:32 2025-07-23 10:56:32,006 INFO 58 [openedx.core.djangoapps.ccxcon.tasks] [user 200050] [ip 172.21.0.1] tasks.py:31 - Course update to CCXCon returned no errors. Course key: ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,007 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task openedx.core.djangoapps.ccxcon.tasks.update_ccxcon[41c8b36b-1965-4ded-bb39-db1302b9331c] succeeded in 0.007804680994013324s: None
2025-07-23 15:56:32 2025-07-23 10:56:32,038 INFO 58 [openedx.core.djangoapps.content.learning_sequences.api.outlines] [user 200050] [ip 172.21.0.1] outlines.py:394 - Replacing CourseOutline for ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2 (version 687f4901712771d041005ce0, 3 sequences)
2025-07-23 15:56:32 2025-07-23 10:56:32,054 INFO 58 [openedx.core.djangoapps.content.learning_sequences.api.outlines] [user 200050] [ip 172.21.0.1] outlines.py:440 - Found CourseContext for ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2, updating...
2025-07-23 15:56:32 2025-07-23 10:56:32,152 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task cms.djangoapps.contentstore.tasks.update_outline_from_modulestore_task[fb96b07e-1cac-4b26-8b08-b400afe364e6] succeeded in 0.14330179599346593s: None
2025-07-23 15:56:32 2025-07-23 10:56:32,153 INFO 58 [openedx.core.djangoapps.discussions.tasks] [user 200050] [ip 172.21.0.1] tasks.py:54 - Updating discussion settings for course: ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,164 INFO 58 [openedx.core.djangoapps.discussions.handlers] [user 200050] [ip 172.21.0.1] handlers.py:56 - Updating existing discussion topic links for ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,169 INFO 58 [openedx.core.djangoapps.discussions.handlers] [user 200050] [ip 172.21.0.1] handlers.py:79 - Creating new discussion topic links for ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,173 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task openedx.core.djangoapps.discussions.tasks.update_discussions_settings_from_course_task[d091e50d-d118-4555-8272-8a482c2fd07e] succeeded in 0.01974512101151049s: None
2025-07-23 15:56:32 2025-07-23 10:56:32,174 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function _listen_for_course_publish at 0x7fc22f18af20>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,174 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function _listen_for_course_publish at 0x7fc22d251bc0>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,175 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function _listen_for_course_publish at 0x7fc22d2528e0>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,176 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function update_block_structure_on_course_publish at 0x7fc22d252fc0>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,176 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function extract_dates at 0x7fc22d075620>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,177 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function trigger_update_xblocks_cache_task at 0x7fc22cf36a20>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,178 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function update_course_apps at 0x7fc22cf37420>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,179 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function update_discussions_on_course_publish at 0x7fc22cf81800>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,179 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function course_published_handler at 0x7fc22ce332e0>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,180 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function _listen_for_course_publish at 0x7fc22ce400e0>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,181 INFO 58 [lms.djangoapps.ccx.views] [user 200050] [ip 172.21.0.1] views.py:338 - Signal fired when course is published. Receiver: <function listen_for_course_publish at 0x7fc22ce40900>. Response: None
2025-07-23 15:56:32 2025-07-23 10:56:32,195 INFO 58 [cms.djangoapps.contentstore.tasks] [user 200050] [ip 172.21.0.1] tasks.py:285 - Attempting to register exams for course ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,267 INFO 58 [cms.djangoapps.contentstore.tasks] [user 200050] [ip 172.21.0.1] tasks.py:291 - Successfully registered exams for course ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,268 INFO 58 [cms.djangoapps.contentstore.tasks] [user 200050] [ip 172.21.0.1] tasks.py:296 - Publishing course ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2
2025-07-23 15:56:32 2025-07-23 10:56:32,275 INFO 58 [celery.app.trace] [user 200050] [ip 172.21.0.1] trace.py:128 - Task cms.djangoapps.contentstore.tasks.update_special_exams_and_publish[3b62001f-a7be-4a49-bdcc-140839981ba4] succeeded in 0.08135622600093484s: None
2025-07-23 15:56:33 [23/Jul/2025 10:56:33] "POST /courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/save_ccx HTTP/1.1" 200 2404
2025-07-23 15:56:33 2025-07-23 10:56:33,760 INFO 58 [tracking] [user 200050] [ip 172.21.0.1] logger.py:41 - {"name": "/__debug__/history_sidebar/", "context": {"user_id": 200050, "path": "/__debug__/history_sidebar/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "anas_", "session": "f863d7d21d0bf519e5b474419dd7d8ac", "ip": "172.21.0.1", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36", "host": "local.openedx.io:8000", "referer": "http://local.openedx.io:8000/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/ccx_coach", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {\"store_id\": [\"1c2a75525c1142209a5f345f4ead65f4\"]}, \"POST\": {}}", "time": "2025-07-23T10:56:33.760040+00:00", "event_type": "/__debug__/history_sidebar/", "event_source": "server", "page": null}
2025-07-23 15:56:33 2025-07-23 10:56:33,786 INFO 58 [openedx.core.djangoapps.cors_csrf.helpers] [user 200050] [ip 172.21.0.1] helpers.py:64 - Origin 'http://local.openedx.io:8000' was not in `CORS_ORIGIN_WHITELIST`; full referer was 'http://local.openedx.io:8000/courses/ccx-v1:UAI_SOURCE+CS11011+2019_t5+ccx@2/ccx_coach' and requested host was 'local.openedx.io:8000'; CORS_ORIGIN_ALLOW_ALL=False
2025-07-23 15:56:33 [23/Jul/2025 10:56:33] "GET /__debug__/history_sidebar/?store_id=1c2a75525c1142209a5f345f4ead65f4 HTTP/1.1" 200 7183

I also found this conversation regarding why ccx was not originally implemented in cms.
https://openedx.slack.com/archives/C0F584CH0/p1467920837000185

@kdmccormick
kdmccormick self-requested a review August 11, 2025 13:58
@mphilbrick211

Copy link
Copy Markdown

Hi @Anas12091101! Is this pull request still in progress?

@mphilbrick211 mphilbrick211 removed the needs reviewer assigned PR needs to be (re-)assigned a new reviewer label Aug 27, 2025
@mphilbrick211 mphilbrick211 moved this from Ready for Review to In Eng Review in Contributions Aug 27, 2025
@Anas12091101

Copy link
Copy Markdown
Contributor Author

@pdpinch, should we close this PR for the time being and revisit later?

@kdmccormick

Copy link
Copy Markdown
Member

Sorry Anas. I was hoping to provide guidance on how to implement @ormsbee 's suggested approach, but I'll need to dive in and understand the CCX code publishing code first, and I'm not sure I'll have time to do that before the Ulmo cutoff. Could you close this PR and create and bug issue in the edx-platform repo, and tag Dave and I on it?

@Anas12091101

Copy link
Copy Markdown
Contributor Author

@kdmccormick I have created #37365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants