Commit Graph

66246 Commits

Author SHA1 Message Date
Adolfo R. Brandes
f4d110c896 feat: Reimplement the Zooming Image Tool
This recreates the Zooming Image Tool template for the HTML block.  It
does it in such a way that doesn't depend on any external resources:
both the loupe code and sample image are inlined.

Some benefits to this version are:

* We can now maintain the loupe javascript code properly

* Because the javascript is included in the contents of the block
  itself, the course author can customize it as needed

* As opposed to the previous iteration, the magnified image URL is now
  optional: if it's not present, the regular image will be used for
  magnification

* There can now be two or more instances of the tool in the same unit.

This also removes some CSS left over from the previous iteration.
2024-12-13 11:34:28 -03:00
Régis Behmo
7f80c1afa1 fix: adequate course key type in forum v2 (#36022)
When checking whether forum v2 is enabled, the course waffle flag
argument should be a CourseKey, not a str.
2024-12-12 16:11:53 +05:00
Dima Alipov
c6dbb16736 fix: selection of users for sending email
Course team members are included in "Learners in the track"
emails recipients.
2024-12-12 15:03:36 +05:30
github-actions[bot]
f358ef3851 feat: Upgrade Python dependency edx-enterprise (#36011)
Added a management command to update the Social Auth UID's

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: zamanafzal <11922730+zamanafzal@users.noreply.github.com>
Co-authored-by: Zaman Afzal <zamanafzal@gmail.com>
2024-12-12 14:19:29 +05:00
Ahtisham Shahid
d88fa76d52 chore: added logs for goal reminder email (#35958) 2024-12-12 13:25:47 +05:00
Régis Behmo
065adf398e feat: reapply forum v2 changes (#36002)
* feat: Reapply "Integrate Forum V2 into edx-platform"

This reverts commit 818aa343a2.

* feat: make it possible to globally disable forum v2 with setting

We introduce a setting that allows us to bypass any course waffle flag
check. The advantage of such a setting is that we don't need to find the
course ID: in some cases, we might not have access to the course ID, and
we need to look for it... in forum v2.

See discussion here: https://github.com/openedx/forum/issues/137

* chore: bump openedx-forum to 0.1.5

This should fix an issue with index creation on edX.org.
2024-12-12 12:18:33 +05:00
Maria Grimaldi
f96f92677f chore: [FC-0074] drop hooks docs in favor of latest in docs.openedx.org (#35921) 2024-12-11 19:22:57 +01:00
Kyle McCormick
3e9158e9a8 build(eslint): Ignore Symlinks and Reduce Violation Limit (#36010)
Background: We have a large number of standing eslint violations in our
legacy frontends. Rather than fixing or amnesty-ing all of them, we've
opted to use a simple integer limit of violations. Exceeding this
limit causes the quality check to fail.

Before we moved eslint off of Paver [1], the limit was unreasonably
high (probably due to deprecations that removed violation-rich frontend
code). This was good, except for the fact that we essentially weren't
catching when new violations creeped into the JS code.

So, in [1], we lowered the limit down to the lowest possible value,
which we thought was 1285. However, we've found that this made the check
flaky-- turned out, we have been unintentionally double-counting various
violations due to the symlinks in edx-platform. Some of those symlinks'
existence is dependent on whether and how `npm ci` and `npm run build`
have been run. As a result, 1285 would pass in some contexts, and fail
in other contexts.

The fix is to simply add all the relevant edx-platform symlinks to
.eslintignore. This allows us to lower the violations limit to 734.

[1] https://github.com/openedx/edx-platform/pull/35159
2024-12-11 17:06:53 +00:00
Navin Karkera
aeddb8a922 feat: allow blocks lower than units to be bookmarked
Adds support to jump/scroll to blocks lower than units if bookmarked. It
also fixes an issue with bookmark visit url function where it was not
passing query params.
2024-12-11 20:06:07 +05:30
salmannawaz
1573c7b07f build: replace paver quality tests and js commands (#35159) 2024-12-11 19:15:17 +05:00
iloveagent57
ee30f1b60f feat: Upgrade Python dependency edx-enterprise
fix: edx-enterprise 5.4.1 | unenrolled defaults are now not enrollable

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-12-10 16:16:01 -05:00
Feanil Patel
1bd3ace13d Merge pull request #36000 from openedx/timmc/rm-waffle-ref
docs: Remove mention of storage_backing_for_cache flag
2024-12-10 12:10:17 -05:00
Muhammad Soban Javed
c4992c9a26 Merge pull request #35628 from mfarhan943/mfarhan/drop-py38-add-py312
Update tox.ini to remove Python 3.8 support
2024-12-10 17:09:02 +05:00
Muhammad Soban Javed
02a8549b8f Merge branch 'master' into mfarhan/drop-py38-add-py312 2024-12-10 15:54:18 +05:00
Tim McCormack
b6774f59f3 docs: Remove mention of storage_backing_for_cache flag
The Waffle switch `block_structure.storage_backing_for_cache` was removed in https://github.com/openedx/edx-platform/pull/35185 -- this is just a lingering reference in a setting comment.
2024-12-09 17:20:34 -05:00
Adolfo R. Brandes
394a459dec feat: remove the broken Zooming Image Tool
The Zooming Image Tool does not load properly, currently, and even if it
did, relying on an external Javascript to function across releases is
not something we can support.  Thus, we remove it from the list of HTML
block templates until such time as a more robust solution is found.
2024-12-09 13:05:40 -03:00
Daniel Valenzuela
eadf5e2d79 fix: render library assets named xblock-
The previous pattern for matching was too broad and would break
the rendering of assets that were prefixed with "xblock".
2024-12-09 10:05:01 -05:00
renovate[bot]
9d9a68528f fix(deps): update dependency webpack to v5.97.1 (#35990)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 13:01:01 +00:00
renovate[bot]
7dc4c66365 fix(deps): update dependency @babel/preset-react to v7.26.3 (#35989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 12:55:35 +00:00
renovate[bot]
96b3bdad19 fix(deps): update dependency sass to v1.82.0 (#35988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 12:51:28 +00:00
renovate[bot]
dedd278944 fix(deps): update dependency sass-loader to v16.0.4 (#35987)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 12:42:29 +00:00
Muhammad Ammar
4bda0aba7c Merge pull request #35986 from openedx/muhammad-ammar/upgrade-edx-enterprise-b07464b
feat: Upgrade Python dependency edx-enterprise
2024-12-09 14:59:26 +05:00
muhammad-ammar
044ab68aac feat: Upgrade Python dependency edx-enterprise
upgrade edx-enterprise to 5.4.0

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-12-09 06:55:41 +00:00
Daniel Valenzuela
b07464ba2d feat: incremental reindex_studio management command (#35864)
This allows large instances to run an (interruptable, resumable) reindex task that can cover thousands of courses.
2024-12-06 12:30:38 -08:00
edX requirements bot
3196ceb4a0 chore: Upgrade Python requirements 2024-12-06 11:19:06 -05:00
Diana Huang
818aa343a2 Revert "feat: Integrate Forum V2 into edx-platform"
This reverts commit 70b60ff256.
2024-12-06 11:19:06 -05:00
Rômulo Penido
8d4909a999 fix: content libraries permissions
This PR changes the permissions for content libraries so that only
people who can create courses should be allowed to create new content
libraries.
2024-12-06 09:18:04 -05:00
Irtaza Akram
0dd9f8f996 fix: disabling autoapi (#35939) 2024-12-06 18:58:50 +05:00
Chris Chávez
0bd0e6f4ca refactor: Update get block OLX view to support versions [FC-0062] (#35932)
* Deprecate `get_block_draft_olx`
* Deprecate get olx view in content libraries
* Create `get_block_olx` in xblock API with support of versions
* Create get olx view in xblock
2024-12-05 18:49:23 +00:00
Feanil Patel
60aa299c61 Merge pull request #35342 from openedx/bilalqamar95/upgrade-node-v20
build: Upgrade to Node 20
2024-12-05 12:59:01 -05:00
Bilal Qamar
85a891a607 chore: updated package-lock 2024-12-05 11:21:00 -05:00
Bilal Qamar
cbc55da4a0 refactor: updated lockfile version check workflow 2024-12-05 11:21:00 -05:00
Bilal Qamar
9f718613dd feat: updated node to v20 2024-12-05 11:20:57 -05:00
edX requirements bot
dda76a97af chore: Upgrade Python requirements 2024-12-05 10:48:15 -05:00
Maria Grimaldi
1c835eb643 fix: return empty list when no courses are found for request (#35942)
This change addresses an issue reported while testing Sumac, where the API V2 is on by default in the authoring MFE: openedx/wg-build-test-release#428. It fails when retrieving an empty list of courses with the queryparams api/contentstore/v2/home/courses?page=1&order=display_name. When this was implemented, the course authoring MFE rendered the empty lists only with page=1 query param (didn't do any filtering/ordering by default), which was later changed to page=1&order=display_name which now ordered by default.

This issue occurs because all the filtering and ordering are done under the assumption that course_overviews is always a query set. However, that's only true when there are courses available and CourseOverview.get_all_courses is used. When not, an empty list is returned instead, raising a 500 error in Studio.
2024-12-05 15:52:57 +01:00
github-actions[bot]
202d31b17e feat: Upgrade Python dependency edx-enterprise (#35964)
Bump version of edx-enterprise to v5.3.1.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: adamstankiewicz <2828721+adamstankiewicz@users.noreply.github.com>
2024-12-04 19:51:55 +00:00
Kyle D. McCormick
4839b75467 temp: disable broken test suites for Webpack-built JS
Should be re-enabled in: https://github.com/openedx/edx-platform/issues/35956
2024-12-04 11:28:30 -05:00
Kyle D. McCormick
50298f9dcb build: ensure JS tests fail when the Karma Webpack build fails
Adds a "DieHardPlugin" to the Webpack build. See enclosed code comment
for more details.
2024-12-04 11:28:30 -05:00
Ahtisham Shahid
9e470550ee chore: updated openedx-forum version to 0.1.3 (#35961) 2024-12-04 20:33:58 +05:00
Saleem Latif
1adf83ce4b Merge pull request #35960 from openedx/saleem-latif/ENT-9612
refactor: Removed unused django setting.
2024-12-04 15:25:26 +05:00
Saleem Latif
9d859a8247 refactor: Removed unused django setting. 2024-12-04 14:57:07 +05:00
Kyle McCormick
25536bbc36 fix: downgrade karma-spec-reporter to fix JS test logging (#35954)
The karma-spec-reporter npm package is a Karma plugin which tells Karma to
print the name of each spec (e.g. test case). This is extremely useful
as a maintainer to be able to visually inspect the CI logs and confirm
that we are actually running JS tests and not just giving
false-positives.

We are stuck on an ancient Karma version (0.13.22, lastest is 6.x),
which seems to be incompatible with the latest karma-spec-reporter version
(0.0.36). Since upgrading karma-spec-reporter, spec name printing has
failed with:

    02 12 2024 20:59:28.164:WARN [plugin]: Error during loading "karma-spec-reporter" plugin:
      Cannot read properties of undefined (reading 'LOG_PRIORITIES')

Downgrading to karma-spec-reporter@0.0.20 eliminates this error and
restoring spec name printing to our JS CI logs.
2024-12-03 19:05:14 +00:00
Muhammad Faraz Maqsood
70b60ff256 feat: Integrate Forum V2 into edx-platform
This commit introduces the new Forum V2 application, allowing users to choose between the legacy Forum V1 and the new Forum V2 at the course level.

Key Changes:
- Added waffle flag `discussions.enable_forum_v2` to enable Forum V2 for selected courses, allowing coexistence with Forum V1.
- Default data storage for Forum V2 is set to MongoDB, with an option to switch to MySQL using the waffle flag `forum_v2.enable_mysql_backend`.
- Introduced management command `forum_migrate_course_from_mongodb_to_mysql` for per-course data migration from MongoDB to MySQL.

Note: This PR does not include all unit tests for the Forum V2 native API due to ongoing migration efforts. Further updates will follow to ensure full test coverage before final release.

Co-authored-by: [Muhammad Faraz Maqsood] <faraz.maqsood@arbisoft.com>
Co-authored-by: [Ali Salman] <ali.salman@arbisoft.com>
2024-12-03 11:00:51 -05:00
Feanil Patel
0baf71ce01 Merge pull request #34479 from DmytroAlipov/fix-transcript-replacement
fix: an issue where changing the transcript language code
2024-12-03 10:43:25 -05:00
renovate[bot]
7ac03a2c8a fix(deps): update dependency node-gyp to v10.3.1 (#35949)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-03 11:08:34 +00:00
renovate[bot]
2ff0dc013b fix(deps): update dependency sass to v1.81.1 (#35948)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-03 11:02:37 +00:00
Ejaz Ahmad
18de5ccc68 Merge pull request #35946 from openedx/jajjibhai008/upgrade-edx-enterprise-1397673
feat: Upgrade Python dependency edx-enterprise
2024-12-03 15:17:51 +05:00
jajjibhai008
d351faa88c feat: Upgrade Python dependency edx-enterprise
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-12-03 09:01:01 +00:00
Katrina Nguyen
1397673652 Merge pull request #35944 from openedx/katrinan029/upgrade-edx-enterprise-a220e58
feat: Upgrade Python dependency edx-enterprise
2024-12-02 14:54:16 -08:00
katrinan029
4d301665a9 feat: Upgrade Python dependency edx-enterprise
version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-12-02 22:31:05 +00:00