Commit Graph

24057 Commits

Author SHA1 Message Date
Zachary Hancock
2f3c93ed9f feat: sync with exam service on course publish (#31015)
Call into the exam service instead of the edx-proctoring plugin on course publish if the course_apps.exams_ida course waffle flag is enabled. This is an early step in moving away from edx-proctoring
2022-09-20 12:38:32 -04:00
Moeez Zahid
2f098c54e6 fix: Youtube has highest default stream priority (#31014) 2022-09-19 20:31:42 +05:00
Maxwell Frank
76cee06850 Merge pull request #31008 from openedx/mfrank/update-cert-reqs
fix: update cert requirements
2022-09-19 09:07:49 -04:00
Sagirov Evgeniy
42438db805 feat: Remove the table with a migration (#30993) 2022-09-19 08:36:43 -04:00
Sandeep Dubey
51b5e624b3 feat: upgrade TinyMCE v4.0.20 to TinyMCE v5.5.1 (#30335)
Co-authored-by: Arunmozhi <arunmozhi@opencraft.com>
2022-09-19 12:43:19 +02:00
Muhammad Adeel Tajamul
1259c0e7a5 fix: sort order will not be alphabetical (#30990)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-09-19 12:24:46 +05:00
SaadYousaf
b8e466b55c fix: update editable action item for different discussion and course roles 2022-09-19 11:51:24 +05:00
Jenkins
bdb0e4d8ad chore(i18n): update translations 2022-09-18 16:57:26 -04:00
Maxwell Frank
4f0af713d8 fix: update cert requirements 2022-09-16 19:45:59 +00:00
Nathan Sprenkle
5f1530cd57 feat: learner home get suggested courses (#31004)
* feat: get suggested courses

* style: run black

* docs: update suggested courses mock

* docs: remove cardID from mock

* docs: fix mock course.title to course.courseName

* docs: fix mock course.bannerUrl to bannerImgSrc

* docs: fix mock provider to courseProvider

* docs: remove old mock courseProvider fields

* docs: fix mock "grades" to "gradeData"

* docs: fix mock remove courseRun.lastEnrolled

* docs: fix mock add enrollment.lastEnrolled

* docs: mock remove enrollment.isStarted

* docs: mock fix bad nesting in courseRun

* docs: mock certificates to certificate

* docs: mock remove certificate.isAvailable

* docs: mock remove entitlement.isEntitlement

* docs: mock add entitlement.expirationDate

* docs: mock fix some entitlement inconsistencies

* docs: mock remove entitlement.canViewCourse

* docs: mock nest relatedPrograms under programs

* fix: return null for missing resumeUrl

* test: return null for missing resumeUrl

* refactor: update suggested course fields

* refactor: update related programs fields

* docs: remove entitlement.expirationDate from mock

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-09-16 14:41:02 -04:00
Jansen Kantor
8162d21566 feat: add related program info to unfulfilled entitlements (#31011) 2022-09-16 10:30:18 -04:00
Sarina Canelake
40467d8604 Merge pull request #30951 from openedx/tcril/fix-gh-org-url
Fix github url strings (org edx -> openedx)
2022-09-16 09:58:15 -04:00
Sarina Canelake
cf5fa64bd7 fix: update repo paths that stayed in the edx org
Co-authored-by: Kyle McCormick <kdmc@pm.me>
2022-09-15 14:52:28 -04:00
Sarina Canelake
69f0849165 fix: update path to .github workflows to read from openedx org 2022-09-15 14:52:28 -04:00
Sarina Canelake
4a2f231302 fix: fix github url strings (org edx -> openedx) 2022-09-15 14:52:28 -04:00
Justin Hynes
ef6de11467 feat: Send modified data of a learner's grade to the Credentials IDA
[APER-1968]

We don't have a good way to understand if grade data in Credentials is out of sync with the LMS. Grades are sent to Credentials via a REST API call originating from an asynchronous Celery task on the LMS side. This PR updates our Celery task `send_grade_to_credentials` to include sending the `modified` DateTime value of a grade record to the Credentials IDA. Updates will be made on the Credentials side to accept and store this data as part of the UserGrade instance.

* Updates the `send_grade_to_credentials` task to include passing the grade's `modified` DateTime info as part of the request data to Credentials
* Updates the `CourseGradeBase` class to include an optional `last_updated` field. This will store the `modified` date of a PersistentCourseGrade instance when a grade is read through the CourseGradeFactory.
* Update existing log statement to use format strings where possible.
2022-09-15 08:02:26 -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
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
Leangseu Kim
49380a00ec chore: rename hasAccess to coursewareAccess 2022-09-14 09:32:10 -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
Jenkins
c77da05044 chore(i18n): update translations 2022-09-12 15:47:51 -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
Jansen Kantor
3b0e7434d0 fix: change serializer key from entitlements to entitlement (#30968) 2022-09-09 09:53:53 -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
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
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
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
muhammad-ammar
7a8834a4b9 fix: return empty response if no enterprise enrollments exists for a learner 2022-09-07 15:52:56 +05:00
Ahtisham Shahid
4541750eec feat: added tracking event on learner search (#30945) 2022-09-07 14:50:00 +05:00
Hammad Ahmad Waqas
19c6bae60e Merge pull request #30920 from openedx/hammad/ENT-6111
feat: added support to check if active enterprise is same as EnterpriseCourseEnrollment object.
2022-09-07 11:55:56 +05:00
hammadahmadwaqas
02c799df61 feat: added support to check if active enterprise is same as EnterpriseCourseEnrollment object. 2022-09-07 11:24:33 +05:00
Jansen Kantor
2f84f71c03 feat: learner home enterprise dash data (#30939)
* feat: learner home enterprise dash data
2022-09-06 14:29:19 -04:00
Ahtisham Shahid
d9073e99b0 feat: fixed iframe redirection logic (#30946)
* feat: fixed iframe redirection logic
* fix: Updated unit test to resolve test fails
2022-09-06 19:40:25 +05:00
Nathan Sprenkle
a12243e9b3 feat: learner home contract updates (#30930)
* refactor: update enterprise dashboard data shape

* refactor: remove hasFinished

* refactor: allow enterprise dashboard to be null

* docs: update mock data

* feat: get if an enrollment has unmet prerequisites

* feat: get is staff for course

* feat: get is too early for course

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-09-06 09:30:46 -04:00
Saad Yousaf
fb716a76d9 fix: allow discussion moderators to unreport their content (#30938)
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
2022-09-05 18:39:46 +05:00
Mubbshar Anwar
22b378e605 feat: Pass segment properties (#30919)
- For new enrollment email pass extra segment event properties.
VAN-999
2022-09-05 16:55:46 +05:00
Navin Karkera
40180a688e [BD-38] fix: hide discussion xblock for openedx provider (#30845)
* fix: hide discussion xblock for openedx provider

* fix: test cases

* refactor: hide xblock is provider not legacy and add message in studio

* fix: lint issue

* refactor: update discussion block studio msg

* fix: test discussion xblock query number
2022-09-02 14:38:53 +05:00
Syed Sajjad Hussain Shah
68bba463a0 feat: Send hotjar event for recommendations survey [VAN-1046] (#30926) 2022-09-02 09:48:24 +05:00
SaadYousaf
a1b43766cd fix: update email links to point to new discussions MFE. 2022-09-01 19:18:33 +05:00
Muhammad Adeel Tajamul
20477abcd1 feat: redirect urls to discussions domain (#30924)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-09-01 15:58:44 +05:00
Nathan Sprenkle
05a14f4b17 feat: learner home get certificate info (#30898)
* feat: update certificate serializer

* refactor: move create test enrollment to utils

* feat: get certificate statuses

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-08-31 14:51:31 -04:00
Mubbshar Anwar
2980265764 Revert "feat: Pass segment properties (#30742)" (#30918)
This reverts commit b76d5c2a66.
2022-08-30 12:11:25 +05:00