Commit Graph

22621 Commits

Author SHA1 Message Date
Feanil Patel
865eca0c7d This is now handled by production.py 2020-05-05 09:38:13 -04:00
Feanil Patel
b0931dd166 Move settings out of bok_choy.py to bok_choy.yml
There's more to do here but get the easy ones first and make sure we didn't break anything.
2020-05-04 16:05:53 -04:00
Feanil Patel
e15c2c5187 Remove load_test.py which we don't use anywhere. 2020-05-04 16:05:24 -04:00
Adam Stankiewicz
6d942bc94d revert learner portal links blocking juniper release 2020-05-04 14:55:06 -04:00
Dave St.Germain
2c400184e4 Redirect to courseware MFE, including unit 2020-05-04 13:49:20 -04:00
Dave St.Germain
617cc26a37 Merge pull request #23845 from edx/dcs/staff-access
Allow global staff to access data download tab
2020-05-04 12:01:22 -04:00
Kyle McCormick
e6acdd080d Change IDv response time to 5-7 days (#23887)
It was previously 1-2 days, but we need to increase it
in response to our increased ID verification demand.
2020-05-04 11:33:53 -04:00
Dave St.Germain
b7927bedc9 Allow global staff to access data download tab 2020-05-04 11:31:53 -04:00
Dillon Dumesnil
858154a7d6 AA-99: Adding in new date pills for the dates tab 2020-05-04 07:24:01 -07:00
Kyle McCormick
ec9ac34886 Paginate course card API for Programs Learner Portal
* Pull business logic of ProgramCourseEnrollmentOverviewView
  out of view class and into utils.py.
* Add UserProgramCourseEnrollmentsView, which is a paginated
  version of ProgramCourseEnrollmentOverviewView with a
  URL that is parameterized on the user (to enable masquerading
  in MST-109).
* Add get_certificates_for_user_by_course_keys to certs API
  to make enrollments overviews REST API use fewer SQL queries.
* Document new course cards API with edx-api-doc-tools.

In a follow-up ticket, the Programs Learner Portal will switch
to the new paginatd API in order to speed up its page load.

MST-126
2020-05-04 09:26:23 -04:00
Kyle McCormick
2983fb0af6 Speed up ProgramCourseEnrollmentOverviewGetTests with setUpClass 2020-05-04 09:26:23 -04:00
Kyle McCormick
a86576e69b Fix isort and pylint violations in program_enrollments
Run isort -rc lms/djangoapps/program_enrollments
Run pylint lms/djangoapps/program_enrollment and fix messages.

Stop pylint from complaining about DictFactoryBase instances
2020-05-04 09:26:23 -04:00
Zainab Amir
c5395a2a67 Add veda fernet key to LMS (#23722) 2020-05-04 17:27:48 +05:00
adeel khan
0262d0e3ee Merge pull request #23836 from edx/adeel/prod_1477_enable_recovery_email_for_all_learners
Removes enterprise filter for account recovery banner
2020-05-04 17:23:15 +05:00
Samuel Walladge
71fcf6e725 Fix issues with xss linters
Improve accuracy of javascript-escape linter: Previously this would
match on FOOescape() and FOO.escape calls, but neither are the global
escape function we are worried about.

The regex probably isn't 100% accurate; there may be still false
positives (javascript allows a large range of characters in identifiers,
some of which may not be covered by [\w.$]). The main thing is to avoid
false negatives here though - this will definitely catch any use of
`escape()` or `window.escape()`.

Also remove javascript-interpolate lint - this was deemed unecessary.
StringUtils.interpolate is not in fact safe (it does no html escaping),
so the results of this lint are misleading.
2020-05-04 09:27:18 +09:30
edX Transifex Bot
063e1d45c8 fix(i18n): update translations 2020-05-03 17:19:10 -04:00
Simon Chen
34d4d162f7 MST-108 Add masquerading fix to the upgrade message display 2020-05-01 16:54:43 -04:00
Aarif
98af9ce418 remove useless-supression warnings 2020-05-01 19:42:15 +05:00
Aura Milena Alba
ce96d6c92d DEPR-66 Remove pattern library on programs_details (#23416) 2020-05-01 10:39:51 -04:00
Régis Behmo
cc6e823fe6 Quiet courseware import warnings
As it is explained in courseware/__init__.py:

    Importing 'lms.djangoapps.courseware' as 'courseware' is no longer
    supported

This warning, while relevant, decreased the signal/noise ratio when
investigating the lms logs.

The "bulk_email" app was the only remaining app importing the courseware
module incorrectly. All edx-platform modules and dependencies now follow
the new convention.

This is in part for CRI-196.
2020-05-01 00:07:30 +02:00
Régis Behmo
cfe311be0f Quiet deprecation warnings from imp module
The "imp" module is deprecated and should be replaced by "importlib". As
a consequence, loading the django settings used to raise deprecation
warnings:

    DeprecationWarning: the imp module is deprecated in favour of
    importlib; see the module's documentation for alternative uses

It should be noted that python 3.5.1 ships with an older release of
distutils which still relies on the imp module. Thus, users of python
3.5.1 (for instance: edx.org developers) will continue to see the
deprecation warning for some time, despite this patch. We suggest
upgrading to python 3.5.9.

This addresses part of CRI-196.
2020-04-30 23:41:40 +02:00
Michael Terry
cce2c0e015 Merge pull request #23858 from edx/mikix/less-upselling
Reduce upselling on Dates tab
2020-04-30 15:55:37 -04:00
Michael Terry
70c9170ed2 Reduce upselling on Dates tab
The dates tab has a lot of redundant calls to action around
upgrading to verified track. This replaces them with a single
banner at the top of the page.

AA-102
2020-04-30 15:31:58 -04:00
Calen Pennington
ff88f3d423 Only show the resets date banner if you have missed the due date on a graded subsection
[AA-138]
2020-04-30 11:50:45 -04:00
Zachary Hancock
f9bd748169 remove bulk write of CourseAccessRoleAssignment (#23849) 2020-04-30 11:05:15 -04:00
julianajlk
d1ee55d57f Add alert banner to Contact Us Page with Covid-19 message (#23825)
PROD-1480
2020-04-30 11:01:46 -04:00
Robert Raposa
c6e9e545f9 fix flaky tests (#23848)
It doesn't look like this setting was required, and because it didn't
use override_settings, it broke other tests.
2020-04-29 15:42:17 -04:00
stvn
d5ed3fcc22 Merge PR #23846 fix/learn-mfe/resize-iframe
* Commits:
  Stop skipping chromeless iframe resize onload event
2020-04-29 11:43:06 -07:00
stvn
6c5edee219 Stop skipping chromeless iframe resize onload event
in the case where the MutationObserver has already tried resizing the
iframe prior to it fully loading.
2020-04-29 11:04:12 -07:00
Zachary Hancock
cb44075ace only query due_dates for courses in progress (#23823) 2020-04-29 12:15:03 -04:00
Dave St.Germain
4548337114 Merge pull request #23826 from edx/robrap/fix-is_in_memory_db-issue
fix issue with is_in_memory_db
2020-04-29 08:51:02 -04:00
Adeel Khan
9778e69c76 Removes enterprise filter for account recovery banner
Previously code was only showing banner for enterprise
learners. This patch would remove this restriction
and is available to all edX learners provided that
'enable_secondary_email_feature' is switched on.

PROD-1477
2020-04-29 17:44:25 +05:00
Robert Raposa
e63a7a4920 Revert "remove tests causing flakiness (#23827)" (#23830)
This reverts commit be1aaa00ff.
2020-04-28 17:31:45 -04:00
Robert Raposa
b74acce64c fix issue with is_in_memory_db
For mysql, it seems `is_in_memory_db` does not even exist. Ensure it
exists before calling it.
2020-04-28 16:19:15 -04:00
Robert Raposa
be1aaa00ff remove tests causing flakiness (#23827)
These removed tests can be restored once someone works out why they
were causing flakiness elsewhere and fix the problem.

Reverts tests added in:
dca50aacc3
2020-04-28 16:12:29 -04:00
stvn
2ddc35cd79 Add logging to Learning MFE iframe, temporarily
to debug Firefox event handling that cannot be reproduced locally.

See TNL-7187 [1] for more details.

- [1] https://openedx.atlassian.net/browse/TNL-7187
2020-04-28 10:08:21 -07:00
Ahtisham Shahid
f14946d1de Merge pull request #23749 from edx/ahtisham/PROD-1476
Disabled copy/paste in confirm email
2020-04-28 13:16:01 +05:00
Ahtisham Shahid
8af94ec72a Disabled copy/paste in confirm email
Created sorting for email field

updated tests

Fixed sorting issue in registration form

Fixed sorting issue in registration form

Fixed sorting issue in registration form

Added missing items in env and updated order logic

Added missing items in env and updated order logic
2020-04-28 11:51:01 +05:00
Dave St.Germain
003d7faac2 Merge pull request #23728 from edx/dcs/dashboard
Refactor instructor dashboard access
2020-04-27 10:25:20 -04:00
Feanil Patel
f1da88813a Merge pull request #23811 from edx/feanil/update_settings_docs
Update some really out of date docs for settings.
2020-04-27 10:19:48 -04:00
adeel khan
6a5e2807ba Merge pull request #23817 from edx/transifex-bot-update-translations2020-04-27
fix(i18n): update translations
2020-04-27 18:08:02 +05:00
Waheed Ahmed
dca50aacc3 added tests for revoke program cert task 2020-04-27 16:35:36 +05:00
Waheed Ahmed
6a7dc067da Add revoke program certificate task.
Upon invalidating course certificate, revoke related program certificates
as well.

PROD-1271
2020-04-27 16:35:36 +05:00
edX Transifex Bot
ee611d623c fix(i18n): update translations 2020-04-27 11:21:00 +00:00
Feanil Patel
f5da00641b Update some really out of date docs for settings. 2020-04-24 15:33:05 -04:00
Awais Jibran
158b99f1c9 Short Circuit Digest preferences call on Discussion Home Page 2020-04-24 16:00:46 +05:00
Robert Raposa
5de9eed420 ARCHBOM-1093: Fix unit test enable-migrations (#23789)
* fix old migrations
* fix a test
* fix enable-migrations cmd argument
* enhance verbose logging to log migrations
* update testing doc with help
2020-04-23 14:04:29 -04:00
Awais Jibran
465d864c77 Adds settings for celery task auto discovery 2020-04-23 12:52:16 +05:00
stvn
ed543de5fb Merge PR #23779 courseware-api offer banner
* Commits:
  Get upgrade offer banner HTML in courseware API
2020-04-22 15:37:52 -07:00
stvn
0fa6099802 Get upgrade offer banner HTML in courseware API
for use in the Learning MFE.
2020-04-22 14:14:55 -07:00