-
Notifications
You must be signed in to change notification settings - Fork 96
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
feat: add course authoring mfe base url to env vars #182
Closed
rpenido
wants to merge
1
commit into
overhangio:master
from
open-craft:rpenido/add-course-authoring-mfe-base-url
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
changelog.d/20240108_150445_romulo_add_course_authoring_mfe_base_url.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- [Improvement] Adds the "COURSE_AUTHORING_MFE_BASE_URL" env var pointing to the Course Authoring MFE address. (by @rpenido) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rpenido Shouldn't this be
"http://{{ MFE_HOST }}:{{ get_mfe("course-authoring")["port"] }}/course-authoring"
? That seems more consistent with all of the other MFE_URL
variables in this file.Also, there seems to be some inconsistency about whether these have a trailing slash or not, but most of them (except account and learner-dashboard) do not so that's probably the way to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To give some context, we are using this in the iFrame.
We are using the
COURSE_AUTHORING_MFE_BASE_URL
here: https://github.com/openedx/frontend-app-library-authoring/pull/400/filesWe have the url
/course-authoring
in theCOURSE_AUTHORING_MICROFRONTEND_URL
variable already set here:tutor-mfe/tutormfe/patches/openedx-cms-development-settings
Line 2 in 19efd6c
But this URL renders an error to me:
http://apps.local.edly.io:2001/course-authoring/home
The course authoring URL in my tutor instance is the following:
Is there some misconfiguration on my side?
PS: Feel free to close this is this is not the right way to fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually a bug in the course authoring MFE: openedx/frontend-app-authoring#784
"Studio Home" should be showing at http://apps.local.overhang.io:2001/course-authoring/home (or edly.io)
So I think
COURSE_AUTHORING_MICROFRONTEND_URL
is all you need, and you can close this PR.