Commit Graph

23525 Commits

Author SHA1 Message Date
Ahtisham Shahid
2ac33f8113 feat: created ADR for zoom lti configuration (#29748) 2022-01-12 12:04:18 +05:00
Ahtisham Shahid
f517cb571f Zoom lti pro configurations ADR (#29694)
* feat: Zoom lti pro configurations ADR
2022-01-12 10:55:40 +05:00
Matt Hughes
81a9ecb9e7 fix: wrong slicing in history records of grade overrides in gradeb'k
JIRA:AU-468
2022-01-11 16:30:59 -05:00
Tim McCormack
262c44784b chore: Update 15 repos in code owner mappings (tCRIL migration) (#29745)
These repos have moved from edx to openedx org and so their URLs need to be
updated in order for the script to match them up.
2022-01-11 17:04:57 +00:00
Chris Deery
dddcadb706 feat: [AA-922] remove deprecated Goals backend (#29705)
* feat: [AA-922] remove deprecated Goals backend

While the new Weekly Learning Goals were being rolled out, the previous goal setting feature still existed behind a waffle flag.
The Weekly Learning Goals now become the one and only learning goal feature.

This change does not remove the old goals feature from the legacy backend, and therefore it does not remove any of the data that was used by the old goals feature.
The goals are now driven by the single pre-existing Waffle flag ENABLE_COURSE_GOALS

 - Removed COURSE_GOALS_NUMBER_OF_DAYS_GOALS waffle flag, replacing it where needed with the existing ENABLE_COURSE_GOALS

 - modified the API to remove the old goal_options, keeping the redundant weekly_learning_goal_enabled flag

 - updated tests

 - refactor tests to fit 50 line limit in lint
2022-01-11 09:02:03 -05:00
Kyle McCormick
29ed3d911a build: expose working openedx/lms and openedx/cms docker images (#29549)
This commits prepares edx-platform's experimental Dockerfile
for optional use in devstack. Presently, the image built by this
Dockerfile isn't used anywhere.

Notable changes:
* Drop the openedx/edx-platform image name in favor of
  openedx/lms and openedx/cms.
* Drop the newrelic stages and tags.
* Create openedx/lms-dev and openedx/cms-dev image
  variants which use Django devserver, install dev
  requirements, and specify devstack Django settings.
* Add config files at (lms,cms)/envs/devstack-experimental.yml,
  extracted from the existing edxapp docker image.
* Adds three new scripts, each of which replaces an Ansible
  or Paver-supported function with a pure bash + Django
  management command implementation.
2022-01-10 11:20:10 -05:00
Abdurrehman
72b9d0962c docs: adding annotations for few rate limit keys (#29545) 2022-01-07 11:30:03 -05:00
Azan Bin Zahid
a5dfbd5795 Merge pull request #29607 from edx/azan/PROD-2437
feat: add onboarding status wrapper
2022-01-07 18:07:23 +05:00
Robert Raposa
d0259ff38e fix: enhance safe session monitoring (#29681)
* add custom attribute for list of user ids on mismatch.
* log request header for all mismatched users for all
requests for N seconds after the mismatch is found, if
LOG_REQUEST_USER_CHANGE_HEADERS is enabled. See toggle
docs for more details.

ARCHBOM-1940
2022-01-06 12:15:31 -05:00
Azan Bin Zahid
5c886a0075 feat: add onboarding status wrapper 2022-01-06 21:40:15 +05:00
Julia Eskew
89b3efc982 fix: Email sent via ACE cannot use Braze as a mail-delivery backend unless
a valid LMS user ID is supplied. If Braze cannot be used, AWS SES is used
instead. However, sometimes the SES score can prevent email from being delivered.
Make a best effort in every case to obtain a user ID and send it along with
the email to be sent by ACE and Braze.

TNL-9417
2022-01-06 10:49:01 -05:00
Jawayria
7f5b4a6a47 chore: removed 'wrong-import-order' from disabled imports (#29365)
* chore: removed 'wrong-import-order' from disabled imports
2022-01-06 19:14:51 +05:00
Kshitij Sobti
b5f045dc5f fix: update discussions MFE path [BD-38] [TNL-9347] (#29691)
* fix: update discussiosn MFE path

* squash!: fix tests
2022-01-06 18:34:53 +05:00
Julia Eskew
c3f480902a fix: Remove token which disabled different origin subframe dialog suppression
for Chrome version 92. A permanent solution to presenting a dialog to a user
in an LTI block was done in TNL-9231.
2022-01-05 10:04:01 -05:00
Matthew Piatetsky
f6c8a32213 fix: add some whitespace fixes for goal reminder email on apple mobile mail (#29708) 2022-01-05 09:46:35 -05:00
alangsto
84754b65d1 feat: update cert language if integrity signature is enabled (#29618)
MST-1190. If the integrity signature flag has been enabled for a course, update the verified certificate description. The flag value should also be accessible to cert templates, so it has been added to the context.
2022-01-05 09:31:03 -05:00
ansabgillani
21581748ef feat: Add SAMLProvidersWithOrg for Support View MFEs 2022-01-05 13:27:28 +05:00
Felipe Trzaskowski
c0e19ec165 Add new discussions API endpoints to retrieve comments and threads from an user [BD-38] [TNL-8796] [BB-4969] (#29137)
* feat: add api mapping to get comments by course+user

fix: merge the new user comments API by overloading the thread comments API

fix: handle endorsements and fix broken tests

fix: improve the view documentation

fix: unused imports

fix: restrict flagged filter to privileged users

fix: validate course_id properly

* fix: add docstring to the retrieve_all method
2022-01-04 11:21:47 +05:00
Waheed Ahmed
9aa0cc44a2 chore: handle save-for-later PII (#29696)
Added PII annotations for email fields in save-for-later models and
also added user retirement signal receiver to remove related objects.
2021-12-31 11:31:53 +05:00
DawoudSheraz
f970ab4566 feat: add admin-only/self accessible verified name field in accounts api 2021-12-29 14:51:10 +05:00
edX Transifex Bot
3cbc5b9cdc chore(i18n): update translations 2021-12-26 16:35:34 -05:00
Kyle McCormick
5b580d2198 docs: remove outdated reference to courseware_mfe opt-in (#29678)
Formerly, the 'courseware.courseware_mfe' Waffle flag was
required in order use the new Learning-MFE-based courseware
frontend. However, the Learning-MFE-based frontend has since
become the default, with the 'courseware.use_legacy_frontend'
flag instead serving as an opt-out.

The LEARNING_MICROFRONTEND_URL Django setting annotation
erroneously still referenced the old 'courseware.courseware_mfe'
flag. This commit removes the outdated reference.
2021-12-23 16:35:35 -05:00
Simon Chen
c85be3fe56 fix: User should not be shown ID Verification prompt on progress page if disabled (#29662)
Co-authored-by: Simon Chen <schen@edx-c02fw0guml85.lan>
2021-12-22 12:15:09 -05:00
Chris Deery
6d08aa23b4 fix: [AA-1076] add override info to progress API (#29585)
* fix: [AA-1076] add override info to progress API

- Indicate if a grade has been overridden in the progress tab.
2021-12-21 14:41:25 -05:00
Robert Raposa
0dd1f9b7e4 chore: update edx-drf-extensions repo URL (moved to openedx org) (#29660)
The `edx-drf-extensions` repo was moved from the edx org to
the openedx org, and this change captures that move.
2021-12-21 13:19:01 -05:00
Waheed Ahmed
d0adfdc079 fix: save for later urls issue (#29658) 2021-12-21 20:02:05 +05:00
Simon Chen
313afd70ae fix: update program enrollments to be case insensitive on external_user_key (#29646)
UTAsutin is an example partner who would use mixed casing on their external_user_key references for program enrollment upload and matriculation. Update the system to be case insensitive on external_user_key

Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2021-12-21 09:20:16 -05:00
AsadAzam
7fba083a49 fix: added staff check for discussions iframe (#29617) 2021-12-21 14:46:51 +05:00
Waheed Ahmed
c696469734 fix: save for later API ratelimit issue (#29650) 2021-12-21 14:05:55 +05:00
Jawayria
b33996d24e chore: Applied lint-amnesty on lms/djangoapps/grades (#29400) 2021-12-21 13:37:15 +05:00
Jawayria
309669f974 chore: Applied lint-amnesty on lms/djangoapps/instructor (#29399) 2021-12-21 13:37:04 +05:00
Jawayria
d0fbde8973 chore: Applied lint-amnesty on lms/djangoapps (#29395) 2021-12-21 13:36:50 +05:00
Jawayria
0d63afe840 chore: Applied lint-amnesty on lms/djangoapps (#29394) 2021-12-21 13:36:39 +05:00
Jawayria
f166e4a1c7 chore: Applied lint-amnesty on lms/{envs, lib} (#29392) 2021-12-21 13:36:26 +05:00
Mohammad Ahtasham ul Hassan
139b46e611 fix: fixed RemovedInDjango40 warnings (#29588) 2021-12-21 12:44:50 +05:00
Phillip Shiu
3c17874b9d fix: [REV-2492] remove graded content unfbe bullet (#29645) 2021-12-20 15:57:16 -05:00
Tim McCormack
bbc2a6d0cb chore: Update organizations repo URL (moved to openedx org) (#29647) 2021-12-20 18:19:43 +00:00
Michael Terry
4418c66171 feat: add masquerading support to learning sequences
Previously, it had some basic manual masquerading by calling the
endpoint with ?user=mytestuser. But this adds standard session
masquerading support to the endpoint as well.

This support is limited by LS's own partition group support. It
only looks at the enrollment track partition currently. Further
FBE and cohort partition support will come later.

But this commit opens up normal session masquerading for:
- Generic student
- Specific student
- Enrollment track

AA-1151
2021-12-20 11:14:07 -05:00
Jillian Vogel
2ef69d513f refactor: removes xqueue_callback_url_prefix argument
from the lms get_module_for_descriptor and related methods.

This prefix was previously inferred from the request's base URL and
passed through several methods to reach the XQueueService creation.
But the request base URL always matches the LMS_ROOT_URL (or the preview
URL), so this change simply uses that setting instead.
2021-12-20 15:41:42 +01:00
Jillian Vogel
1974bacadd refactor: deprecates runtime.xqueue in favor of the XQueueService
* Deprecates ModuleSystem.xqueue property
* Adds new XQueueService to provide the deprecated property values to the LMS runtime
  (Studio does not need the XQueueService.)
* Adds tests for new service and updates the ModuleSystemShim tests in LMS and Studio
* Fixes existing tests.
2021-12-20 15:41:42 +01:00
Jillian Vogel
f828d89feb refactor: use UserService to remove deprecation warnings
from code and tests.
2021-12-20 15:41:25 +01:00
Jillian Vogel
e378e42bfa refactor: deprecate user-related ModuleSystem attributes
Deprecates these ModuleSystem attributes in favor of the user service:

* user_location
* get_real_user
* get_user_role

Related changes:

* Stores the user location into DjangoXBlockUserService's optional attribute as request_country_code
* Uses the student model's user_by_anonymous_it to fetch the (cached) real user
* Updates affected tests
2021-12-20 15:41:25 +01:00
Jawayria
829065128d Merge pull request #29393 from edx/jawayria/bom-2606-20
chore: Applied lint-amnesty on lms/djangoapps
2021-12-20 18:59:39 +05:00
Jawayria
91f80b444e Merge pull request #29401 from edx/jawayria/bom-2606-14
chore: Applied lint-amnesty on lms/djangoapps
2021-12-20 18:59:11 +05:00
Jawayria
75187e6a12 Merge pull request #29417 from edx/jawayria/bom-2606-18
chore: Applied lint-amnesty on lms/djangoapps
2021-12-20 18:58:58 +05:00
Jawayria
6d8a77ad15 Merge pull request #29402 from edx/jawayria/bom-2606-13
chore: Applied lint-amnesty on lms/djangoapps/discussion
2021-12-20 18:58:25 +05:00
Jawayria
949c7d8892 Merge pull request #29383 from edx/jawayria/bom-2606-11
chore: Applied lint-amnesty on lms/djangoapps/{course_home_api, course_wiki}
2021-12-20 18:57:54 +05:00
Awais Jibran
80e12af963 refactor: Adding some debug logs. (#29639) 2021-12-20 18:26:10 +05:00
Jawayria
332f0f1ea7 chore: Applied lint-amnesty on lms/djangoapps/discussion 2021-12-20 16:25:03 +05:00
Jawayria
846c9e95dc chore: Applied lint-amnesty on lms/djangoapps/{course_home_api, course_wiki} 2021-12-20 16:14:49 +05:00