Commit Graph

60053 Commits

Author SHA1 Message Date
ha-D
d3bc4601ae feat: Add course-wide custom scripts
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 b6cb629849..0578e1c4c6 onto b6cb629849:
- 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>
2021-10-04 11:24:45 -07:00
Awais Qureshi
210f911395 Merge pull request #28920 from edx/iamsobanjaved/django-32-fake-lang-fix
fix: remove fake2 language from django settings
2021-10-04 23:06:40 +05:00
Régis Behmo
0af38bf2a7 build: run github actions on pull requests (#27786) 2021-10-04 21:29:18 +05:00
Soban Javed
71debe7f7b fix: remove fake2 language from django settings
This was causing issue with Django 3.2, as Django has restricted to only use language from the pre-defined set of languages provided by Django.

BOM-2870
2021-10-04 20:44:18 +05:00
Kyle McCormick
6ea900cba6 docs: remove link to edX.org-internal coursegraph queries (#28918)
I had thought this wiki page was publicly accessible, but it
turns out that it is restricted to edX employees. Making the
page publicly visible would involve editing some queries
to remove edX.org-specific information, which is doable but
not something I can commit to right now.
2021-10-04 11:34:29 -04:00
Robert Raposa
e41520dbae feat: return user id from login_refresh (#28905)
To enhance monitoring of login_refresh issues that happen
in the frontend, return user id as part of successful
refreshes.
2021-10-04 11:00:07 -04:00
Awais Qureshi
fa959f1ed9 Merge pull request #28810 from edx/removing-cors-headers-checks
chore: `django-cor-headers` post deployment cleanup.
2021-10-04 17:12:47 +05:00
Awais Qureshi
9010e99a80 Merge pull request #28904 from edx/fixing-dj32-setuptestdata-tests
Fixing dj32 setuptestdata tests
2021-10-04 16:03:11 +05:00
Albert (AJ) St. Aubin
24548dd093 fix: Hide Request Cert button on courses with no Cert config 2021-10-04 07:01:26 -04:00
Muhammad Soban Javed
169349b6b1 Merge pull request #28896 from edx/iamsobanjaved/django30-fix-race-condition
fix: update test for race condition while saving course overview
2021-10-04 13:35:29 +05:00
Awais Jibran
06b912e5db refactor: optimise imports (#28897) 2021-10-04 11:15:32 +05:00
Awais Qureshi
34a1cff178 fix: django32 2021-10-03 01:37:49 +05:00
Awais Qureshi
b3459b3589 fix: Fixing test due to the change in django32.
Objects assigned to class attributes in TestCase.setUpTestData() are now isolated for each test method.

https://docs.djangoproject.com/en/3.2/releases/3.2/#tests

BOM-2866
2021-10-02 17:04:03 +05:00
Awais Qureshi
c5f3d75c2b fix: Fixing test due to the change in django32.
Objects assigned to class attributes in TestCase.setUpTestData() are now isolated for each test method.

https://docs.djangoproject.com/en/3.2/releases/3.2/#tests

BOM-2866
2021-10-02 16:15:32 +05:00
Awais Qureshi
7eb00d63c5 fix: Fixing test due to the change in django32.
Objects assigned to class attributes in TestCase.setUpTestData() are now isolated for each test method.

https://docs.djangoproject.com/en/3.2/releases/3.2/#tests

BOM-2866
2021-10-02 00:45:38 +05:00
Awais Qureshi
aa16142659 fix: Fixing test due to the change in django32.
Objects assigned to class attributes in TestCase.setUpTestData() are now isolated for each test method.

https://docs.djangoproject.com/en/3.2/releases/3.2/#tests

BOM-2866
2021-10-02 00:45:18 +05:00
Chris Pappas
b0da341020 chore: bumping edx-enterprise version (#28901) 2021-10-01 13:45:21 -04:00
Kshitij Sobti
8d62b8db2b chore: pin version edx-drf-extensions until breaking changes addressed (#28893)
The edx-drf-extensions==8.0.0 release will remove support for rest_condition which is currently used by this repo.
That is being handled in https://github.com/edx/edx-platform/pull/28663 which will unpin this dependency
2021-10-01 12:51:33 -04:00
Kshitij Sobti
dd6e908635 feat: Add support for pinning and closing threads, adds a preview and a delete check field (#28809)
Adds support for pinning and closing threads to the current REST APIs for discusions.
Adds a preview_body field to the thread response that contains a truncated version of the raw body with tags removed so it can be shown in previews.
Adds a field called "can_delete" to threads and comments that signals if the current user is able to delete that resource.
2021-10-01 19:57:12 +05:00
Soban Javed
ec5f461d78 fix: update test for race condition while saving course overview
This test was failing for Django 3 and during investigation it found that it isn't working as per expected due to introduction of caching. So fixed the test case to avoid caching to mimic race condition.

BOM-2799
2021-10-01 19:08:57 +05:00
Rebecca Graber
bf025a9b0c feat: Add custom attribute for cookie header size
ARCHBOM-1910
2021-10-01 08:09:41 -04:00
Tinuade Adeleke
ae4c0e6c13 feat:mark wiki as configurable in plugin (#28845) 2021-10-01 16:55:50 +05:00
Awais Jibran
872de99acc fix: textbooks should be enabled if course has any textbooks enabled. (#28887)
fix: proctoring settings to show pop up modal
fix: custom pages to be "disabled" by defualt
fix: only build lagacy link when app sends any link
2021-10-01 16:26:14 +05:00
M. Zulqarnain
ee68bfe7f5 chore: upgrade django-cors-headers (#28846) 2021-10-01 16:19:10 +05:00
Rebecca Graber
2ffbbeba9a chore: lint 2021-09-30 14:46:31 -04:00
Rebecca Graber
adcc9cb9b8 fix: tests 2021-09-30 14:34:57 -04:00
Gábor Boros
0935b5c51f feat: adds CELERY_BROKER_TRANSPORT_OPTIONS (#28849)
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>
2021-09-30 14:30:28 -04:00
Matt Hughes
b12bfcfc48 style(proctoring): string formatting
JIRA:MST-1061
2021-09-30 14:08:43 -04:00
Agrendalath
4b8421dfd8 fix: handle invalid source library version on course import
Importing a course with an invalid source library version (e.g. created on
another instance) should not make the import fail.
2021-09-30 10:19:56 -07:00
Rebecca Graber
0356d96b67 chore: lint 2021-09-30 12:50:04 -04:00
Rebecca Graber
8454c5bfcb chore: lint 2021-09-30 12:12:29 -04:00
Matthew Piatetsky
8be9fb6b51 feat: Allow updating goals reminder field without providing the days_per_week field (#28881) 2021-09-30 12:01:02 -04:00
Matthew Piatetsky
caec8f6f29 [AA-909] Create goal reminder email (#28822)
* feat: Create goal reminder email in ace

* creating email
2021-09-30 11:53:14 -04:00
Rebecca Graber
9e44714f4a feat: add custom attribute for total cookie header size 2021-09-30 11:45:55 -04:00
Simon Chen
38944b836b fix: Create a better admin UI for PendingNameChange model (#28888)
The current admin UI for the PendingNameChange model has no useful info and is not performant on edit form. This change make the view and edit of the model easier in django admin

Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
2021-09-30 11:34:59 -04:00
Usama Sadiq
d5e2ac9b0e fix: update static file path in tests (#28872)
fix similar test in openedx
2021-09-30 19:16:23 +05:00
Bianca Severino
26153bdcd6 Merge pull request #28879 from edx/bseverino/name-affirmation-1.0.2
chore: upgrade edx-name-affirmation to 1.0.2
2021-09-30 09:51:59 -04:00
Zia Fazal
c15c5380a3 Merge pull request #28790 from edly-io/ERTE-88
Remove event routing backends from edx-platform
2021-09-30 18:44:14 +05:00
M. Zulqarnain
5018256524 fix: test failing on Django 3.2 (#28876) 2021-09-30 17:55:33 +05:00
Matthew Piatetsky
be5241a96d Merge pull request #28865 from edx/AA-905b
[AA-905] Refactor flag for recording user activity
2021-09-30 08:51:30 -04:00
Bianca Severino
b5908ea4fc chore: upgrade edx-name-affirmation to 1.0.2 2021-09-29 15:47:39 -04:00
Matthew Piatetsky
ae618151a9 fix: Remove debugging flag that is no longer necessary and refactor 2021-09-29 15:05:14 -04:00
Ned Batchelder
80df7b21ae build: add the common commitlint action
Uses the template in the edx organization.
2021-09-29 10:51:29 -07:00
Andrew Shultz
ecd81aa4cb Merge pull request #28877 from edx/ashultz0/name-affirmation-101
chore: update name-affirmation to 1.0.1
2021-09-29 12:04:06 -04:00
Mike OConnell
3d07e72240 Merge pull request #28859 from edly-io/ERTE-55-1
feat: Added support for enterprise id in course_grade_passed_first_time event
2021-09-29 10:31:00 -04:00
Andy Shultz
9fdc0c0aab chore: update name-affirmation to 1.0.1
fixes a bug where a task checked a flag

MST-1063
2021-09-29 10:20:03 -04:00
David Ormsbee
82441d6f87 Merge pull request #28837 from edx/ormsbee/edx_when_outline_optimization
Re-enable edx-when outline optimization
2021-09-29 09:17:39 -04:00
Matt Hughes
6f01fd4441 chore: refactor fixing pylint errors in proctoring string formatting
JIRA:MST-1061
2021-09-28 15:31:41 -04:00
RehanAziz
3633cdbc01 feat: Added support for enterprise id in course_grade_passed_first_time event 2021-09-28 18:52:15 +05:00
Usama Sadiq
746a33fee2 fix: update pylintrc with edx-lint==5.2.0 (#28863) 2021-09-28 17:32:19 +05:00