Commit Graph

2705 Commits

Author SHA1 Message Date
Calen Pennington
27dfbd0240 Merge pull request #19673 from cpennington/fbe-per-course-config
Allow overriding Content Type Gating and Course Duration Limits on a …
2019-03-12 12:05:22 -04:00
Waheed Ahmed
458e8482ea Fix change enrollment command for credit.
Get provider id from ecommerce upon changing enrollment to credit
instead of setting course_key org.

LEARNER-6643
2019-03-12 15:30:48 +05:00
Nimisha Asthagiri
944f47e957 Account API: per-field visibility of "name" field
ARCH-482
2019-03-11 17:49:56 -04:00
Calen Pennington
fa2ee761d9 Allow overriding Content Type Gating and Course Duration Limits on a per-course (rather than per-course-run) basis
REVMI-94
2019-03-11 15:23:19 -04:00
Alan Zarembok
e0b8679d27 LEARNER-6398: Change get_country_time_zones to not raise exception for unrecognized timezones. 2019-03-11 14:45:12 -04:00
Calen Pennington
5d3c9b36df Merge pull request #19964 from cpennington/fbe-query-perf
Sort in python and add an index to improve StackedConfigModel.current…
2019-03-11 12:22:59 -04:00
Calen Pennington
a2a340bcd0 Improve the performance of access checking for a specific user in CourseViewList by prefetching data 2019-03-11 10:37:53 -04:00
Jason Myatt
ccfce4ac27 Merge pull request #19940 from edx/jmyatt/filter-out-stale-generated-certificates
Filter out certificates for nonexistent courses
2019-03-08 12:09:21 -05:00
Jason Myatt
09d51b00b5 Filter out certificates for nonexistent courses
LEARNER-7086. Uses a new model manager for GeneratedCertificate that excludes
certificates whose course_id does not correspond to a valid CourseOverview
2019-03-08 11:28:41 -05:00
Douglas Hall
c0cb493a41 Filter certificate list API based on user profile visibility preference. 2019-03-08 10:55:45 -05:00
Calen Pennington
c532077f3a Sort in python and add an index to improve StackedConfigModel.current query performance 2019-03-08 09:50:08 -05:00
Calen Pennington
300c3a34dd Don't swallow exceptions inside emulate_http_request 2019-03-06 11:44:29 -05:00
Troy Sankey
a50a1539e1 Merge pull request #19933 from edx/pwnage101/remove-one-off-rehash-mgmt-commmands-plat-2288
Remove one-off management commands to rehash retired emails/usernames
2019-03-06 10:55:43 -05:00
adeelehsan
82a34c002f Caching full response
cache full response regardless
of fields given or not. Reason
for doing this to avoid cache
overridden. For some courses
get_user_course_expiration_date
was overriding certificate template
cache in render_html_view

Learner-6943
2019-03-06 18:23:55 +05:00
Troy Sankey
2b28396890 Remove one-off management commands to rehash retired emails/usernames
PLAT-2288
2019-03-05 16:28:51 -05:00
Cory Lee
2108b69ff1 "Use single yaml config instead of two json configs"
This reverts commit 8c805999e6.
2019-03-05 11:27:36 -05:00
Douglas Hall
8676d88528 Merge pull request #19924 from edx/douglashall/add_jwt_auth_to_pref_api
Add JwtAuthentication to user preferences API.
2019-03-05 09:18:51 -05:00
Douglas Hall
e442d2cf3e Add JwtAuthentication to user profile image API. 2019-03-04 17:42:29 -05:00
Douglas Hall
724894d736 Add JwtAuthentication to user preferences API. 2019-03-04 17:14:29 -05:00
Mike Dikan
2fc27a9caa Merge pull request #19693 from edx/mdikan/hackathon-21
Removal of deprecated external auth.
2019-03-04 13:48:57 -05:00
Waheed Ahmed
dbad75467e Return credit status error if no provider info found.
Return credit status error if no provider info found in provider info by
id dict. Also add logs to get an idea what is in this dict.

LEARNER-6643
2019-03-04 15:59:55 +05:00
Mike Dikan
2c149ca6be Removing the Deprecated the 'external_auth' package in favor of 'third_party_auth' which is the current recommendation. 2019-03-02 16:06:46 -05:00
Cory Lee
8c805999e6 Revert "Use single yaml config instead of two json configs"
This reverts commit b0b8a76dd9.
2019-03-01 17:31:10 -05:00
Cory Lee
b0b8a76dd9 Use single yaml config instead of two json configs 2019-03-01 12:55:40 -05:00
Waheed Ahmed
a422e7f4b6 Added log for credit providers fetched from cache.
LEARNER-6643
2019-02-28 17:03:13 +05:00
David Ormsbee
033e897e8e Merge pull request #19880 from open-craft/jill/ace-header-block
SE-800 Wraps the email header in a block so it can be themed
2019-02-27 18:03:16 -05:00
emma-green
4f1af19e77 Merge pull request #19882 from edx/emma-green/REVEM-176/D/Fix-course-program-cache
fix course program cache
2019-02-27 10:04:21 -05:00
adeelehsan
fd062a9c12 Added logs
adding logs to investigate cache.

