Commit Graph

4136 Commits

Author SHA1 Message Date
Calen Pennington
419657d7a5 Prefetch course modes used in has_access calls in course api 2019-02-06 10:11:15 -05:00
Calen Pennington
6c596f7c49 Allow courses api to return data incrementally
Prior to this commit, the course api (/api/courses/v1/courses/)
performed all the work necessary to return all courses available
to the user, and then only actually returned on page's worth of those
courses.

With this change, the api now does the work incrementally, computing
only the data needed to fetch the courses up to and including the page
being returned. This still increases approximately linearly as
the page number accessed being increases, but should be more cache-friendly.
One side effect of this is that the max_page reported by pagination
will be an overestimate (it will include pages that are removed due
to a users access restrictions).

This change also changes the sort-order of courses being returned by the
course_api. By sorting by course-id, rather than course-number, we
can sort in the database, rather than in Python, and defer loading data
from the end of the list until it is requested.

REVMI-90
2019-02-06 10:11:15 -05:00
Matthew Piatetsky
6e81c84d8b fix unicode strings in lms/ part 1 2019-02-05 15:15:02 -05:00
Matthew Piatetsky
b37bc75bb4 Revert "Revert "change banner date localization to use dateutilfactory""
This reverts commit 08cb56664b.
2019-02-04 12:42:27 -05:00
Calen Pennington
95252f1a81 Run caniusepython3.pylint_checker 2019-02-01 10:03:42 -05:00
Calen Pennington
040b60c38c Stop swallowing UnicodeEncodeErrors in courseware rendering 2019-02-01 09:22:54 -05:00
Farhanah Sheets
fb7d597554 unicode messages developer and user messages 2019-02-01 09:22:54 -05:00
Michael Youngstrom
a090d4b7a3 Merge pull request #19697 from edx/youngstrom/incr
INCR-19: Move to python3-saml
2019-01-31 09:30:46 -05:00
Agha Awais
30359a2995 Merge pull request #19668 from edx/awais/removed_old_lettuce_tests_for_courseware_problems
removed lettuce files
2019-01-31 10:29:58 +05:00
Michael Youngstrom
e7898d153d Move to python3-saml 2019-01-30 16:35:16 -05:00
Jansen Kantor
6f4bbf6a01 Merge pull request #19676 from edx/jkantor/failed-cert
fail a certificate if grades are modified to failing
2019-01-29 17:07:00 -05:00
jansenk
726fb0f6f0 fail a certificate if grades are modified to failing 2019-01-29 15:57:15 -05:00
Calen Pennington
daf6fd3330 Merge pull request #19599 from cpennington/fbe-adrs
Add ADRs for FBE decisions
2019-01-28 14:40:48 -05:00
Calen Pennington
4ac3caab23 Add ADRs for FBE decisions
REVMI-39
2019-01-28 13:16:53 -05:00
Agha Awais
e89ccc8614 removed lettuce files 2019-01-28 06:50:02 +00:00
Calen Pennington
805f32a357 Revert "Allow courses api to return data incrementally" 2019-01-25 12:56:57 -05:00
Calen Pennington
c9ed838991 Merge pull request #19642 from cpennington/fbe-improve-course-api-performance
Allow courses api to return data incrementally
2019-01-25 11:31:24 -05:00
Calen Pennington
2527efd822 Prefetch CourseOverview.image_set when loading the course_api 2019-01-25 10:30:09 -05:00
Calen Pennington
0d273e9506 Prefetch course modes used in has_access calls in course api 2019-01-25 10:30:09 -05:00
Calen Pennington
a3541d6e46 Allow courses api to return data incrementally
Prior to this commit, the course api (/api/courses/v1/courses/)
performed all the work necessary to return all courses available
to the user, and then only actually returned on page's worth of those
courses.

With this change, the api now does the work incrementally, computing
only the data needed to fetch the courses up to and including the page
being returned. This still increases approximately linearly as
the page number accessed being increases, but should be more cache-friendly.
One side effect of this is that the max_page reported by pagination
will be an overestimate (it will include pages that are removed due
to a users access restrictions).

This change also changes the sort-order of courses being returned by the
course_api. By sorting by course-id, rather than course-number, we
can sort in the database, rather than in Python, and defer loading data
from the end of the list until it is requested.

REVMI-90
2019-01-25 10:30:09 -05:00
Matt Hughes
673fb797b8 make upgrade to version of edx-proctoring
without blocking multiple concurrent sessions

also updates trace amounts of copy duplicated in tests between
edx-proctoring and edx-platform

