Commit Graph

60101 Commits

Author SHA1 Message Date
Braden MacDonald
96e5ff8dce feat: store split modulestore's course indexes in Django/MySQL
Split modulestore persists data in three MongoDB "collections": course_index (list of courses and the current version of each), structure (outline of the courses, and some XBlock fields), and definition (other XBlock fields). While "structure" and "definition" data can get very large, which is one of the reasons MongoDB was chosen for modulestore, the course index data is very small.

By moving course index data to MySQL / a django model, we get these advantages:
* Full history of changes to the course index data is now preserved
* Includes a django admin view to inspect the list of courses and libraries
* It's much easier to "reset" a corrupted course to a known working state, by using the simple-history revert tools from the django admin.
* The remaining MongoDB collections (structure and definition) are essentially just used as key-value stores of large JSON data structures. This paves the way for future changes that allow migrating courses one at a time from MongoDB to S3, and thus eliminating any use of MongoDB by split modulestore, simplifying the stack.
2021-10-07 10:59:47 -04:00
Ned Batchelder
d20a769f73 build: use the reusable commitlint action 2021-10-07 10:53:45 -04:00
Matthew Piatetsky
4f47fc3141 fix: font family for goal reminder email (#28976) 2021-10-07 10:33:38 -04:00
M. Zulqarnain
404ab77ec3 chore: Updating Python Requirements (#28974)
Co-authored-by: edX requirements bot <testeng+edx-requirements-bot@edx.org>
2021-10-07 19:31:33 +05:00
Muhammad Soban Javed
fc14dba632 Merge pull request #28968 from edx/iamsobanjaved/django32-user-api-bool-fix
refactor: use value for filtering indexed boolean field
2021-10-07 17:53:06 +05:00
Jawayria
7d50ce104a refactor: use value to filter indexed boolean field (#28970)
* refactor: use value to filter indexed boolean field

* Update views.py

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2021-10-07 17:52:45 +05:00
Soban Javed
a830b08f05 refactor: use value for filtering indexed boolean field 2021-10-07 16:06:58 +05:00
Ahtisham Shahid
009f1aac0d refactor: moved program journey data to appropriate tabs (#28898)
* refactor: moved program journey data to appropriate tabs
2021-10-07 14:15:09 +05:00
Kshitij Sobti
3e05e0f49b feat: add support for enabling/disabling the wiki app (#28889)
Currently the wiki app can't be enabled or configured. This change allows enabling/disabling the wiki app which effectively hides/shows the wiki tab.
2021-10-07 11:04:03 +05:00
Binod Pant
5d8acc5b41 feat: Enterprise 3.30.4 (#28962)
fixes Blackboard client oauth transactional handling of refresh token

ENT-4988
2021-10-06 23:25:43 -04:00
edX Transifex Bot
8943e12dc3 geoip2: update maxmind geolite country database 2021-10-07 02:19:25 +05:00
Ned Batchelder
a77c5c320c docs: pull request template doesn't need Lilac mention anymore 2021-10-06 15:26:28 -04:00
Matthew Piatetsky
449d5c7a2d feat: only email users about their goal in the morning in their timezone (#28922) 2021-10-06 15:02:03 -04:00
Muhammad Soban Javed
e2dc24af3a fix: update quality checks for django 3.2 (#28958) 2021-10-06 23:44:48 +05:00
Muhammad Soban Javed
47b56b8417 chore: upgrade edx-enterprise version to 3.30.3 (#28960) 2021-10-06 13:36:17 -04:00
Matthew Piatetsky
d7cc866280 feat: surface goals in courseware api (#28952) 2021-10-06 12:28:06 -04:00
Muhammad Soban Javed
c930b2a673 test: removing test as not needed anymore (#28954)
This test case was added to make sure that django-cookies-samesite is installed with Django uptill 3.0 but as now we are moving to Django 3.2, this isn't needed anymore
2021-10-06 20:53:46 +05:00
Bianca Severino
12cdfa6201 Merge pull request #28927 from edx/bseverino/same-name-change
[MST-1105] Prevent name change request if requested name is identical to existing name
2021-10-06 11:07:40 -04:00
Eugene Dyudyunov
7f40e3aa60 fix: course search sidebar filters (#28708)
Elasticsearch7 returns `aggs` instead of `facets`,
fixed elasticsearch response parsing on the FrontEnd.

YT: https://youtrack.raccoongang.com/issue/RGOeX-413
2021-10-06 11:04:52 -04:00
Bianca Severino
e9d22fc190 fix: prevent name change request if requested name is identical to the existing name 2021-10-06 10:01:23 -04:00
alangsto
a06ce27f9d chore: update edx-proctoring version (#28937) 2021-10-06 08:56:14 -04:00
Aarif
b51201beb6 fix: updated the migrations workflow to run on ubuntu 18 so we can run migrations against mysql 5.7 (#28935) 2021-10-06 17:46:57 +05:00
edX requirements bot
35ea4d8312 chore: Updating Python Requirements
* chore: Updating Python Requirements

* Update base.txt

* Update development.txt

* Update testing.txt

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2021-10-06 17:43:26 +05:00
edX requirements bot
e8d43032d6 chore: Updating Python Requirements (#28949)
* chore: Updating Python Requirements

* Update base.txt

* Update development.txt

* Update testing.txt

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2021-10-06 16:40:09 +05:00
Awais Jibran
aac6c4c4cb fix: default discussion config (#28900)
* fix: default discussion config

* refactor: add closing bracket

Co-authored-by: Asad <asadazam93@gmail.com>
2021-10-06 16:37:16 +05:00
Alexander J Sheehan
ad9de1c375 Merge pull request #28942 from edx/asheehan-edx/bumping-enterprise-3-30-1
maint: bumping enterprise version to 3.30.1
2021-10-05 16:18:53 -04:00
Alexander Sheehan
b75f958654 feat: bumping enterprise version to 3.30.1 2021-10-05 14:21:42 -04:00
Robert Raposa
f3e5838b89 docs: update unexpected_multiple_exceptions comment (#28939)
Update the unexpected_multiple_exceptions comment based on findings
from monitoring since this was originally released.
2021-10-05 14:08:22 -04:00
Diana Huang
849dd693cf fix: Add back in dummy locales for unit test. (#28938)
Clear old files before regenerating them.
2021-10-05 13:52:27 -04:00
João Victor Martins
1fc33070c3 docs: Add ADR for LTI tools in content libraries 2021-10-05 10:11:06 -07:00
Muhammad Soban Javed
d70c8ab968 Merge pull request #28680 from edx/iamsobanjaved/jsonfield-switch
feat: replace jsonfield2 with jsonfield
2021-10-05 22:03:30 +05:00
Muhammad Soban Javed
e58cae34e1 Merge pull request #28796 from edx/iamsobanjaved/django30-lang-BOM-2783
fix: use language preference from cookie instead of from session
2021-10-05 18:43:57 +05:00
Aarif
7d2cc016ec fix: added type annotations to fix mypy failure in CI (#28933) 2021-10-05 17:04:11 +05:00
Awais Qureshi
81bf0f75c9 chore: removing drf-jwt pin and checking tests. (#28516)
* chore: removing drf-jwt pin.
2021-10-05 16:50:14 +05:00
Muhammad Soban Javed
db42b25955 Merge pull request #28936 from edx/jenkins/upgrade-python-requirements-dd591db
Python Requirements Update
2021-10-05 16:47:35 +05:00
edX requirements bot
2bf8afa96b chore: Updating Python Requirements 2021-10-05 16:40:43 +05:00
Soban Javed
dd591dba55 feat: replace jsonfield2 with jsonfield
- updating all packages
- added migrations
2021-10-05 16:30:43 +05:00
Awais Qureshi
2318d7c857 Merge pull request #28934 from edx/fixing-pylint-warning
chore: disable pylint warning.
2021-10-05 14:47:24 +05:00
Awais Qureshi
55c69c5e5b chore: disable pylint warning. 2021-10-05 14:08:03 +05:00
Awais Qureshi
4a9bd35f69 Merge pull request #28895 from edx/fixing-dj32-issue
fix: Fixing test csrf tests failures in django32.
2021-10-05 13:47:41 +05:00
Binod Pant
41f8759eab feat: edx-enterprise 3.28.23 and 3.28.24 (#28924)
ENT-4954 and ENT-5011

ENT-4954, ENT-5011

Checked with @mraarif regarding non required checks safe to merge
2021-10-04 16:36:26 -04:00
Zachary Hancock
ae0927713d fix: consistent error response on name change (#28866) 2021-10-04 16:32:34 -04:00
Aarif
c162a25045 fix: fixed build errors blocking django 3.1 and 3.2 tests (#28923) 2021-10-05 00:39:08 +05:00
Kshitij Sobti
9e787a09bc chore: remove dependency on rest_condition (#28663)
rest-condition has not been updated for a while, and with DRF 3.9 it is no longer needed since the ability to combine Permission classes using boolean operators is now provided by DRF directly.
2021-10-04 15:38:17 -04:00
Jason Myatt
a916123b04 Merge pull request #28705 from open-craft/mtyaka/FAL-782-course-home-link-to-mfe
Link on course about page should link to the learning MFE
2021-10-04 15:26:20 -04:00
Awais Qureshi
7374ecd4ba fix: Fixing test csrf tests failures in django32. 2021-10-04 23:28:20 +05:00
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
44ddbdf925 fix: use cookies for storing language instead of session
- Fixed LANGUAGE_COOKIE settings name to LANGUAGE_COOKIE_NAME beacuse later is recognised by django
- Added test to verify cookies use in dark lang middleware
- Fixing Django 3.0 tests
2021-10-04 21:00:29 +05:00