Commit Graph

396 Commits

Author SHA1 Message Date
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
Muhammad Farhan Khan
64d0d51072 Merge pull request #35717 from openedx/farhan/sass-to-css-wordcloud-block-2
feat!: Dropping Sass support from builtin word cloud block
2024-10-28 21:27:01 +05:00
farhan
7fce06a11b feat!: Dropping Sass support from builtin word cloud block, replacing with vanilla CSS 2024-10-28 20:24:19 +05:00
Muhammad Farhan Khan
1283fdde8e Dropping Sass support from builtin annotatable block (#35716)
* feat!: Dropping Sass support from builtin annotatable block, replacing with vanilla CSS
2024-10-28 20:22:06 +05:00
Kristin Aoki
2373dd02f9 feat: update preview url to direct to mfe (#35687)
* feat: update preview url to direct to mfe

* fix: use url builder instead of string formatter

* fix: url redirect for never published units
2024-10-28 10:31:53 -04:00
Muhammad Farhan Khan
6259520651 Merge branch 'master' into farhan/sass-to-css-video-block 2024-10-23 18:52:43 +05:00
farhan
7764e47116 chore: remove video block scss files 2024-10-23 18:40:30 +05:00
farhan
8fb5b778c3 feat!: Dropping Sass support from builtin video block, replacing with vanilla CSS 2024-10-23 18:40:30 +05:00
Braden MacDonald
9e28ba92ec feat: minimal UI for the Problem Bank block 2024-10-22 17:27:04 -07:00
Kyle McCormick
08c8e9d214 feat: ItemBankBlock (#35553)
This is a new XBlock that presents a random subset of its children. As of this commit, the block
can only be added as an Advanced component. For Sumac, we plan to enable it as part of the
Libraries Relaunch Beta, under the name "Problem Bank (Beta)"

The block does not care if its children are from V1 library, V2 library, or the course itself.
It shares the randomization logic with LegacyLibraryContentBlock. It is also fully backwards-compatible with LegacyLibraryContentBlock. So, once V1 libraries are migrated to V2 libraries (after Teak), we eventually
could point the `library_content` entry point at ItemBankBlock.

Part of: https://github.com/openedx/frontend-app-authoring/issues/1385
2024-10-22 15:40:46 -04:00
David Ormsbee
77e683d5b6 feat: new view & API calls to serve content library assets (#35639)
This commit adds a new view to serve static assets for content
libraries, along with Content Library API calls to add, delete, and get
metadata about these assets. These assets come from Learning Core and
should ONLY BE ACCESSED FROM STUDIO. Users must have read access to the
library in order to see an asset in that library.

This also re-implements video transcript support for content libraries
and re-enables some previously disabled tests around it.
2024-10-16 11:12:11 -04:00
Kyle McCormick
2bbd8ecd18 feat!: Remove outdated Libraries Relaunch cruft (#35644)
The V2 libraries project had a few past iterations which were never
launched. This commit cleans up pieces from those which we don't need
for the real Libraries Relaunch MVP in Sumac:

* Remove ENABLE_LIBRARY_AUTHORING_MICROFRONTEND,
  LIBRARY_AUTHORING_FRONTEND_URL, and
  REDIRECT_TO_LIBRARY_AUTHORING_MICROFRONTEND, all of which are obsolete
  now that library authoring has been merged into
  https://github.com/openedx/frontend-app-authoring.
  More details on the new Content Libraries configuration settings are
  here: https://github.com/openedx/frontend-app-authoring/issues/1334

* Remove dangling support for syncing V2 (learning core-backed) library
  content using the LibraryContentBlock. This code was all based on an
  older understanding of V2 Content Libraries, where the libraries were
  smaller and versioned as a whole rather then versioned by-item.
  Reference to V2 libraries will be done on a per-block basis using
  the upstream/downstream system, described here:
  https://github.com/openedx/edx-platform/blob/master/docs/decisions/0020-upstream-downstream.rst
  It's important that we remove this support now so that OLX course
  authors don't stuble upon it and use it, which would be buggy and
  complicate future migrations.

* Remove the "mode" parameter from LibraryContentBlock. The only
  supported mode was and is "random". We will not be adding any further
  modes. Going forward for V2, we will have an ItemBank block for
  randomizing items (regardless of source), which can be synthesized
  with upstream referenced as described above. Existing
  LibraryContentBlocks will be migrated.

* Finally, some renamings:

  * LibraryContentBlock -> LegacyLibraryContentBlock
  * LibraryToolsService -> LegacyLibraryToolsService
  * LibrarySummary -> LegacyLibrarySummary

  Module names and the old OLX tag (library_content) are unchanged.

Closes: https://github.com/openedx/frontend-app-authoring/issues/1115
2024-10-15 11:32:01 -04:00
Raymond Zhou
22b81165e7 chore: calc version bump (#35590) 2024-10-07 14:39:23 -04:00
Deborah Kaplan
8c923bea24 feat!: removes deprecated v1 certificate behavior (#35562)
* feat!: removes deprecated v1 certificate behavior

this removes the long-deprecated v1  certificate behavior. This removes
the old-style date selection behavior  (ie., not a choice between
*Immediately upon passing*, *End date of course*, *A date after the course
end date*), which is no longer reliably maintained or supported in
Studio or Credentials.

FIXES: #35399
2024-10-02 12:06:57 -04:00
AbdullahQureshee
51c3c485dd Merge branch 'master' into maq/#33589 2024-09-30 11:53:54 +05:00
Braden MacDonald
67b490cab4 fix: suppress errors+warnings when video is used in a content library (#35544) 2024-09-26 09:35:17 -07:00
Braden MacDonald
8f47c0b274 fix: whitespace issues in some capa problem index_dictionary content (#35543) 2024-09-26 09:34:58 -07:00
Tim McCormack
45d328f9fd fix: Delete flaky test test_get_user_group_id_for_partition (#35545)
This test failed on 2024-08-06 and 2024-09-24 but passed on re-run.

Deleted according to flaky test process:
https://openedx.atlassian.net/wiki/spaces/AC/pages/4306337795/Flaky+Test+Process

Flaky test ticket: https://2u-internal.atlassian.net/browse/CR-7071
2024-09-26 13:15:28 +00:00
Agrendalath
84d2ad9515 fix: increase grades rounding precision
Enabling the rounding in #16837 has been causing noticeable (up to 1 percentage
point) differences between non-rounded subsection grades and a total grade for
a course. This increases the grade precision to reduce the negative
implications of double rounding.
2024-09-24 16:05:05 +02:00
Kyle McCormick
e669400947 docs: upstream block ADR, take 2 (#35421) 2024-09-16 13:01:17 -04:00
Nathan Sprenkle
3adfb78336 revert: refactor: Convert builtin blocks' sass variables to css variables (#35480)
This reverts commit 082350e72a.
2024-09-12 12:40:30 -04:00
Muhammad Farhan Khan
082350e72a refactor: Convert builtin blocks' sass variables to css variables (#35385)
Closes: https://github.com/openedx/edx-platform/issues/35306

Part of the built-in XBlock extraction project:
https://github.com/openedx/edx-platform/issues/34827
2024-09-11 14:59:09 -04:00
Alison Langston
e498d2087d fix: allow courses to render with invalid proctoring provider (#35430) 2024-09-09 10:51:06 -04:00
Muhammad Farhan Khan
e668790e11 chore: Convert annotatable block sass variables to css variables 2024-09-02 17:36:20 +05:00
Muhammad Farhan Khan
7530927412 Merge pull request #35386 from openedx/farhan/convert-wordcloud-sass-to-css
chore: Convert word cloud block sass variables to css variables
2024-08-29 18:19:40 +05:00
Muhammad Farhan Khan
60e4449f22 chore: Convert word cloud block sass variables to css variables 2024-08-28 12:41:43 +05:00
Kristin Aoki
f0d8d5262c fix: add aria-current attributes to video captions (#35371)
This PR fixes the accessibility issues associated with only visually treating the current transcript line. The current implementation for the transcript panel bolds the text that is actively being spoken or skipped to. However, there is no aria attribute present to convey this change to assistive technology. This change impacts learners and course authors.
2024-08-27 09:06:28 -04:00
AbdullahQureshee
ae3cc9e46f Merge branch 'master' into maq/#33589 2024-08-22 16:32:30 +05:00
Tobias Macey
44112aa12d fix: Respect the authsource kwarg for MongoDB connections (#35239)
* fix: Respect the authsource kwarg for MongoDB connections

The changes for upgrading to PyMongo 4.4 introduced an authentication
bug in Mongo connections. The `authSource` parameter was being
hard-coded to use the database being connected to. In Mongo the `admin`
db is typically the source of authentication, so unless the user was
explicitly created in the target db then any attempts to connect would
result in authentication failures.

This restores the behavior of allowing for the lowercased `authsource`
kwarg to be used for the `authSource` connection parameter, while
otherwise respecting the operator's configuration parameters.

* fix: Respect the authsource kwarg for MongoDB connections

The changes for upgrading to PyMongo 4.4 introduced an authentication
bug in Mongo connections. The `authSource` parameter was being
hard-coded to use the database being connected to. In Mongo the `admin`
db is typically the source of authentication, so unless the user was
explicitly created in the target db then any attempts to connect would
result in authentication failures.

This restores the behavior of allowing for the lowercased `authsource`
kwarg to be used for the `authSource` connection parameter, while
otherwise respecting the operator's configuration parameters.
2024-08-22 15:43:15 +05:00
Abdullah Qureshi
e4d3eb332c fix: remove deprecated runtime.render_template 2024-08-22 10:42:24 +05:00
Muhammad Umar Khan
e9e4a3d041 feat!: upgrade pymongo (#35179) 2024-07-26 15:34:17 +05:00
Muhammad Anas
3b8973ad01 fix: disable submit button for archived courses (#34920)
* fix: disable submit button for archived courses
2024-07-26 10:52:32 +05:00