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

[SE-4650] feat: Add course-wide custom scripts #425

Closed
wants to merge 6,289 commits into from

Conversation

gabor-boros
Copy link
Member

Cherry-pick of https://github.com/edx/edx-platform/pull/28411

Imlements OEP-15 by adding two fields to the course settings:

  • Course-wide Custom JS
  • Course-wide Custom CSS
    The resources defined in these fields will be rendered in all course pages.

Rebase b6cb629..0578e1c4c6 onto b6cb629:

  • Add course-wide resources to API for MFE use
  • Revert "Add course-wide resources to API for MFE use" reverts commit 53648dcf0afe3cd171c9dc2eb5e56b871b2bcfb2

Signed-off-by: Gabor Boros gabor.brs@gmail.com

Testing instructions

  1. go to this page
  2. Validate the "listen button" on the right of the course page
  3. Click the button and check it starts reading the text

Tj-Tracy and others added 30 commits November 2, 2020 13:17
…-comparision

convert enterprise customer uuid to str before comparison
Tests were referring to internal implementation
details of edx-django-utils. This comment removes
those references to free the library up to be
refactored.

ARCHBOM-1584
…itoring-references

ARCHBOM-1584: remove internal references to edx_django_utils from tests
The UserIdFilter and RemoteIpFilter logging filter classes
were moved from edx-platform to edx-django-utils for more
distributed use. This updated removes those classes from
edx-platform, and references their counterparts in
edx-django-utils.

ENT-3494
…irements-dbf6ef2

Python Requirements Update
…_password_url_domain

Adds Logistration MFE url for forgot password email.
[BD-21] Fix API docs generation and update swagger.yml
This is part of a removal of the many override methods of toggle
flag/namespace classes. This allows us to remove imports of test modules
from production code.
This allows us to get rid of waffle_utils' custom WaffleFlag method.
This allows us to get rid of the custom WaffleSwitch and
WaffleSwitchNamespace classes from waffle_utils in favour of
edx_toggles.toggles classes.
Those classes were ported to edx_toggles. The imports remain in
waffle_utils.__init__ for backward compatibility.
These functions should from now on be imported from
edx_toggles.toggles.testutils.
This is for backward compatibility.
…override

[BD-21] Switch to edx-toggles classes and deprecate waffle override methods
Change gendered language to gender-neutral 'they/them/their'
ENT-3522: Updated edx-enterprise version to 3.10.2 that contains a bug fix for enterprise customer admin page.
shimulch and others added 29 commits August 17, 2021 16:07
…unauthenticated enrollement (#389)

* fix: redirect unauthenticated user to the login page on enroll

(cherry picked from commit aee69cd)

* chore: remove toggle

Co-authored-by: Arjun Singh Yadav <arjun@opencraft.com>
…django-mysql

FAL-2248: Monkey-patch django db introspection to avoid performance issues
…391)

(cherry picked from commit e2a867e)

Co-authored-by: Braden MacDonald <braden@opencraft.com>
…te-arabic-month (#395)

[BB-4649] fix: Duplicate Arabic month

(cherry picked from commit 31854bd)

Co-authored-by: Sarina Canelake <sarina@edx.org>
Adds two new fields to the indexed course data:
- invitation_only
- catalog_visibility

Also adds two new settings:
`SEARCH_SKIP_INVITATION_ONLY_FILTERING`
`SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING`

These settings can be used to filter out courses in the search results
based on their catalog visibility or based on whether they are
invitation-only courses.

NOTE: Remove this when the upstream pull request is merged edx:edx-platform#28518

(cherry picked from commit 867d677)

(cherry picked from commit a5ba091)
[FAL-2358] Fix RTL issue with capa problems.
…-translation

[FAL-2358] Update 'View Course' arabic translation
…tication (#397)

* chore: constrain kombu to support redis6 auth
  Constrains kombu to https://github.com/open-craft/kombu/tree/v4.6.11.1 to allow us to use celery with multi-tenant redis.

  (cherry picked from commit 3bd3d1e)

* feat: adds CELERY_BROKER_TRANSPORT_OPTIONS
  which can be configured from the lms/studio environment

  (cherry picked from commit 3c1a43e)
The previous lti-consumer-xblock commit hash was pointing to a code drift branch which was backporting openedx/xblock-lti-consumer#150 to tag `2.4.0`

Unfortunately, `config_id` duplicate errors started showing for one of the clients. Accordingly, we had to update the xblock to the latest version which inculded that fix and still supported koa (`2.10.1`).

However, openedx/xblock-lti-consumer#150 was not merged until tag `3.0.3`. Thefore, we created a custom tag, `2.10.1-opencraft` which includes the backported change on top of tag `2.10.1`
The customer required replacing the default list,
which requires deleting these snippet files.
ADD html snippets from overview unit

From here: https://studio.esme-staging.opencraft.hosting/course/course-v1:esme+CT+2021?show=block-v1%3Aesme%2BCT%2B2021%2Btype%40chapter%2Bblock%400d4aefe059784786bd1f8eb850a633b2

The snippets from the overview Unit were added.

ADD snippets from all other subsections

Added snippets from Typical Section and Quiz
CSS lines were removed from all files, as per requested.

CORRECT typo which made template invalid
…ml-templates-in-studio

Pedrovgp/se4781 add custom html templates in studio
…d-custom-html-templates-in-studio

Revert "Pedrovgp/se4781 add custom html templates in studio"
which can be configured from the lms/studio environment

refactor: raise ImproperlyConfigured on TypeError
Signed-off-by: Gabor Boros <gabor.brs@gmail.com>

Co-authored-by: Jillian Vogel <jill@opencraft.com>
…n form (#419)

Co-authored-by: Ivo Branco <ivo.branco@fccn.pt>
Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
The customer required replacing the default list,
which requires deleting these snippet files.
ADD html snippets from overview unit

From here: https://studio.esme-staging.opencraft.hosting/course/course-v1:esme+CT+2021?show=block-v1%3Aesme%2BCT%2B2021%2Btype%40chapter%2Bblock%400d4aefe059784786bd1f8eb850a633b2

The snippets from the overview Unit were added.

ADD snippets from all other subsections

Added snippets from Typical Section and Quiz
CSS lines were removed from all files, as per requested.

CORRECT typo which made template invalid
…/koa.3-esme - custom HTML components

Pvgp/se4781/opencraft release/koa.3 esme
Imlements OEP-15 by adding two fields to the course settings:
- Course-wide Custom JS
- Course-wide Custom CSS
The resources defined in these fields will be rendered in all course pages.

Rebase b6cb629..0578e1c4c6 onto b6cb629:
- Add course-wide resources to API for MFE use
- Revert "Add course-wide resources to API for MFE use" reverts commit 53648dcf0afe3cd171c9dc2eb5e56b871b2bcfb2

Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
@gabor-boros gabor-boros closed this Oct 4, 2021
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.