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!: use mongo timestamp when sending course_catalog_info_changed events to the event bus #31698

Merged
merged 10 commits into from
Feb 3, 2023

Conversation

rgraber
Copy link
Contributor

@rgraber rgraber commented Feb 2, 2023

Issue: openedx/openedx-events#159

Use mongo's subtree_edited_on timestamp instead of default producer time when sending course_catalog_info_changed events to the event bus. This will give us a better idea of what time the actual change took place, rather than when it made it to the producer.

Tested locally by putting a sleep in between generating the course_catalog_info_signal data and actually sending it. Confirmed the ce_time header refers to the time the course was actually changed.

robrap and others added 7 commits February 1, 2023 13:04
When producing the catalog-info-changed signal, we
now get the timestamp of the change from modulestore,
rather than relying on the current time at the time
of the event send.

BREAKING CHANGE: This will adjust the meaning of the
time metadata for new catalog-info-changed events.
@rgraber rgraber marked this pull request as ready for review February 2, 2023 20:58
@rgraber rgraber merged commit a8598fa into master Feb 3, 2023
@rgraber rgraber deleted the robrap/use-db-timestamp-for-catalog-event branch February 3, 2023 13:56
@edx-pipeline-bot
Copy link
Contributor

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

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the 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