Commit Graph

61657 Commits

Author SHA1 Message Date
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
Braden MacDonald
5d93f883f1 docs: Clarify a potentially confusing deprecation message 2022-06-29 12:13:39 -07:00
Jansen Kantor
40e86425d9 chore: bump ora and submissions versions (#30669) 2022-06-29 10:05:55 -04:00
Kshitij Sobti
8169aa99da fix: if pages and resources view is disabled, show all pages in studio (#30550)
In a previous PR #28686, the ability to see and enable/disable wiki and progress tabs was removed from studio along with the ability to re-order non-static tabs. The ability to toggle the Wiki tab was moved to the pages and resources section of the course authoring MFE. If that MFE is unavailable this means there is no way to show/hide the Wiki. This reverts some of the old changes if the pages and resources view is disabled.
2022-06-28 21:19:32 +05:00
Zachary Hancock
ffbac0dc94 chore: update lti-xblock-consumer (#30662) 2022-06-28 10:05:45 -04:00
Ahtisham Shahid
8e8bb57b3b feat: Added flag for big blue button provider (#30645)
* feat: added flag for big blue button provider

* feat: Updated a comment

* fix: updated tests

* fix: updated serializer

* fix: resolved failed tests

Co-authored-by: AhtishamShahid <ahtishamshahid@A006-00850.local>
2022-06-28 16:34:10 +05:00
Alexander J Sheehan
6a6b883a49 Merge pull request #30661 from openedx/asheehan-edx/saml-uniqueness-current-only
fix: accounting for only current configs when checking for uniqueness
2022-06-27 18:11:18 -04:00
Alexander Sheehan
605a328f24 fix: accounting for only current configs when checking for uniqueness 2022-06-27 16:56:37 -04:00
Mohammad Ahtasham ul Hassan
44fa09eba5 refactor: refactor discussions_xblock (#30636)
JIRA: https://openedx.atlassian.net/browse/BOM-2580
This PR aims at refactoring the discussion xblock sub project and moving it within the xmodule directory effectively removing its position as a sub project within edx-platform
2022-06-27 17:11:56 +05:00
Mohammad Ahtasham ul Hassan
8ef261fe07 Remove Old Pymongo pin (#30569)
* chore: unpin pymongo
2022-06-27 14:37:29 +05:00
SaadYousaf
20de3c71b4 fix: fix links in reported content email to point to new MFE 2022-06-24 11:08:59 +05:00
Muhammad Adeel Tajamul
6ae76816f7 Merge pull request #30576 from openedx/inf-290
fix: fixed active threads user_id query param and added test cases
2022-06-23 16:24:20 +05:00
adeel.tajamul
3ef0bd6d00 fix: added thread structure 2022-06-23 13:44:18 +05:00
adeel.tajamul
cebe02ae51 fix: added doc strings to test cases 2022-06-23 13:44:18 +05:00
adeel.tajamul
92e862149d fix: pinned is set to false for all posts in learner area 2022-06-23 13:44:18 +05:00
adeel.tajamul
30229c86e2 fix: updated test cases 2022-06-23 13:44:17 +05:00
adeel.tajamul
7481b11e25 fix: updated api response 2022-06-23 13:44:17 +05:00
adeel.tajamul
18cec24f15 fix: added pagination data 2022-06-23 13:44:17 +05:00