Commit Graph

57135 Commits

Author SHA1 Message Date
Matthew Piatetsky
84fb4679c9 Add contains_content_type_gated_content attribute to display items in the Sequence Metadata API. This attribute is used to display the content type gating paywall in frontend-app-learning.
Also, refactor existing timed exam code that checks for content_type_gated_content in a sequence to make it try with the new code
AA-613
2021-01-28 12:00:53 -05:00
Tim McCormack
e0e03dec5f Use more appropriate hash when making tracking ID; document SECRET_KEY use (#26134)
- Make it easier to rotate `SECRET_KEY` by documenting this usage
  for both sensitivity and rotation process. (ARCHBOM-1676).
- Just use a hash of the secret rather than HMAC + MD5. We're not
  authenticating a message, so HMAC isn't really needed -- it just needs
  to be unique, deterministic, and irreversible. SHAKE allows generation
  of an arbitrary length hash without needing to truncate.

Also, rename tracking session ID generator for clarity -- there's no
encryption happening here.

Add additional test for existing claim of uniqueness.
2021-01-27 14:13:42 +00:00
alangsto
68706bd5df upgrade proctoring version (#26189) 2021-01-27 08:39:40 -05:00
Muhammad Soban Javed
d26a59eb67 import task decorator from celery APP instance in CMS (#25953)
* import task decorator from celery APP instance instead of celery package in CMS

* replaced task decorator with shared_task in cms and common

* Fixed import of shared_task

* Fixed import
2021-01-27 18:35:11 +05:00
Manjinder Singh
2723e0e2bd [ARCHBOM-1645] Modifying anonymous_id_for_user() to handly SECRET_KEY rotation (#26162)
These changes were initially made to make it easier to do SECRET_KEY rotations.  Along the way, we found it made sense to refractor the code as well.

Changes made:
- changed get_to_create to create because now the code should only get to this block when a write is necessary
- added a lookup for anonymous_user_id. This is to return an existing anonymous_user_id rather than calculating. This will mitigate the results of SECRET_KEY rotation.
- Added monitoring to help us make better decisions: should we not sue SECRET_KEY, performance considerations...
- put old function behind toggle in case something goes wrong in production with new code
- refractoring function structure for better understanding
2021-01-27 07:23:19 -05:00
Ahtisham Shahid
428402e370 changed instructor dashboard waffle type form course to legacy (#26128)
* changed instructor dashboard waffle type form course to legacy
2021-01-27 13:10:38 +05:00
edX requirements bot
761e470b30 Updating Python Requirements (#26184) 2021-01-27 12:32:20 +05:00
Ahtisham Shahid
3dfb25cb5d Updated/refactored logs in auth exchange (#26077) 2021-01-27 12:12:28 +05:00
alangsto
a2a1998d26 update proctoring version (#26181) 2021-01-26 18:41:24 -05:00
alangsto
ad5aa6cd7a downgrade proctoring version (#26178) 2021-01-26 16:20:12 -05:00
Christie Rice
b1e5695acf MICROBA-921 Move emit_certificate_event() to utils (#26133) 2021-01-26 14:41:34 -05:00
Kyle McCormick
e3cfaab487 Merge pull request #25955 from open-craft/symbolist/convert-hidden-module-to-xblock
[BD-04] [SE-3708] Convert HiddenDescriptor to an XBlock.
2021-01-26 13:56:06 -05:00
Robert Raposa
2d7a8358ef Merge pull request #26172 from regisb/regisb/fix-cms-annotation
[BD-21] Fix `ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS` code annotation
2021-01-26 13:09:30 -05:00
Tim McCormack
0fbd134c55 Add monitoring for anonymous user ID code paths (#26176)
For ARCHBOM-1674 we need more information on how often save=False is
actually used vs. other code paths.
2021-01-26 18:06:39 +00:00
Robert Raposa
b86a78da43 Merge pull request #26165 from open-craft/raul/tsd-xblock_runtime_v2_ephemeral_data_cache
[TSD] adds annotations for XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE
2021-01-26 13:04:03 -05:00
Raul Gallegos
7bae76b093 improves description for XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE 2021-01-26 12:10:38 -05:00
Raul Gallegos
9d506ca5a6 adds annotations for XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE 2021-01-26 12:10:38 -05:00
alangsto
7f8cb8e616 Updated proctoring version (#26173) 2021-01-26 11:41:56 -05:00
Régis Behmo
5f8a2952e9 Fix ERROR_ON_DEPRECATED_EDX_PLATFORM_IMPORTS code annotation
This annotation was causing a linting failure, and a TypeError down the road in
the feature toggle report processing step by
edx-toggles/scripts/feature_toggle_report.py.
2021-01-26 14:25:49 +01:00
Awais Jibran
eeed906017 Merge pull request #25994 from edx/aj/bulk-email-provide-logo-from-bkend
Provide logo URL from the backend
2021-01-26 15:02:56 +05:00
Usama Sadiq
6d403698d1 Merge pull request #26166 from edx/jenkins/upgrade-python-requirements-70cc6d8
Python Requirements Update
2021-01-26 14:44:33 +05:00
Ali Akbar
4537aa6124 Merge pull request #26022 from edx/aakbar/PROD-2218
disable xsslint
2021-01-26 14:31:19 +05:00
Saad Yousaf
78adfc6c6c [TNL-7803] - Add text to new Edge logo (#26097)
* edge logo

* Refactored code

* Refactored code

Co-authored-by: Asad <asadazam93@gmail.com>
2021-01-26 14:14:54 +05:00
edX requirements bot
19b531596d Updating Python Requirements 2021-01-25 23:55:14 -05:00
Michael Roytman
70cc6d8608 Merge pull request #26160 from edx/mroytman/update-edx-proctoring-version-2.6.1
update version of edx-proctoring library to 2.6.1
2021-01-25 15:44:16 -05:00
Christie Rice
32e0eb2edc MICROBA-921 Standardize imports within the certificates app for consistency (#26131) 2021-01-25 15:29:42 -05:00
Robert Raposa
99e09a1dd8 Merge pull request #26161 from edx/robrap/docathon-annotate-capture-cookie-sizes
[TSD] annotate cookie monitoring toggle
2021-01-25 15:21:14 -05:00
Christie Rice
8888f27d29 MICROBA-921 Fix typos (#26132)
* MICROBA-921 fix typos

* Fix quality
2021-01-25 15:05:22 -05:00
Robert Raposa
cf626667d6 annotate cookie monitoring toggle
* Annotate cookie monitoring toggle and settings.
* Refactor to replace LegacyWaffleFlag.
2021-01-25 14:42:44 -05:00
Robert Raposa
c946b76aa2 Merge pull request #26159 from open-craft/raul/tsd-xblock_field_data_wrappers
[TSD] adds settings annotations for XBLOCK_FIELD_DATA_WRAPPERS
2021-01-25 14:40:56 -05:00
Feanil Patel
c5913a58d5 Add an ADR about secret key usage. (#26146)
Add an ADR about secret key usage.

Don't use secret keys for use cases which would result in breakage upon
rotation and which might slow down the act of rotation.
2021-01-25 13:35:49 -05:00
Michael Roytman
fd22dec067 update version of edx-proctoring library to 2.6.1 2021-01-25 13:23:50 -05:00
Usama Sadiq
8ff0269fb5 Merge pull request #26157 from edx/testeng/bokchoy_auto_cache_update_11f54215ae1688b61955053e6c6800362ab1315e
Bokchoy Testing DB Cache update
2021-01-25 23:19:07 +05:00
Raul Gallegos
b9922325ad adds settings annotations for XBLOCK_FIELD_DATA_WRAPPERS 2021-01-25 12:52:50 -05:00
Michael Roytman
0912b44254 Merge pull request #26147 from edx/mroytman/MST-545-pass-proctoring-improvements-toggle-edx-proctoring
pass value of EXAM_RESUME_PROCTORING_IMPROVEMENTS feature toggle to ed…
2021-01-25 12:21:55 -05:00
Carla Duarte
f03797a882 Merge pull request #26158 from edx/ciduarte/AA-568
AA-568: dates widget styling
2021-01-25 11:15:14 -05:00
Carla Duarte
878f9a3064 AA-568: dates widget styling 2021-01-25 10:51:20 -05:00
edX cache uploader bot
feab79fc73 Updating Bokchoy testing database cache 2021-01-25 10:37:56 -05:00
Bianca Severino
fdee99c459 Merge pull request #26088 from edx/bseverino/contentstore-service
[MST-543] Allow InstructorService to retrieve proctoring escalation email
2021-01-25 10:33:18 -05:00
Bianca Severino
c95dc59356 Add function to InstructorService to retrieve proctoring_escalation_email 2021-01-25 10:05:27 -05:00
Michael Roytman
71cc2e18e5 pass value of EXAM_RESUME_PROCTORING_IMPROVEMENTS feature toggle to edx-proctoring Javascript via the student-proctored-exam-container div 2021-01-25 09:59:44 -05:00
Alex Dusenbery
135e9acf5f Update edx-enterprise to 3.17.11 and edx-rbac to 1.4.1; Adds an optional applies_to_all_contexts field to the SystemWideRoleAssignment model. 2021-01-25 09:51:48 -05:00
Robert Raposa
2de62ccf3a Merge pull request #26152 from regisb/regisb/enable-annotation-linting
Enable annotation linting with edx-lint
2021-01-25 08:54:41 -05:00
Syed Muhammad Dawoud Sheraz Ali
4a2a6c04be Merge pull request #24800 from regisb/regisb/fix-transcript-upload-to-s3
Fix TypeError during transcript upload to S3
2021-01-25 17:20:04 +05:00
Régis Behmo
97399cf97c Fix TypeError during transcript upload to S3
On a platform that is configured to upload video transcripts to S3
(`DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"`),
uploads from the studio fail with a TypeError: "Unicode-objects must be
encoded before hashing"

A full stacktrace of the issue can be found here:
https://sentry.overhang.io/share/issue/2249b6f67d794c7e986cc288758f4ebe/

This error is triggered by md5 hashing in the botocore library, which
itself is used by the S3Boto3Storage storage class. This error does not
occur with filesystem-based uploads because it does not perform checksum
verification. The reason why this error would not occur on edx.org is
unknown. Similar issues were already fixed from edxval.

To address this issue, we encode the transcript file content prior to
sending it to s3.
2021-01-25 12:23:31 +01:00
Régis Behmo
f140cc0f15 Enable annotation linting with edx-lint
We upgrade edx-lint to use the latest feature toggle and annotation custom
linter. Note that we do not yet make use of code annotation linting, typically
run with `code_annotations --lint ...`.

Note that we also fix new linting errors detected by the new checkers.
2021-01-25 10:31:24 +01:00
Ahtisham Shahid
ed1156a690 Improved traces for new relic in CMS dashboard (#26126)
* Improved traces for new relic in cms dashboard
2021-01-25 14:15:54 +05:00
Usama Sadiq
5a09786cf3 Merge pull request #26142 from edx/testeng/bokchoy_auto_cache_update_cf1e6aeb39c0a811897f5ef92c7f5a34b83afa52
Bokchoy Testing DB Cache update
2021-01-23 21:18:13 +05:00
edX cache uploader bot
e5ebd2077d Updating Bokchoy testing database cache 2021-01-22 10:08:31 -05:00
David Ormsbee
a2fc100ebc Merge pull request #26135 from open-craft/libraries-v2-anon-ids-shim-fix
[MNG-1904] Fix: update new runtime's runtime.anonymous_student_id to store in DB
2021-01-22 10:03:42 -05:00