Closed OmarIthawi closed 1 year ago
@arbrandes I've spent few hours trying to get this working on Palm but couldn't because MFEs got their support for Atlas after Palm.
I've also tried to work on nightly branches. It was successful, but then the Communications MFE shows a blank screen even without any changes to Tutor:
Would you mind checking and letting me know how to proceed?
@regisb @arbrandes I've tested this pull request which requires the following plugin:
from tutormfe.hooks import MFE_APPS
@MFE_APPS.add()
def _use_comm_mfe_zeitlabs_fork(mfes):
mfes["communications"] = {
"repository": "https://github.com/Zeit-Labs/frontend-app-communications",
"refs": "https://api.github.com/repos/Zeit-Labs/frontend-app-communications/git/refs/heads",
"version": "atlas-palm",
"port": 1984,
}
return mfes
So it pulls the right repository until the palm.master
pull request is merged.
Please review it and let me know what do you think.
@arbrandes would you mind giving this pull request one more look? Thanks!!
cc: @regisb
Status: This is pending the Quince upgrade https://github.com/overhangio/tutor-mfe/pull/156 so I'm presuming that this PR is blocked until the following PR is merged:
cc: @regisb @sambapete @arbrandes
Any change that would added to nightly now would also go to Quince. Do you want to merge this now in nightly?
+1 for getting this into nightly.
Nightly it is! I'll rebase and get back to you!
@regisb @arbrandes I've tested this plugin and it worked well without plugins or settings.
The only remaining pull request has been merged into master
:
Please let me know if there's anything blocking this PR from getting merged.
@regisb @arbrandes @brian-smith-tcril I've tested this plugin and it worked well without plugins or settings.
The only remaining pull request has been merged into master
:
Please let me know if there's anything blocking this PR from getting merged.
@OmarIthawi, we're missing openedx-atlas
in frontend-app-communications as it stands in Quince. It was introduced in master
via https://github.com/openedx/frontend-app-communications/pull/164. I created a backport: https://github.com/openedx/frontend-app-communications/pull/176. Objections?
Adds
atlas pull
to the Communications MFE. Support for other MFEs will come.Previously open issues
Here's a couple issues that needs to be tackled:
atlas_pull
conditionally?CORE_MFE_APPS
feature.if app_name == communications
openedx-atlas
andplatform-frontend
which are required foratlas pull
?make pull translations
? or hand-craft anatlas pull
command?cd src/i18n/messages
thenode_modules/.bin
is no longer available.ENV PATH /openedx/app/node_modules/.bin:${PATH}
inbase
instead of the relative PATH.atlas pull
is only available for master because https://github.com/openedx/frontend-app-communications/pull/124 is a post-Palm pull request.palm.master
: https://github.com/openedx/frontend-app-communications/pull/156TODO before merge
Screenshot: Je parle français!
atlas pull
to the Palm: https://github.com/openedx/frontend-app-communications/pull/156atlas pull
andintl-import.js
are both working as expected:Debug atlas pull and the generated src/i18n/index.js
Nightly vs Master
All
atlas
integration is going to targetnightly
branches so it's included in Quince but not Palm.The exception is for the Communications MFE because it has not translations and needs
atlas
in Palm, therefore it's being used onmaster
.References
This contribution is part of the FC-0012 project which is sparked by the Translation Infrastructure update OEP-58.