JIRA:EDUCATOR-3931
2019-01-22 12:47:40 -05:00
Matthew Piatetsky
08cb56664b Revert "change banner date localization to use dateutilfactory" 2019-01-20 18:27:03 -05:00
Matthew Piatetsky
d98643c37f Merge pull request #19609 from edx/fix_masquerade_banner
ensure content start date banner only shows for currently open sections
2019-01-17 13:12:42 -05:00
Matthew Piatetsky
58012317a1 Merge pull request #19590 from edx/REVMI-27
change banner date localization to use dateutilfactory
2019-01-17 12:49:56 -05:00
Matthew Piatetsky
9ba3e0c5a5 ensure content start date banner only shows for currently open sections 2019-01-17 12:32:08 -05:00
DawoudSheraz
bd262e000b Update Mathjax version to include a11y 2019-01-17 13:20:07 +05:00
David Ormsbee
8b47763543 Merge pull request #19253 from open-craft/agrendalath/xblock-handle-oauth
Add OAuth2 and JWT support to XBlock handlers
2019-01-16 19:46:20 -05:00
Agrendalath
aa0e06a15e Add OAuth2 and JWT support to XBlock handlers
This adds OAuth2 and JWT API to call XBlock handlers. It is an alternative approach to #15940 - it reuses some DRF logic to handle this, but does not convert `handle_xblock_callback` to DRF view, which caused issues described in edx/XBlock#383.
2019-01-17 00:17:38 +01:00
Zia Fazal
d02efb1d24 Merge pull request #19604 from edx/ziafazal/WL-1660
WL-1660: Added ability to stop redirect to course home page
2019-01-16 12:17:23 +05:00
Zia Fazal
0e1fff31e5 Added ability to stop redirect to course home page
Added ability to stop redirect to course home page even if ENABLE_MKTG_SITE is enabled.

Fixed quality violations
2019-01-15 16:47:37 +05:00
Matthew Piatetsky
f870f7c635 change banner date localization to use dateutilfactory 2019-01-15 03:30:53 -05:00
Christie Rice
9d23dfe270 REVEM-130 Remove program info from user metadata 2019-01-14 14:32:32 -05:00
Matthew Piatetsky
e1fd793e86 Merge pull request #19560 from edx/REVMI-2
add informational banners when masquerading as user who would not have access due to start date
2019-01-10 13:48:29 -05:00
Matthew Piatetsky
5bb56fe45f add informational banners when masquerading as user who would not have access due to start date 2019-01-10 11:06:30 -05:00
Christie Rice
8f8efc80dc REVEM-74 Add program info to user-metadata 2019-01-09 12:40:11 -05:00
Calen Pennington
6efe327311 Merge pull request #19489 from edx/tuchfarber/move_expiration_banner_REVMI_54
Move banner REVMI-54
2019-01-09 11:22:50 -05:00
Matt Tuchfarber
ac29017d88 Move banner REVMI-54
Moves banner into the content instead of at the top. Adds a course
expiration fragment to the course home page, the content, the progress
page, and the discussion page.
2019-01-09 10:17:16 -05:00
Diana Huang
6572d99e76 Remove all references to datadog from our code. 2019-01-08 15:41:24 -05:00
Calen Pennington
dc8aa9dae4 Merge pull request #19547 from cpennington/add-test-for-fbe-banner
Add a test of the FBE Upgrade banner
2019-01-07 14:26:20 -05:00
Calen Pennington
8b014e1fef Add a test of the FBE Upgrade banner
REV-656
2019-01-07 13:11:35 -05:00
Cali Stenson
7cbe1312a9 Refactor verified_upgrade_link_is_valid to directly call Ecommerce service.
Additionally update code documentation to clarify expected behavior around
dynamic pacing deadlines.

REVO-69
2019-01-04 15:07:39 -05:00
Matthew Piatetsky
4aa576d725 Merge pull request #19511 from edx/REVMI-72
Ignore enrollment date for FBE when masquerading
2019-01-02 09:53:13 -05:00
Awais Jibran
e3529ad258 Clean Xblock handler 2018-12-29 09:21:28 +05:00
Matthew Piatetsky
c515b3570e Merge pull request #19495 from edx/REVMI-50
write tests for when verified mode expires
2018-12-27 16:08:26 -05:00
Agha Awais
22992918d3 Merge pull request #19008 from edx/awais/lett_2_bc_registration
TE-2654: Course registration bokchoy test
2018-12-27 16:10:31 +05:00
Agha Awais
992083dd66 Merge pull request #19025 from edx/awais/lett_2_bc_courseware_word_cloud
TE-2655: Courseware word cloud bokchoy tests
2018-12-27 15:28:16 +05:00
Matthew Piatetsky
1396ca9173 Ignore enrollment date for FBE when masquerading 2018-12-26 20:29:44 -05:00
Agha Awais
b0d678d77c Courseware wordcloud tests 2018-12-26 21:26:26 +00:00
Agha Awais
371c1df4f3 Course registration bokchoy test 2018-12-26 20:51:15 +00:00
Matthew Piatetsky
e0b5e5cb97 write tests for when verified mode expires 2018-12-21 09:57:33 -05:00