openedx / wg-build-test-release

Open edX Build / Test / Release Working Group
25 stars 15 forks source link

Support for the Gradebook MFE #29

Closed arbrandes closed 2 years ago

arbrandes commented 3 years ago

Coordinate, and if necessary execute, the tasks necessary to get the Gradebook MFE up to speed for Lilac:

  1. It passes a minimum standard of documentation: at the very least, the READMEs should have descriptive text that includes use cases, screenshots, and particularly, documentation on that MFE's environment variables.
  2. Its basic feature-set (as documented above) works reliably with the rest of the Lilac codebase.
  3. It's deployed by default using the Native Installation, and deployable as a plugin using Tutor.
  4. It is internationalized (i18n), localizable (l10n), and passes minimum accessibility (a11y) standards.
  5. It has a header and footer that are customizable via npm aliases: https://edx.readthedocs.io/projects/edx-developer-docs/en/latest/developers_guide/micro_frontends_in_open_edx.html#overriding-brand-specific-elements
  6. It is compatible with the @edx/brand system: https://open-edx-proposals.readthedocs.io/en/latest/oep-0048-brand-customization.html
  7. It uses CSS utility classes in a branding-friendly way. (i.e., don't use things like 'bg-white')
arbrandes commented 3 years ago

@regisb, can we count on you for Tutor support for this, as well as for #28 and #27?

(It doesn't mean you're the only assignee, here, just that you'll help - or at least kickstart - the Tutor bits. :)

regisb commented 3 years ago

Yes, the required MFEs will be delivered for Tutor in v12.

sarina commented 3 years ago

@arbrandes -- given the MFE is currently not internationalized, are we going to put this MFE aside for the more critical ecommerce MFEs?

cc @kdmccormick

arbrandes commented 3 years ago

@sarina, apologies for the protracted delay, but as we've already discussed in the meeting, yup, we're dropping this one.

jnlapierre commented 3 years ago

Good Morning :) I am going to be reviewing this. I plan to review it today.

nedbat commented 3 years ago

@jnlapierre is the edX contact for this work. Thanks Justin!

jfavellar90 commented 3 years ago

Thanks @nedbat, @jnlapierre Please let me know if you require any help in the review you're going to perform.

jfavellar90 commented 3 years ago

Hi @jnlapierre did you have the chance to review the Gradebook MFE?

jfavellar90 commented 3 years ago

@davidjoy @jnlapierre hi, do you have any updates related to the Gradebook MFE?

jfavellar90 commented 3 years ago

Screenshot from 2021-10-24 22-58-05

@BbrSofiane I'm in the process of testing the MFE in Tutor. I've found an issue related to the MFE running in a subdirectory instead of a subdomain. The line here extracts the course_id string from the window location and assumes all the implementations of the MFE use a subdomain. If the MFE lives in a subdirectory (for instance https://mydomain.com/gradebook/), the course_id is wrongly extracted, which causes errors in building URLs the app will use to fetch data from LMS APIs. This issue should be easy to solve, I'll create the corresponding PR.

@davidjoy @jnlapierre a couple of questions here:

Thank you in advance

davidjoy commented 3 years ago

That link describes how to do the header/footer overrides, yes. It appears that gradebook is only using the frontend-component-footer repo, but not the header. That means it won't work for the header.

To test out branding (changing styles), see directions here: https://github.com/edx/brand-openedx

I can't speak to the internationalization state. I'm still trying to get some time from someone on @jnlapierre's team to help us.

jfavellar90 commented 3 years ago

@davidjoy @jnlapierre I added a PR to fix the problem of the courseId calculation here. Could you please help me with a review? Thanks!

jfavellar90 commented 3 years ago

@BbrSofiane I think this is not ready to be marked as DONE. I'll be working on checking the branding, header and footer overrides and i18n

BbrSofiane commented 3 years ago

@jfavellar90 yes, I meant to close the other issue.

jfavellar90 commented 3 years ago

Comments related to this task:

RUN npm install --no-audit --no-fund @edx/brand@git+https://github.com/eduNEXT/brand-openedx.git --save

davidjoy commented 3 years ago

I'm pretty sure the import shouldn't be prefixed with an underscore _:

@import "~@edx/frontend-component-footer/dist/_footer";

It's a fragment, so SASS should find it without that.

I think it should be:

@import "~@edx/frontend-component-footer/dist/footer";
pdpinch commented 3 years ago

FYI, regarding the header, @asadiqbal08 has the follow PRs in-flight for the Learning MFE:

https://github.com/edx/frontend-app-learning/pull/715 https://github.com/edx/frontend-component-header/pull/133 https://github.com/edx/frontend-component-header-edx/pull/196

jfavellar90 commented 2 years ago

@davidjoy According to my testing, the problem with the footer override is that dist folder is not included in the GitHub repos. I had to manually stop ignoring the dist folder in my footer component fork (https://github.com/eduNEXT/frontend-component-footer/commit/89015dc1fec7da89313b0989181bc7463216c7ba) and install the component from the repo. Once this is done, the footer override works as expected. I'm not pretty sure this is a good practice but it was the only way I got it working. any thoughts related to this approach?

BbrSofiane commented 2 years ago

Once this is done, the footer override works as expected. I'm not pretty sure this is a good practice but it was the only way I got it working. any thoughts related to this approach?

@davidjoy any thoughts on this?

BbrSofiane commented 2 years ago

@jfavellar90 is this the last hurdle to for the gradebook MFE to be ready?

jfavellar90 commented 2 years ago

@BbrSofiane we need to get merged this PR: https://github.com/edx/frontend-app-gradebook/pull/213 in order to make the MFE work properly in tutor, @davidjoy is there any way to accelerate this process? Once merged it must be backported to Gradebook maple release

I have another PR in https://github.com/edx/frontend-app-gradebook/pull/220 related to the frontend-component-header implementation, but this is not a must-have for the Maple release (this PR can take a bit longer to get merged).

On the other hand, we need to backport the language work that Regis already got merged in master. I was wondering if we can reset maple release branch (open-release/maple.beta1) to the current master.

Summarizing, the minimum required for the release is:

I remain super attentive to any feedback.

BbrSofiane commented 2 years ago

edx/frontend-app-gradebook#218 - backport to maple

jfavellar90 commented 2 years ago

@BbrSofiane backport course id issue https://github.com/edx/frontend-app-gradebook/pull/221

BbrSofiane commented 2 years ago

merge edx/frontend-app-gradebook#222