Commit Graph

58450 Commits

Author SHA1 Message Date
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
Soban Javed
0ff96e7e25 fixed failures of test due to ordering issue in dict 2020-04-06 20:49:00 +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
Awais Qureshi
bdba07a1e2 BOM-1491
Group name
Changed in Django 2.2:
The max_length increased from 80 to 150 characters.
2020-04-04 21:48:42 +05:00
Awais Qureshi
9fc3dcb5d6 BOM-1490
None is not a valid value for posting.
2020-04-04 21:07:55 +05:00
Awais Qureshi
e66de4e49e BOM-1489
None is not a valid value for posting.
2020-04-04 19:52:18 +05:00
Adam Blackwell
ade9135c7f Merge pull request #23613 from edx/adzuci/dos-844-revert-prod-1395
Revert PROD-1395
2020-04-03 19:07:52 -04:00
Adam Blackwell
bb09c07c68 Revert "Certification verification enabled"
This reverts commit 3f1220276d.
2020-04-03 18:57:58 -04:00
Nicholas D'Alfonso
fe8d28bccf AA fix mobile reset dates banner 2020-04-03 15:22:50 -04:00
David Joy
1b84f815cc Add is_staff and can_load_course to the CourseInfoSerializer. 2020-04-03 14:17:28 -04:00
Saad Yousaf
dc6b98cbd0 Merge pull request #23598 from edx/saad/PROD-1287-investigation-logs
[PROD-1287] - Add investigation logs.
2020-04-03 21:45:22 +05:00
Waheed Ahmed
69181864cc Fix NoneType object has no attribute backend
We were passing unstripped password value to `authenticate_new_user()`
after creating a user which was resulting in password mismatch and
was raising this error.

PROD-656
2020-04-03 21:17:00 +05:00
SaadYousaf
738dbae563 add investigation logs. 2020-04-03 21:13:53 +05:00
Soban Javed
55cb859119 skip tests failing in django2.1 because app is deprecated 2020-04-03 20:36:26 +05:00