-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this new release, we make use of persistent bind-mounts to make it much easier to work on MFE forks. In addition, adding new MFEs is no longer done with `*_MFE_APP` settings, which was awkward, but with appropriate plugins. Close #111. Additional changes: - feat: Add support for the ORA Grading MFE: The MFE is accessible by instructors in ORA exercises that have explicit staff grading steps. The corresponding waffle flag is installed and enabled by default. - feat: Add support for the Communications MFE: The MFE is usable by instructors to send bulk email to learners in a course. The feature itself (the ability to send bulk email) pre-dates this MFE, and must be enabled as usual for the "Email" tab to become visible in the Instructor Dashboard. The difference is that with this change, the tab will include a link to the MFE by default. - chore: upgrade node to v18
- Loading branch information
Showing
18 changed files
with
392 additions
and
274 deletions.
There are no files selected for viewing
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
__version__ = "15.0.7" | ||
__version__ = "16.0.0" | ||
__package_version__ = __version__ | ||
|
||
|
||
# Handle version suffix for nightly, just like tutor core. | ||
__version_suffix__ = "nightly" | ||
__version_suffix__ = "" | ||
|
||
if __version_suffix__: | ||
__version__ += "-" + __version_suffix__ |
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,14 @@ | ||
""" | ||
These hooks are stored in a separate module. If they were included in plugin.py, then | ||
the tutor-mfe hooks would be created in the context of some other plugin that imports | ||
them. | ||
""" | ||
from __future__ import annotations | ||
import typing as t | ||
|
||
from tutor.core.hooks import Filter | ||
|
||
|
||
MFE_ATTRS_TYPE = t.Dict[t.Literal["repository", "port"], t.Union["str", int]] | ||
|
||
MFE_APPS: Filter[dict[str, MFE_ATTRS_TYPE], []] = Filter() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{% if MFE_COURSE_AUTHORING_MFE_APP %} | ||
COURSE_AUTHORING_MICROFRONTEND_URL = "http://{{ MFE_HOST }}:{{ MFE_COURSE_AUTHORING_MFE_APP["port"] }}/{{ MFE_COURSE_AUTHORING_MFE_APP["name"] }}" | ||
CORS_ORIGIN_WHITELIST.append("http://{{ MFE_HOST }}:{{ MFE_COURSE_AUTHORING_MFE_APP["port"] }}") | ||
LOGIN_REDIRECT_WHITELIST.append("{{ MFE_HOST }}:{{ MFE_COURSE_AUTHORING_MFE_APP["port"] }}") | ||
CSRF_TRUSTED_ORIGINS.append("{{ MFE_HOST }}:{{ MFE_COURSE_AUTHORING_MFE_APP["port"] }}") | ||
# MFE-specific settings | ||
{% for app_name, app in iter_mfes() %} | ||
{% if app_name == "course-authoring" %} | ||
COURSE_AUTHORING_MICROFRONTEND_URL = "http://{{ MFE_HOST }}:{{ app["port"] }}/course-authoring" | ||
CORS_ORIGIN_WHITELIST.append("http://{{ MFE_HOST }}:{{ app["port"] }}") | ||
LOGIN_REDIRECT_WHITELIST.append("{{ MFE_HOST }}:{{ app["port"] }}") | ||
CSRF_TRUSTED_ORIGINS.append("{{ MFE_HOST }}:{{ app["port"] }}") | ||
{% endif %} | ||
{% endfor %} |
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
Oops, something went wrong.