From 23ebd16629157c5ea1dc104973b631d25aa899c0 Mon Sep 17 00:00:00 2001 From: Danyal-Faheem Date: Mon, 27 Jan 2025 18:38:49 +0500 Subject: [PATCH] fix: move openedx-auth patch to bottom of file to allow patching EMAIL and DATABASES settings --- ...3638_danyal.faheem_support_other_databases_through_plugin.md | 1 + tutor/templates/apps/openedx/config/partials/auth.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20250127_183638_danyal.faheem_support_other_databases_through_plugin.md diff --git a/changelog.d/20250127_183638_danyal.faheem_support_other_databases_through_plugin.md b/changelog.d/20250127_183638_danyal.faheem_support_other_databases_through_plugin.md new file mode 100644 index 0000000000..fa3ef48af4 --- /dev/null +++ b/changelog.d/20250127_183638_danyal.faheem_support_other_databases_through_plugin.md @@ -0,0 +1 @@ +- [Improvement] Move the openedx-auth patch to the bottom of the auth.yml file to allow patching DATABASES, EMAIL and XQUEUE options. (by @Danyal-Faheem) \ No newline at end of file diff --git a/tutor/templates/apps/openedx/config/partials/auth.yml b/tutor/templates/apps/openedx/config/partials/auth.yml index 56f2a8b94c..2abc166c35 100644 --- a/tutor/templates/apps/openedx/config/partials/auth.yml +++ b/tutor/templates/apps/openedx/config/partials/auth.yml @@ -2,7 +2,6 @@ SECRET_KEY: "{{ OPENEDX_SECRET_KEY }}" AWS_ACCESS_KEY_ID: "{{ OPENEDX_AWS_ACCESS_KEY }}" AWS_SECRET_ACCESS_KEY: "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}" DOC_STORE_CONFIG: null -{{ patch("openedx-auth") }} XQUEUE_INTERFACE: django_auth: null url: null @@ -22,3 +21,4 @@ DATABASES: {%- endif %} EMAIL_HOST_USER: "{{ SMTP_USERNAME }}" EMAIL_HOST_PASSWORD: "{{ SMTP_PASSWORD }}" +{{ patch("openedx-auth") }}