Commit Graph

63065 Commits

Author SHA1 Message Date
Syed Ali Abbas Zaidi
619671df4c Merge branch 'master' into Ali-Abbas/badge-styles 2023-05-26 10:24:55 +05:00
irfanuddinahmad
89dcb477cb Merge pull request #32317 from openedx/irfanuddinahmad/upgrade-openedx-filters-d59f5f0
feat: Upgrade Python dependency openedx-filters
2023-05-26 06:55:13 +05:00
irfanuddinahmad
73c2eacf7a feat: Upgrade Python dependency openedx-filters
Adds a filter to modify course_home_url

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-05-25 18:37:53 +00:00
Alexander J Sheehan
d59f5f0e2c Merge pull request #32315 from openedx/asheehan-edx/bumping-enterprise-version-3.65.0
chore: bumping enterprise package version to 3.65.1
2023-05-25 13:55:25 -04:00
Alexander J Sheehan
0e5c3a5b13 chore: bumping enterprise package version to 3.65.1 2023-05-25 17:33:02 +00:00
Kyle McCormick
0f847df73a refactor: define resource paths (not contents) on XModule classes (#32286)
For the XBlocks types that use legacy XModule-style assets (specifically, those that
inherit from `HTMLSnippet`), this is small refactor that brings them a bit closer to being like
standard XBlocks.

Given these class attributes:

    class SomeXModuleLikeBlock(..., HTMLSnippet, ...):
        ...
        studio_view_css = { ... }
        preview_view_css = { ... }
        studio_view_js = { ... }
        preview_view_js = { ... }
        ...

we make it so their values are *paths to the resources*
rather than *the actual content of the resources*.
This is a no-op change, but it'll enable future XModule
asset refactorings which require us to operate on asset
paths rather than contents.

Part of: https://github.com/openedx/edx-platform/issues/32292
2023-05-25 13:30:39 -04:00
Fox Piacenti
aa7370c773 refactor: Duplicate and update primitives made available.
This makes a couple of changes to the xblock handler in the CMS. These changes 
add a handful of utility functions and modify the existing ones to make reuse 
of existing blocks easier. With these changes, it is possible to copy an 
entire section from one course to another, and then later refresh that section, 
and all of its children, without destroying the blocks next to it.

The existing _duplicate_block function was modified to have a shallow keyword 
to avoid copying children, and the update_from_source function was added to 
make it easy to copy attributes over from one block to another. These functions 
can be used alongside copy_from_template in the modulestore to copy over blocks 
and their children without requiring them to be within any particular container 
(other than a library or course root)-- thus allowing library-like inclusion 
without the library content block. This is especially useful for cases like 
copying sections rather than unit content.
2023-05-25 15:58:28 +02:00
Awais Qureshi
fcb4c4d098 fix: replacing exceptions (#31827)
* fix: fixing test.
* fix: updating exceptions.
2023-05-25 17:45:11 +05:00
Syed Ali Abbas Zaidi
a782e697e4 Merge branch 'master' into Ali-Abbas/badge-styles 2023-05-25 11:02:58 +05:00
Jenkins
16955828e7 chore: geoip2: update maxmind geolite country database 2023-05-24 16:58:47 -04:00
Jansen Kantor
7b91f8579f fix: return a 403 instead of a redirect from course_home_api api methods (#32210)
* fix: return 403 on course access error rather than redirect
2023-05-24 16:09:34 +00:00
Diana Huang
bbb1fdbdf1 fix: Fix split test event logging. (#32299)
In a refactor, this call to runtime.publish didn't
actually match the API properly, causing runtime errors
on LMS.
2023-05-24 11:51:11 -04:00
Shahbaz Shabbir
24dced2093 test: add tests for MFE Context API serializser (#32179) 2023-05-24 15:20:01 +05:00
Syed Ali Abbas Zaidi
28ddb1eb9f refactor: add badge styles to scss 2023-05-24 14:22:57 +05:00
Nawfal Ahmed
2d9c528827 fix: fix subscription prices and program dashboard max-width (#32278) 2023-05-23 16:17:28 +05:00
ayesha waris
abac77e106 feat: adds ability to disable posting in discussions indefinitely (#32171)
* feat: adds ability to disable posting in discussions indefinitely

* test: fixed ffailing test cases

* test: added new model field in test cases

* refactor: removes unnecessary migrations

* refactor: removed previous migrations and adds new field in discussions api

* refactor: added docstring and changed method name

---------

Co-authored-by: ayesha waris <73840786+ayeshoali@users.noreply.github.com>
2023-05-23 15:08:06 +05:00
Usama Sadiq
d5d3c90767 Use mongodbproxy from pypi (#32259)
* fix: use mongodbproxy from github to pypi
2023-05-23 13:58:01 +05:00
Ahtisham Shahid
27b8d2f68d feat: Added notification APIs (#32232)
* feat: added api to get notifications for users

* feat: added api to get count of notifications

* feat: added api to mark notifications as seen

* feat: added index on app_name in notification table

* refactor: updated api view parent and url

* refactor: resolved linter issue
2023-05-23 11:15:35 +05:00
Michael Roytman
105260f642 Merge pull request #32250 from openedx/MichaelRoytman/MST-1869-course-end-date
feat: send course end date as due date to exams service if exam has no due date
2023-05-22 11:37:37 -04:00
Kristin Aoki
1fcefc3dd9 feat: add waffle flag check in header (#32264) 2023-05-22 11:18:26 -04:00
Jenkins
689ce64361 chore(i18n): update translations 2023-05-22 11:15:31 -04:00
Ned Batchelder
8e7b0c1c73 fix: oscm@edx.org is not the right email for asking about APIs
We get about one email per month from people looking for access to edX
APIs.  Those emails come to the now almost-defunct oscm@edx.org email
address.  I think that's because of these swagger references.

I suppose someone could find this email address on an Open edX
installation, and people would write to it, but I find in practice this
doesn't happen.

Co-authored-by: Kyle McCormick <kyle@tcril.org>
2023-05-22 07:51:45 -07:00
edX requirements bot
40dc6cb5d2 build: added reviewers in dependabot config (#32233) 2023-05-22 16:12:47 +05:00
irfanuddinahmad
ba8a3c130d Merge pull request #32274 from openedx/iahmad/ENT-7164
chore: added configuration for executive education courses
2023-05-21 16:42:06 +05:00
IrfanUddinAhmad
3d6f034c4b chore: added configuration for executive education courses 2023-05-21 15:58:02 +05:00
michaelroytman
344200862e feat: send course end date as due date to exams service if exam has no due date
An exam due date can be inferred from the end date of the course if the exam does not have a due date. In the legacy proctoring system (the edx-proctoring plugin), this inference is made in the proctoring code by calling the edx-when API. This is possible because edx-proctoring is a plugin that's installed into the edx-platform, into which edx-when is also installed.

In the new exams service, we do not want to call to the LMS to get due date information from edx-when. This poses a number of problems, not all of which are solved by this commit. This commit allows the exams service to infer a due date for an exam if that exam does not have a due date at the subsection level.

Note that this is a departure from edx-proctoring. This also opts out exams powered by the new edx-exams service from personalized learner schedules (PLS)/relative dates, because we no longer consider the pacing type of the course.
2023-05-19 13:28:26 -04:00
Zainab Amir
fa7953ca24 feat: set traverse pagination to False (#32269)
* For enrollment email task, while getting course uuid and
owner data don't traverse the discovery endpoint.
* Update log message
2023-05-19 19:46:33 +05:00
John Nagro
0fd36f97f3 fix: adding some logging and exceptions to further investigation into discovery load (#32267) 2023-05-18 19:42:19 -04:00
Edward Zarecor
2f44415eba Merge pull request #32099 from open-craft/navin/fix-video-transcripts 2023-05-18 14:29:34 -04:00
Alexander J Sheehan
26e62ded1f Merge pull request #32263 from openedx/asheehan-edx/bumping-enterprise-version-3.63.0
chore: bumping enterprise package version to 3.63.0
2023-05-18 14:01:15 -04:00
nsprenkle
1839bc01c6 feat: update text for sharing to Twitter
Updated logic to include organization info, when available. Also
refactored away some no-longer-relevant code and pulled Twitter handle
from config.

style: add missing newline

fix: fix outdated signature in test

refactor: make organization optional arg

Required to fix some tests

style: fix pylint issues

chore: organization is a dict change the accessor + linting
2023-05-18 13:51:51 -04:00
Leangseu Kim
f72d27c6af chore: remove studio check
chore: remove duplicate code

chore: update get_public_video_url because reverse doesn't work on cms
2023-05-18 13:08:01 -04:00
Alexander J Sheehan
663c06de06 chore: bumping enterprise package version to 3.63.0 2023-05-18 15:36:47 +00:00
Leangseu Kim
ee3a854d14 chore: update og:url for video sharing 2023-05-18 10:41:30 -04:00
John Nagro
3e1bf1e511 fix: add a reasonable useragent to catalog utils (#32262) 2023-05-18 10:34:14 -04:00
Muhammad Umar Khan
dae5759311 Installing edx-drf-extension from pypi (#32244)
chore: update edx-drf-extensions version

Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>
2023-05-18 19:14:06 +05:00
kenclary
5bae0c86f5 Merge pull request #32024 from open-craft/chris/FAL-3383-new-video-editor-flow
[FAL-3383] feat: New waffleflag to enable or disable new video editor flow
2023-05-18 09:56:06 -04:00
Andrey Cañon
516eff0633 Decouple XModule styles from LMS/Studio styles (attempt 3) (#32237)
This basically changes how the xmodule static files are
generated and consumed in order to separate the Xblock
styles from general style files. Includes:

* build: decople XModule style assets by using a custom webpack loader
* build: move scss imports to its specific file
* build: fix: add system dirs to theme lookup paths.  (fixes attempt 1)
* build: fix: use bootstrap variables instead of lms variables (fixes attempt 2)

This is an amendment to #32188,
which itself was an amendment to #32018.

Addressing the issue https://github.com/openedx/edx-platform/issues/31624
2023-05-18 09:00:44 -04:00
Syed Ali Abbas Zaidi
d7053a6783 fix: eslint autofixable issues (#32181)
* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint line around directives issue

* fix: eslint semi rule

* fix: eslint newline per chain rule

* fix: eslint space infix ops rule

* fix: eslint space-in-parens issue

* fix: eslint space before function paren issue

* fix: eslint space before blocks issue

* fix: eslint arrow body style issue

* fix: eslint dot-location issue

* fix: eslint quotes issue

* fix: eslint quote props issue

* fix: eslint operator assignment issue

* fix: eslint new line after import issue

* fix: indent issues

* fix: operator assignment issue

* fix: all autofixable eslint issues

* fix: all react related fixable issues

* fix: autofixable eslint issues

* chore: remove all template literals

* fix: remaining autofixable issues

* fix: failing js test
2023-05-18 11:03:59 +05:00
Jenkins
f2daf37d4a chore: geoip2: update maxmind geolite country database 2023-05-17 16:58:48 -04:00
Michael Roytman
9b644109fe Merge pull request #31741 from raccoongang/fix-upgrade-reminder-email-image
fix: upgrade reminder email image
2023-05-17 10:36:52 -04:00
Leangseu Kim
f5e5406da8 feat: add header_meta to base template 2023-05-17 10:17:12 -04:00
Jenkins
11a4ef4780 chore(i18n): update translations 2023-05-17 05:44:42 -04:00
Kristin Aoki
36e18f291b feat: add waffle flags for studio mfe pages (#32240) 2023-05-16 15:04:38 -04:00
Muhammad Umar Khan
08a52f1519 chore: Install edx-drf extension from git hash (#32229)
* chore: test updated drf extensions

---------

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2023-05-16 18:54:23 +05:00
Gabe Mulley
1fa50b834d feat: pass query string parameters on to the learning MFE for jump_to links (#32180) 2023-05-16 08:32:56 -04:00
Nawfal Ahmed
30a66120fd fix: correctly mark program dashboard and details translations string (#32242) 2023-05-16 12:02:54 +00:00
Nawfal Ahmed
7174da78d0 feat: subscription changes and alerts for program dashboard and details (#32217)
* feat: subscription changes on program dashboard and details (#31909)

  - add a h2 programs heading on program dashboard
  - subscription ui changes on program dashboard
  - subscription alerts on both pages

* feat: add subscription upsell, fix responsive layout of program dashboard (#31943)

* test: update tests for subscription changes on program dashboard (#32021)

* feat: subscription api changes on program dashboard (#32085)

* feat: add subscription segment events to program details and dashboard (#32164)

* feat: subscription changes on program dashboard and details pages (#32205)
2023-05-16 10:34:42 +00:00
Matjaz Gregoric
960781ea3f Merge pull request #32220 from openedx/mtyaka/fix-gh-test-shards
fix: update shard names for GH tests
2023-05-16 12:06:55 +02:00
SaadYousaf
9a43af848c feat: add api for user notification preferences 2023-05-16 12:09:23 +05:00