Commit Graph

24028 Commits

Author SHA1 Message Date
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
Mubbshar Anwar
b76d5c2a66 feat: Pass segment properties (#30742)
- For enrollment email pass extra segment event properties.
VAN-999
2022-08-29 15:36:24 +05:00
Saad Yousaf
3b978c4157 feat: point to new discussions MFE on Discussion Tab (#30896)
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
2022-08-29 15:18:26 +05:00
Syed Sajjad Hussain Shah
45d62226c1 fix: rename events and remove from_email property [VAN-1060] (#30911) 2022-08-29 14:59:13 +05:00
Mubbshar Anwar
1b509f3a81 perf: Performance improvement (#30907)
Course recommendation API performance improvement.

VAN-1061
2022-08-29 14:44:37 +05:00
irfanuddinahmad
b64b37105f Merge pull request #30882 from openedx/iahmad/ENT-6125
fix: ENT-6125 Fixed same completed course nudge issue
2022-08-26 12:36:54 +05:00
irfanuddinahmad
2ebd93f84c fix: Fixed same completed course nudge issue 2022-08-25 19:54:51 +05:00
Kshitij Sobti
c2326f0399 fix: change conditions for showing new and legacy discussion providers (#30818)
The current logic for showing discussion providers makes it hard to switch
from the legacy to the new provider. This commit changes the conditions in
which different providers are shown, and which provider is used as default.

Before this commit, the new provider would be hidden if the legacy provider
was in use and vice-versa. So both would only be shown if neither legacy
nor the new provider were in use (i.e. an LTI provider was in use).

Now, all providers are always displayed to global staff. If the waffle
flag for the new provider is set
(`discussions.enable_new_structure_discussions`), then new provider is
always displayed, and the legacy provider is hidden unless it's currently
in use.

If flag is not set, then the new provider is always hidden unless it is
used by a course.

Finally, the default provider now depends on the flag above. If it is
set globally, then the default provider is the new provider, otherwise
the legacy provider remains the default provider.
2022-08-25 04:00:18 -07:00
Ben Warzeski
a60b34bb7b fix: update learner home api (#30893)
* fix: update learner home api

* refactor: update learner home API pathing

* fix: remove unused logger

* fix: remove unused import

* style: make pylint happy

* style: remove extra space

* style: remove extra space

Co-authored-by: nsprenkle <nsprenkle@2u.com>
Co-authored-by: Nathan Sprenkle <nsprenkle@users.noreply.github.com>
2022-08-24 12:34:14 -04:00
SaadYousaf
495d1cc86c fix: add is_group_ta and has_moderations_privileges to course settings API 2022-08-24 12:04:27 +05:00
Zainab Amir
faf33bf32e feat: add optimizely experiment (#30880)
Added two events to measure optimizely experiment metrics:
- user_goal_setting_click
- user_start_course_click

VAN-1052
2022-08-23 15:33:54 +05:00
Shafqat Farhan
a791759202 feat: VAN-1051 - Integrated Optimizely fullstack Client and experiment 2022-08-22 14:33:25 +05:00
Muhammad Bilal Tahir
10509bc27b chore: added whitelist urls in devstack as reesult of ENT-6109 2022-08-19 01:02:19 +05:00
Nathan Sprenkle
e0199b2199 feat: learner home contract updates (#30871)
* feat: add startDate to course run serializer

* fix: remove unused certificate serializer fields

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-08-17 16:40:51 -04:00
Peter Kabiri
41ee16a6b7 fix: Removed hardcoded social media and mobile store images. (#30630) 2022-08-17 17:51:06 +05:00
Ahtisham Shahid
69efe48e09 fix: Made user search function case in-sensitive (#30867) 2022-08-17 13:39:22 +05:00
Nathan Sprenkle
ac07f23e25 feat: update learner home mock data (#30865)
* feat: add startDate to mock data

* feat: remove certDownloadUrl

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-08-16 15:43:26 -04:00
Nathan Sprenkle
48e03e7457 feat: learner home mock bff (#30858) 2022-08-16 12:59:32 -04:00
Kyle McCormick
c253ec4181 feat!: change /api/v1/mfe_config to /api/mfe_config/v1
* This changes the API's path. The reasoning is that this is Version 1 of
  the mfe_config API, not Version 1 of the LMS's entire API, so the v1
  should come after mfe_config.
* Why does this matter? Firstly, consistency. Secondly, it affects our
  generated API documentation. If you visited
  https://courses.edx.org/api-docs, you could see that the API was
  listed under "v1" instead of "mfe_config".
2022-08-16 11:38:53 -04:00
Kyle McCormick
1b52ad58a5 docs: add more detail to MFE Config API documentation
No functional changes here. This just uses the edx_api_doc_tools package
to add some additional documentation to the new API. The documentation
can be read from the code, or viewed by visiting
http://<LMS_ROOT>/api-docs and searching for "mfe_config".
2022-08-16 11:38:53 -04:00
Kyle McCormick
8edefe74ff feat!: change names of dynamic MFE config Django settings
Formerly, the settings were:

* `MFE_CONFIG` for common config.
* `MFE_CONFIG_<APP_ID>` for app-specific overrides,
  with each app getting its own Django setting.

This commit changes it to:

* `MFE_CONFIG` for common config (unchanged)
* `MFE_CONFIG_OVERRIDES` for app-specific overrides,
  where each app gets a top-level key in the dictionary.

Why the change?

* We want common.py to have a complete list of overridable settings, as
  it helps operators reason about configuration and allows us to generate
  config documentation using toggle annotations. Dynamically generating
  setting names based on arbitrary APP_IDs makes this impossible.
* getattr(...) generally makes code more complicated bug prone. Tools
  like pylint and mypy cannot effectively analyze any code that uses
  dynamic attribute access.
2022-08-16 11:38:53 -04:00
Robert Raposa
30ba3c355d fix: add mapping for learner-pathway-progress (#30857)
Adds code owner mapping for learner-pathway-progress.
2022-08-15 12:21:43 -04:00
edx-semantic-release
c6ebd1ca01 chore(i18n): update translations 2022-08-14 17:02:53 -04:00
Jansen Kantor
eec0e4a562 temp: add additional logging to debug problem score issue (#30850)
* temp: add additional logging to debug problem score issue

* fixup! temp: add additional logging to debug problem score issue
2022-08-12 13:46:30 -04:00
Navin Karkera
b0c39758fb fix: mark a text for i18n (#30840) 2022-08-12 10:58:55 -04:00
Ahtisham Shahid
dcb01d107f fix: Temporary fix for learners stats api performance issue (#30847)
* fix: Temporary fix for learners' stats API performance issue

* fix: resolved linter errors

* fix: learners stats API response is now null

* fix: changed waffle dates

* fix: resolved unit test issue
2022-08-12 17:24:22 +05:00
Saad Yousaf
067ebd79ce fix: fix inIframe query param for discussion MFE link (#30846)
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
2022-08-12 15:13:06 +05:00
Leangseu Kim
719ddff238 fix: section.due datetime version issue 2022-08-11 13:53:11 -04:00
Nathan Sprenkle
e025463872 feat: Learner Dashboard get enrollments (#30808)
* feat: fill out enrollment serializer

* test: add basic integration tests for enrollments

* feat: get info for user account activation

* test: test integrating user account activation

* feat: get course enrollments

* feat: get course email settings

* feat: add ecommerce info

* feat: add resume urls

* refactor: move learner home to separate app

* refactor: remove course limit

Co-authored-by: nsprenkle <nsprenkle@2u.com>
2022-08-11 11:05:07 -04:00
Muhammad Adeel Tajamul
f24af41b98 feat: redirect method for learners to new MFE (#30769)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-08-11 11:49:45 +05:00