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 quince #156

Merged
merged 95 commits into from
Dec 11, 2023
Merged

feat: upgrade to quince #156

merged 95 commits into from
Dec 11, 2023

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Oct 11, 2023

No description provided.

Carlos Muniz and others added 30 commits October 3, 2022 14:00
This change is due to changing quickstart to launch in tutor.
 This change does a couple of things and it introduce breaking
 changes, in summary it does:
  - It remove the usage of env/(productoin/development)
  - It's no longer possible to set/override MFE config via
    MFE_APP_*
  - It make MFEs rely to config that are defied in LMS
    settins
  - Other essetinal config that are needed at build time are
    are defined in the Dockerfile
  - It sets a proxy for both Caddy (for production) and Webpack
    (for development)
  - For old patches that are used to set/override MFE config, via
    production/development would need to be rewritten
Persistent grades are now enabled everywhere and cannot be disabled. As
a consequence the PERSISTENT_GRADES_ENABLED_FOR_ALL_TESTS setting does
not exist anymore.
In the account MFE (for instance), the top-right menu link to the
profile MFE was incorrect, as it included an "undefined/" portion.
The CREDENTIALS_BASE_URL MFE config was inadvertently set in a previous
PR, thus enabling learner records. For instance, the profile page
included a link to the records page: "View my records"
Calls to the MFE config API endpoint are made with two caches: one on
the client side, in the "edx-cache" local storage, and one on the server
side. The client side cache has a hard-coded timeout of 5 minutes. I see
no reason to have such a high cache timeout on the server side.
The only feature enabled by default is the "Pages & Resources" menu item
in Studio.

Waffle flags for the new React editors are created but disabled by
default.  (The only editor that seems to be fully featured at the moment
is the HTML block editor; Video seems to work without a preview, and
Problem is just a placeholder.)

The new proctoring interface is also disabled, as it requires the
`edx-exams` IDA, which Tutor doesn't currently support.
Adds support for the Discussions MFE, enabling it by default.

Optional features also enabled via waffle flag:

* Learner's tab in the MFE
* Extended moderation reason codes
* Reported content email notifications to moderators
* Enable learner stats in the activity API
When introducing dynamic config[1], `CSRF_TOKEN_API_PATH` was removed
from the MFE build environment and not added to the corresponding Django
settings, leading to POST failures across the board.

This addresses the problem by adding `CSRF_TOKEN_API_PATH` back in.

[1] #69
Adds support for the Authn MFE, enabling it by default.

This disable enterprise login by default.

Co-authored-by: Adolfo R. Brandes <[email protected]>
Since we no longer need the build context to pass in MFE configuration
at runtime, by removing it from the `tutor local` docker-compose we can
avoid rebuilding the image whenever a `start` is issued.
@regisb regisb force-pushed the quince branch 3 times, most recently from 2a7e58a to 6a2dba1 Compare December 4, 2023 12:51
regisb and others added 2 commits December 7, 2023 10:32
This reverts ae60b2d.  We depend
heavily on Webpack's `publicPath` for everything to work in MFEs that
are hosted in sub-paths.  This variable affects many things, including
URLs that are automatically generated for things like static assets or
lazily loaded chunks of code.  If the trailing slash is not appended to,
say, `/learning`, a React.lazy() will try to fetch this from Caddy, and
fail:

`/learning210.3f8d0b2a9dbf3b1f1e69.js`

While this can (and probably should) be dealt with in frontend-platform,
we do it here for now.
ALWAYS CLEAR CACHE ON PLUGIN LOAD!!!
@regisb regisb force-pushed the quince branch 3 times, most recently from abc1eb0 to 8a8c540 Compare December 11, 2023 17:12
@regisb regisb marked this pull request as ready for review December 11, 2023 20:09
@regisb regisb merged commit 28d0d53 into master Dec 11, 2023
1 check passed
@regisb regisb deleted the quince branch December 11, 2023 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

7 participants