Commit Graph

66833 Commits

Author SHA1 Message Date
Alexander J Sheehan
4dc35c73ff Merge pull request #32319 from openedx/asheehan-edx/bumping-enterprise-version-3.65.2
chore: bumping enterprise package version to 3.65.2
2023-05-26 11:46:58 -04:00
Alexander J Sheehan
785a2e865d chore: bumping enterprise package version to 3.65.2 2023-05-26 15:23:13 +00:00
Juliana Kang
c67408b9c5 fix: Modify nextPaymentDate in program details subscriptions (#32310)
PON-247
2023-05-26 10:50:39 -04:00
Chris Pappas
38a69d10ff feat: allow course entitlements REST API to be filtered on course_uuid (#32305)
* feat: allow course entitlements REST API to be filtered on course_uuid

* feat: add field to filter out entitlements with null expired_at values

* chore: update tests
2023-05-26 09:44:32 -04:00
IrfanUddinAhmad
b2734099ac feat: Added filter for modifying course home url for externally hosted courses 2023-05-26 14:15:27 +05:00
Syed Ali Abbas Zaidi
619671df4c Merge branch 'master' into Ali-Abbas/badge-styles 2023-05-26 10:24:55 +05:00
Braden MacDonald
f13263df4f fix: remove the need to patch the KVS during library import 2023-05-25 21:03:01 -07: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
Braden MacDonald
9f5f3108a0 fix: cleanups and bug fix from review 2023-05-25 16:33:40 -07: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
Agrendalath
15b511ffd1 test: fix the number of Mongo calls 2023-05-25 20:11:02 +02: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
Braden MacDonald
b3c5faa884 temp: update query counts 2023-05-23 18:28:27 -07:00
Braden MacDonald
f1ff90dc3e fix: failing test, not really sure why this worked before without modulestore.update_item() 2023-05-23 18:15:14 -07:00
Braden MacDonald
a6accf701b temp: update query counts 2023-05-23 18:12:42 -07:00
Braden MacDonald
30e7b5b92b temp: continue 2023-05-23 16:53:14 -07:00
Braden MacDonald
1c09f6c3ef temp: clarify why we don't pass field_data to constructor 2023-05-23 10:54:23 -07:00
Braden MacDonald
db490866e0 temp: update test case, uses one less query since field-data is on demand 2023-05-23 10:29:35 -07: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
Braden MacDonald
f05f48a156 temp: continued 2023-05-19 15:41:49 -07:00
Braden MacDonald
2924e564b0 fix: field data should be loaded on-demand, not pushed into block init 2023-05-19 13:55:25 -07: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