Skip to content
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

feat: upgrade to v1 plugin API #44

Merged
merged 1 commit into from
Apr 19, 2022
Merged

feat: upgrade to v1 plugin API #44

merged 1 commit into from
Apr 19, 2022

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Apr 15, 2022

We upgrade this plugin to make use of the v1 plugin API. As a consequence, we
are able to condition image pull/push based on whether users have modified the
Docker image tag.

Inspiration from this neat trick: https://discuss.overhang.io/t/why-is-the-mfe-image-not-pre-built/2260/6

See: openedx-unsupported/wg-developer-experience#59

Copy link
Contributor

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, pending myservice->lms fix.

Things I was able to do successfully:

  • tutor plugins disable mfe && tutor plugins enable mfe && tutor config save
  • tutor images pull (MFE image was skipped, as expected)
  • tutor images build mfe
  • tutor local quickstart, as well as tutor local init --limit=mfe
  • Viewing the Demo Course's course outline and dates pages in the Learning MFE.
  • Viewing my account settings and profile pages in their MFEs.
  • Viewing the Gradebook MFE.

What didn't work:

  • Courseware gives me an opaque "There was an error loading this course." message, with no hints in the debugger or network log. I haven't determined whether it's related to the plugin changes or not... more than likely it's some misconfiguration on my side

I'm going to keep looking into the courseware error for my own edification, but if you feel comfortable with merging right now, that's OK with me.

tutormfe/plugin.py Outdated Show resolved Hide resolved
tutormfe/plugin.py Show resolved Hide resolved
@regisb regisb force-pushed the regisb/plugin-v1 branch from f4b468d to 4ee15e9 Compare April 19, 2022 15:03
We upgrade this plugin to make use of the v1 plugin API. As a consequence, we
are able to condition image pull/push based on whether users have modified the
Docker image tag.

Inspiration from this neat trick: https://discuss.overhang.io/t/why-is-the-mfe-image-not-pre-built/2260/6

See: openedx-unsupported/wg-developer-experience#59
@regisb regisb force-pushed the regisb/plugin-v1 branch from 4ee15e9 to 024eca0 Compare April 19, 2022 15:03
@regisb regisb merged commit b76abe0 into master Apr 19, 2022
@regisb regisb deleted the regisb/plugin-v1 branch April 19, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants