Skip to content

Commit

Permalink
Upgrade to openedx Palm @ tutor 16.x
Browse files Browse the repository at this point in the history
  • Loading branch information
snglth committed Aug 22, 2023
1 parent 227e5c3 commit 5ef413c
Show file tree
Hide file tree
Showing 23 changed files with 204 additions and 64 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
jobs:
build-openedx:
env:
OPENEDX_IMAGE: docker.io/abstract2tech/community-theme-openedx:15.3.0
OPENEDX_IMAGE: docker.io/abstract2tech/community-theme-openedx:16.1.0
runs-on: ubuntu-latest
if : ${{ !inputs.skip_build_openedx_job }}
steps:
Expand Down Expand Up @@ -59,12 +59,14 @@ jobs:
- name: Build tutor openedx image
run: |
docker login -u abstract2tech -p ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
docker buildx build -t "${OPENEDX_IMAGE}" --pull --cache-from "${OPENEDX_CACHE_IMAGE}" ./env/build/openedx --cache-to "${OPENEDX_CACHE_IMAGE}" --push
tutor images pull openedx
tutor images build openedx
tutor images push openedx
build-mfe:
runs-on: ubuntu-latest
env:
MFE_IMAGE: docker.io/abstract2tech/community-theme-mfe:15.0.5
MFE_IMAGE: docker.io/abstract2tech/community-theme-mfe:16.1.0
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -97,6 +99,7 @@ jobs:
- name: Build tutor MFE image
run: |
docker login -u abstract2tech -p ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
tutor images pull mfe
tutor images build mfe
tutor images push mfe
Expand Down
28 changes: 19 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,48 +1,58 @@
[submodule "mfe/frontend-app-profile"]
path = mfe/frontend-app-profile
url = git@github.com:Abstract-Tech/community-theme-profile.git
branch = community-theme.master
branch = community-theme.palm
[submodule "mfe/frontend-app-learning"]
path = mfe/frontend-app-learning
url = git@github.com:Abstract-Tech/community-theme-learning.git
branch = community-theme.master
[submodule "mfe/frontend-app-course_about"]
path = mfe/frontend-app-course_about
url = git@github.com:Abstract-Tech/community-theme-course-about.git
branch = community-theme
branch = community-theme.palm
[submodule "mfe/frontend-app-gradebook"]
path = mfe/frontend-app-gradebook
url = git@github.com:Abstract-Tech/community-theme-gradebook.git
branch = community-theme
branch = community-theme.palm
[submodule "mfe/frontend-app-account"]
path = mfe/frontend-app-account
url = git@github.com:Abstract-Tech/community-theme-account.git
branch = community-theme.master
branch = community-theme.palm
[submodule "mfe/frontend-app-home"]
path = mfe/frontend-app-home
url = git@github.com:Abstract-Tech/community-theme-home.git
branch = community-theme
[submodule "mfe/frontend-component-footer"]
path = mfe/frontend-component-footer
url = git@github.com:Abstract-Tech/community-theme-footer.git
branch = community-theme
branch = community-theme.palm
[submodule "mfe/frontend-component-header"]
path = mfe/frontend-component-header
url = git@github.com:Abstract-Tech/community-theme-header.git
branch = community-theme
branch = community-theme.palm
[submodule "mfe/brand-openedx"]
path = mfe/brand-openedx
url = git@github.com:Abstract-Tech/community-theme-brand.git
branch = community-theme
[submodule "mfe/frontend-app-discussions"]
path = mfe/frontend-app-discussions
url = git@github.com:Abstract-Tech/community-theme-discussions.git
branch = community-theme
branch = community-theme.palm
[submodule "mfe/frontend-app-authn"]
path = mfe/frontend-app-authn
url = git@github.com:Abstract-Tech/community-theme-authn.git
branch = community-theme.olive
branch = community-theme.palm
[submodule "mfe/frontend-app-course-authoring"]
path = mfe/frontend-app-course-authoring
url = git@github.com:Abstract-Tech/community-theme-course-authoring.git
branch = community-theme
branch = community-theme.palm
[submodule "mfe/frontend-app-communications"]
path = mfe/frontend-app-communications
url = git@github.com:Abstract-Tech/community-theme-communications.git
branch = community-theme.palm
[submodule "mfe/frontend-app-ora-grading"]
path = mfe/frontend-app-ora-grading
url = git@github.com:Abstract-Tech/community-theme-ora-grading.git
branch = community-theme.palm