learner-6943
2019-02-27 17:31:40 +05:00
Emma Green
f36673aff9 fix course program cache 2019-02-26 16:42:12 -05:00
Matt Hughes
790f598ded Merge pull request #19872 from edx/matthugs/old-IDV-flaky-bokchoy-test
Add IDV bypass mechanism for bok_choy tests
2019-02-26 10:50:09 -05:00
Jillian Vogel
a5db457132 Wraps the email header in a block so it can be themed 2019-02-26 14:05:29 +10:30
Matt Hughes
b4664f8377 Add IDV bypass mechanism for bok_choy tests
An older test was deleted based on flakiness around the ID
verification process; this test eliminates the dependency on IDV by
enabling manual ID verification (an enterprise-motivated workaround
for IDV requirements) via the auto_auth endpoint.

JIRA:EDUCATOR-1178
2019-02-25 15:58:11 -05:00
Julia Eskew
d74ec765b5 Add skip-authorization flag for DOT application creation. 2019-02-25 12:42:21 -05:00
emma-green
507cfb8942 Merge pull request #19849 from edx/emma-green/REVEM-176/C/Hacky-cache-course_runs-to-programs
add course to program caching
2019-02-25 10:41:51 -05:00
Dave St.Germain
954c8e1a67 Merge pull request #19771 from edx/dahlia/masters-track
Added master's track
2019-02-25 10:11:24 -05:00
David Ormsbee
40e1e1e59e Improve SafeCookieData Error Logging
1. Use request.session instead of request.user, since request.user
won't necessarily be properly set.

2. Be extra paranoid by putting logging after session cookie deletion,
so that even if there is some error related to logging, the important
work will complete and the browser won't get left in a broken state.

3. Write out the full contents of the Cookie header (up to 4096 bytes)
in the log as a base64 encoded string. This way we can look at broken
cookie states and diagnose what's breaking them (the Python parser will
just silently skip anything past a corrupted cookie entry). We base64
encode mostly to prevent people from maliciously injecting garbage into
our logs.
2019-02-24 13:57:19 -05:00
David Ormsbee
475a4bd659 Merge pull request #19860 from edx/ormsbee/log_ssmw_delete_cookie
Log when SafeSessionMiddleware deletes cookies
2019-02-22 19:26:40 -05:00
David Ormsbee
1d7c082562 Merge pull request #19859 from edx/ormsbee/cookie_logging
Add cookie size monitoring New Relic metrics.
2019-02-22 19:26:31 -05:00
David Ormsbee
76620e0bf2 Add cookie size monitoring New Relic metrics.
This adds middleware that will create custom parameter metrics in
New Relic to track the size of all the cookies being received for
our domain. The custom fields are "cookies_total_size" and a
separate named parameter for every cookie size, e.g.
"cookies.csrftoken.size".

This is intended to help us track cookie growth and better diagnose
issues where users lose their sessions. It is toggled by the
'request_utils.capture_cookie_sizes' Waffle Flag.
2019-02-22 18:18:41 -05:00
David Ormsbee
fc52fcccab Log when SafeSessionMiddleware deletes cookies 2019-02-22 17:12:18 -05:00
Emma Green
57b7150b09 add course to program caching 2019-02-22 13:18:23 -05:00
adeelehsan
84d2ab7640 Adding Logs
logs added to investigate
course run response returned
cache

Learner-6943
2019-02-22 17:12:00 +05:00
Jeremy Bowman
5c7a8e3ac1 Merge pull request #19622 from cclauss/Fix-parens-for-Python3
Fix explicit tuple parameters for Python 3
2019-02-21 15:45:09 -05:00
Farhanah Sheets
5b38c7e39e Merge pull request #19825 from edx/aehsan/learner-6238/update_deprecated_pygeoip_to_geoip2
update pygeopip to geoip2
2019-02-21 13:02:47 -05:00
Calen Pennington
cd107d3cf9 Merge pull request #19751 from edx/unicode10
enable unicode format string linter
2019-02-21 06:07:11 -05:00
Zia Fazal
4fc64f9783 Merge pull request #19775 from edx/ziafazal/WL-1882
WL-1882:Management command to sync contacts with hubspot
2019-02-21 15:24:06 +05:00
Zia Fazal
7d1dd344d8 Management command to sync contacts with hubspot
Added unit tests

Fixed pylint quality violation

Added doctstring to add_arguments
2019-02-21 12:10:06 +05:00
Calen Pennington
78c8950ea3 Clean up a few remaining unicode format string errors 2019-02-20 15:28:14 -05:00
adeelehsan
3e2764d9c0 update pygeopip to geoip2
Update deprecated pygeoip
to geoip2 and all usages
of it

Learner-6238
2019-02-21 00:42:05 +05:00
Matt Hughes
17f0a4fb52 Allow educators to partition masters students as content groups
JIRA:EDUCATOR-4022
2019-02-20 12:40:53 -05:00