Commit Graph

19099 Commits

Author SHA1 Message Date
Mahyar Damavand
4efa9b5590 fix: log a single line warning in case of video_transcrip NotFound instead of long detailed exception (#28552) 2021-09-02 07:14:20 -04:00
Usama Sadiq
fe20509d4e fix: Remove deprecated django.utils.decorator.available_attrs (#28597) 2021-09-02 12:12:01 +05:00
edX Transifex Bot
5b6e79b671 geoip2: update maxmind geolite country database 2021-09-02 02:09:23 +05:00
Jhony Avella
95a6abcd1f revert: removing read_committed argument from outer_atomic function (#28161)
In the PR https://github.com/edx/edx-platform/pull/10659 the outer_atomic decorator/context manager was created to prevent nested atomic blocks. This method received a boolean parameter read_committed to enforce read-committed MySQL isolation level. From Django 2, the default isolation level Django sets is read-committed, so the aforementioned parameter for outer_atomic can be removed
2021-08-31 16:39:35 -04:00
Felipe Montoya
6e48ffd9f6 Merge pull request #28547 from eduNEXT/MJG/fix_missing_profile_for_tests
refactor: replace User.objects.create_user for UserFactory p2
2021-08-30 10:33:29 -05:00
Maria Grimaldi
54627e1101 refactor: replace User for UserFactory and its methods
This change is done so the profile is automatically created for tests users
2021-08-30 11:03:49 -04:00
Régis Behmo
6b1700803c fix: Milestones app feature flag docs
The feature flag that should be set is not ENABLE_MILESTONES_APP but
MILESTONES_APP.
2021-08-30 16:40:48 +02:00
David Ormsbee
8b17afc818 fix: prefer HTML5 video when youtube support is deprecated.
In the case where a server/course has both:

* YouTube deprecated (waffle flag: videos.deprecate_youtube = True)
* HLS enabled (ConfigModel: HLSPlaybackEnabledFlag, in video_config)

Prior to this commit, we would prefer the HLS source if one of the
HTML5 video sources specified a .m3u8 file. However it looks like this
file isn't always guaranteed to be produced.

This fix always prefers HTML5 video sources to YouTube if the server or
course is configured to deprecate YouTube, as long as at least one
non-YouTube source is found. TNL-8594.

Note that this may confuse users because we're essentially bypassing
their Studio-specified preferred primary source with a server-wide
setting.
2021-08-30 10:12:12 -04:00
Usama Sadiq
cde050618e build: Moved user and group management commands and unit tests to edx-django-utils
- Removed manage_user and manage_group commands and their unit tests from edx-platform and added then to edx-django-utils.
- Modified User.post_save signal to ensure the user profile is created when manage_user management command is run to create a user.
- Added edx-django-utils to INSTALLED_APPS for LMS and Studio.
- Moved generate_password from openedx.core.djangoapps.user_authn.utils to edx_django_utils.user along with its unit test.
2021-08-30 12:03:37 +05:00
julianajlk
646245508a fix: format audit deadline in Track Selection (#28558)
REV-2133
2021-08-27 13:45:03 -04:00
edX Transifex Bot
83e2d46dc9 geoip2: update maxmind geolite country database 2021-08-26 02:04:21 +05:00
julianajlk
f427828361 Update waffle flag for Value Prop Track Selection (#28536)
REV-2133
2021-08-25 13:26:40 -04:00
Maria Grimaldi
2ee52ea96c refactor: replace some create_user with UserFactory to avoid non-existent profile errors 2021-08-24 15:49:21 -04:00
julianajlk
572965b742 Add waffle flag settings for new Track Selection template (#28523)
REV-2133
2021-08-24 13:02:30 -04:00
alangsto
6fa89e610a fix: Allow masquerading users to see content (#28458)
If a user with staff access is masquerading as a specific student, they should be able to see content that would normally be gated for that student.
2021-08-24 09:14:01 -04:00
Azan Bin Zahid
1cce2e952d feat: add pact verification method 2021-08-24 14:59:46 +05:00
julianajlk
32d17c8810 Add audit_access_deadline to context and connect Value Prop Track Selection template (#28373)
REV-2133
2021-08-20 15:36:18 -04:00
edX cache uploader bot
f7d41c4afc Updating Bokchoy testing database cache (#28493) 2021-08-20 20:50:56 +05:00
edX Transifex Bot
d66d544ca2 geoip2: update maxmind geolite country database 2021-08-19 02:14:22 +05:00
Andy Shultz
97a5094efc chore: bump name affirmation to complete column removal
This is the last PR removing verified name is_verified,
so we can bring back the test.
2021-08-18 12:49:01 -04:00
Andy Shultz
9e05538573 chore: update 2/3 of proctoring library for is_verified removal
This update removes the field, but not yet the column, so it
includes the test skip.

MST-969
2021-08-18 09:31:52 -04:00
Michael Terry
012ffc3969 Merge pull request #28462 from edx/mikix/banner-style
fix: modernize look of in-xblock shift-dates banner
2021-08-16 09:51:53 -04:00
Michael Terry
033497d1d7 fix: modernize look of in-xblock shift-dates banner
Specifically, use our standard warning-banner colors and add a
drop shadow. Also, updates the text to match the text used
elsewhere.

AA-835
2021-08-16 09:18:05 -04:00
kenclary
a201a36726 Merge pull request #28447 from edx/TNL-7752-b
feat: add explicit courserun_key parameter to /event endpoint
2021-08-13 11:02:31 -04:00
edX Transifex Bot
259a3b5cd1 geoip2: update maxmind geolite country database 2021-08-12 02:14:24 +05:00
Ken Clary
8c8450f6dc feat: add explicit courserun_key parameter to /event endpoint
We add 'courserun_key' (aka "course_id" though that's technically a
misnomer) as an optional parameter to the /event endpoint url. If it
is not present, it will still be parsed out of the url, if the url is
of the right format.

Additionally, Logger.log() in js adds this parameter to its /event
call, pulling it from the $$course_id global.

This provides opportunity for MFEs to (separately) provide the key
without concern about url parsing.

TNL-7752
2021-08-11 14:40:25 -04:00
Thomas Tracy
af82c6270a MB-1192: [feat] Add course ended, not passing (#28438)
* MB-1192: [feat] Add course ended, not passing

If a student has not passed a course, the course has ended, and they have a verified seat, we want to show them a message at a glance on the
dashboard.
2021-08-11 11:35:15 -04:00
Matt Tuchfarber
d53d8e45a5 refactor: Merge the openedx certs app with lms one (#28435)
* refactor: Merge the openedx certs app with lms one

Move the certs API from openedx into the lms certificates app.
Functionally, this is a no-op. Cleanup will happen in a subsequent
commit. This is simply a move.
2021-08-11 10:25:55 -04:00
Christie Rice
cf3a6c16d6 fix: Stop showing course certificate buttons to beta testers (#28416)
Beta testers can’t earn course certificates, so they should not see a “Request Certificate” button or other info describing how they can earn a cert.

MICROBA-992
2021-08-10 09:06:14 -04:00
Robert Raposa
036a1a835c Revert "MB-1192: [feat] Add course ended, not passing certificate status to dashboard messaging (#28405)" (#28426)
This reverts commit 35d9330c19.
2021-08-09 12:38:14 -04:00
Thomas Tracy
35d9330c19 MB-1192: [feat] Add course ended, not passing certificate status to dashboard messaging (#28405)
* [feat] Add course over, not passing status to dash

If a student has not passed a course, the course has ended, and they
have a verified seat, we want to show them a message at a glance on the
dashboard.
2021-08-09 10:03:49 -04:00
Manjinder Singh
f7c5a109d4 Revert "feat: add explicit courserun_key parameter to /event endpoint" (#28410) 2021-08-05 18:05:20 -04:00
Braden MacDonald
da09bcadc5 refactor: run modulestore tests in common/lib/... using Django
Does 3 things:
(1) Use django for modulestore tests
(2) Use normal LMS settings for modulestore tests instead of openedx/tests/settings.py
(3) Simplify some TestCase subclasses by converting them to use ModuleStoreTestCase


Details and rationale:

(1) Currently parts of the modulestore test suite are designed to run "without django", although there is still a lot of django functionality imported at times, and many of the tests do in fact use django. But for the upcoming PR #27565 (moving split's course indexes from MongoDB to MySQL), we will need to always have Django enabled. So this commit paves the way for that change.

(2) The previous tests that did use Django used a special settings file, openedx/tests/settings.py which made some debugging confusing because those tests had quite different django settings than other tests. This change deletes that file and runs the tests using the LMS test settings.

(3) The test suite also contains many different ways of initializing and testing a modulestore, with significant differences in their configuration, and also a lot of repetition. I find this makes understanding, debugging and writing tests more difficult. So this commit also reduces the number of different "test case using modulestore" base classes:

* Simplifies MixedWithOptionsTestCase and MixedSplitTestCase by making them simple subclasses of ModuleStoreTestCase.
* Removes PureModulestoreTestCase.
2021-08-05 12:20:19 -07:00
kenclary
e14ceaab3f Merge pull request #28333 from edx/TNL-7752
feat: add explicit courserun_key parameter to /event endpoint
2021-08-05 13:59:42 -04:00
Braden MacDonald
9ce7d57556 refactor: remove unused methods from split modulestore 2021-08-05 10:27:41 -07:00
Braden MacDonald
188e9fb15e fix: use integer user IDs consistently for modulestore APIs/tests
Some actions in split modulestore record the user ID who requested the action. Currently, split modulestore doesn't care what data type you use for those user IDs. Most of the codebase uses integers, but some tests used username or email address strings.

My upcoming PR #27565 will move split modulestore's "course index" data from MongoDB into MySQL. In doing so, it requires that user IDs are always numeric. So this PR paves the way for that one by using numeric IDs consistently in all test cases. I believe the actual non-test code was already consistently using integer IDs.
2021-08-05 10:26:43 -07:00
Justin Hynes
3a87aad963 Merge pull request #28391 from edx/jhynes/microba-1354
refactor: update name of `cert_generation_enabled` function name to reflect actual purpose
2021-08-05 12:27:42 -04:00
edX cache uploader bot
cf53db8f29 Updating Bokchoy testing database cache (#28398) 2021-08-05 10:10:05 +05:00
Ken Clary
bbb14a2c6a feat: add explicit courserun_key parameter to /event endpoint
We add 'courserun_key' (aka "course_id" though that's technically a
misnomer) as an optional parameter to the /event endpoint url. If it
is not present, it will still be parsed out of the url, if the url is
of the right format.

Additionally, Logger.log() in js adds this parameter to its /event
call, pulling it from the $$course_id global.

This provides opportunity for MFEs to (separately) provide the key
without concern about url parsing.

TNL-7752
2021-08-04 22:47:43 -04:00
edX Transifex Bot
e25f4af13f geoip2: update maxmind geolite country database 2021-08-05 02:24:24 +05:00
Justin Hynes
7f5cf2fabd refactor: update certificates app Python API functions
[MICROBA-1354]

* Update Python API function named `cert_generated_enabled` to `has_self_generated_certificates_enabled` to more accurately reflect the purpose of the function
2021-08-04 08:43:12 -04:00
Michael Terry
5e2155b6ab Merge pull request #28388 from edx/mikix/library-import-fix
fix: allow importing courses into Studio with empty libraries
2021-08-03 16:49:15 -04:00
Michael Terry
8d1989cf93 fix: allow importing courses into Studio with empty libraries
If a content library xblock does not specify a library id, we
previously would error out when importing, due to some cleanup
code that wasn't accounting for this case.
2021-08-03 16:16:01 -04:00
Awais Qureshi
d6202880ae chore: Removed python_2_unicode_compatible decorator. (#28342)
* chore: Removed python_2_unicode_compatible decorator.
2021-08-03 15:42:14 +05:00
edx-pipeline-bot
48f0954771 Merge pull request #28371 from edx/private_to_public_b3bbda0
Mergeback PR from private to public.
2021-08-03 02:46:56 +05:00
Christie Rice
4996b40860 fix: Add check for existence of grade (#28348)
MICROBA-678
2021-08-02 13:07:52 -04:00
Matt Tuchfarber
622d56026c Certificate Display Settings revamp (round 2) (#28286)
feat: reimagine certificate display settings

The course settings `certificate_available_date` (CAD) and
`certificates_display_behavior` (CDB) were previously
acting indedependantly of one another. They now work in
tandem. This change:
- limits CDB to a dropdown
- removes "early_with_info" and adds "end_with_date"
- only takes CAD into account if "end_with_date" is selected
- Moves CDB to the main course schedule settings page
- updates CourseOverview model and CourseDetails objects to
validate these fields and choose sane defaults if they aren't
expected values

This work was previously done in bd9e7dd (complete with bugs), so this
version is toggleable via the ENABLE_V2_CERT_DISPLAY_SETTINGS setting
2021-08-02 11:30:15 -04:00
Christie Rice
5fa4fcea5e fix: Handle missing user profile when setting a name in a course certificate (#28319)
MICROBA-1410
2021-08-02 10:58:13 -04:00
Sarina Canelake
7df802967c Merge pull request #28105 from chiruzzimarco/fix/courseware-banner-translation
Translate prerequisite section banner text
2021-08-02 10:22:51 -04:00
edX cache uploader bot
414d020380 Updating Bokchoy testing database cache (#28328) 2021-08-02 09:15:10 -04:00