Commit Graph

12296 Commits

Author SHA1 Message Date
Dillon Dumesnil
a7a84ce9ab Adding in try block for getting item from modulestore
This also includes updating the test to actually test for this use case

AA-4
2020-02-18 15:23:38 -05:00
Diana Huang
c99bf692cc Remove class_dashboard. 2020-02-18 13:35:26 -05:00
Manjinder Singh
d7bd80a100 Renamed OAuth2Authentication to BearerAuthentication (#23128)
* Renamed OAuth2Authentication to BearerAuthentication
* Added back OAuth2Authentication name
-there are libraries such as edx-enterprise that still import OAuth2Authentication.  The OAuth2Authentication class should be fully removed when everything is importing BearerAuthentication correctly
2020-02-18 13:29:29 -05:00
Dillon Dumesnil
be7ef9804d AA-4: Adding waffle flag for dates widget 2020-02-18 11:20:32 -05:00
Dillon Dumesnil
5853cddfc1 AA-4: Extreme defensiveness over any fields accessed from modulestore 2020-02-18 08:43:45 -05:00
Dillon Dumesnil
fe91d63a0b Show relevant dates in course dates sidebar
This includes (at least) upcoming assignments, FBE access
expiration, and course end date.

AA-4
2020-02-18 08:42:15 -05:00
Luis Moreno
b602665edc Display profile name in gradebook aapi 2020-02-17 11:42:29 -04:00
Ahtisham Shahid
60ad8c8813 Merge pull request #22989 from edx/ahtisham/PROD-452
Fixed staff debug in instructor tab
2020-02-17 18:15:18 +05:00
Nathan Sprenkle
c66176da13 Add error reporting to UI for CSV team management (#23035)
* Add error banner for upload memberships errors

* Edit error message language

* Fix linter warnings
2020-02-14 09:58:58 -05:00
Christie Rice
8fb4049c62 Remove flaky test (#23075) 2020-02-14 09:05:45 -05:00
Zia Fazal
352318738a Merge pull request #23099 from edx/ziafazal/ENT-2626
ENT-2626: Stop hitting enterprise API in case of 404 error
2020-02-14 16:37:16 +05:00
zia.fazal@arbisoft.com
2453bc8c05 Stop showing hitting enterprise API in case of 404 error
Stop showing hitting enterprise API when request is originated as result of 404 error.

fixed quality violations

Removed line break

add unit tests

Updated test docstring
2020-02-14 15:16:51 +05:00
Ahtisham Shahid
19137e2737 Fixed staff debug on instructor page
added unit test js

fixed test js

updated test commetn

updated xss
2020-02-14 12:20:14 +05:00
Jansen Kantor
cec654f753 two csv upload team-creation bugs (#23036)
fix csv-upload bugs
2020-02-13 17:16:00 -05:00
adeelehsan
e18747a2e0 MicroMaster added in contact us form
PROD-1229
2020-02-13 00:06:00 +05:00
adeelehsan
47393b5f7e Merge pull request #23089 from edx/aehsan/prod-1229/changed_microbachelors_to_micro
MicroBachelor changed to Micro
2020-02-12 22:59:40 +05:00
Jeremy Bowman
e1d1c29c00 Fix DRF deprecation warnings (#23082)
Fix all deprecation warnings generated by Django REST Framework during the unit tests:

* ``The `base_name` argument is pending deprecation in favor of `basename`.`` (86 occurrences)
* `` `detail_route` is deprecated and will be removed in 3.10 in favor of `action`, which accepts a `detail` bool. Use `@action(detail=True)` instead.`` (18 occurrences)
2020-02-12 12:51:40 -05:00
adeelehsan
a41f992e10 MicroBachelor changed to Micro
PROD-1229
2020-02-12 15:27:25 +05:00
Manjinder Singh
cce8cdd661 Replacing OAuth2Auth (#23067)
- Removing deprecated auth classes
- Replacing OAuth2AuthenticationAllowInactiveUserDeprecated with OAuth2AuthenticationAllowInactiveUser
- the old class was a child class of a deprecated class that we are removing and replacing.
2020-02-11 10:38:13 -05:00
Adam Butterworth
53c1d2a0da Hide display titles for vertical blocks embedded in microfrontends (#23006)
Relates to TNL-7048. Since bookmarking is handled in the courseware microfrontend, it needs to also manage the display of a unit title.
2020-02-10 13:32:08 -05:00
Dillon Dumesnil
b4fed7c2a4 Merge pull request #23063 from edx/ddumesnil/revert-AA-4
Revert commits for AA-4
2020-02-10 13:11:19 -05:00
Dillon Dumesnil
00fe1495b4 Revert commits for AA-4 2020-02-10 12:10:59 -05:00
Dillon Dumesnil
9b9c261c77 Merge pull request #23058 from edx/ddumesnil/relevant-dates-AA-4
AA-4: Be more defensive about not finding an item in modulestore
2020-02-10 09:36:50 -05:00
Alan Zarembok
804e1c3b8e Merge pull request #23034 from edx/azarembok/cert-url
PROD-1236: Change URL returned for generated certificates to use UUID.
2020-02-10 08:18:12 -05:00
Dillon Dumesnil
7b68869a14 AA-4: Be more defensive about not finding an item in modulestore 2020-02-10 08:03:16 -05:00
DawoudSheraz
0b1c7db967 add multiple correct values check for Dropdown problems 2020-02-10 11:36:28 +05:00
Dave St.Germain
aa42751c7e Add button to switch to courseware MFE 2020-02-07 15:00:49 -05:00
Dillon Dumesnil
7444980fbd Merge pull request #22911 from edx/ddumesnil/relevant-dates-AA-4
Show relevant dates in course dates sidebar
2020-02-07 10:27:43 -05:00
Alan Zarembok
70955119f1 PROD-1236: Change URL returned for generated certificates to use UUID, for consistency across api calls. 2020-02-07 10:19:55 -05:00
Muhammad Soban Javed
6dfcddd6d8 Merge pull request #23030 from edx/BOM-1251
Fixing deprecated django-filter features
2020-02-07 18:45:30 +05:00
Dillon Dumesnil
23486a560d Show relevant dates in course dates sidebar
This includes (at least) upcoming assignments, FBE access
expiration, and course end date.

AA-4
2020-02-06 16:01:46 -05:00
Jansen Kantor
d4d6b33272 EDUCATOR-4879: Implement teams CSV GET endpoint (#23005)
* wip

* get

* quality

* change oauth2 to deprecated?

* quality

* remove duplicate enrollment check function

* code review
2020-02-06 15:06:23 -05:00
Manjinder Singh
cea795b02e Added new auth class (#23018)
* Added new auth class

- Created new class called OAuth2AuthenticationAllowInactiveUser, which replaces old class with same name
- Renames previous  OAuth2AuthenticationAllowInactiveUser to  OAuth2AuthenticationAllowInactiveUserDeprecated
- Replaced all imports of  OAuth2AuthenticationAllowInactiveUser to call deprecated class instead
- testing new class in discussion(added flag based on django setting)
2020-02-06 10:37:27 -05:00
Calen Pennington
4901dde748 Clean up pylint errors to get diff-quality to pass 2020-02-06 09:18:30 -05:00
iamsobanjaved
82dd040382 fixed deprecated django-filter features 2020-02-06 18:32:36 +05:00
atesker
5a2d98b11d initial layout
interim commit

clean up

Initial unit tests and pylint

pylint cleanup

Unit tests extended and passing. Pylint

WIP - fix Unit tests extended and passing. Pylint

Updated logic to validate before commit.

CR pass1

CR pass1, pep8

pep8 2

interim cr

interim cr2

refactor to using DictReader

removed uneeded mixin

pr comments

encoding fix and return value

Cache teams/membershipos

ncr

cr aed
2020-02-04 13:52:51 -05:00
Calen Pennington
019a97c084 Duplicate signals handlers for course content dates from edx-when 2020-02-03 15:35:23 -05:00
Robert Raposa
9fa5443379 add course_ids api
Adds a course_ids api that can filter by user role, since the courses
api could not perform well enough for this, and returned much more
data than we need.

Additionally, adds a LazyPageNumberPagination to provide more accurate
counts in the pagination response when using LazySequence with the
queryset.

BOM-897
2020-01-31 18:02:16 -05:00
Dave St.Germain
42adb72aa5 Merge pull request #22336 from edx/dcs/data-researcher
Add new role for course data researcher
2020-01-31 10:07:27 -05:00
Awais Jibran
2f98463c35 Merge pull request #22939 from edx/aj/fix-grade-reports
Generate Grade Report for Verified Learners by Default
2020-01-31 12:47:18 +05:00
Nathan Sprenkle
62d5ff49a0 EDCUATOR-4810: Add team anonymous ID lookup (#22868)
* Add ability for team-members to look up each other's anonymous user IDs for team assignments
2020-01-30 09:50:47 -05:00
Feanil Patel
ee5178604f Merge pull request #22976 from edx/feanil/remove_course_api_role_option
Remove the role parameter from the courses api.
2020-01-30 09:23:58 -05:00
Manjinder Singh
eb694528e7 Adding metrics to oauth2authentication class (#22970)
Currently, we are working on removing the rest_framework_auth library from edx-platform. For this push, we need to remove the oauth2Authentication class. This PR creates a new class oauth2AuthenticationDeprecated that adds additional new relic metrics. The metrics would allow us to see how often this class is used and its success rate. The hope is that this information will help us with transitioning to a different authentication class.
2020-01-30 09:13:51 -05:00
Aarif
97d327feeb BOM-1121
Old style mixin compatibility with django2.2
2020-01-30 16:36:02 +05:00
Feanil Patel
79d097d3c8 Remove the role parameter from the courses api.
BOM-1228

The api is already not very performant and trying to limit it to only
show courses where you are staff causes the code to iterate over almost
all the courses and times out before it returns any results to the user.

The plan is to build a different api for the thing we need that will
just provide the course IDs for courses where you are staff and sholud
be much faster.
2020-01-29 16:38:19 -05:00
Alex Dusenbery
31498cc414 In canUserCreateTeam(), look in this.context.userInfo for staff/priveleged attributes. 2020-01-29 14:59:48 -05:00
Waheed Ahmed
54b64e70f4 Restrict certificate endpoint to return certificates.
Do not return certificates if there is no active certificate
configuration.

PROD-1200
2020-01-29 22:29:55 +05:00
Dave St.Germain
4bbdf2e20b Merge pull request #22848 from edx/dcs/course-api
Add API to support courseware MFE
2020-01-29 09:51:14 -05:00
julianajlk
f46458fbfe Add dynamic_upgrade_deadline date to mobile API (#22953)
REV-1092
2020-01-28 15:24:50 -05:00
Dave St.Germain
1aa8c9c53d Add a new courseware API Django app to support the courseware micro-frontend. 2020-01-28 14:59:07 -05:00