Commit Graph

63102 Commits

Author SHA1 Message Date
Ben Warzeski
2df14a8718 feat: add public video url copy interface (#32293) 2023-06-06 10:09:48 -04:00
dependabot[bot]
ddf32206af build(deps): bump thollander/actions-comment-pull-request from 1 to 2 (#32141)
Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 1 to 2.
- [Release notes](https://github.com/thollander/actions-comment-pull-request/releases)
- [Commits](https://github.com/thollander/actions-comment-pull-request/compare/v1...v2)

---
updated-dependencies:
- dependency-name: thollander/actions-comment-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 12:27:51 +05:00
Leangseu Kim
005b6dd802 fix: embed video css 2023-06-05 11:45:43 -04:00
Jody Bailey
c7fc04968f feat: new endpoint for cross product and amplitude recommendations (#32297)
* feat: cross product recommendations endpoint enhancement for amplitude recommendations

* fix: general recommendations fix and linting fixes

* fix: query string parameter value check fix

* chore: updated positioning of docstring

* fix: Adjusted docstring for CPR serializer

* fix: Separated view, added new url, fallback recommendations fixes and more

* fix: removed dangerous default value argument

* chore: made necessary linting changes

* chore: updated doctring description

* fix: removed dangerous default argument

* chore: updated doctring for ProductRecommendationsView
2023-06-05 16:31:11 +02:00
Kyle McCormick
585b96583a build: remove prefixes from XModule resource copies (#32287)
The `xmodule_assets` command copies SCSS files from
xmodule/css to common/static/xmodule/{modules|descriptors}/scss.
It renames the files to the format:

     _{INDEX}-{HASH}.scss

where an XModule's first SCSS resource will have INDEX==0,
the next will have INDEX==1, ...and that's it because no
XModule has more than two SCSS resources.
The output looks like this:

    common/static/xmodule/descriptors/scss:
      _000-808fcbb4c5109c5156ae3c0c9729c8be.scss
      ...
      _001-a10fc3e0fd6aca63426a89e75fe69c31.scss
    common/static/xmodule/modules/scss:
      _000-1ad2f05db822d3176affd203d70319c0.scss
	  ...
      _001-482ebc752ab6e41946651ceb0f3e7f55.scss

These indexes serve no purpose. Reading the comments
and git-blame in xmodule/static_content.py, one can glean
that the indexes might have been intended to enforce
dependency relationships between the assets, but
this is unnecessary, because the ordering of the copied
SCSS is *already preserved* by the order which they're
included into the `{BLOCK_NAME}{Studio|Preivew}.{HASH}.scss`
SCSS entrypoint files. I have to assume that this is an
unnecessary relic from the time when the XModule system
was more heavily utilized, rather than just a legacy corner
of the XBlock framework as it is today.
So, we remove the indexes, which lets us simplify the logic
of xmodule/static_content.py. This is a minor refactoring, but it'll
make it easier for the next steps on our way to deleting
xmodule/static_content.py entirely. The new output looks like this:

    common/static/xmodule/descriptors/scss:
      _808fcbb4c5109c5156ae3c0c9729c8be.scss
	  ...
      _d41921b4c5d45188759ef3d04fd9a78a.scss
    common/static/xmodule/modules/scss:
      _1ad2f05db822d3176affd203d70319c0.scss
	  ...
      _b80300e1a5f290f6a850e35874068427.scss

Part of: https://github.com/openedx/edx-platform/issues/32292
2023-06-05 09:10:58 -04:00
Nawfal Ahmed
c6934dda8c PON-241: Copy changes on Program details page (#32352)
* feat: update subscription info text in various states

* feat: update subscription trial ending alert
2023-06-05 17:46:11 +05:00
Awais Qureshi
249aabbc4f feat!: upgrading django-storages. (#32350)
* feat!: upgrading django-storages
2023-06-05 14:55:19 +05:00
Muhammad Adeel Tajamul
3832eda78d fix: change response of course enrollment api for notifications 2023-06-05 14:29:07 +05:00
Awais Qureshi
26b0977067 chore: adding temp pin. (#32360) 2023-06-05 13:52:39 +05:00
Hamza Shafique
9f7cc4a8be fix: Remove extra </div> tag from calculators's HTML (#32276)
Co-authored-by: hamza shafique <hamza.shafique1@arbisoft.com>
2023-06-05 12:19:39 +05:00
Jenkins
8326c19431 chore(i18n): update translations 2023-06-04 17:04:19 -04:00
irfanuddinahmad
af78700e53 Merge pull request #32358 from openedx/iahmad/ENT-7229-2
chore: upgrade edx-enterprise
2023-06-03 20:43:19 +05:00
IrfanUddinAhmad
62be50ca95 chore: upgrade edx-enterprise 2023-06-03 20:23:12 +05:00
Feanil Patel
f7a3faa3e0 docs: Update the issue tracker section of the README. (#32354)
* docs: Update the issue tracker section of the README.

Fixes https://github.com/openedx/edx-platform/issues/32235

Ideally, we'd update the whole readme to better match the new
maintainers standards and we should still do that but for now we'll just
update this egregiously incorrect section quickly.

Co-authored-by: Robert Raposa <rraposa@edx.org>
2023-06-02 13:16:52 -04:00
dependabot[bot]
9249ea9f0c build(deps): bump actions/setup-python from 2 to 4 (#32136)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 18:57:19 +05:00
dependabot[bot]
b054e0d20d build(deps): bump actions/cache from 2 to 3 (#32138)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 18:56:40 +05:00
github-actions[bot]
e2a54e0524 feat: Upgrade Python dependency edx-django-utils (#32345)
feat: update edx-django-utils for new cookie middlewre
2023-06-01 15:12:26 -04:00
Braden MacDonald
b70252db94 fix: Update text of new clipboard menu, hide it in libraries (#32339)
* fix: Use clearer name for the new "Copy" action ("Copy to Clipboard")

* fix: Don't show the new copy menu in content libraries (not yet supported)
2023-06-01 11:36:53 -07:00
edX requirements bot
25139a08bd chore: Updating Python Requirements (#32321) 2023-06-01 20:20:49 +05:00
Kristin Aoki
7816a41b51 fix: conditional rendering of course team link (#32336) 2023-06-01 10:24:02 -04:00
Jenkins
072df9a18b chore(i18n): update translations 2023-06-01 09:59:22 -04:00
Usama Sadiq
6e597b5519 Revert "feat!: upgrading django-storages. (#32311)" (#32340)
This reverts commit cc0d5cdb76.
2023-06-01 17:38:37 +05:00
Awais Qureshi
cc0d5cdb76 feat!: upgrading django-storages. (#32311)
* feat!: upgrading django-storages
2023-06-01 15:33:14 +05:00
Sameen Fatima
374dd70e01 chore: Install skill-tagging as dependency in edx-platform (#32335) 2023-06-01 13:31:17 +05:00
Jenkins
aace5813b3 chore: geoip2: update maxmind geolite country database 2023-05-31 16:58:47 -04:00
ruzniaievdm
a6ce487827 feat: Extending API functionality for proctoring errors (#32331) 2023-05-31 14:00:09 -04:00
Alexander J Sheehan
0ebf846670 Merge pull request #32333 from openedx/asheehan-edx/bumping-enterprise-version-3.65.4
chore: bumping enterprise package version to 3.65.4
2023-05-31 10:49:20 -07:00
Alexander J Sheehan
ccf1b96e5d chore: bumping enterprise package version to 3.65.4 2023-05-31 16:38:37 +00:00
Attiya Ishaque
0544c06705 fix: fix empty list as default value for extended_profile (#32323) 2023-05-31 18:12:29 +05:00
Muhammad Adeel Tajamul
d7f618844b feat: notifications enrollments api will show courses for which notifications is enabled (#32307) 2023-05-31 17:00:08 +05:00
irfanuddinahmad
b55104a832 Merge pull request #32294 from openedx/iahmad/ENT-7164-3
feat: Added filter for modifying course home url for externally hosted courses
2023-05-31 15:28:22 +05:00
Tim McCormack
cc9ec69fcd feat: Pin python3-saml again for duplicate attributes issue (#32328)
We're seeing an issue with repeated attributes causing auth failure for
some IdPs, and need to take some time to investigate. See unpinning issue
https://github.com/openedx/edx-platform/issues/32327 for details.

This is expected to reintroduce some bugs in testing SAML in devstack.

This has the effect of reverting the following PRs:
- Unpinned: https://github.com/openedx/edx-platform/pull/32167 (partial)
- Upgraded: https://github.com/openedx/edx-platform/pull/32168

However, we're keeping the safe_lxml adjustments from the first PR, so it
should be fine on that front to re-upgrade whenever we're ready.
2023-05-30 17:21:59 +00:00
connorhaugh
b8de097e1a fix: remove drag and drop from V1 libs (#32325) 2023-05-30 11:25:59 -04:00
Leangseu Kim
1b50e80437 chore: add go to course button for student already enrolled in the courses
chore: linting

chore: update requested change
2023-05-30 09:45:50 -04:00
Matt Hughes
044f172cb1 perf: pull user's profile information for serialization w/ ret. arch
JIRA:CR-5812
2023-05-30 09:33:45 -04:00
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
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
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