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

refactor: remove DarkLang middleware because it is not being used #186

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

luisfelipec95
Copy link
Contributor

@luisfelipec95 luisfelipec95 commented Jul 5, 2023

Description

Changes made to the PR #184 are made as the DarkLang middleware is no longer being used, detailed in the following discussion: https://discuss.overhang.io/t/howto-enable-multiple-languages-for-your-open-edx-platform/140.

Attached is evidence from SD where they are removing DarkLang Middleware:

Screenshot from 2023-07-05 18-19-56

Copy link
Contributor

@MaferMazu MaferMazu left a comment

Choose a reason for hiding this comment

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

Looks good to me.
This PR removes the unnecessary changes from #184 (because we no longer use DarkLangMiddleware)

Copy link
Member

@JuanDavidBuitrago JuanDavidBuitrago left a comment

Choose a reason for hiding this comment

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

It looks good!

In what cases was it used before? @luisfelipec95 @MaferMazu

@luisfelipec95
Copy link
Contributor Author

I'm not exactly sure why, but as a consequence of this PR eduNEXT/edunext-platform#697 the middleware is being modified here https://github.com/eduNEXT/edunext-platform/blob/master/openedx/core/djangoapps/dark_lang/middleware.py#L70 However, because of this post https://discuss.overhang.io/t/howto-enable-multiple-languages-for-your-open-edx-platform/140 SD is not using the middleware at all.

Screenshot from 2023-07-05 18-19-56

This is the screenshot of the productive manifest. That's why the PR is being made.

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.

4 participants