Commit Graph

12296 Commits

Author SHA1 Message Date
Jansen Kantor
90885e4193 create team view teamset privacy fixes (#23607) 2020-04-07 22:04:23 -04:00
Jansen Kantor
1b2e10d96e add HasSpecificTeamAccess permission and change tests (#23608) 2020-04-07 21:21:14 -04:00
Jansen Kantor
480642e8c4 EDUCATOR-4995: text search returns private teamsets for anyone in bubble (#23586)
* Manually exclude private_managed teams from text search results
2020-04-07 21:13:42 -04:00
Jansen Kantor
6b9d4e49b3 EDUCATOR-4976 (Part 2): Tests for current behavior (#23567)
* tests for current teams api view behavior
2020-04-07 18:30:53 -04:00
Waheed Ahmed
3dc3e10819 Revert "Adds retry logic for software secure." 2020-04-07 20:40:06 +05:00
Waheed Ahmed
21105898da Revert "Remove todo" 2020-04-07 20:36:39 +05:00
Awais Jibran
f1421a62d0 Merge pull request #23618 from edx/aj/problem-grade-report
ProblemGradeReport OOM - Case1&2
2020-04-07 19:06:30 +05:00
Awais Jibran
ac49d4fd99 Pass course structure to CourseGradeFactory.iter 2020-04-07 18:02:15 +05:00
Muhammad Soban Javed
fefb940744 Merge pull request #23634 from edx/BOM-1495
BOM-1495: Django 2.0: fails on comparing nested lists.
2020-04-07 16:41:10 +05:00
Awais Jibran
262b7f7bdc Remove todo 2020-04-07 11:03:17 +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
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
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
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
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
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
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
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
Awais Qureshi
9fc3dcb5d6 BOM-1490
None is not a valid value for posting.
2020-04-04 21:07:55 +05:00
Adam Blackwell
bb09c07c68 Revert "Certification verification enabled"
This reverts commit 3f1220276d.
2020-04-03 18:57:58 -04: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
Dillon Dumesnil
cd1e5994d8 Merge pull request #23602 from edx/revert-23574-ddumesnil/lms-api-staff
Revert "Update the LMS courses API for staff permissions"
2020-04-03 07:46:11 -07:00
Simon Chen
6a2b3bdbee Add some feedback from edX Support to the Program Enrollment Inspector 2020-04-03 10:44:59 -04:00
Dillon Dumesnil
9b5ab66ace Revert "Update the LMS courses API for staff permissions" 2020-04-03 07:18:38 -07:00
Hammad Ahmad Waqas
7bd3900476 Merge pull request #23592 from edx/hammad/ENT-2740
ENT-2740 | Flaky tests due to UNIQUE constraint failed on enterprise_enterprisecourseenrollment.id
2020-04-03 14:22:06 +05:00
adeelehsan
6fcf9779b7 Merge pull request #23591 from edx/aehsan/prod-1395/certificate_verification_enabled_for_software_secure
Certification verification enabled
2020-04-03 12:56:29 +05:00
HammadAhmadWaqas
c09b382e52 fixing flakiness of tests due to redundant id created by faker. 2020-04-03 12:50:47 +05:00
adeelehsan
3f1220276d Certification verification enabled
Previously software secure was using self sign certificates.
Now they are not using it that's why we are enabling ssl
certificate verfication.

PROD-1395
2020-04-03 11:11:13 +05:00
Nick
26f0176ddd Merge pull request #23550 from edx/ndalfonso/AA-85-reset-dates-mobile
AA-85 mobile reset dates
2020-04-02 09:53:50 -04:00
Dillon Dumesnil
0a39e6dba8 Merge pull request #23574 from edx/ddumesnil/lms-api-staff
Update the LMS courses API for staff permissions
2020-04-02 06:27:41 -07:00
SaadYousaf
3c1f7ec5e9 add logs to optimized ProblemGradeReport code. 2020-04-02 14:39:43 +05:00
Nicholas D'Alfonso
ac9d2bfd30 AA-85 mobile reset dates
- render reset dates banner in webview for mobile app.
- improve banner redirect mechanism
2020-04-02 00:37:54 -04:00
Dillon Dumesnil
78a1b835fa Update the LMS courses API for staff permissions
We want to allow staff to see all courses in the LMS.
This changes the behavior from staff being treated like
an AnonymousUser (unless an username query parameter is
provided) to being treated like staff.

I also added in some tests for the other paths in this
function that did not seem to be tested.
2020-04-01 13:45:37 -07:00
Jansen Kantor
c096464a3c EDUCATOR-4976 (Part 1): Add teamset type validation to has_specific_team_access (#23539)
Add teamset type validation to has_specific_team_access
2020-04-01 16:40:03 -04:00
Jeremy Bowman
9ef0aa4880 Downgrade to pytest-django 3.8.0 for now (#23566)
We'll upgrade this again along with pytest once pytest-dev/pytest#6925 is resolved.

Also, it looks like a flaky error in test class DB setup outside a transaction was mucking things up for the rest of the test shard. I didn't try to fix the flakiness, but this should at least limit the blast radius to just that test class. We really need to start using setUpTestData() more consistently.
2020-04-01 14:17:27 -04:00
David Ormsbee
11025c4d1a Merge pull request #23559 from edx/ormsbee/csm_write_optimization
Make XBlock views/handlers non-atomic requests.
2020-04-01 11:02:46 -04:00