-
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
fix: convert variables that replace mfe .env into string #202
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ MFE_CONFIG = { | |
{% if get_mfe("authn") %} | ||
AUTHN_MICROFRONTEND_URL = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/authn" | ||
AUTHN_MICROFRONTEND_DOMAIN = "{{ MFE_HOST }}/authn" | ||
MFE_CONFIG["DISABLE_ENTERPRISE_LOGIN"] = True | ||
MFE_CONFIG["DISABLE_ENTERPRISE_LOGIN"] = "true" | ||
{% endif %} | ||
|
||
{% if get_mfe("account") %} | ||
|
@@ -37,8 +37,8 @@ MFE_CONFIG["ACCOUNT_SETTINGS_URL"] = ACCOUNT_MICROFRONTEND_URL | |
{% endif %} | ||
|
||
{% if get_mfe("course-authoring") %} | ||
MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True | ||
MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = True | ||
MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = "true" | ||
MFE_CONFIG["ENABLE_PROGRESS_GRAPH_SETTINGS"] = "true" | ||
MFE_CONFIG["COURSE_AUTHORING_MICROFRONTEND_URL"] = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/course-authoring" | ||
{% endif %} | ||
|
||
|
@@ -72,7 +72,7 @@ MFE_CONFIG["ACCOUNT_PROFILE_URL"] = "{% if ENABLE_HTTPS %}https://{% else %}http | |
|
||
{% if get_mfe("communications") %} | ||
COMMUNICATIONS_MICROFRONTEND_URL = "{% if ENABLE_HTTPS %}https://{% else %}http://{% endif %}{{ MFE_HOST }}/communications" | ||
MFE_CONFIG["SCHEDULE_EMAIL_SECTION"] = True | ||
MFE_CONFIG["SCHEDULE_EMAIL_SECTION"] = "true" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we replacing bool to string here? We are not comparing anywhere it with "true" here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks a lot for the review. I changed all the bools with strings in this PR because they would all trip with the same issue with Given the latest round of comments in the course-authoring PR I think we might close this PR altogether. I'll update this PR after we settle the discussion there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have gone through the course-authoring discussion and just got that the issue was in Quince 3. Is that resolved now so I can close this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason for replacing all bool to strings is that this would be the theoretically correct behavior for all MFE_CONFIG variables. I'll reproduce what I wrote on another PR:
The problem is that some MFEs don't follow this assumption correctly. For instance, to use your example search, take a look here: This line is actually wrong. The correct check would be All of this said, we'll just have to live with some inconsistencies in tutor-mfe until everything conforms to the same standard upstream. |
||
{% endif %} | ||
|
||
LOGIN_REDIRECT_WHITELIST.append("{{ MFE_HOST }}") | ||
|
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.
Same here. Can you please share why are we converting to string here as well? I checked this here. There is no comparison done against a string.