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

feat: remove manual sends of events #33642

Merged
merged 11 commits into from
Nov 3, 2023

Conversation

rgraber
Copy link
Contributor

@rgraber rgraber commented Nov 1, 2023

Description

Remove manual sends to the event bus now that EVENT_BUS_PRODUCER_CONFIG has been rolled out. Enables the events that were previously enabled in devstack via the config.

Supporting information

edx/edx-arch-experiments#381

@rgraber rgraber force-pushed the rsgraber/20231031-publish-via-config-contract branch from 0e7e29d to 34bfa5a Compare November 2, 2023 17:46
@rgraber rgraber marked this pull request as ready for review November 2, 2023 19:12
Comment on lines -1 to -3
"""
Handlers for student
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Everything looks good except I'm confused about where this module was ever getting loaded from!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually could never get this code to work which may be because it wasn't hooked up to anything ><

Copy link
Contributor Author

@rgraber rgraber Nov 3, 2023

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Haha, I was wondering if this was the same event that was giving you trouble! There's no code reference to "handlers" anywhere in common/djangoapps/student/ and it looks like all the other apps load their signal receivers from their ready method (rather than from some hypothetical non-local mechanism).

@kiram15 It looks like this code was never hooked up to send to the event bus. I don't see any log entries for "Producing unenrollment-event event via" either, which is pretty good confirmation.

However...I do see log entries for "Responses of the Open edX Event <org.openedx.learning.course.unenrollment.completed.v1>" source="/edx/var/log/lms/edx.log" pretty steadily over the past month. So... something was sending it to the event bus!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessarily. Those are the logs we get for local signal sends

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah right, thanks! Searching for the topic is more appropriate... and I only find the stage-prefixed topic, not the production one. So that checks out.

@rgraber rgraber merged commit ddabba4 into master Nov 3, 2023
63 checks passed
@rgraber rgraber deleted the rsgraber/20231031-publish-via-config-contract branch November 3, 2023 14:36
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

3 participants