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

fix: remove edX support URL from login page #28577

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

zainab-amir
Copy link
Contributor

@zainab-amir zainab-amir commented Aug 30, 2021

Description

This line: https://github.com/edx/edx-platform/blob/master/lms/static/js/student_account/views/LoginView.js#L235 is a link to the edX support site. This appears on any Open edX site, sending learners from those sites to edX's support channels, where they cannot get help.

  • Removed the hardcoded value of edX's support URL from login page.
  • Also fixed a bug with site configuration helper method get_value. The expectation from these lines in the function is that it should throw an exception if default is not a dictionary:
    value = dict(default)
    value.update(configuration_value)

This however doesn't work for empty strings, instead running dict() on default with empty string value returns {}. Empty dictionary is then returned from the function which is the expected value.

Supporting information

Ticket: https://openedx.atlassian.net/browse/VAN-710

Testing instructions

Tested locally by setting support url
Edit: Added a unit test for get_value() method

@zainab-amir zainab-amir requested a review from a team August 30, 2021 13:12
@zainab-amir
Copy link
Contributor Author

jenkins run python

Copy link
Contributor

@waheedahmed waheedahmed left a comment

Choose a reason for hiding this comment

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

Can we add a test for get_value validating your fix and should fail without it? Otherwise looks good to me.

@zainab-amir zainab-amir force-pushed the zamir/VAN-710/fix_support_url branch from 6040a77 to 4f7748f Compare August 31, 2021 09:33
@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@zainab-amir zainab-amir merged commit cfc8ab6 into master Sep 1, 2021
@zainab-amir zainab-amir deleted the zamir/VAN-710/fix_support_url branch September 1, 2021 06:29
@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.

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.

5 participants