Commit Graph

48686 Commits

Author SHA1 Message Date
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
0857a1cfe5 Merge pull request #19865 from edx/ormsbee/log_b64_cookie
Improve SafeCookieData Error Logging
2019-02-25 09:30:20 -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
Nimisha Asthagiri
0983091df0 Merge pull request #19846 from eduNEXT/lmm/date
Fix date internationalization
2019-02-23 14:21:52 -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
Ned Batchelder
1f37e7899c Merge pull request #19840 from cclauss/patch-1
Missing named argument in formatting call
2019-02-22 17:00:27 -05:00
Christie Rice
61923a7369 Merge pull request #19857 from edx/crice/REVEM-197_mockProgramInfo
REVEM-197 Add mock program info to user metadata
2019-02-22 15:41:18 -05:00
Christie Rice
7cc0a8bf2d REVEM-197 Add mock program info to user metadata 2019-02-22 14:50:59 -05:00
Michael Youngstrom
fff3417efe Merge pull request #19705 from edx/youngstrom/incr-improvements
INCR-17: Unpin and upgrade sortedcontainers for python3 support
2019-02-22 14:38:14 -05:00
Calen Pennington
e3d08a7b84 Merge pull request #19553 from cpennington/permissions-adr
Record a plan for converting has_access to user.has_perm
2019-02-22 13:43:58 -05:00
Calen Pennington
c9ee6ed78d Record a plan for converting has_access to user.has_perm 2019-02-22 12:24:30 -05:00
adeelehsan
c9d9734776 Merge pull request #19856 from edx/aehsan/LEARNER-6943/adding_logs_for_cached_data
Adding Logs
2019-02-22 18:12:05 +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
Waheed Ahmed
11edfd69be Merge pull request #19833 from edx/waheed/LEARNER-5562-disbale-pdf-cert-generation
Disable PDF certificate generation/regeneration.
2019-02-22 16:10:15 +05:00
Waheed Ahmed
e3fb888268 Disable PDF certificate generation/regenration.
Since PDF generation is discontinued long time ago, disable PDF certificate
generation/regenration from support tool and on all other places.

LEARNER-5562
2019-02-22 15:22:36 +05:00
Zainab Amir
7de41a025a Show dates in drop-down for program dashboard
LEARNER-5538 : Show dates in dropdown for program dashboard
2019-02-22 14:04:37 +05:00
edX Transifex Bot
151ec44f70 Update translations 2019-02-22 03:38:00 -05:00
Zainab Amir
1937ee1c27 Populate software secure photo verification
Populate software secure photo verification. The field that will be updated is 
- expiry_date
2019-02-22 11:46:34 +05:00
Zainab Amir
00c6681480 LEARNER-5538 : Show dates in dropdown for program dashboard 2019-02-22 11:14:29 +05:00
Zainab Amir
019f6c4dcf LEARNER-6945 Populate software secure photo verification 2019-02-22 11:01:57 +05:00
Luis Moreno
c5f396b142 Fix to pass xss commit linter 2019-02-21 22:04:28 -04:00
Luis Moreno
12931ae442 Fix date format 2019-02-21 20:29:08 -04:00
Michael Youngstrom
9631fc2f88 Unpin sortedcontainers for python3 support 2019-02-21 17:27:13 -05:00
Troy Sankey
6426b94aa7 Merge pull request #19850 from edx/pwnage101/pii-annotations-can-be-long
PII annotations can be longer than 120 characters now
2019-02-21 16:22:16 -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
Julia Eskew
c68e391029 Merge pull request #19830 from edx/juliasq/pii_ci_integration
Add PII check to CI quality check.
2019-02-21 15:42:56 -05:00
Troy Sankey
35f6822f92 PII annotations can be longer than 120 characters now
PLAT-2424
2019-02-21 15:39:12 -05:00
Julia Eskew
731d076cdc Add app_name prefix to the generated PII report. 2019-02-21 14:11:59 -05:00
Matt Hughes
6608d57290 Merge pull request #19820 from edx/matthugs/allow-track-partitioning-for-masters
Allow educators to partition masters students as content groups
2019-02-21 13:06:42 -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
Julia Eskew
5efb4e1575 Upgrade requirements to get newest code-annotations. 2019-02-21 12:47:34 -05:00
Julia Eskew
060d3b8e85 Accept option for PII checker report dir. Add PII check to CI quality check.
Add tests for run_pii_check paver command.
2019-02-21 12:47:34 -05:00
Alex Dusenbery
325c22c5d5 EDUCATOR-4082 | When creating subseciton grade override from service, create a PSG if one does not exist. 2019-02-21 10:42:48 -05:00
Michael Youngstrom
b2be81c675 Merge pull request #19839 from sprihajha/master
Resolving INCR-42
2019-02-21 10:42:02 -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
zrana
7d59e82a86 Merge pull request #19429 from edx/lett_2_bc_lti_consumer_tests
Convereted lettuce tests into bokchoy for LTI Xblock
2019-02-21 14:54:49 +05:00
zrana
243145c706 Convereted lettuce tests into bokchoy for LTI Xblock 2019-02-21 13:31:27 +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
cclauss
3ab0d2666f Missing named arguments in formatting call
Discovered via LGTM https://lgtm.com/projects/g/edx/edx-platform/alerts/?mode=list&severity=error
2019-02-20 21:00:20 +01: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
Matthew Piatetsky
5b1007cda2 enable unicode format string linter 2019-02-20 14:39:06 -05:00
Spriha Jha
f3532fde76 Modifying required dependencies. 2019-02-20 14:35:35 -05:00
Ned Batchelder
2fc755d43f Merge pull request #19748 from open-craft/dachary/fix-typo
docs: s/javascript/JavaScript/
2019-02-20 14:02:46 -05:00
Calen Pennington
0ffcf3a4b0 Merge pull request #19835 from edx/revert-19677-emma-green/REVEM-176/cache-course_runs-to-programs
Revert "WIP:Cache course runs to programs"
2019-02-20 13:37:57 -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