Commit Graph

61926 Commits

Author SHA1 Message Date
alangsto
8ab34fd918 chore: upgrade edx-proctoring version (#31002) 2022-09-15 10:31:57 -04:00
Attiya Ishaque
795fbbde8c chore: update tests according to is_register_page check (#30986) 2022-09-15 14:42:08 +05:00
Ahtisham Shahid
eca87000c4 Created a edx.forum.thread.locked event (#30964)
* feat: added new discussions event edx.forum.thread.locked
2022-09-15 11:18:32 +05:00
Ahtisham Shahid
889c16533e feat: added new edit reason code (#30984) 2022-09-15 11:17:28 +05:00
Jenkins
0e6b1a334a chore: geoip2: update maxmind geolite country database 2022-09-14 16:51:43 -04:00
Sagirov Evgeniy
42adcaaf4d FC-0001: Remove Persistent Course Grades Flags (#30978)
* feat: revert Fix certificate generation without persistent grades

* feat: Remove Persistent Course Grades Flags

* test: update tests
2022-09-14 14:00:01 -04:00
Leangseu Kim
9530771cad feat: implement related programs for learner home
chore: simplify lms/djangoapps/learner_home/serializers.py

Co-authored-by: Nathan Sprenkle <nsprenkle@users.noreply.github.com>

chore: safety for authoring_organizations
2022-09-14 11:09:05 -04:00
Sagirov Evgeniy
b429e55cac feat!: remove Studio editing for Old Mongo Courses
This removes user-facing Studio edit support for Old Mongo courses
(courses that have a CourseKey of the format {org}/{course}/{run}).
This does not affect our normal courses, which have CourseKeys
starting with "course-v1:".

After this commit:

* Old Mongo courses will continue to appear on the Studio course
  listing page, but are not clickable.
* Any attempt to directly access an Old Mongo course in Studio via URL
  fail with a 404 error.
* Course certificates will still be available for Old Mongo courses.
* Old Mongo courses will continue to be returned by CourseOverviews
  and get_course_summaries() calls.

We decided against removing Old Mongo courses from the listing entirely
because that would require very expensive CourseOverviews query to
filter them out. Making that query more efficient would involve a
database migration to add appropriate indexing, which is something else
that we are looking to avoid. CourseOverviews are used everywhere in
the system, so we want to avoid changing how they work so that we can
minimize risk.

This is part of the Old Mongo Modulestore deprecation effort:
  https://github.com/openedx/public-engineering/issues/62
2022-09-14 10:53:33 -04:00
Kyle McCormick
57a1f58232 refactor!: remove safe_lxml import compatibility hack (#30671)
In the past, safe_lxml was located at ./common/lib/safe_lxml/safe_lxml,
and was imported as so:

  import safe_lxml

Now, safe_lxml is located at ./openedx/core/lib/safe_lxml, and is
imported as so:

  import openedx.core.lib.safe_lxml

We added in a temporary backwards-compatibility hack, in the form
of the module ./safe_lxml/__init__.py, to support the old import
format (with a warning written to the logs).

Enough time has passed that it we feel it is safe to
remove that compatibility hack. After this commit, imports in
the form `import safe_lxml` will raise an ImportError.
2022-09-14 10:07:21 -04:00
Leangseu Kim
49380a00ec chore: rename hasAccess to coursewareAccess 2022-09-14 09:32:10 -04:00
Brian Smith
9262357f1b build: rebuild package-lock.json
The existing `package-lock.json` included `fsevents` which is a macOS specific package.
This was causing errors when running a clean install (`npm ci`) on Linux hosts.
By deleting the existing `package-lock.json` and rebuilding it using `npm install --legacy-peer-deps`
on a Linux host machine, the `fsevents` error is resolved. This has the side-effect of updating
all of the pinned package versions to the latest versions that satisfy our `package.json` requirements.
2022-09-13 15:26:54 -04:00
Kyle McCormick
bacce909f6 build: in CI, use npm clean-install instead of npm install
Packages can be added to package-lock.json that will fail to
install on certain systems. For example, the `fsevents` NPM
package, which only works on macOS, was listed as a requirement
in the file.

`npm install` will happily skip over such packages.
`npm clean-install`, however, will exit with a fatal error.

Throughout several doc pages, we have recently been encouraging
folks to use `clean-install` instead of `install`, because its
strictness makes it more reproducible. To ensure that `clean-install`
is working reliably at any given time, we should use `clean-install`
in our CI pipeline.
2022-09-13 15:26:54 -04:00
Nathan Sprenkle
1673b1d3b9 feat: learner home course provider and grade data (#30959)
* feat: get course provider info

* feat: get grade data

* feat: get course provider for entitlements

* style: run black

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-09-13 12:24:49 -04:00
Kshitij Sobti
6ebc9b3888 feat: Track additional discussion context for better deletion handling (#30140)
Tracks a discussion topics' section and subsection in a new context field so that we have access to that information when the topic's section/subsection/unit has been deleted. This is then used when a topic is deleted to append the section and subsection name to the topic title.

ADR: https://github.com/openedx/edx-platform/pull/29928
2022-09-13 16:01:25 +05:00
Ali Akbar
59ad4f4025 Merge pull request #30013 from openedx/aakbar/PROD-2521
feat: check for retired users from email
2022-09-13 14:41:47 +05:00
AliAkbar
d36fb2cd28 feat: check for retired user by email 2022-09-13 14:05:43 +05:00
edX requirements bot
2d0f7ccc5c chore: Updating Python Requirements (#30982)
Co-authored-by: Mohammad Ahtasham ul Hassan <ahthassan74@gmail.com>
2022-09-13 12:48:48 +05:00
Zaman Afzal
45276ed5d1 chore: Upgrade learner pathway progress from 1.3.1 to 1.3.2 (#30974) 2022-09-13 08:31:01 +05:00
Jenkins
c77da05044 chore(i18n): update translations 2022-09-12 15:47:51 -04:00
Edward Zarecor
4b63337530 Merge pull request #30863 from e0d/e0d/readme-improvements
fix: initial efforts to create useful, standard readme with purpose.
2022-09-12 13:41:46 -04:00
Edward Zarecor
4b110c2fe9 fix: Add acronym expansion
Co-authored-by: Kyle McCormick <kyle@kylemccormick.me>
2022-09-12 13:01:33 -04:00
Edward Zarecor
01c4e1f69b fix: add new newline.
Co-authored-by: Kyle McCormick <kyle@kylemccormick.me>
2022-09-12 13:00:12 -04:00
Eugene Dyudyunov
74daecb155 fix: empty signature added after every certificate saving (#30912)
A new behaviour:

- Empty signature is still added when initially create a certificate;
- Empty signature isn't added when certificate has at least one signature.
2022-09-12 09:18:05 -04:00
Muhammad Adeel Tajamul
8c13fae0ff feat: backend change for copy post functionality for discussions post (#30941)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-09-12 12:31:57 +05:00
Kristin Aoki
d111be5375 feat: add check for new video editor waffle flag 2022-09-09 13:57:50 -04:00
alangsto
f4cd798429 chore: upgrade name affirmation version (#30971) 2022-09-09 11:03:36 -04:00
Jansen Kantor
3b0e7434d0 fix: change serializer key from entitlements to entitlement (#30968) 2022-09-09 09:53:53 -04:00
Mubbshar Anwar
00054881ac fix: handle course prise (#30965)
course price was not showing in braze because of multiple datatype with same event property.

VAN-1083
2022-09-08 23:11:00 +05:00
alangsto
92b60f11b2 feat: add lti proctoring provider option (#30950) 2022-09-08 13:53:23 -04:00
Muhammad Ammar
6985bc3d1e Merge pull request #30956 from openedx/ammar/return-empty-response-if-no-enterprise-enrollments-exists-for-a-learner
fix: return empty response if no enterprise enrollments exists for a learner
2022-09-08 15:43:20 +05:00
Mubbshar Anwar
9562247028 fix: add log for exception (#30952)
- handle exception and add log for exception.
- add optimizely event for email not sent.

VAN-1066"
2022-09-08 10:47:02 +05:00
Edward Zarecor
0dacf83789 fix: updated name 2022-09-07 17:13:59 -04:00
Edward Zarecor
501a1b62d7 fix: Update README.rst
Co-authored-by: Kyle McCormick <kyle@kylemccormick.me>
2022-09-07 17:13:59 -04:00
Edward Zarecor
d3ff7adef7 fix: Update README.rst
Co-authored-by: Kyle McCormick <kyle@kylemccormick.me>
2022-09-07 17:13:59 -04:00
Edward Zarecor
6982807a52 fix: add link, and dash.
Co-authored-by: Kyle McCormick <kyle@kylemccormick.me>
2022-09-07 17:13:59 -04:00
Edward Zarecor
9d42ed5d7e fix: actually remove the badge. 2022-09-07 17:13:59 -04:00
Edward Zarecor
07f5f04fad fix: removing PyPi publish badge 2022-09-07 17:13:59 -04:00
Edward Zarecor
3aca32c49c fix: initial efforts to create useful, standard readme with purpose. 2022-09-07 17:13:59 -04:00
Jenkins
e713d11e27 chore: geoip2: update maxmind geolite country database 2022-09-07 16:51:50 -04:00
leangseu-edx
9b7f9a83cc feat: entitlement for learner dash (#30877)
* feat: add course entitlement info to learner home

* feat: add uuid to entitlement serializer

* feat: add enrollURL

* docs: update comment about booleanfield

* fix: code review

* fix: update unfulfilled entitlement static enrollment response data

Co-authored-by: jansenk <jkantor@edx.org>
2022-09-07 15:19:33 -04:00
Ben Warzeski
a7edcf8276 feat: update learner home mock data (#30948) 2022-09-07 14:56:37 -04:00
Justin Hynes
7524bc56dc Merge pull request #30958 from openedx/jhynes/APER-1922_route-to-lr-mfe-from-program-dash
feat: Add configuration option to route `View Records` button to the Learner Record MFE
2022-09-07 14:08:18 -04:00
Justin Hynes
9e83bf8f94 feat: Add configuration option to route View Records button to the Learner Record MFE
[APER-1922]

We are converting the legacy UI of the `records` app in the Credentials IDA (credentials.edx.org/records/, credentials.edx.org/records/programs/{uuid}, etc.) to a new MFE. Today, the Program Dashboard and the legacy (non-MFE) profile page have buttons that route learners to the Credentials IDA pages. We need to (optionally) introduce a way to route learner's to the new MFE instead.

- Introduces a new configuration setting called `LEARNER_RECORD_MICROFRONTEND_URL` (defaulting to None). This will be used by the LMS to store the base URL of the new MFE (e.g. records.stage.edx.org).
- Introduces a new waffle switch named `USE_LEARNER_RECORD_MFE`. This will be used to control whether routing learner's to the new MFE is enabled from the LMS's side.
- Updates the existing `get_credentials_records_url` function to add additional logic that will determine if we need to build a link to the legacy FE or the new MFE
- Adds tests for new and existing behavior. There were no existing unit tests for the utility function that I updated.
2022-09-07 13:44:05 -04:00
Eugene Dyudyunov
3d86f8d8de fix: registration form population with unicode through tpa (#30935)
Fixes the registration form username field prefilling with the
third party auth data when unicode usernames are allowed.
2022-09-07 11:59:58 -04:00
Kshitij Sobti
0be6a7aa93 fix: allow flagging for abuse when filtering comments by user (#30346)
Abuse flagging is always supported, so allow abuse flagging even when no other
actions are available due to the lack of a thread context in the comment api.
2022-09-07 17:30:45 +05:00
Kshitij Sobti
3cd3c60b59 feat: enable unit-level control over discussions by default (#30903)
This PR changes the default behaviour of the discussions experience by making the previous "unit-level
visibility" the default mechanism for configuring discussions.

Prior to this PR, under the new discussions configuration experience, all units would automatically get
assigned a discussion topic and have discussions enabled for them (other than units in graded or exam
subsections). However, if authors wanted they could enabled a custom visibility mode which would allow
toggling discussions on or off on a per-unit level.

This PR makes this custom visibility mode the standard behaviour (and eventually, only behaviour)
and enables discussion for all units by default. This replicates the behaviour that already existed,
however, now gives authors control over disabling discussions for individual units by default.

It also removes the ability to disable discussions for all units (while still keeping course-wide
discussions) enabled.
2022-09-07 16:41:17 +05:00
muhammad-ammar
7a8834a4b9 fix: return empty response if no enterprise enrollments exists for a learner 2022-09-07 15:52:56 +05:00
Muhammad Ammar
b8e5540fcc Merge pull request #30947 from openedx/ammar/upgrade-outcome-surveys-package
feat!: Add ability to track sent follow up events via a boolean field
2022-09-07 15:36:42 +05:00
edX requirements bot
39a9082ace Python Requirements Update (#30944)
* chore: Updating Python Requirements
* fix: fix relative paths

Co-authored-by: UsamaSadiq <usama.sadiq@arbisoft.com>
2022-09-07 15:00:41 +05:00
Ahtisham Shahid
4541750eec feat: added tracking event on learner search (#30945) 2022-09-07 14:50:00 +05:00