Commit Graph

7419 Commits

Author SHA1 Message Date
Attiya Ishaque
7d029f8283 [VAN-332] Full name validation on registration page. (#28444) 2021-08-12 16:07:32 +05: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
Bianca Severino
98053147b4 Merge pull request #28425 from edx/bseverino/name-affirmation-service
[MST-916] Set runtime service for Name Affirmation
2021-08-10 09:27:30 -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
sofiayoon
1ad2846200 Merge pull request #28413 from edx/syoon/AA-947
fix: only apply due date to subsection if there is non-ora content
2021-08-09 14:09:31 -04:00
Sofia Yoon
801acb6867 fix: only apply due date to subsection if there is non-ora content 2021-08-09 13:24:10 -04:00
Bianca Severino
d0da23058d chore: set runtime service for name affirmation
If special exams are enabled, set a runtime service for Name Affirmation
in order to enable it for use in proctored exam attempts.
2021-08-09 11:38:26 -04:00
Justin Hynes
e62df6fa0b refactor!: Remove unused is_certificate_valid function
[MICROBA-1354]

* Remove unused `is_certificate_valid` function
2021-08-06 15:54:03 -04:00
Matthew Piatetsky
5db6cbb795 Merge pull request #28320 from edx/AA-902
feat: update course goals with new fields and a waffle flag to toggle the new behavior
2021-08-06 09:13:22 -04:00
Matthew Piatetsky
8183a5ae64 address comments 2021-08-05 21:45:58 -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
Jawayria
542da2ef6a Merge pull request #28356 from edx/jawayria/openedx-codemod
chore: Executed codemods on openedx module
2021-08-04 20:30:08 +05:00
Kshitij Sobti
6cbb9cbca3 feat: Supply documentation links for course apps from the backend (#28327)
Instead of hard-coding the "Learn More" and potentially other links for course
apps in the course authoring  MFEs this change loads those URLs from the
django settings as part of each individual course app.
2021-08-04 15:04:13 +05:00
Kshitij Sobti
af290ce6a9 feat: Adds a new flag for discussions LTI configuration for admin only config
Some providers need special considerations when being set up so should only be
configured by people with global staff privileges. This adds an
admin_only_config flag to such providers (only YellowDig for now).
2021-08-03 20:10:32 +05:00
Michael Terry
83ea878253 Merge pull request #28334 from edx/mikix/less-image-churn
fix: don't recreate course overview images every request
2021-08-02 13:13:25 -04:00
Michael Terry
557d4f1d34 fix: don't recreate course overview images every request
This reduces database churn and helps avoid locks.
2021-08-02 12:44:13 -04:00
Jawayria
27b52c4279 chore: Executed codemods on openedx module 2021-08-02 21:06:32 +05: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
Jawayria
514c781917 chore: removed constraint on django-countries 2021-08-02 17:35:49 +05:00
Michael Terry
61b9a523e7 Merge pull request #28290 from edx/mikix/effort-cleanup
feat: enable effort estimation feature by default
2021-07-30 11:46:57 -04:00
Awais Qureshi
daa38296cd Merge pull request #28317 from edx/python2_unicode_new
chore: Django3 has removed python_2_unicode_compatible.
2021-07-30 19:12:15 +05:00
Syed Muhammad Dawoud Sheraz Ali
9214e191f6 Merge pull request #27696 from open-craft/0x29a/bb2862/language_code_via_site_configuration
[OSPR-5796] [BB-2862] "LANGUAGE_CODE" site configuration option
2021-07-29 22:24:18 +05:00
Awais Qureshi
82ef28b43f chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-29 18:24:39 +05:00
Awais Qureshi
1f12ab186c chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-29 18:22:22 +05:00
=Awais Jibran
30ca1804d6 fix: Update provider features list for discussions
This Pr updates the features list of the discussion providers for,
1. Combines LTI basic configuration and LTI integration into 1 feature.
2.Enables Primary discussion app experience for Yellowdig
3. Hides Automatic learner enrollment from this list

FE changes (in Other PR):
1. Turn edX to Full Support instead of partial support
2. Rename Partial support to Basic support

https://openedx.atlassian.net/browse/TNL-8546
2021-07-29 18:15:10 +05:00
Awais Qureshi
46feea0c4b Merge pull request #28305 from edx/python2_unicode_pr
chore: Django3 has removed python_2_unicode_compatible.
2021-07-29 17:53:52 +05:00
David Ormsbee
dae459bfb4 feat: Rollout override for Learning Sequences API (#28205)
We control rollout of the Learning Sequences REST API with the
USE_FOR_OUTLINES (learning_sequences.use_for_outlines) course waffle
flag. But sometimes we're going to want to be able to take a look at
production data output of this API before explicitly turning the API on
(and switching over to it) for the Courseware MFE. To do this, we're
going to make the availability base itself purely on the waffle flag and
course type (Old Mongo courses are not supported), and allow people to
"peek" at what the API would have given if it was rolled out by passing
an explicit "force_on=1" querystring param.

This is work to support the rollout of TNL-8330.
2021-07-28 11:53:17 -04:00
Awais Qureshi
56466ba329 chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-28 20:38:19 +05:00
sofiayoon
a70e6b101e Merge pull request #28107 from edx/syoon/AA-895
fix: ORA problems' due dates are not set when in a mix of non-ORA problems
2021-07-28 11:01:46 -04:00
Awais Qureshi
85af0753b0 Merge pull request #28293 from edx/python2_unicode_rm_openedx-2
chore: Django3 has removed python_2_unicode_compatible.
2021-07-28 17:26:09 +05:00
Mehak Nasir
80b4dcceb6 Merge pull request #28291 from edx/TNL-8471
fix: description updates for pages and resources
2021-07-28 14:35:34 +05:00
Sofia Yoon
9f2050120c fix: ORA problems' due dates are not set when in a mix of non-ORA problems AA-895 2021-07-27 15:26:52 -04:00
Awais Qureshi
3d528ad590 chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-27 23:25:27 +05:00
Michael Terry
721282233e feat: enable effort estimation feature by default
Previously, effort estimation was disabled by default and gated by
an experiment flag (effort_estimation.location).

Now, it is enabled by default and courses can opt-out by adding
course waffle override flags (effort_estimation.disabled).
2021-07-27 13:13:32 -04:00
Thomas Tracy
2a54a66582 [fix] MB-1391 certificate_available_date cleanup command (#28279)
* [fix] Certificate availability date cleanup

This task will clean out the misconfigured certificate available date. When courses Change their
certificates_display_behavior, the certificate_available_date was not updating properly. This is
command is meant to be ran one time to clean up any courses that were not supposed to have
certificate_available_date
2021-07-27 12:35:46 -04:00
Mehak Nasir
7b29d1bdf2 fix: description updates for pages and resources 2021-07-27 20:32:31 +05:00
sofiayoon
c927e2cebf Merge pull request #28175 from edx/syoon/AA-885
feat: AA-885 show offsets in studio self paced course outline for a subsection
2021-07-27 10:08:00 -04:00
Michael Terry
beb84bb4cb chore: remove unused serialized field 2021-07-27 09:00:04 -04:00
Awais Qureshi
8fe24a4478 Merge pull request #28282 from edx/removing-python_2_unicode
chore: Django3 has removed python_2_unicode_compatible.
2021-07-27 17:11:02 +05:00
Dmitry Gamanenko
b01544d690 feat: add site language config 2021-07-27 10:28:25 +02:00
Awais Qureshi
e5cbeeb86a chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-27 11:55:00 +05:00
Sofia Yoon
898684287a feat: AA-885 show offsets in studio self paced course outline for a subsection
feat: AA-883 basic prototype for custom pacing pls in studio

refactor: merge with basic prototype for self paced courses from AA-844

feat: add due date estimate message in self paced courses studio modal

refactor: merge with main that has up to date self paced custom pls editor and tests

fix: only display projected date if start date exists

fix: tests to check grading date in outline

fix: only one warning message show at a time

fix: do not show projected date when it is before the start date
2021-07-26 16:26:22 -04:00
Michael Terry
04babaa6c2 Merge pull request #28280 from edx/mikix/override-notes
feat: add note field to course waffle overrides
2021-07-26 14:48:35 -04:00
Awais Qureshi
b58832c8a6 chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-26 23:43:54 +05:00
Thomas Tracy
666f1dadb8 [fix] Fix certificate available date sync (#28275)
* [fix] Fix certificate available date sync

We were syncing the course available date to every course in
credentials. Since credentials doesn't understand "self-paced" courses,
or course end behaviors, some certificates were time gated incorrectly.
This check make sure to check if the course is not self-paced, and has a
CDB of 'end' before syncing the CA date.
2021-07-26 14:30:06 -04:00
Michael Terry
0170a0e6f0 feat: add note field to course waffle overrides
It's often very useful to note the reason we override a waffle.
Who asked for it and why - is it temporary until a feature is
completed or a complete opt-out of the feature itself, etc.

Now there's a text field to leave such comments for your future
self, much like waffle flags themselves.
2021-07-26 14:15:06 -04:00
Diana Huang
139e7ba48b feat: Allow language preferences to be shared. (#28277)
We are planning on limiting session cookies for LMS, which
will mean that under the old cookie domain, MFEs and other
IDAs would not have access to the language preference of a user.

This moves language preference cookies to use a different setting,
which means that this cookie can be shared.
2021-07-26 13:36:55 -04:00
Michael Terry
789edbe555 Merge pull request #28256 from edx/mikix/course-home-access
feat: send course access error along to course home MFE
2021-07-26 13:34:54 -04:00
Manjinder Singh
19b45069fa feat: adding more parameters (#28264)
* fix: adding more parameters for cookie monitoring

Added: cookies_total_num, cookies_unaccounted_size. 
  -Both are to help us gauge how many cookies we are not collecting data for.
Increased: # of cookies data collected
2021-07-26 09:11:44 -04:00
João Cabrita
0879568023 feat(discussions): Add messages field to provider descriptions
This adds an `messages` field containing messages relevant
for configuring the provider to the DiscussionsConfigurationView.

Related tickets:
* [TNL-8339](https://openedx.atlassian.net/browse/TNL-8339)
* [TNL-8523](https://openedx.atlassian.net/browse/TNL-8523)
* [BB-4249 (OpenCraft Internal)](https://tasks.opencraft.com/browse/BB-4249)
2021-07-26 13:51:23 +05:00