Commit Graph

53953 Commits

Author SHA1 Message Date
Hasnain Naveed
332a8329dc Merge pull request #23595 from edx/hasnain-naveed/ENT-2675
ENT-2675 | Added permission for staff user to change the student's en…
2020-04-07 12:46:08 +05:00
Awais Jibran
4b22554411 Merge pull request #23514 from edx/aj/ss-retry-logic
Adds retry logic for software secure.
2020-04-07 10:59:57 +05:00
Jeremy Bowman
3309078242 Prepare for django-oauth-toolkit 1.3.2 upgrade (#23637)
Prepare to upgrade to django-oauth-toolkit (module name oauth2_provider) 1.3.2 concurrently with the Django 2.2 upgrade (versions after 1.1.3 dropped support for Django 1.11). Key points:

* We can stop using a commit hash since versions 1.3.0 through 1.3.2 have been released since that commit.
* The validator in oauth_dispatch migration 0002 has been removed from DOT, but the whole table was removed in migration 0004 anyway. Newer DOT versions moved where redirect URI validation happens so it's no longer needed here.
* DOT 1.3.0 squashed its original 6 migrations and immediately deleted them. This required some changes in oauth_dispatch migrations 0006 and 0007 to deal with either numbering system.

When deploying to stage and production, we'll need to delete the history for oauth2_provider migrations 0002-0006 first (the new squashed 0001 migration has the same name as the original 0001). The deployment with DOT 1.3.2 will add a new 0002 migration which should then apply cleanly on the existing database state.

Should resolve https://openedx.atlassian.net/browse/BOM-1456 .
2020-04-06 19:10:19 -04:00
Jeremy Bowman
c4352a0a78 Fix invalid POST in test_module_render.py (#23639)
This looks like the last failing unit test under Django 2.2. One of a series of such failures resulting from Django no longer accepting None as POST data (since you can't really get it from a real request), most of which were already fixed by the Arbisoft team in the last few days.
2020-04-06 17:18:36 -04:00
Awais Qureshi
c664852627 Merge pull request #23623 from edx/awais786/BOM-1492
Django2 shopping_cart: temporary test fix
2020-04-07 00:20:32 +05:00
Feanil Patel
4084897180 Merge pull request #23636 from edx/feanil/old_use_of_course_id
Got the template that is used with tests but not this one.
2020-04-06 14:48:16 -04:00
Brian Mesick
129788606b Merge pull request #23407 from edx/bmedx/rename_start_end_courseoverview_2
Add writes to new field & data migration for backfiling data
2020-04-06 14:45:15 -04:00
AsadAzam
255dc26231 Merge pull request #23630 from edx/asad/prod-1394-logs
Added temporary logs
2020-04-06 23:32:41 +05:00
Feanil Patel
f61b2e44eb Got the template that is used with tests but not this one.
This dashboard template is only used for edx.org so we didn't catch this
in testing.  Updating it to use 'course' instead of 'course_id' to
instantiate a CourseEnrollment object.  Using 'course_id' is the old
way.
2020-04-06 14:25:58 -04:00
hunytalk
42503dd736 Add writes to new field 2020-04-06 14:13:20 -04:00
Feanil Patel
6b276e6742 Merge pull request #23633 from edx/feanil/bom-1455-preserve-last-name-limit
Limit the last_name field to 30 chars.
2020-04-06 13:41:28 -04:00
David Joy
90ec0c17a8 Merge pull request #23585 from edx/djoy/course_metadata_access_check
fix: Improving access check in CoursewareInformation view
2020-04-06 13:05:39 -04:00
Diana Huang
5d830de88d Merge pull request #23605 from edx/diana/remove-course-id-modes
Remove `course_id` field from CourseMode.
2020-04-06 13:00:47 -04:00
Awais Qureshi
95ca67ee48 Merge pull request #23626 from edx/BOM-1493
BOM-1493
2020-04-06 21:08:22 +05:00
Awais Jibran
f592f133c5 remove update_from_database from views. 2020-04-06 21:00:53 +05:00
Diana Huang
99863aebff Remove course_id field from CourseMode.
Handle this change appropriately in CourseModeFactory.
2020-04-06 11:21:28 -04:00
Feanil Patel
e4798e49d4 Limit the last_name field to 30 chars.
We don't use this field in edx-platform since we rely on UserProfile
instead.  But we need to do this to prevent accidental incorrect use of
this field.  Django adds a migration between 1.11 and 2.2 to increase
the length of this field that we are opting to skip.  This change
enforces the old limit.
2020-04-06 11:11:35 -04:00
Thomas Tracy
09d814f7fd Add link to coaching interstitial for MB students who have not signed up for coaching (#23492) 2020-04-06 10:35:45 -04:00
Feanil Patel
5b50a8cd97 Merge pull request #23583 from edx/feanil/test_propert_removal
WIP Remove the course_id property on student.CourseEnrollment.
2020-04-06 10:13:10 -04:00
Zachary Hancock
2cbc248a63 prevent empty string passing proctoring provider validation (#23610) 2020-04-06 09:45:10 -04:00
Feanil Patel
7a52a25132 Fix tests that were creating Enrollments via a course_id.
We now either pass in the relevant courseoverview or when creating the
enrollement we use the factory which automatically creates the relevant
CourseOverview object for testing purposes.
2020-04-06 09:37:36 -04:00
Feanil Patel
cf976abea0 Update how dashboard represents entitlements.
Pass in a CourseOverview object instead of expecting that passing id will work as expected.
2020-04-06 09:37:36 -04:00
Feanil Patel
3c618ad04d Fixup CourseEnrollmentFactory
Historically, the CourseEnrollment model used to have a `course_id`
field.  A lot of tests still call the factory using that.  Instead of a
`course_id` field this model now has a `course` field which is a foreign
key to the CourseOverview model.

The factory still accepts the course_id but uses it to create the
relevant CourseOverview object where necessary.  This commit fixes two
issues with the factory.

1. If the course id is passed in as`course_id` instead of `course__id`
then, the generated CourseOverview does not have the correct course_id.

2. Even though the CourseEnrollment model no longer needs the
`course_id` parameter, we were still passing it through.  We now remove
it so that it is not passed through to the CourseEnrollment model
instantiation.
2020-04-06 09:37:36 -04:00
Feanil Patel
7c115cca24 Remove the course_id property on student.CourseEnrollment.
It conflicts with an underlying related field on that model which seems
to be getting at the same value from the related table.

Add logging for incorrectly instantiating CourseEnrollment models.
This is to catch any places that might break this that are outside of
edx-platform. Django won't accept `course` values that aren't
course_overviews so we don't need extra logic to test that `course`
values are of the correct type.

fixup! Remove the course_id property on student.CourseEnrollment.
2020-04-06 09:36:35 -04:00
Zia Fazal
3a73def603 Merge pull request #23622 from edx/ziafazal/ENT-2710
ENT-2710: Improved enterprise target regex
2020-04-06 18:36:18 +05:00
Manjinder Singh
c94beec16b Ran make upgrade with new contraints (#23609)
This adds contraints to:
kiwisolver: next release only works with python>=3.6

The was run to upgrade:
django-splash
django-wiki
edx-search
The previous versions were constraining django below 2.0.

Co-authored-by: Robert Raposa <rraposa@edx.org>
2020-04-06 09:20:04 -04:00
Muhammad Soban Javed
b3d68484eb Merge pull request #23606 from edx/BOM-1473
BOM-1473: Skip tests, failing in django2.1 because app is deprecated
2020-04-06 18:08:47 +05:00
irfanuddinahmad
efb4cd944c Merge pull request #23532 from edx/iahmad/ENT-2725-Implicit-Enterprise-Selection-When-Enrolling-With-Url
ENT-2725 added support for enrolment urls in multiple enterprise case
2020-04-06 18:00:47 +05:00
Usama Sadiq
baabbc5ffb Merge pull request #23625 from edx/usamasadiq/bom-1496
Django2.2 Post request update
2020-04-06 17:40:16 +05:00
Ahtisham Shahid
67c8e9b881 Merge pull request #23594 from edx/ahtisham/PROD-1388
Updated versions of fixed packages
2020-04-06 17:35:51 +05:00
Nick
0f8e871734 Merge pull request #23611 from edx/ndalfonso/AA-fix-mobile-banner
AA fix mobile reset dates banner
2020-04-06 08:28:53 -04:00
irfanuddinahmad
d105aac84d ENT-2725 added support for enrollment urls when user has multiple enterprises 2020-04-06 17:21:49 +05:00
asadazam93
2ad8281343 Added temporary logs 2020-04-06 17:12:31 +05:00
M Zulqarnain
753b14e39b Merge pull request #23627 from edx/BOM-1497-98-99
BOM-1497 : POST None failures fixed
2020-04-06 17:09:04 +05:00
Awais Jibran
6205687aea Merge pull request #23624 from edx/aj/fix-reverse-error
Fixes `NoReverseMatch` exception.
2020-04-06 17:07:34 +05:00
Awais Jibran
de3410c733 Move attempt.refresh_from_database call to the tests. 2020-04-06 17:04:58 +05:00
usamasadiq
32a8c33055 Django2.2 Post request update 2020-04-06 16:10:26 +05:00
Zulqarnain
19f63a9682 Post None failure fix 2020-04-06 15:47:47 +05:00
Awais Jibran
4ead215665 Adds retry logic for ss.
1. Created a new celery queue with key `SOFTWARE_SECURE_VERIFICATION_ROUTING_KEY`.
2. Added a celery task with retry logic.
3. sorted imports with isort.
4. Changed deprecated `log.warn` => `log.warning`.
2020-04-06 15:16:56 +05:00
Awais Qureshi
d0f3d48881 BOM-1493
Fixing model-util issue
2020-04-06 14:26:08 +05:00
Awais Jibran
934e58fb54 Fixes NoReverseMatch exception.
`django.urls.exceptions:NoReverseMatch lms.djangoapps.discussion.tasks.send_ace_message`
PROD-1224
2020-04-06 13:41:54 +05:00
Awais Qureshi
1ad6497fec BOM-1492
Before del check they key in list.
2020-04-06 13:27:56 +05:00
Awais Qureshi
7eafc24212 Merge pull request #23619 from edx/awais786/BOM-1463
BOM-1463
2020-04-06 13:19:05 +05:00
Ahtisham Shahid
123b2bb0db Merge pull request #23540 from edx/ahtisham/PROD-1412
Removed tech email form error templates
2020-04-06 12:50:44 +05:00
zia.fazal@arbisoft.com
f56235248a Improved enterprise target regex
Improved enterprise target regex to include missing
/enterprise/handle_consent_enrollment/{uuid}/course/ endpoint.
ENT-2710
2020-04-06 12:27:44 +05:00
edX Transifex Bot
662d735c64 fix(i18n): update translations 2020-04-05 17:29:23 -04:00
Awais Qureshi
887a612cc6 Merge pull request #23617 from edx/awais786/BOM-1491
BOM-1491
2020-04-05 21:43:38 +05:00
Awais Qureshi
ddfbbbc66b Merge pull request #23616 from edx/awais786/BOM-1490
BOM-1490
2020-04-05 21:42:52 +05:00
Awais Qureshi
789c621de9 Merge pull request #23615 from edx/awais786/BOM-1489
BOM-1489
2020-04-05 21:41:56 +05:00
Awais Qureshi
b55e8da882 BOM-1463
Adding missing aap.
2020-04-05 21:09:17 +05:00