Commit Graph

60804 Commits

Author SHA1 Message Date
Michael Terry
299cd981e5 feat: enable using learning sequence outlines by default
This drops the learning_sequences.use_for_outlines waffle flag,
enabling using learning sequence outlines unconditionally.

(Note that Learning sequences still don't support legacy keys.)

AA-1040
2022-01-25 12:40:29 -05:00
Tim McCormack
ddc55483da Merge pull request #29768 from openedx/timmc/strict-by-default
feat: Enable ENFORCE_SAFE_SESSIONS by default
2022-01-25 17:19:11 +00:00
Awais Qureshi
c66498db36 test: Fixed test failures due to randomization. (#29816)
* test: Fixed test failures due to randomization.
2022-01-25 22:13:57 +05:00
Tim McCormack
9827a077aa feat: Enable ENFORCE_SAFE_SESSIONS by default; improve docs
This toggle has been shown to work, so enable by default. Will need to be
documented in release notes for deployers.
2022-01-25 16:03:54 +00:00
Tim McCormack
fb1ad76e65 fix: Exempt LTI in safe-sessions enforcement
This LTI call was failing in unit tests when `ENFORCE_SAFE_SESSIONS` was
enabled. I'm not sure why we didn't see failures in production when the
toggle was enabled in config.
2022-01-25 16:03:54 +00:00
Tim McCormack
4624bb7c3e fix: Prevent SafeSessions false alarm in course outline alt-masquerading
The course outline view has a way for a staff user to make a request as if
they are another user, not just by using the masquerade mechanism but also
by setting a request parameter. This can result in false positives in the
safe-sessions middleware, and if `ENFORCE_SAFE_SESSIONS` is enabled the
responses will be 401 errors.

The fix here is to do the same thing that masquerading does in setting a
`real_user` property on the new user object, which the safe-sessions
middleware then undoes (restoring the request.user) before determing
whether there's a mismatch.

(Without this fix, enabling `ENFORCE_SAFE_SESSIONS` also causes some tests
in `test_views.py` to fail.)
2022-01-25 16:03:54 +00:00
Tim McCormack
e6536d0d0e test: Stop sharing API client between users in unit tests
Using the same Client or APIClient instance for multiple users, where
one user has an active session and the other is making an
Authorization header call, results in a Safe Sessions violation.

By using separate clients for different test users, we avoid this
violation, allowing `ENFORCE_SAFE_SESSIONS` to be enabled by default.
2022-01-25 16:03:54 +00:00
Tim McCormack
7fc20e69f4 feat: Allow safe-session exemption even for exceptions
Change `mark_user_change_as_expected` to no longer take the response object
and instead convey the expected-change information via RequestCache.
This requires edx-django-utils 4.4.2, which fixes the bug where
RequestCache was cleared in the exception phase.

Also, no longer mark `ENFORCE_SAFE_SESSIONS` toggle as
temporary. We'll want it as an opt-out.

I was tempted to take this opportunity to move any existing
`mark_user_change_as_expected` calls to be closer to where the actual
change request.user occurs, reducing risk of both false positives and false
negatives, but it would be better to do that one at a time in case a move
breaks something. (Ideally it would be called right after any
`django.contrib.auth` `login` or `logout` call; previously, we were
constrained by having to make the call after a response object had been
created.) These changes can be made later if it becomes necessary.
2022-01-25 16:03:54 +00:00
Dillon Dumesnil
a3c65012af Merge pull request #29818 from openedx/ddumesnil/fix-discount-override-aa-1191
fix: Include course key when checking enabled for COURSEWARE_MFE_MILE…
2022-01-25 06:44:48 -08:00
Dillon Dumesnil
e05122a437 fix: Include course key when checking enabled for COURSEWARE_MFE_MILESTONES_STREAK_DISCOUNT
AA-1191
2022-01-25 09:21:10 -05:00
Michael Terry
a54a7d5605 Merge pull request #29812 from openedx/mikix/enroll-fix-for-staff
fix: don't show broken enroll link for staff on invite courses
2022-01-25 09:00:12 -05:00
edX requirements bot
f4a807572e chore: Updating Python Requirements (#29815) 2022-01-25 12:09:08 +05:00
Michael Terry
44e799f60d fix: don't show broken enroll link for staff on invite courses
Non-enrolled staff users were being shown enroll links for courses
that you can't self-enroll for (masters-only, invitation-only, etc).

This fixes the outline page to ignore staff status for that check.

AA-1164
2022-01-24 16:14:14 -05:00
María Fernanda Magallanes
3eea5d9337 fix: unicode submission history (#29338)
Co-authored-by: Constanza Abarca <costi.abarca@gmail.com>
2022-01-24 15:04:58 +00:00
Zainab Amir
6a8585a356 feat: update save_for_later event name (#29811) 2022-01-24 16:43:33 +05:00
Sarina Canelake
36093582ad Merge pull request #29462 from youpsla/youpsla-patch-1
Fix broken link to developer stack in README.rst
2022-01-21 18:04:43 -05:00
Ned Batchelder
cb9fada0bf docs(pr-automerge-open-release): use better description 2022-01-21 14:02:11 -08:00
Simon Chen
895cc10c1b fix: do not validate proctoring_provider if proctoring is disabled (#29803)
Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
2022-01-21 12:45:43 -05:00
Ned Batchelder
1a894c578d build: use the reusable pr-automerge-open-release workflow 2022-01-21 09:39:52 -08:00
Alex Dusenbery
22d3e0ec73 fix: enterprise 3.38.5 - link_learners errors on empty payload
Deploys https://github.com/openedx/edx-enterprise/pull/1442
2022-01-21 11:42:29 -05:00
Carlos Muniz
7f2495ddd4 Merge pull request #29804 from openedx/Carlos-Muniz/temp-constraint
temp: Add a constraint on openedx-calc v2.0.1
2022-01-21 10:33:48 -05:00
Ahtisham Shahid
cc6da107a1 feat: Added zoom lti to programs page (#29799)
* feat: Added zoom LTI to the programs page
2022-01-21 20:14:24 +05:00
Carlos Muniz
653870da53 temp: Add a constraint on openedx-calc v2.0.1
`symmath` has been added to `openedx-calc v3.0.0`. Prior to removing
`symmath` from `edx-platform`, a constraint needs to be put on using the
old version of `openedx-calc` so that everything plays nicely.
2022-01-21 10:08:40 -05:00
Awais Ansari
62b7db64bc chore: update lti providers video link (#29802) 2022-01-21 20:00:24 +05:00
John Nagro
ea7323d4a9 fix: release edx-enterprise 3.38.4 (#29801)
- cornerstone missing completion events

ENT-5255
2022-01-21 09:30:01 -05:00
Mubbshar Anwar
615658b18e fix: update key name for save/program api (#29798)
update key name from uuid to program_uuid for save/program/ api.
2022-01-21 14:13:48 +05:00
Ahtisham Shahid
e63fb2e01a feat: Created API for programs live page zoom lti (#29763)
* feat: Created API for programs live page zoom lti

* refactor: Merged similar code by inheritance

* refactor: removed duplicates and resolved tight coupling issues

* refactor: Decoupled views
2022-01-21 12:26:47 +05:00
Muhammad Soban Javed
4e22a38ca5 test: run openedx and common tests with both lms and cms settings (#29676) 2022-01-21 11:58:57 +05:00
Braden MacDonald
003bbe3482 Merge pull request #29517 from open-craft/jill/lx-2365
[LX-2365] allows XBlock API users to optionally use LabXchange block types
2022-01-20 09:41:52 -08:00
John Nagro
07645c2e94 fix: edx-enterprise 3.38.3 (#29790)
- more logging to debug missing completion records

ENT-5255
2022-01-20 09:06:35 -05:00
Awais Jibran
40bb23501a Revert "refactor: Adding some debug logs. (#29639)" (#29791)
This reverts commit 80e12af963.
2022-01-20 12:47:19 +05:00
Jillian Vogel
ef8f841ac2 temp: let XBlock API users optionally use LabXchange block types
when fetching block metadata and rendering blocks while maintaining the
original usage IDs/OLX.

This change is marked temporary because LabXchange need it during the
transition to a custom runtime, but it's not really useful to anyone
else. We will revert this change with a future PR.
2022-01-20 10:35:59 +10:30
Jillian Vogel
5dedba8c8e temp: adds mako templates and dirs to Studio test env
The content library tests were failing to locate templates when
rendering XBlocks, but since these tests are skipped in CI, the issue
went undetected.

This fix is marked temporary because a proper fix involves adding
lms/templates to the cms.envs.test MAKO_TEMPLATE_DIRS_BASE list. This
was tried, and caused unrelated tests to fail, and so we took this
approach instead. See PR for full details.
2022-01-20 10:35:59 +10:30
Bianca Severino
d19c90246d Merge pull request #29788 from openedx/bseverino/honor-code-exclude-masters
[MST-1312] Exclude Master's enrollments from Honor Code check
2022-01-19 15:46:17 -05:00
Bianca Severino
e848935000 fix: exclude masters from honor code check 2022-01-19 15:11:41 -05:00
Simon Chen
f315fcc3ea feat: upgrade lti-consumer-xblock library to include the OSPR-6283 (#29786)
The lti-consumer-xblock library now have custom parameters template substitution capability

Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
2022-01-19 13:26:35 -05:00
Sarina Canelake
bebe1e9a6b Merge pull request #29775 from jramnai/fix-coursegraph-readme
docs: nit for CourseGraph README file
2022-01-19 13:12:19 -05:00
Long Lin
9514cb5732 feat: add enterprise course enrollments data to enrollments for support 2022-01-19 10:14:13 -05:00
ansabgillani
8610856a30 feat: Program Inspectors API View 2022-01-19 14:18:06 +05:00
Awais Qureshi
573c841bf6 test: running migrations on mysql57 on ubuntu20. (#29770)
* chore: Running migrations check on mysql57 (ubuntu20).
2022-01-19 11:23:07 +05:00
Kshitij Sobti
8fa962b1c8 feat: Add Studio UI to edit discussions toggle [TNL-7349] (#29720)
Adds a UI in studio to toggle discussions for a units if a course is using a discussion provider that supports it and per-unit discussion control is enabled.

Co-authored-by: Kshitij Sobti <kshitij@opencraft.com

Co-authored-by: Agrendalath <piotr@surowiec.it>
2022-01-19 11:21:32 +05:00
Kshitij Sobti
d5c9d61a98 feat: Allow fetching details of inactive providers (#29511) 2022-01-19 11:18:16 +05:00
Tim McCormack
05704eea39 fix: When xsslint fails with error, list which file it failed on (#29780)
In my case, xsslint was failing with a UnicodeDecodeError -- having this
try/except block helped me discover that it was reading files in my
virtualenv.
2022-01-18 20:24:49 +00:00
Dillon Dumesnil
e458c7eb36 Merge pull request #29747 from openedx/ddumesnil/goal-celly-modal-aa-1138
feat: AA-1138: Adds ability to have Weekly Goal Celebration Modal in MFE

Adds celebrate_weekly_goal to the CourseEnrollmentCelebration and includes logic
for only returning True if the db field is true and the learner has hit their goal
this week. Adds ability to set to false via the API already used by the frontend.
Default db value is False, but all new enrollments after merge will be set to True.
2022-01-18 06:13:43 -08:00
John Nagro
d94e2be670 fix: edx-enterprise 3.38.2 (#29767)
- django admin fixes
2022-01-18 08:51:07 -05:00
Mubbshar Anwar
4c0f9ddc9a feat: save program (#29697)
save for later program
VAN-792
2022-01-18 13:49:10 +05:00
edX requirements bot
4e835c61b2 chore: Updating Python Requirements (#29776) 2022-01-18 11:32:01 +05:00
Kshitij Sobti
2bbf447ab5 feat: banner for staff users that displays a message for testing the new MFE experience (#29698)
Adds a new banner allowing staff users to preview and switch between the new and legacy forum experience.
2022-01-18 11:18:59 +05:00
Giovanni Cimolin da Silva
5bd86ba583 Merge pull request #29635 from open-craft/chris/LX-2398
Feat: Wrap the choice label with a <div> on choicegroup.html
2022-01-17 19:05:34 -03:00
Jayram Nai
d942c91b01 docs: nit for coursegraph README file 2022-01-17 19:41:11 +05:30