Commit Graph

59446 Commits

Author SHA1 Message Date
Michael Terry
beb84bb4cb chore: remove unused serialized field 2021-07-27 09:00:04 -04:00
Awais Qureshi
8fe24a4478 Merge pull request #28282 from edx/removing-python_2_unicode
chore: Django3 has removed python_2_unicode_compatible.
2021-07-27 17:11:02 +05:00
Awais Qureshi
2e439e9a47 Merge pull request #28284 from edx/removing-python_2_unicode-common
chore: Django3 has removed python_2_unicode_compatible.
2021-07-27 17:10:46 +05:00
Awais Qureshi
e5cbeeb86a chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-27 11:55:00 +05:00
Awais Qureshi
8a4c0b74e6 chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-26 23:56:45 +05:00
Michael Terry
04babaa6c2 Merge pull request #28280 from edx/mikix/override-notes
feat: add note field to course waffle overrides
2021-07-26 14:48:35 -04:00
Awais Qureshi
b58832c8a6 chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-26 23:43:54 +05:00
Thomas Tracy
666f1dadb8 [fix] Fix certificate available date sync (#28275)
* [fix] Fix certificate available date sync

We were syncing the course available date to every course in
credentials. Since credentials doesn't understand "self-paced" courses,
or course end behaviors, some certificates were time gated incorrectly.
This check make sure to check if the course is not self-paced, and has a
CDB of 'end' before syncing the CA date.
2021-07-26 14:30:06 -04:00
Michael Terry
0170a0e6f0 feat: add note field to course waffle overrides
It's often very useful to note the reason we override a waffle.
Who asked for it and why - is it temporary until a feature is
completed or a complete opt-out of the feature itself, etc.

Now there's a text field to leave such comments for your future
self, much like waffle flags themselves.
2021-07-26 14:15:06 -04:00
Diana Huang
139e7ba48b feat: Allow language preferences to be shared. (#28277)
We are planning on limiting session cookies for LMS, which
will mean that under the old cookie domain, MFEs and other
IDAs would not have access to the language preference of a user.

This moves language preference cookies to use a different setting,
which means that this cookie can be shared.
2021-07-26 13:36:55 -04:00
Michael Terry
789edbe555 Merge pull request #28256 from edx/mikix/course-home-access
feat: send course access error along to course home MFE
2021-07-26 13:34:54 -04:00
Andrew Shultz
1df4f99005 Merge pull request #28276 from edx/ashultz0/proc-bump-3220
chore: update edx-proctoring to 3.22.0
2021-07-26 13:08:25 -04:00
taliaedX
1826741c26 Merge pull request #28265 from edx/trhodes/enterprise3.27.8
chore: update edx-enterprise
2021-07-26 13:02:35 -04:00
Talia Rhodes
ac49ef65fd chore: update edx-enterprise 2021-07-26 12:09:48 -04:00
Andy Shultz
2c3597291c chore: update edx-proctoring to 3.22.0
This completes the removal of unused fields in exam attempt,
so the migration test skip is no longer necessary.
2021-07-26 11:40:34 -04:00
Jansen Kantor
61ed21ae41 chore(bump ora to 3.6.11) (#28272) 2021-07-26 11:13:37 -04:00
Justin Hynes
49bcdfe481 Merge pull request #28245 from edx/jhynes/microba-1227_cleanup
fix: remove disabled v1 course certificate queue code
2021-07-26 10:31:27 -04:00
Manjinder Singh
19b45069fa feat: adding more parameters (#28264)
* fix: adding more parameters for cookie monitoring

Added: cookies_total_num, cookies_unaccounted_size. 
  -Both are to help us gauge how many cookies we are not collecting data for.
Increased: # of cookies data collected
2021-07-26 09:11:44 -04:00
João Cabrita
0879568023 feat(discussions): Add messages field to provider descriptions
This adds an `messages` field containing messages relevant
for configuring the provider to the DiscussionsConfigurationView.

Related tickets:
* [TNL-8339](https://openedx.atlassian.net/browse/TNL-8339)
* [TNL-8523](https://openedx.atlassian.net/browse/TNL-8523)
* [BB-4249 (OpenCraft Internal)](https://tasks.opencraft.com/browse/BB-4249)
2021-07-26 13:51:23 +05:00
Binod Pant
cbcef73ec4 feat: Upgrade to 3.27.7 edx-enterprise ENT-4746 (#28263)
ENT-4746
2021-07-25 23:27:36 -04:00
edX cache uploader bot
665b32e477 Updating Bokchoy testing database cache (#28262) 2021-07-24 14:56:12 +05:00
taliaedX
3f59de2b80 Merge pull request #28261 from edx/trhodes/ent-1366
feat: Third Party Auth - Boolean Enable Field for Enterprise Providers
2021-07-23 15:00:15 -04:00
Talia
45772158bc feat: add boolean field to third_party_auth to be used to remove providers from enterprise selection 2021-07-23 14:17:33 -04:00
Michael Terry
29159891c3 feat: send course access error along to course home MFE
We previously only sent it to the courseware MFE. Also unify the
naming of this access error to 'course_access' in courseware and
course home APIs.
2021-07-23 14:01:58 -04:00
Andrew Shultz
27ee8aee4a Merge pull request #28255 from edx/ashultz0/proc-bump-3206
chore: update edx-proctoring to 3.20.6
2021-07-23 09:58:32 -04:00
Usama Sadiq
1795008686 fix: Removed pylint constraint (#28222)
Disabled pylint warnings in pylint_tweaks
2021-07-23 18:35:57 +05:00
Usama Sadiq
d729c0f0a5 Fix: Removed unnecessary constraints (#28120)
fix: removed zipp and stevedore constraints
fix: removed kiwisolver and joblib constraints
2021-07-23 11:59:22 +05:00
Tim McCormack
503e3d1d37 test: Fix safe_sessions comments and add pinning test (#28249)
Add pinning test for SafeCookieData values, and update SafeSessions
middleware comments to match code.

Main comment changes:

- Fix description of cookie structure:
    - Specify hash algorithm (SHA256, not "H")
    - Don't try to describe internals of TimestampSigner; description was
      incorrect in several ways: Did not include string delimiters under
      base64 (there's JSON in there); did not include the actual MAC
      portion. Just describe general effect and shape of output.
    - Add missing trailing pipe delimiter in signed data hash input
- Use phrase "intermediate key" rather than the less familiar term "usage
  key"
2021-07-22 21:09:32 +00:00
Andy Shultz
2e0393d098 fix: update platform test that directly creates proctor attempts
Student name field is gone. This test was providing a blank name so nothing
more than delete is needed.

MST-872
2021-07-22 16:44:11 -04:00
Andy Shultz
0fb2cd4dd3 chore: update edx-proctoring to 3.20.6
continuing sequence of DB migration releases
2021-07-22 14:42:14 -04:00
Thomas Tracy
abccf1ee26 [feat] Add enrollment mode to outline API (#28234) 2021-07-22 13:33:14 -04:00
connorhaugh
9d25982fab fix: oblige non-studio-authoring submit settings (#28253)
Problem blocks offer a setting to make users wait a set time between submissions. If a course is not authored in studio, it might not set a value for this setting. Consequently, the problem block must handle the submission_wait_seconds field to be none, so it doesn't break the submitted responses.

These kinds of errors here will prevent learners from submitting any answer, and has for several learners. Adding in this one-line change will prevent future errors without having to change the authoring practices of those ambitious enough to write their courses with import.

This also catches the case that some internal process other than studio might be creating problems with "none" as the setting.

In response to TNL-8234

Testing: hand-testing by importing the following problem xml file within a course and attempting to answer as learner(answer is 10.4).
2021-07-22 12:57:36 -04:00
Justin Hynes
0069bd724f fix: remove disabled v1 course certificate queue code
[MICROBA-1227]
[DEPR-155]

* remove queue.py (and associated unit tests)
* remove references to `queue.py` from functions in api.py (also update unit tests)
2021-07-22 11:03:49 -04:00
Matt Tuchfarber
325629dd25 Merge pull request #28237 from edx/tuchfarber/move_may_certify_2
Move cert display decisions to certificates app
2021-07-22 10:20:13 -04:00
Dillon Dumesnil
f886ced838 Merge pull request #28233 from edx/ddumesnil/hide-content-after-due-progress-aa-912
fix: AA-912: Hide URL after due date if subsection is marked as hide …
2021-07-22 07:17:35 -07:00
Piotr Surowiec
a5d9dd4fb9 fix: hide unavailable sequence title in course breadcrumbs (#28028)
When a sequence title was unavailable for a user (e.g. before starting a timed
exam), the `None` value was displayed in course breadcrumbs. This hides it in
such cases and ensures that a trailing breadcrumb separator is not displayed.
2021-07-22 09:52:25 -04:00
Farhaan Bukhsh
fa5736285e fix: Passwored reset page throwing page not found error (#27982)
Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
2021-07-22 09:51:02 -04:00
Dillon Dumesnil
7dd4f2db99 fix: AA-912: Hide URL after due date if subsection is marked as hide after due
A bug was reported of a learner accessing content that should have been hidden
due to the hide after due setting in Studio by the course team by clicking on
the Progress tab. This takes into account that value and will now hide the URL
on the Progress tab in that scenario.
2021-07-21 17:53:23 -04:00
edX Transifex Bot
fb6ce41478 geoip2: update maxmind geolite country database 2021-07-22 02:09:27 +05:00
Binod Pant
33cdf634b4 refactor: Extract core functionality of enrollment api in a python api to avoid REST calls from edx-enterprise (#28202)
* feat: Refactor out non REST portions of enrollment api from enrollment POST method

For use with edx-enterprise to avoid making REST calls for bulk enrollment and other use cases

ENT-4746

* feat: Remove unused test

Testing is covered by test_views

* refactor: isort

isort fixes

* docs: ADR for why this change

ADR

ENT-4746

* test: Fix test failure by restoring course_id to correct object

* test: Test fix

* refactor: pylint fixes

* refactor: raise from to avoid pylint error

* refactor: Start to work toward a util in enterprise_support instead of refactoring this endpoint

* feat: Add util function in enterprise_support to eventually handle enrollment, only used by bulk enrollment for now

* feat: One more revised idea, this time low risk in edx platform and also helps address enterprise specific flow. testing pending

* feat: syntax and unused constant

* feat: Restore view and add new util function to use in edx-enterprise instead

* feat: breakpoint

* unused import

* feat: don't fail on existing enrollment

* docs: ADR update

* docs: docstring minor update

* test: unit test add_user_to_course_cohort

* refactor: imports

* feat: remove unused error classes

* refactor: lint

* test: Test cases

* test: Two more tests for negative cases

* feat: missing init.py file

* test: Fix tests to use correct user mock

* unused import

* refactor: Review feedback, test fixes, needs rebase now

* feat: rebase changes

* feat: keep audit_log with similar logic as in the view

* refactor: Review feedback, test constant usage
2021-07-21 16:59:45 -04:00
Matt Tuchfarber
d16c9a804c refactor: Move cert code to cert app
The `may_certify` function is used to determine whether a learner should
be able to see that their certificate is ready. It is therefore entirely
in the certificates domain. This remove may_certifiy and
may_certify_for_course from the xmodule and course_overview
apps and into the certificates app. The xmodule may_certify was not called
outside of tests prior to this, and the other's were easily moved.

In order to avoid circular imports, this also moved
certificate_info_for_user out of the model code and into an API
2021-07-21 15:56:19 -04:00
connorhaugh
0d26738fce fix: Prevent Transcripts from Failing Export, Edit (#28242)
Instead of having json errors in transcript acquisition and conversion cause errors, have transcription conversion and acquisition simply return an error message in the transcription which can prompt a change from the user.

Although not uploading a transcript is handled, transcripts can often cause errors in edit, export, and other activities due to json errors. These errors block the entire use of these features, so to allow for reupload, etc, we add an error message instead of transcript and log the event.

In response to [TNL-8539](https://openedx.atlassian.net/secure/RapidBoard.jspa?rapidView=580&projectKey=TNL&modal=detail&selectedIssue=TNL-8539)

Testing: Unit tests coverage is included in the PR. Upload, import, and export of courses with transcriptions is also easily hand-testable. Just create a video in studio, add an irrelevant transcript. Then try to import, export, and edit the problem. Expected behavior is success.
2021-07-21 15:52:54 -04:00
Andrew Shultz
cf1c3c292a Merge pull request #28244 from edx/ashultz0/proc-bump-3202
chore: update edx-proctoring library to 3.20.2
2021-07-21 14:30:27 -04:00
Andy Shultz
4ed0d5bdae chore: update edx-proctoring library to 3.20.2 2021-07-21 13:21:29 -04:00
David Ormsbee
1238e5d1b4 perf: add monitoring for get_course and safe_exec (#28241)
This is to help diagnose performance issues around the SequenceMetadata
API, as part of TNL-8330.
2021-07-21 11:19:10 -04:00
Albert (AJ) St. Aubin
e191d39f59 fix: Corrected issue with request cert showing when user was in mode
that did not generate certs
2021-07-21 11:18:01 -04:00
Bianca Severino
d3a6a82934 Merge pull request #28239 from edx/bseverino/verified-name-waffle-flag
feat: pass verified name flag into user api
2021-07-21 10:05:53 -04:00
Jansen Kantor
32d2e75c88 fix(add teams config service to previewmodulesystem) (#28210)
(AU-48) Team ORAs rely on the Teams Config Service to render both the student_view and studio_view in studio.
We added the service in e0d57fe1a7, but that appears to only provide it in studio_view.
This adds it for student_view.
2021-07-21 09:49:34 -04:00
Jansen Kantor
93e0f3e38a bump ora2 to 3.6.10 (#28156) 2021-07-21 09:49:22 -04:00
Andrew Shultz
b66b1e8719 Merge pull request #28236 from edx/ashultz0/proc-bump-3201
chore: edx-proctoring update to 3.20.1
2021-07-21 09:36:41 -04:00