Then enable it by tutor plugins enable tutor-mfe followed by tutor config save.
Django-admin settings
Also a waffle flag switch with name discussions.pages_and_resources_mfe need to be created, (so that sudio would redirect to the author mfe. (I suggest to do after the last step, so that you are sure the build was success before enabling it)
Build the mfe-image:
And ofcourse you would need to rebuild the mfe image by tutor images build mfe .
Hey,
Oh probably because plugin file wasn’t enabled, have you run tutor plugins enable author-mfe I didn’t include this step exactly above before, I will edit the above post now
I can’t edit the above post:
When I said above to run tutor plugins enable tutor-mfe I meant to say: tutor plugins enable author-mfe (I assume tutor-mfe plugins is already enabled).
Lastly you would need to repeate the steps. Sorry for the inconvenience
We were actually following this because we wanted to enable the new discussions-mfe from here:
Even though we’ve made the author-mfe work, we had some “burning” questions:
How did you know the names of the patches to work with (eg. openedx-cms-production-settings) in the plugin?
How did you decide the port number as 4224, was this randomly selected?
How did you know which waffle flags to create?
Why did you name it as “author” in config.yml file, could it be anything else?
This is our (rough) roadmap for the discussions mfe based on your post:
Make a new plugin called “discussions-mfe.py”
Copy paste your plugin code and replace cms with lms , and “…/authors” with “…/discussions”
enable discussions-mfe plugin
rebuild mfe image
local quickstart (just to be sure)
We really want to make the discussions mfe work (because the original seems straight out of 1995 i.e eye-sore), so we’d really appreciate if you could point us in the right direction.
PS: Thanks for the swift response that too on a Sunday.
I knew I had to change CMS settings because this app talks to the CMS service, and how I knew about the patch, this is somehting related to tutor, you can check the list of patches here: Template patch catalog — Tutor documentation
Yes it was random, I just made sure it doesn’t conflict with other ports used by MFEs, note this is relevant for dev env. But anyway probably I should have used 2001 hence:
I don’t remeber this part, probably while digging through code in edx-platform.
I choose author because this is shortname, usually in tutor the name would what comes after frontend-app-name but sice its too long in this case I have choosen author. But it can be anything, as long as you reflect that in the settings
I don’t know about the discussion MFE I never ran it thus I am not sure if you would need to apply CMS settings patch.