25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ It's important that MFE directories names start with the `frontend-app` magic wo
The MFE application will be accessible at `http://apps.local.overhang.io:{{ PORT }}/{{ NAME }}/`. The `PORT` and `NAME` parameters for the specific MFE can be found in `config.yml`.
(e.g. http://apps.local.overhang.io:1995/profile/)

<details>
<summary>Old way of running MFE in development mode</summary>

## Building customized MFEs dev images

Expand All @@ -93,6 +95,29 @@ Then you should be able to run:

And browse the MFE at http://apps.local.overhang.io:3001/home/

</details>

## Running an MFE in development mode

To run an MFE in development mode, you would need to clone it and to mount it's directory

Assuming you need to modify `frontend-app-account`.

1. Clone it _if it's not already_
2. `npm install` _make sure you are on the correct node version `node --version` it shall match `cat .nvmrc`_
3. `tutor mounts add "./mfe/frontend-app-account"`.

### How do I override specific npm pks?

The following is an example of overriding a header

1. Clone it _if it's not already_
2. `npm install` _make sure you are on the correct node version `node --version` it shall match `cat .nvmrc`_
3. Mount the pkg to the container `tutor mounts add "account:./mfe/frontend-component-header:/openedx/frontend-component-header"` scheme: `service:host_path:containter_path`
3. mounts the `module.config.js` file, assuming it's `mfe/`, `tutor mounts add account:./mfe/module.config.js:/openedx/app/module.config.js`
5. then run `npm install` _Note: in step 2 we run it inside header, now inside account mfe_
6. Simliar to adding the header we can also add other pkgs, like footer, brand, paragon...etc.

## Building and runnning MFEs in production mode

If you want to test the MFEs in a production like environment (e.g. the platform root page will be replaced by the Home MFE application) you can do so by running:
Expand Down
2 changes: 1 addition & 1 deletion ansible/group_vars/tutor/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
tutor_version: "15.3.8"
tutor_version: "16.0.1"

tutor_prod_config:
ENABLE_HTTPS: true
Expand Down
20 changes: 10 additions & 10 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAIRN_SUPERSET_SECRET_KEY: WcbX8dsobUWH5zOgHDz4
CMS_HOST: studio.local.overhang.io
CMS_OAUTH2_SECRET: 2icx54cdu9SJ77KMlZgHTWcm
CONTACT_EMAIL: noreply@community.abzt.de
DOCKER_IMAGE_OPENEDX: docker.io/abstract2tech/community-theme-openedx:15.3.0
DOCKER_IMAGE_OPENEDX: docker.io/abstract2tech/community-theme-openedx:16.1.0
ENABLE_HTTPS: false
ENABLE_WEB_PROXY: true
ID: jxBish2U54zbLTe82GMVvnyO
Expand Down Expand Up @@ -68,12 +68,12 @@ MFE_ACCOUNT_MFE_APP:
name: account
port: 1997
repository: https://github.com/Abstract-Tech/community-theme-account
version: community-theme.master
version: community-theme.palm
MFE_AUTHN_MFE_APP:
name: authn
port: 1999
repository: https://github.com/Abstract-Tech/community-theme-authn
version: community-theme.olive
version: community-theme.palm
MFE_COURSE_ABOUT_MFE_APP:
name: course_about
port: 3000
Expand All @@ -83,18 +83,18 @@ MFE_COURSE_AUTHORING_MFE_APP:
name: course_authoring
port: 2001
repository: https://github.com/Abstract-Tech/community-theme-course-authoring
version: community-theme
version: community-theme.palm
MFE_DISCUSSIONS_MFE_APP:
name: discussions
port: 2002
repository: https://github.com/Abstract-Tech/community-theme-discussions
version: community-theme
MFE_DOCKER_IMAGE: docker.io/abstract2tech/community-theme-mfe:15.0.5
version: community-theme.palm
MFE_DOCKER_IMAGE: docker.io/abstract2tech/community-theme-mfe:16.0.0
MFE_GRADEBOOK_MFE_APP:
name: gradebook
port: 1994
repository: https://github.com/Abstract-Tech/community-theme-gradebook.git
version: community-theme
version: community-theme.palm
MFE_HOME_MFE_APP:
name: home
port: 3001
Expand All @@ -104,12 +104,12 @@ MFE_LEARNING_MFE_APP:
name: learning
port: 2000
repository: https://github.com/Abstract-Tech/community-theme-learning
version: community-theme.master
version: community-theme.palm
MFE_PROFILE_MFE_APP:
name: profile
port: 1995
repository: https://github.com/Abstract-Tech/community-theme-profile
version: community-theme.master
version: community-theme.palm
MYSQL_ROOT_PASSWORD: 43Lfuln2
OPENEDX_EXTRA_PIP_REQUIREMENTS:
- git+https://github.com/abstract-tech/abstract-scorm-xblock.git@django4#subdirectory=abstract_scorm_xblock&egg=abstract-scorm-xblock
Expand All @@ -122,8 +122,8 @@ OPENEDX_SECRET_KEY: eHqeglW5j7T68yYtr3yL6XPz
PLATFORM_NAME: Community Theme
PLUGINS:
- aicoach
- brand-openedx
- course-about-mfe
- community-mfe
- home-mfe
- mfe
- session-timeout
Expand Down
2 changes: 1 addition & 1 deletion mfe/brand-openedx
2 changes: 1 addition & 1 deletion mfe/frontend-app-account
Submodule frontend-app-account updated 93 files
+1 −1 .github/workflows/add-depr-ticket-to-depr-board.yml
+20 −0 .github/workflows/add-remove-label-on-comment.yml
+3 −4 .github/workflows/ci.yml
+1 −1 .github/workflows/lockfileversion-check.yml
+12 −0 .github/workflows/self-assign-issue.yml
+0 −41 .github/workflows/update-browserlist.yml
+12 −0 .github/workflows/update-browserslist-db.yml
+1 −1 .nvmrc
+2 −4 Makefile
+0 −2 README.rst
+3,236 −6,847 package-lock.json
+19 −22 package.json
+5 −0 renovate.json
+12 −9 src/account-settings/AccountSettingsPage.jsx
+13 −3 src/account-settings/AccountSettingsPage.messages.jsx
+9 −11 src/account-settings/Alert.jsx
+3 −0 src/account-settings/BetaLanguageBanner.jsx
+23 −9 src/account-settings/DOBForm.jsx
+12 −34 src/account-settings/EditableField.jsx
+232 −0 src/account-settings/EditableSelectField.jsx
+11 −11 src/account-settings/EmailField.jsx
+3 −3 src/account-settings/JumpNav.jsx
+13 −13 src/account-settings/NotFoundPage.jsx
+4 −2 src/account-settings/OneTimeDismissibleAlert.jsx
+2 −2 src/account-settings/SwitchContent.jsx
+3 −3 src/account-settings/certificate-preference/CertificatePreference.jsx
+13 −17 src/account-settings/coaching/CoachingConsent.jsx
+73 −79 src/account-settings/coaching/CoachingConsentForm.jsx
+63 −61 src/account-settings/coaching/CoachingToggle.jsx
+54 −30 src/account-settings/coaching/test/__snapshots__/CoachingConsent.test.jsx.snap
+2 −2 src/account-settings/delete-account/BeforeProceedingBanner.jsx
+52 −53 src/account-settings/delete-account/ConfirmationModal.jsx
+2 −2 src/account-settings/delete-account/PrintingInstructions.jsx
+17 −13 src/account-settings/delete-account/SuccessModal.jsx
+127 −270 src/account-settings/delete-account/__snapshots__/ConfirmationModal.test.jsx.snap
+62 −459 src/account-settings/delete-account/__snapshots__/SuccessModal.test.jsx.snap
+8 −7 src/account-settings/demographics/Checkboxes.jsx
+16 −16 src/account-settings/demographics/DemographicsSection.jsx
+3 −3 src/account-settings/name-change/NameChange.jsx
+2 −2 src/account-settings/reset-password/ConfirmationAlert.jsx
+12 −14 src/account-settings/reset-password/RequestInProgressAlert.jsx
+2 −2 src/account-settings/reset-password/ResetPassword.jsx
+30 −0 src/account-settings/site-language/constants.js
+13 −39 src/account-settings/test/__snapshots__/JumpNav.test.jsx.snap
+8 −10 src/head/Head.jsx
+20 −16 src/i18n/index.js
+5 −3 src/i18n/messages/ar.json
+0 −11 src/i18n/messages/ca.json
+361 −0 src/i18n/messages/de.json
+361 −0 src/i18n/messages/de_DE.json
+5 −3 src/i18n/messages/es_419.json
+361 −0 src/i18n/messages/fa_IR.json
+15 −13 src/i18n/messages/fr.json
+361 −0 src/i18n/messages/fr_CA.json
+0 −11 src/i18n/messages/he.json
+361 −0 src/i18n/messages/hi.json
+0 −11 src/i18n/messages/id.json
+361 −0 src/i18n/messages/it.json
+361 −0 src/i18n/messages/it_IT.json
+0 −11 src/i18n/messages/ko_kr.json
+0 −11 src/i18n/messages/pl.json
+361 −0 src/i18n/messages/pt.json
+361 −0 src/i18n/messages/pt_PT.json
+0 −11 src/i18n/messages/pt_br.json
+359 −9 src/i18n/messages/ru.json
+0 −11 src/i18n/messages/th.json
+359 −9 src/i18n/messages/uk.json
+5 −3 src/i18n/messages/zh_CN.json
+2 −2 src/id-verification/AccessBlocked.jsx
+27 −29 src/id-verification/CameraHelp.jsx
+2 −2 src/id-verification/CameraHelpWithUpload.jsx
+2 −2 src/id-verification/CollapsibleImageHelp.jsx
+4 −2 src/id-verification/IdVerificationContextProvider.jsx
+27 −12 src/id-verification/IdVerificationPage.jsx
+4 −2 src/id-verification/ImageFileUpload.jsx
+7 −7 src/id-verification/ImagePreview.jsx
+4 −2 src/id-verification/SupportedMediaTypes.jsx
+2 −2 src/id-verification/VerifiedNameContext.jsx
+5 −3 src/id-verification/panels/BasePanel.jsx
+2 −2 src/id-verification/panels/EnableCameraDirectionsPanel.jsx
+2 −2 src/id-verification/panels/GetNameIdPanel.jsx
+2 −2 src/id-verification/panels/IdContextPanel.jsx
+2 −2 src/id-verification/panels/PortraitPhotoContextPanel.jsx
+2 −2 src/id-verification/panels/RequestCameraAccessPanel.jsx
+2 −2 src/id-verification/panels/ReviewRequirementsPanel.jsx
+2 −2 src/id-verification/panels/SubmittedPanel.jsx
+6 −6 src/id-verification/panels/SummaryPanel.jsx
+2 −2 src/id-verification/panels/TakeIdPhotoPanel.jsx
+2 −2 src/id-verification/panels/TakePortraitPhotoPanel.jsx
+7 −9 src/id-verification/panels/UnsupportedCameraDirectionsPanel.jsx
+34 −4 src/id-verification/tests/IdVerificationPage.test.jsx
+2 −2 src/id-verification/tests/VerifiedNameContextProvider.test.jsx
+2 −2 src/tests/hooks.test.jsx
2 changes: 1 addition & 1 deletion mfe/frontend-app-authn
1 change: 1 addition & 0 deletions mfe/frontend-app-communications
2 changes: 1 addition & 1 deletion mfe/frontend-app-course-authoring
2 changes: 1 addition & 1 deletion mfe/frontend-app-discussions
2 changes: 1 addition & 1 deletion mfe/frontend-app-gradebook
2 changes: 1 addition & 1 deletion mfe/frontend-app-learning
1 change: 1 addition & 0 deletions mfe/frontend-app-ora-grading
2 changes: 1 addition & 1 deletion mfe/frontend-app-profile
Submodule frontend-app-profile updated 55 files
+1 −2 .env
+1 −2 .env.development
+1 −0 .env.test
+1 −1 .github/workflows/add-depr-ticket-to-depr-board.yml
+20 −0 .github/workflows/add-remove-label-on-comment.yml
+3 −4 .github/workflows/ci.yml
+1 −1 .github/workflows/lockfileversion-check.yml
+12 −0 .github/workflows/self-assign-issue.yml
+12 −0 .github/workflows/update-browserslist-db.yml
+1 −1 .nvmrc
+2 −5 Makefile
+1 −1 README.rst
+3,272 −7,096 package-lock.json
+21 −24 package.json
+8 −10 src/head/Head.jsx
+33 −1 src/i18n/messages/ar.json
+33 −1 src/i18n/messages/de.json
+34 −2 src/i18n/messages/es_419.json
+33 −1 src/i18n/messages/fr.json
+39 −7 src/i18n/messages/fr_CA.json
+33 −1 src/i18n/messages/hi.json
+33 −1 src/i18n/messages/it.json
+33 −1 src/i18n/messages/pt.json
+33 −1 src/i18n/messages/ru.json
+33 −1 src/i18n/messages/uk.json
+33 −1 src/i18n/messages/zh_CN.json
+4 −10 src/index.jsx
+25 −27 src/profile/AgeMessage.jsx
+1 −3 src/profile/Banner.jsx
+2 −2 src/profile/DateJoined.jsx
+13 −13 src/profile/NotFoundPage.jsx
+18 −15 src/profile/ProfilePage.jsx
+12 −14 src/profile/ProfilePage.test.jsx
+14 −16 src/profile/UsernameDescription.jsx
+2 −1 src/profile/__mocks__/loadingApp.mockStore.js
+6 −3 src/profile/__mocks__/savingEditedBio.mockStore.js
+4 −2 src/profile/__mocks__/viewOtherProfile.mockStore.js
+6 −3 src/profile/__mocks__/viewOwnProfile.mockStore.js
+8 −8 src/profile/__snapshots__/ProfilePage.test.jsx.snap
+1 −1 src/profile/data/constants.js
+7 −0 src/profile/data/mock_data.js
+92 −0 src/profile/forms/LearningGoal.jsx
+31 −0 src/profile/forms/LearningGoal.messages.jsx
+122 −0 src/profile/forms/LearningGoal.test.jsx
+43 −51 src/profile/forms/SocialLinks.jsx
+4 −4 src/profile/forms/SocialLinks.test.jsx
+13 −15 src/profile/forms/elements/EditButton.jsx
+10 −12 src/profile/forms/elements/EditableItemHeader.jsx
+16 −18 src/profile/forms/elements/EmptyContent.jsx
+3 −3 src/profile/forms/elements/FormControls.jsx
+2 −2 src/profile/forms/elements/SwitchContent.jsx
+4 −4 src/profile/forms/elements/Visibility.jsx
+0 −3 src/profile/index.scss
+17 −0 src/routes/AppRoutes.jsx
+73 −0 src/routes/routes.test.jsx
2 changes: 1 addition & 1 deletion mfe/frontend-component-header
Submodule frontend-component-header updated 47 files
+3 −4 .github/workflows/ci.yml
+1 −2 .github/workflows/lockfileversion-check.yml
+4 −2 .github/workflows/release.yml
+1 −0 .nvmrc
+1 −1 README.rst
+2 −1 example/index.js
+3,418 −5,627 package-lock.json
+27 −20 package.json
+10 −0 src/Header.jsx
+10 −0 src/Header.messages.jsx
+20 −6 src/Header.test.jsx
+71 −0 src/Notifications/NotificationRowItem.jsx
+81 −0 src/Notifications/NotificationSections.jsx
+52 −0 src/Notifications/NotificationTabs.jsx
+1 −0 src/Notifications/data/__factories__/index.js
+22 −0 src/Notifications/data/__factories__/notifications.factory.js
+44 −0 src/Notifications/data/api.js
+150 −0 src/Notifications/data/api.test.js
+11 −0 src/Notifications/data/hook.js
+1 −0 src/Notifications/data/index.js
+134 −0 src/Notifications/data/notifications.json
+164 −0 src/Notifications/data/redux.test.js
+126 −0 src/Notifications/data/selector.test.jsx
+23 −0 src/Notifications/data/selectors.js
+154 −0 src/Notifications/data/slice.js
+130 −0 src/Notifications/data/thunks.js
+101 −0 src/Notifications/index.jsx
+36 −0 src/Notifications/messages.js
+52 −0 src/Notifications/utils.js
+18 −0 src/common/time-locale.js
+7 −1 src/i18n/messages/ar.json
+7 −1 src/i18n/messages/de.json
+7 −1 src/i18n/messages/es_419.json
+7 −1 src/i18n/messages/fr.json
+7 −1 src/i18n/messages/fr_CA.json
+7 −1 src/i18n/messages/hi.json
+7 −1 src/i18n/messages/it.json
+7 −1 src/i18n/messages/pt.json
+7 −1 src/i18n/messages/ru.json
+14 −8 src/i18n/messages/uk.json
+7 −1 src/i18n/messages/zh_CN.json
+137 −2 src/index.scss
+20 −4 src/learning-header/AuthenticatedUserDropdown.jsx
+21 −18 src/learning-header/LearningHeader.jsx
+1 −1 src/learning-header/LearningHeader.test.jsx
+16 −0 src/store.js
+6 −0 src/test-utils.js
7 changes: 0 additions & 7 deletions plugins/brand-openedx.yml

This file was deleted.

108 changes: 108 additions & 0 deletions plugins/community-mfe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
from tutormfe.hooks import MFE_APPS
from tutor import hooks


@MFE_APPS.add()
def mfe_forks(mfes):
mfes["authn"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-authn",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-authn/git/refs/heads",
"port": 1999,
"name": "authn",
}
mfes["account"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-account",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-account/git/refs/heads",
"port": 1997,
"name": "account",
}
mfes["communications"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-communications",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-communications/git/refs/heads",
"port": 1984,
"name": "communications",
}
mfes["course-authoring"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-course-authoring",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-course-authoring/git/refs/heads",
"port": 2001,
"name": "course_authoring",
}
mfes["discussions"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-discussions",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-discussions/git/refs/heads",
"port": 2002,
"name": "discussions",
}
mfes["gradebook"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-gradebook",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-gradebook/git/refs/heads",
"port": 1994,
"name": "gradebook",
}
mfes["learning"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-learning",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-learning/git/refs/heads",
"port": 2000,
"name": "learning",
}
mfes["ora-grading"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-ora-grading",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-ora-grading/git/refs/heads",
"port": 1993,
"name": "ora-grading",
}
mfes["profile"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-profile",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-profile/git/refs/heads",
"port": 1995,
"name": "profile",
}
mfes["home"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-home",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-home/git/refs/heads",
"port": 3001,
"name": "home",
}
mfes["course_about"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-course-about",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-course-about/git/refs/heads",
"port": 3000,
"name": "course_about",
}
# Note: The changes of the following might not take effect due to tutor order of loading plugins
# This to change it you might need to edit the upstream pplugin at:
# https://github.com/Abstract-Tech/openedx-tutor-plugins/blob/5556c1d5c55e1a0e95f36a9f0b89dbf21382f581/plugins/tutor-contrib-learner-dashboard-mfe/tutor_learner_dashboard_mfe/plugin.py#L20-L25
mfes["learner-dashboard"] = {
"repository": "https://github.com/Abstract-Tech/community-theme-learner-dashboard",
"version": "community-theme.palm",
"refs": "https://api.github.com/repos/abstract-tech/community-theme-learner-dashboard/git/refs/heads",
"port":1996,
}

return mfes


hooks.Filters.ENV_PATCHES.add_items(
[
(
"mfe-dockerfile-post-npm-install",
"""
RUN npm install '@edx/frontend-component-header@git+https://git@github.com/abstract-tech/community-theme-header.git#community-theme.palm' --registry=$NPM_REGISTRY
RUN npm install '@edx/frontend-component-footer@git+https://git@github.com/abstract-tech/community-theme-footer.git#community-theme.palm' --registry=$NPM_REGISTRY
RUN npm install '@edx/brand@git+https://git@github.com/abstract-tech/community-theme-brand.git#community-theme' --registry=$NPM_REGISTRY
""",
),
]
)
10 changes: 5 additions & 5 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tutor<16.0.0
tutor-mfe<16.0.0
tutor-forum<16.0.0
tutor-cairn<16.0.0
tutor-minio<16.0.0
tutor<17.0.0
tutor-mfe<17.0.0
tutor-forum<17.0.0
tutor-cairn<17.0.0
tutor-minio<17.0.0

0 comments on commit 5ef413c

Please sign in to comment.