Commit Graph

427 Commits

Author SHA1 Message Date
Tim McCormack
2009e8972c feat: Set TMPDIR for codejail executions (#36412)
This makes it easier to run matplotlib in codejail, and should prevent a
number of other issues in the future with other packages that need to
create tempfiles.

No change is required for existing codejail installations, but after this
change operators may be able to tighten their apparmor configuration to
prevent write access to global temp or cache dirs.

Manual testing instructions: Create a codejail problem that runs
`import matplotlib` and confirm that it runs without error. (Unit tests
aren't feasible here because this requires a fully configured codejail in
order for the tmp subdirectory to exist.)

Also: Add comment for `OPENBLAS_NUM_THREADS` and numpy support.
2025-03-20 15:41:43 -04:00
Robert Raposa
399be67fc4 style: remove eslint with frontend code removal ADR
- Add ADR for frontend code removal
- Drop eslint, as explained in the ADR
2025-03-20 11:03:41 -04:00
Rodrigo Martin
8d00b093c3 fix: video transcript links wrapping up (#36392) 2025-03-19 14:39:03 -03:00
Muhammad Umar Khan
4195186b04 chore: skip data caching for blockstructure content more than or equal to 2MB (#36397)
Co-authored-by: M Umar Khan <umar.khan@A006-01609.local>
2025-03-18 14:05:10 +05:00
Hina Khadim
ee7fd497a7 fix: add target='_blank' for videos hosted outside edx (#36361) 2025-03-17 11:10:49 +05:00
Bryann Valderrama
f90e59e52a docs: add event_type inline code annotation for open edX events (#36355) 2025-03-14 09:55:50 +01:00
Muhammad Umar Khan
c443acddd8 chore: skip data caching for content more than or equal to 2MB (#36359)
Co-authored-by: M Umar Khan <umar.khan@A006-01609.local>
2025-03-12 17:46:31 +05:00
Diana Huang
8935af7ab4 feat: Add observability to codejail darklaunch.
Sets up tracing in code jail calls to track remote
and local execution, and adds custom attributes
to track error messages from the calls.

https://github.com/edx/edx-arch-experiments/issues/895
2025-03-07 11:19:40 -05:00
Navin Karkera
2613c8ef4e feat: preserve image alt text while converting html to text (#36333)
Replace image with its alt text while converting html to plain text for indexing.
2025-03-06 16:55:45 +00:00
Jillian
cc56e41d0c fix: allow LTI blocks to be loaded in a Library v2 context [FC-0076] (#36265)
Fixes errors thrown when previewing/editing (built-in) LTI blocks in a Libraries v2 context.

These fixes allow Library Authors to store LTI blocks in their content libraries.
2025-03-06 16:28:26 +00:00
Diana Huang
ef49090c31 feat: Add codejail darklaunch toggle.
This adds a toggle for running codejail in both remote
and local configurations for testing purposes.

https://github.com/edx/edx-arch-experiments/issues/895
2025-03-05 17:56:40 -05:00
Saad Yousaf
790fdcf05a fix: fix accessibility issue with video editor speed option selected speed 2025-03-03 13:21:45 +05:00
Chris Chávez
b6489e718c feat: Video editor supports transcripts [FC-0076] (#36058)
* Add error handler on save video to avoid creating sjson
* Support transcripts without edx_video_id in definition_to_xml
* When copying a video from a library to a course: Create a new edx_video_id
* Save transcripts as static assets in a video in a library when adding a new transcript.
* Delete transcripts as static assets in a video in a library when deleting transcripts.
* Support download transcript in a video in a library.
* Support replace transcript in a video in a library.
* Support updating transcripts in video in a library.
* Refactor the code of downloading YouTube transcripts to enable this feature in libraries.
* Support copy from a library to a course and a course to a library.
2025-02-21 13:33:13 -05:00
Chris Chávez
d29ff63e2c fix: Render Word cloud block editor in libraries [FC-0076] (#36199)
* fix: Render Word cloud and conditional block editor

- The xmodule-type to render is MetadataOnlyEditingDescriptor
- The xmodule type `MetadataOnlyEditingDescriptor` renders a `<div>` with the block metadata in the `data-metadata` attribute. But is necessary to call `XBlockEditorView.xblockReady()` to run the scripts to build the editor using the metadata.
- To call XBlockEditorView.xblockReady() we need a specific require.config

* fix: Adding save and cancel button

* fix: save with studio_submit of conditional_block and word_cloud_block

* test: Tests for studio_submit of conditional and word cloud

* revert: Delete studio_submit of conditional block. It is not supported

* style: Fix lint

---------

Co-authored-by: Navin Karkera <navin@opencraft.com>
2025-02-19 18:05:55 +05:30
Irtaza Akram
a8a8ae3286 fix: replace pkg_resources with importlib.resources (#36213) 2025-02-13 17:43:07 +05:00
Navin Karkera
2598084946 feat: upstream downstream link model [FC-0076] (#36111)
Adds models, tasks, signal handlers and api's for adding, updating and deleting upstream->downstream links in database.
2025-02-11 12:15:50 -05:00
Muhammad Farhan Khan
95403c570d chore: Adds fallback values to the xmodule xblocks global css variables (#36183)
* chore: Adds fallback values to the xmodule builtin blocks global css variables
2025-02-11 19:41:34 +05:00
Jesper Hodge
1f43d17b21 Revert "Replace pkg_resources with importlib.resources" (#36208) 2025-02-05 08:51:50 -05:00
Usama Sadiq
b6828cecaa fix: enable pylint warnings (#36195)
* fix: enable pylint warnings
2025-01-30 17:15:33 +05:00
Feanil Patel
da0d365ee3 Merge pull request #36044 from openedx/pkg_resources-depr
Replace pkg_resources with importlib.resources
2025-01-23 11:05:45 -05:00
David Ormsbee
9a6cdbf8e2 perf: upgrade XBlock to 5.1.1 for caching unknown tags
This should improve performance for courseware operations when there is
content that doesn't map to any existing XBlocks in the system. This
usually happens to old courses when custom XBlock types are deprecated
and removed, or when a course is imported from another instance with a
different set of installed XBlocks.
2025-01-22 14:36:50 -05:00
Irtaza Akram
acdbff8b4c fix: remove pkg_resources 2025-01-08 16:45:19 +05:00
Kyle D. McCormick
88b8da3e49 docs: Remove the last couple mentions of Paver from the codebase
Part of: https://github.com/openedx/edx-platform/issues/34467
2025-01-02 14:05:15 -05:00
Abdur Rahman Asad
bfcaa138ff fix: log correct time and duration for video subsections (#36019)
* fix: log correct time and duration for video subsections

If a subsection of a video is added to a course using advanced settings, show and log correct start and end times to the users.

* test: add unit tests
2024-12-23 12:51:00 +05:30
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
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
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
Muhammad Farhan Khan
f9126bfdd9 Add Django settings flags to roll out the extracted XBlocks (#35549)
chore: Add Django settings flags to roll out the extracted XBlocks
2024-12-02 20:38:40 +05:00
Braden MacDonald
919cc78be1 fix: Don't add 'x-is-pointer-node' to capa problems on paste 2024-11-29 00:27:43 +05:30
Dima Alipov
911bf73c04 fix: fix transcript replacement
Fixed an issue where changing the transcript language code would
cause both the old and new transcript to be displayed.
But in this case, you won’t be able to download the transcript
from the old code, since the link is invalid.
2024-11-28 14:19:29 +01:00
Kristin Aoki
0f03bf686e feat: update twitter brand icon in social share (#35885)
* feat: update twitter brand icon in social share

* fix: icon alignment
2024-11-21 09:30:18 -05:00
Muhammad Farhan Khan
26afafa81f chore: clean up built in blocks css (#35854)
* chore: clean up built in blocks css

* chore: Address PR change request
2024-11-18 10:10:18 +05:00
Irtaza Akram
ec2a698604 cleanup references of python 2 & <3.11 (#35799)
* chore: cleanup of old python references
2024-11-15 16:58:20 +05:00
Kyle McCormick
2769a00e39 build: Remove unneccessary built-in XBlock Sass built steps (#35833)
Since all built-in block Sass is gone, we remove two final pieces of code:

* the steps in `npm run compile-sass` which compiled `xmodule/assets`, and
* the now-unused `add_sass_to_fragment` function.

This should speed up the edx-platform assets build a little bit.
This commit also includes some minor dev doc updates.

Part of: https://github.com/openedx/edx-platform/issues/35300
2024-11-14 14:05:30 +00:00
Muhammad Farhan Khan
421f28f25d Merge pull request #35811 from openedx/farhan/problem-sass-to-css
feat!: Drop sass support from problem/cappa xblocks
2024-11-13 12:03:38 +05:00
Muhammad Farhan Khan
0181068756 Merge pull request #35759 from openedx/farhan/sass-to-css-custom-tag-block-2
feat!: Replace sass with vanilla css in custom tag block
2024-11-13 11:58:18 +05:00
Rômulo Penido
31d170a687 fix: image aspect ratio on component preview (#35790)
Co-authored-by: Jillian Vogel <jill@opencraft.com>
2024-11-08 18:55:37 +05:30
farhan
9b4e805a0a feat!: Drop sass support from porblem/cappa xblocks 2024-11-08 17:22:48 +05:00
farhan
3ce7b80ee2 chore: Convert problem block sass variables into css variables 2024-11-08 16:05:15 +05:00
farhan
b29a51ecf9 feat!: Replace sass with vanilla css in custom tag block 2024-11-08 09:40:43 +05:00
M. Tayyab Tahir Qureshi
01985e0c32 feat! Dropping Sass support from builtin Sequence block (#35770)
feat!: Dropping Sass support from builtin sequence block

Co-authored by @ttqureshi
2024-11-05 17:27:12 +05:00
M. Tayyab Tahir Qureshi
b7d08fb61b feat! Dropping Sass support from builtin LTI block (#35769)
feat!: Dropping Sass support from builtin LTI block

Co-authored by @ttqureshi
2024-11-05 17:26:45 +05:00
Kaustav Banerjee
e18b1c8d53 feat: in-context discussion for units can be disabled by default (#35414)
This PR, adds to the ability to keep the in-context discussions disabled by default. That way all new units which are added will have the discussions sidebar disabled and can be individually enabled by the course instructors.
2024-11-02 20:22:35 +05:30
Kristin Aoki
e13d66d1e4 feat: support unit preview in learning MFE (#35747)
* feat: update preview url to direct to mfe

* fix: use url builder instead of string formatter

* fix: url redirect for never published units

* fix: remove 404 error when  not a preview or staff

* feat: update sequence metadata to allow draft branch
2024-11-01 11:03:06 -04:00
Muhammad Farhan Khan
29845683f7 Merge pull request #35719 from openedx/farhan/sass-to-css-html-block-2
feat!: Dropping Sass support from builtin html block
2024-10-30 21:23:34 +05:00
farhan
6ad6ec3ea4 chore: Remove scss files related to html block 2024-10-30 11:17:52 +05:00
farhan
f52050712c feat!: Dropping Sass support from builtin html block, replacing with vanilla CSS 2024-10-30 11:17:52 +05:00
farhan
7f1611ed90 chore: remove scss files related to the poll block 2024-10-30 11:17:37 +05:00
farhan
55aeca65c2 feat!: Dropping Sass support from builtin poll block, replacing with vanilla CSS 2024-10-30 11:17:37 +05:00
Kristin Aoki
afd1394112 Revert "feat: update preview url to direct to mfe (#35687)" (#35732)
This reverts commit 2373dd02f9.
2024-10-28 17:26:29 +00:00