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

Modify local Kafka settings. #192

Conversation

MichaelRoytman
Copy link
Member

@MichaelRoytman MichaelRoytman commented Oct 4, 2023

JIRA: None.

Description:

This commit set Django settings in the local settings file for event bus networking settings to to None. These settings are used by the local application server. This change is necessary because the event bus does not work outside of a Docker container, because the event bus is run through the devstack networking layer, which is inaccessible by the local application server. Because the local settings file is also used by Tutor, only the networking related settings are set to None. The remaining settings are left as-is, because they are sensible defaults. Tutor uses can override these settings as need be.

Author concerns: None.

Dependencies: None.

Installation instructions: None.

Testing instructions: None.

Merge checklist:

  • All reviewers approved
  • CI build is green
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Commits are squashed

Post merge:

  • Delete working branch (if not needed anymore)

@MichaelRoytman MichaelRoytman mentioned this pull request Oct 4, 2023
6 tasks
Copy link
Contributor

@zacharis278 zacharis278 left a comment

Choose a reason for hiding this comment

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

wondering if these keys should still be here but the URLs are just 'None' and we can just comment on why.

Tutor is based on these local settings and will override the URLs but the rest of the settings are still useful

@MichaelRoytman
Copy link
Member Author

@zacharis278 Are you thinking just the URLs are set to None? Or all the event bus settings?

@zacharis278
Copy link
Contributor

@MichaelRoytman I think just the URLs everything else is seems reusable across dev environments

This commit removes Django settings from the local settings file, used by the local application server, related to setting up the Kafka implementation of the event bus. This is because the event bus does not work outside of a Docker container. This is because the event bus is run through the devstack networking layer, which is inaccessible by the local application server.
@MichaelRoytman MichaelRoytman force-pushed the michaelroytman/remove-local-kafka-settings branch from c9446a8 to 2e39c7f Compare October 4, 2023 21:00
@MichaelRoytman MichaelRoytman changed the title Remove local Kafka settings. Modify local Kafka settings. Oct 5, 2023
@MichaelRoytman MichaelRoytman merged commit 846dcfd into MST-1789-downstream-triggers Oct 5, 2023
7 checks passed
@MichaelRoytman MichaelRoytman deleted the michaelroytman/remove-local-kafka-settings branch October 5, 2023 13:52
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.

2 participants