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: abstract out producer creation #413

Merged
merged 4 commits into from
Aug 25, 2023

Conversation

rgraber
Copy link
Contributor

@rgraber rgraber commented Aug 24, 2023

feat: abstract out the producer when republishing events

Use openedx-events.get_producer() instead of calling event bus kafka directly so it can be used with redis or other implementations.

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

Copy link
Member

@dianakhuang dianakhuang left a comment

Choose a reason for hiding this comment

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

Changes look good, but do we need version/README updates?

@rgraber
Copy link
Contributor Author

rgraber commented Aug 25, 2023

Changes look good, but do we need version/README updates?

I didn't change the version for the original since this was meant to be run as a local script directly from the repo rather than something inside a PyPI package.

I guess it's probably worth updating the README to note that this also contains one-off scripts. Will add.

@rgraber rgraber merged commit c5cfc5e into main Aug 25, 2023
4 checks passed
@rgraber rgraber deleted the rsgraber/20230824-abstract-producer-in-republish branch August 25, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants