Commit Graph

61674 Commits

Author SHA1 Message Date
Muhammad Ammar
5ca028d3d6 Merge pull request #30686 from openedx/ammar/send-followup-segment-events-for-passed-learners
feat: Schedule a follow up segment event for first time passed learners
2022-07-15 16:13:11 +05:00
Mehak Nasir
341c058223 style: bootstrap tooltip added to fix text visibility issue (#30731) 2022-07-15 15:58:07 +05:00
muhammad-ammar
3f294eca1e feat: fire follow up event for first time passed learners 2022-07-15 15:54:29 +05:00
connorhaugh
15b7564a73 feat: add mgmt command to track active_versions (#30730)
In order to gain more information about ongoing questions related to the potentially out-of-sync nature of the SQL and MongoDb tables in Split Modulestore, I have created the management command to list all courses with out-of-sync active_versions and course_index entires.

This should have no direct impact on anyone, nor alter anything.

part of an on-going investigation to figure out 500 errors in studio.
2022-07-14 16:00:07 -04:00
Syed Muhammad Dawoud Sheraz Ali
6dde81dec8 feat: add order number information in support enrollment view (#30700)
* feat: add order number information in support enrollment view

* test: quality fixes
2022-07-14 22:36:24 +05:00
Zaman Afzal
263f3a42e2 refactor: Update pathways progress when course is passed for first time (#30728) 2022-07-14 21:30:58 +05:00
Zaman Afzal
506c47a74c chore: bump learner pathway progress version (#30726) 2022-07-14 16:41:23 +05:00
Mehak Nasir
d639c055d1 style: changes to banner design (#30710)
style: tooltip added for switch legacy

fix: add feedback button added in legacy view and text improved
2022-07-14 16:25:22 +05:00
Zaman Afzal
5587d1b08e fix: Add Learner pathway progress update signal (#30722) 2022-07-14 10:28:48 +05:00
Nathan Sprenkle
71fabb7f87 feat: add remaining learner dash serializers (#30707)
* feat: add UnfulfilledEntitlementSerializer

* feat: add SuggestedCoursesSerializer

* feat: add new enrollment serializer fields

* test: new enrollment serializer fields

* feat: add new entitlement serializer fields

* feat: add EmailConfirmationSerializer

* feat: add EnterpriseDashboardsSerializer

* fix: update learner view with new serializers

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-07-13 15:46:49 -04:00
Jansen Kantor
143ea1dbbc fix: use peer assessment as default ora template (#30705)
* fix: use peer assessment as default ora template

* chore: bump ora

* test: update test after ORA update
2022-07-13 10:21:42 -04:00
Nathan Sprenkle
e1c8fb51be feat: add text response type to ora config (#30721)
For staff grader setup, we want to know the response type to do better
rendering of the response. This derives from ORA's text_response_editor
setting and is either "text" (default) or "tinymce".

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-07-12 15:44:24 -04:00
Justin Hynes
519bd18571 Merge pull request #30714 from openedx/jhynes/microba-1806_cad-removal-mgmt-cmd
feat: add management command to clean stale certificate availability dates
2022-07-12 07:48:10 -04:00
Justin Hynes
26ae8b4bcd feat: add management command to clean stale certificate availability dates
[MICROBA-1806]

We are aware of product issue where it is possible for a self-paced course-run to get have a `certificate_availability_date` created in the course settings. This can have an adverse effect on the Credentials IDA where a learner's Program Record does not correctly display the course certificates they have earned because of this data. This not only causes confusion for our learners, as it appears that a course certificate a learner can access and share in the LMS is displayed as unearned in the Credential's program record, but this can also cause issues when a learner attempts to share their program record through a credit pathway and the program record would not accurately reflect their program completion.

Unfortunately, the settings that manage the certificate availability date are hidden for self-paced courses in Studio (as they should only be used in instructor-paced courses).

For this reason, we are introducing a management command that will remove a certificate available date for a specified (self-paced) course-run. This will allow us to fix issues for individual learners while we work on a longer-term fix for the larger issue.

* Add new `clean_stale_certificate_available_dates` management command
* Add new `CleanStaleCertificateAvailabilityDates` Configuration Model
* Add tests for the new management command
* (Unrelated cleanup) Fix potential issue with private.py settings in the CMS being overwritten in devstack.py for developers using devstack.
2022-07-11 13:13:27 -04:00
Feanil Patel
9e08c5e3d2 Merge pull request #30718 from openedx/feanil/update_slack_link
fix: Update the slack invite link.
2022-07-11 12:29:07 -04:00
Feanil Patel
1f0cb258ef fix: Update the slack invite link.
Point to the openedx.org shortcut which we can update as needed.
2022-07-11 10:55:36 -04:00
edx-semantic-release
c4ac9a7ed1 chore(i18n): update translations 2022-07-10 16:59:55 -04:00
Felipe Montoya
0bb4577795 Merge pull request #30473 from eduNEXT/mfmz/mfe-config-api
feat: add mfe config api
2022-07-08 18:04:26 +03:00
Maria Fernanda Magallanes Zubillaga
f2488b10a6 feat: make it compatible with django settings 2022-07-08 01:56:15 -04:00
Maria Fernanda Magallanes Zubillaga
d6a30882d1 docs: add the ADR 2022-07-08 00:05:10 -04:00
Maria Fernanda Magallanes Zubillaga
f6f66d0f39 refactor!: change the api naming and url 2022-07-08 00:05:10 -04:00
Maria Fernanda Magallanes Zubillaga
547ceaad8a docs: update test docs 2022-07-07 23:58:45 -04:00
Maria Fernanda Magallanes Zubillaga
39dec5740f fix: correct pep8 violations 2022-07-07 23:58:45 -04:00
Maria Fernanda Magallanes Zubillaga
7f47cd1b8a test: add more unit tests 2022-07-07 23:58:44 -04:00
Maria Fernanda Magallanes Zubillaga
60e6de05fc refactor: set ENABLE_MFE_API as a top level setting 2022-07-07 23:58:42 -04:00
Maria Fernanda Magallanes Zubillaga
05b602f7dd refactor: remove unnecessary config 2022-07-07 23:57:43 -04:00
María Fernanda Magallanes Z
9069ce9950 fix: get merged response from mfe_config and mfe_config_mymfe 2022-07-07 23:57:42 -04:00
María Fernanda Magallanes Z
7f5eb296a3 feat: add mfe_api v1
This PR adds MFE API. This is part of the work that is being done to obtain the MFE Runtime Configurations and that has been discussed in the BTR WG.

Discussion: https://discuss.openedx.org/t/how-to-use-microfrontend-in-a-multitenant-instance/6936/14?u=mafermazu
MFE Runtime configuration - eduNEXT: https://docs.google.com/document/d/1-FHIQmyeQZu3311x8eYUNMru4JX7Yb3UlqjmJxvM8do/edit?usp=sharing

feat: add lms setting to set mfe config cache (#262)

Co-authored-by: María Fernanda Magallanes Z <maria.magallanes@edunext.co>

feat: make mfe config api disabled by default (#263)

* feat: make mfe config api disabled by default

* fix: simple is better than complex

test: add mfe config tests (#264)

* test: add mfe config tests

* test: fix it and simplify it

* test: correct pylint issues

fix: correct pep 8 violations

fix: add mfe api unit test in github workflow

fix: correct unit tests

refactor: move mfe api to lms

fix: try mfe api urls without regex

fix: add app_namespace in lms urls

fix: try url without conditional

Revert "fix: try url without conditional"

This reverts commit 694aab546134b4bd9ad2642e24927b42cac24459.

fix: set enable_mfe_config_api feature to true in the tests

test: try to add failed test case

Revert "test: try to add failed test case"

This reverts commit cee6bf656ab1b96492b0b6199ddff32a6d6a65bd.

docs: improve explanation and documentation

fix: ensure the response is a json object

refactor: be consistent with the variable names

fix: allow overriding mfe api config cache timeout in production

fix: handle 404 response in view

refactor: use a guard instead if-else

feat: add the possibility to show mfe specific config
2022-07-07 23:57:36 -04:00
David Ormsbee
915ddb98d7 fix: update LTI XBlock to fix DarkLangMiddleware issue 2022-07-07 12:42:35 -04:00
Mubbshar Anwar
a084d5d892 fix: update response (#30712)
- add course_run_key in API response
- remove course_key from API response

VAN-986
2022-07-07 21:17:25 +05:00
Ahtisham Shahid
03e4f03f42 fix: resolved disucssions banner permissions issue (#30708)
Co-authored-by: AhtishamShahid <ahtishamshahid@A006-00850.local>
2022-07-07 12:56:14 +05:00
Sagirov Evgeniy
dccb463103 FC-0001: Remove edx-jsme, Molecular Structure Problem type (#30321)
* feat: Remove edx-jsme, Molecular Structure Problem type

* feat: remove common/static/js/capa/jsme and common/static/js/capa/jsmolcalc
2022-07-06 15:51:58 -04:00
John Nagro
efa979a13d temp: guard against resume button failures in dropdown template (#30703) 2022-07-06 13:05:14 -04:00
Azan Bin Zahid
a3f9a27ed9 temp: add broad exception and log err for resume block (#30701) 2022-07-06 18:54:51 +05:00
Zainab Amir
9a21d1448a feat: fix authentication classes for recommendation view (#30699)
- Updated classes to allow inactive users to access the view
- In case of any error show general recommendations
2022-07-06 17:32:20 +05:00
Muhammad Adeel Tajamul
7a1d263477 fix: added edit reason codes (#30698)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-07-06 11:06:42 +05:00
Long Lin
6e71f303a5 chore: bump edx-enterprise version 2022-07-05 18:00:32 -07:00
Nathan Sprenkle
15a38bc7f1 feat: partial initial view/API for learner dashboard (#30653)
* fix: remove unused feedback email

* refactor: rename learner views

Rename course to learner and seed initial response shape

* feat: add first sample views and APIs

* refactor: add route namespace for learner dash

* test: add learner dashboard views test

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-07-05 14:08:00 -04:00
Nathan Sprenkle
9d54fda8e8 feat: learner dash enrollment serializers (#30674)
* feat: add CourseProviderSerializer

* feat: add CourseSerializer

* feat: add CourseRunSerializer

* feat: add EnrollmentSerializer

* feat: add GradeDataSerializer

* feat: add CertificateSerializer

* feat: add EntitlementSerializer

* feat: add ProgramsSerializer

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-07-05 11:12:12 -04:00
Attiya Ishaque
9d1f31603e feat: [VAN-986] Add amplitude API (#30675)
* feat: [VAN-986] Add amplitude API

* feat: add suggestion

* feat: add spinner

Co-authored-by: Zainab Amir <zainab.amir@arbisoft.com>
2022-07-05 16:23:38 +05:00
edx-semantic-release
4d6df67a02 chore(i18n): update translations 2022-07-03 16:59:53 -04:00
Shafqat Farhan
7a05329594 feat: VAN-987 - Added analytics event on recommendation course click 2022-07-01 11:52:08 +05:00
Zainab Amir
ef9361ccfe feat: add recommendation panel
- added a waffle flag to control recommendation panel
- add react code for the panel

VAN-984
2022-07-01 11:52:08 +05:00
Ahtisham Shahid
6f71e4cc0d fix: Made lti_config optional field (#30680)
Co-authored-by: AhtishamShahid <ahtishamshahid@A006-00850.local>
2022-06-30 19:09:14 +05:00
0x29a
cf1a7c616a refactor: remove error_descriptor_class and NonStaffErrorBlock
It's safe to remove this because non-staff [1] users cannot access [2]
an `ErrorBlock`. We were able to reproduce this with and without this commit
with the following results:
1. Staff users were seeing the `ErrorBlock`.
2. Non-staff users were getting an empty `<div class="vert-mod"></div>`.

In theory, error blocks should be hidden in the Learning MFE because of this
option [3]. However, when we manually set `hide_access_error_blocks` to
`False`, we kept getting identical results (with and without this commit), so
it looks that the removal `NonStaffErrorBlock` was just omitted at some point.

[1] a4ec4c1b8e/lms/djangoapps/courseware/access.py (L419-L436)
[2] a4ec4c1b8e/lms/djangoapps/courseware/access.py (L150-L151)
[3] 92ca176fde/lms/djangoapps/courseware/views/views.py (L1547-L1551)
2022-06-30 15:53:39 +02:00
0x29a
0f858835f1 refactor: delete ModuleSystem's file_data property
There are many `field_data` usages in the platform. Let's categorize them and determine,
which are related to this change and in what way.

- ModuleSystem's argument. This is what we're removing.
- Runtime.field_data. Directly related, as Runtime is ModuleSystem's superclass.
  Analysis below this list is centered around this.
- XBlock.field_data. Not related anymore. Runtime.construct_xblock was passing
  runtime's field_data to the XBlock's constructor, but that was ~8 years ago.
- DescriptorSystem.field_data. Not related anymore. field_data has been removed
  from the constructor long time ago, but you still can see its ancestors
  instantiated with field_data=<value> here and there. It's important to note,
  that it has been added here in the first place, because field_data was required in Runtime.
- DummySystem, CachingDescriptorSystem, ImportSystem. Not related anymore.
  All these classes inherit MakoDescriptorSystem, which inherits DescriptorSystem itself.
  So, see the previous item.
- PreviewModuleSystem, TestModuleSystem, LmsModuleSystem — ModuleSystem's ancestors. Directly related.

Basing on that, the only necessary check is to search for ModuleSystem's ancestors using
`field_data` or `_deprecated_per_instance_field_data`. As there are no such cases, it's safe to remove `field_data`.

Co-authored-by: Paulo Viadanna <paulo@opencraft.com>
Co-authored-by: DubeySandeep <dubeysandeep.in@gmail.com>
2022-06-30 15:17:24 +02:00
SaadYousaf
28a8e618ac feat: add partial username search for course discussion user stats 2022-06-30 17:37:03 +05:00
jawad khan
2dc7990653 feat: Added token grant_type in JWT payload (#30519)
To exchange jwt with session cookies we need to determine JWT grant type in
AccessTokenExchangeView. JWT only having password grant type will be allowed to exchange session.
Added ADR for mobile migration to JWT authentication.

LEARNER-8886
2022-06-30 16:49:11 +05:00
Waheed Ahmad
fb604e4345 fix: login endpoint username param rate limiting (#30673)
The username was allowed in the login endpoint alongside the email address
but rate-limiting logic was not updated to rate limit on the new POST
param `email_or_username`.

VAN-1003
2022-06-30 15:24:19 +05:00
Muhammad Adeel Tajamul
9e1b46b58b fix: change user_id query param to username in Learners API (#30640)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-06-30 12:03:11 +05:00