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

ENT-2657: Added COURSE_CATALOG_URL_ROOT to django settings #24248

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

saleem-latif
Copy link
Contributor

Jira Ticket: ENT-2657

Description:
This PR adds COURSE_CATALOG_URL_ROOT in django settings.

Copy link
Contributor

@moconnell1453 moconnell1453 left a comment

Choose a reason for hiding this comment

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

Should we use the new COURSE_CATALOG_URL_ROOT to format the COURSE_CATALOG_API_URL?
e.g. COURSE_CATALOG_API_URL = '{}/api/v1/'.format(COURSE_CATALOG_URL_ROOT)

@HammadAhmadWaqas
Copy link
Member

Should we use the new COURSE_CATALOG_URL_ROOT to format the COURSE_CATALOG_API_URL?
e.g. COURSE_CATALOG_API_URL = '{}/api/v1/'.format(COURSE_CATALOG_URL_ROOT)

or other option could be url.join method.

@saleem-latif
Copy link
Contributor Author

@moconnell1453 @HammadAhmadWaqas I have incorporated your feedback changes, please take another look.

Copy link
Contributor

@muhammad-ammar muhammad-ammar left a comment

Choose a reason for hiding this comment

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

LGTM. Just one question

@@ -3347,7 +3347,8 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
ECOMMERCE_SERVICE_WORKER_USERNAME = 'ecommerce_worker'
ECOMMERCE_API_SIGNING_KEY = 'SET-ME-PLEASE'

COURSE_CATALOG_API_URL = 'http://localhost:8008/api/v1'
COURSE_CATALOG_URL_ROOT = 'http://localhost:8008'
COURSE_CATALOG_API_URL = '{}/api/v1'.format(COURSE_CATALOG_URL_ROOT)
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: What about overriding the complete URL instead of just ROOT URL? What if in future version v2 comes and we want to use the new version?

Copy link
Contributor

Choose a reason for hiding this comment

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

@saleem-latif On a second look I am wondering the COURSE_CATALOG_URL_ROOT will override?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@saleem-latif
Copy link
Contributor Author

jenkins run py38 python

@edx-status-bot
Copy link

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

@saleem-latif saleem-latif merged commit 199631a into master Jun 30, 2020
@saleem-latif saleem-latif deleted the saleem-latif/ENT-2657 branch June 30, 2020 13:16
@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.

6 participants