Commit Graph

3281 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
Matthew Piatetsky
59a056c9c3 Merge pull request #19957 from edx/REVMI-21
[REVMI-21] Remove CONTENT_TYPE_GATING flag and FEATURE_BASED_ENROLLMENT_GLOBAL_KILL_FLAG flag
2019-03-11 10:54:48 -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
Matthew Piatetsky
74bcc29417 Remove FEATURE_BASED_ENROLLMENT_GLOBAL_KILL_FLAG 2019-03-07 15:46:33 -05:00
Matthew Piatetsky
49ae6b9d73 Remove CONTENT_TYPE_GATING flag 2019-03-07 15:46:33 -05:00
Matthew Piatetsky
80c9d04b83 Merge pull request #19947 from edx/REVMI-67
REVMI-67 update description to describe datetime as user local time
2019-03-07 09:18:38 -05:00
Calen Pennington
4c8cd60bbc REVMI-96: Add a management command to experiment with Access Expiry reminder emails for FBE 2019-03-06 11:44:29 -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
Matthew Piatetsky
9740746e9f update description to describe datetime as user local time 2019-03-06 10:48:15 -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
Matthew Piatetsky
fd00ce1d0b stop ignoring enrollment creation date if the user is masquerading 2019-03-05 16:05:17 -05:00
Cory Lee
07d81bf297 Merge pull request #19913 from edx/coryleeio/yaml_config
Use single yaml config instead of two json configs.
2019-03-05 14:25:52 -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
Matthew Piatetsky
e264549eaf Merge pull request #19922 from edx/REVMI-108
[REVMI-108] stop bucketing new users into FBE holdback
2019-03-05 11:17:49 -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
Matthew Piatetsky
b22c453a4a stop bucketing new users into FBE holdback 2019-03-05 08:16:04 -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