Commit Graph

10459 Commits

Author SHA1 Message Date
Andrey Cañon
c34f8efc0e Decouple XModule styles from LMS/Studio styles (attempt 2) (#32188)
This basically changes how the xmodule static files are
generated and consumed in order to separate the Xblock
styles from general style files. Includes:

* build: decople XModule style assets by using a custom webpack loader
* build: move scss imports to its specific file
* build: fix: add system dirs to theme lookup paths. 

This is an amendment to #32018

Addressing the issue #31624
2023-05-05 10:02:18 -04:00
0x29a
065f894d1b fix: missing advance_settings_access template variable
Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
2023-05-05 11:42:53 +05:30
XnpioChV
5a365c38a7 feat: Video api updated to get the transcript urls 2023-05-04 16:24:14 -05:00
XnpioChV
788c092d3e chore: Navigation to the video gallery updated 2023-05-04 16:24:13 -05:00
XnpioChV
c1b701309b feat: Waffleflag added to enable the new video editor flow 2023-05-04 16:24:06 -05:00
Kristin Aoki
af96cb1b21 feat: make video feature api to be course agnostic (#32173) 2023-05-04 13:33:07 -04:00
Agrendalath
e02555816f fix: remove relative due date limit
It was an artificial limit enforced by the frontend. The backend does not have
limitations that would prevent it from using a higher value.
2023-05-04 17:20:31 +02:00
connorhaugh
b9be2b1e56 Revert "build: Decouple XModule styles from LMS/Studio styles (#32018)" (#32183)
This reverts commit 471ba9121b.
2023-05-04 09:59:15 -04:00
Andrey Cañon
471ba9121b build: Decouple XModule styles from LMS/Studio styles (#32018)
This basically changes how the xmodule static files are
generated and consumed in order to separate the Xblock
styles from general style files. Includes:

* build: decople XModule style assets by using a custom webpack loader
* build: move scss imports to its specific file

Addressing the issue https://github.com/openedx/edx-platform/issues/31624
2023-05-04 08:21:09 -04:00
Braden MacDonald
7a5265aace chore: fix warnings with old locator properties
asset_index.html.py:175: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  asset_index.html.py:183: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))

container.html.py:387: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  container.html.py:395: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))
  course_outline.html.py:417: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
    __M_writer(js_escaped_string(context_course.location.name ))
  course_outline.html.py:425: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
    __M_writer(js_escaped_string(context_course.location.revision ))
2023-05-03 12:35:18 -07:00
Syed Ali Abbas Zaidi
f1fb38ed83 fix: multi lines and spaces issues (#31885)
* fix: multi lines and spaces issues

* fix: eslint operator-linebreak issue

* fix: eslint quotes issue

* fix: remaining quotes issues

* fix: eslint object curly newline issue

* fix: eslint object curly spacing issue

* fix: eslint brace-style issues

* fix: react jsx indent and props issues

* fix: eslint trailing spaces issues

* fix: eslint linbreak style issue

* fix: eslint space unary operator issue

* fix: eslint line around directives issue

* fix: void and typeof space unary ops issue
2023-05-03 12:22:46 +05:00
Leangseu Kim
0dc881e25a feat: course level public sharing video options
feat: add video sharing option field course field

chore: add social sharing document url

chore: add course check because library also using this
2023-05-02 14:57:25 -04:00
Agrendalath
aa85257b19 fix: use student-specific anonymous IDs in CAPA and HTML XBlocks
After changes from #31472, the user service of a "leaf" XBlock gets overridden
with the one created for its parent (SequenceBlock). Therefore, the
`requires_per_student_anonymous_id` is ignored in these XBlocks. The
subsequent renders of an XBlock (e.g., when requesting the solution) use
the student-specific IDs.

This removes choosing the proper ID (course-specific or student-specific) from
the runtime initialization. Instead, both IDs are passed to the user service.

There are only two XBlocks that relied on the
`requires_per_student_anonymous_id` - `ProblemBlock` and `HtmlBlock`. They
now request the "deprecated" (student-specific) user ID directly from the user
service.
2023-05-02 17:58:22 +02:00
Jenkins
d194c761b3 chore(i18n): update translations 2023-04-30 17:04:11 -04:00
Braden MacDonald
8ee1f66ffb feat: Paste Components (OLX) into any Unit in Studio (#31969)
* feat: Implement paste button

* chore: improve docs and add tests for python API

* fix: drive-by fix to use a better API for comparing XML

* feat: track which XBlock something was copied from

* feat: add tests

* feat: enable import linter so content_staging's public API is respected

* fix: error seen when trying to paste drag-and-drop-v2 blocks

* fix: use strip_text=True consistently for XML comparisons

* refactor: rename get_user_clipboard_status to get_user_clipboard

* feat: Better error reporting when pasting in Studio

* chore: convert new test suite to pytest assertions

* refactor: push READY status check into the API per review suggestion

* fix: use strip_text=True consistently for XML comparisons

* fix: store "copied_from_block" as a string to avoid Reference field issues

* fix: minor lint error

* refactor: move data types to data.py per OEP-49
2023-04-27 09:58:04 -07:00
Pooja Kulkarni
1950949c9e refactor: rename descriptor -> block within remaining xmodule
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:54 +02:00
Pooja Kulkarni
953e1f945e refactor: rename descriptor -> block within common
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
Pooja Kulkarni
ce13cd540a refactor: rename descriptor -> block within cms
Co-authored-by: Agrendalath <piotr@surowiec.it>
2023-04-26 17:10:53 +02:00
Muhammad Adeel Tajamul
f08b4d9090 fix: info banner not visible when course is created (#32133)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2023-04-26 18:34:16 +05:00
Kristin Aoki
766fdc5197 fix: missing blockquote margin xblock preview (#32120) 2023-04-24 16:59:12 -04:00
Jeremy Ristau
472a3b5442 Merge pull request #31472 from open-craft/kaustav/unify_modulesystem_descriptorsystem
feat: unify ModuleSystem and DescriptorSystem [BD-13]
2023-04-24 10:03:19 -04:00
Kyle McCormick
151c4fcfb2 build: move collectstatic ignore patterns into configuration (#31934)
Adds a tiny `openedx.core.djangoapps.staticfiles` app so that
static asset ignore patterns can be coded into configuration rather
than supplied on the command line or coded into pavelib.
Makes it easier to run static asset collection without Paver.

See ADR for details:
openedx/core/djangoapps/staticfiles/docs/decisions/0001-purpose-of-app.rst

Closes: https://github.com/openedx/edx-platform/issues/31658
2023-04-21 08:26:48 -04:00
Kaustav Banerjee
c5439221cb chore: address review comments 2023-04-21 11:53:49 +02:00
Kaustav Banerjee
d0fa2d65e3 test: fix test cases and lint issues 2023-04-21 11:53:49 +02:00
Kaustav Banerjee
20ed3d64ec feat: add _runtime_services attribute to DescriptorSystem 2023-04-21 11:53:49 +02:00
Kaustav Banerjee
7d8f54fa88 chore: cleanup LmsModuleSystem and PreviewModuleSystem 2023-04-21 11:53:49 +02:00
Kaustav Banerjee
dc1078fa1e feat: removed StudioEditModuleRuntime 2023-04-21 11:53:49 +02:00
Kaustav Banerjee
09e1197053 feat: remove CombinedSystem 2023-04-21 11:53:49 +02:00
Kaustav Banerjee
18fea868a9 feat: remove usage of LmsModuleSystem and PreviewModuleSystem 2023-04-21 11:53:48 +02:00
Kaustav Banerjee
017f8469de feat: merge ModuleSystem with DescriptorSystem 2023-04-21 11:53:48 +02:00
Jenkins
e01afb1c3a chore(i18n): update translations 2023-04-20 17:12:22 -04:00
connorhaugh
01897d0f51 Feat add hotjar config to studio (#32109)
* feat: add hotjar tracking to studio

* feat: add hotjar config to studio

* fix: remove xss lint error
2023-04-20 12:39:05 -04:00
connorhaugh
62e59d8ace feat: add hotjar tracking to studio (#32095) 2023-04-19 21:03:04 +00:00
David Ormsbee
7bc6ff8c34 feat: pre-fill location to Unit URL in Studio sidebar
Studio has a panel on the right side in the Unit view that shows authors
how to create a jump_to_id link to that Unit from HTML components that
are elsewhere in the course. However, that link was the literal text:

  "/jump_to_id/<location ID>"

The expectation was that people would then copy the location ID as well,
and construct the link manually. This commit is a minor tweak that just
displays the link address with the location ID pre-filled. Doing this
does cause a little bit of text overflow, which is why this commit also
removes the quotes surrounding the URL. It's still doesn't always fit
perfectly, but the increased usability is worth the small visual issue.
2023-04-19 11:09:26 -04:00
Tim McCormack
be80f2788e test: Remove unneeded signing key from CMS dev/test environments (#32082)
This key should only be needed by the LMS, as the CMS uses OAuth login and
maintains its own session.
2023-04-18 13:37:13 +00:00
Braden MacDonald
2dc79bcab4 feat: New django app for copying and pasting OLX content in Studio (#31904)
[FC-0009]
2023-04-14 11:41:41 -07:00
Jansen Kantor
de047cd6f9 feat: add assignment type count warning (#32068)
* feat: add assignment type count warning

* style: quality
2023-04-14 12:26:29 -04:00
SaadYousaf
dc63e525f8 feat: add platform notification app and models 2023-04-14 14:32:17 +05:00
Tim McCormack
d7f9fc3023 feat: Upgrade edx-django-utils to 5.4.0 and add CSP middleware (#32061) 2023-04-13 21:00:22 +00:00
sundasnoreen12
7cbfb2d8b0 fix: updated text for info banner 2023-04-12 22:39:59 +05:00
Ahtisham Shahid
bbcd3124a6 fix: added delay of 30sec to update_discussions_settings_from_course_task (#32038)
* fix: added delay of 30sec to update_discussions_settings_from_course_task

* fix: resolved linter issues
2023-04-07 15:09:04 +05:00
Ahtisham Shahid
0815d7a0cd fix: skip update_discussions_settings_from_course_task if rerun is not completed (#32036) 2023-04-06 18:30:45 +00:00
Demid
63d49d3ad6 feat: feature flag to disable Advanced Settings (#32015) 2023-04-06 18:34:22 +05:30
Ahtisham Shahid
f83d8c7059 fix: changed rerun task sequence (#32035) 2023-04-05 22:36:17 +00:00
Ahtisham Shahid
d483d0df3d fix: changed rerun task sequence (#32033) 2023-04-05 16:17:04 +00:00
Ahtisham Shahid
8eb324ae51 fix: added disucssions task in course rerun from publisher (#32028) 2023-04-05 11:56:14 +05:00
Jenkins
9caa31bb06 chore(i18n): update translations 2023-04-02 17:04:08 -04:00
Jesper Hodge
44334105cd docs: add adr for hybrid approach (#31979) 2023-03-29 13:02:20 -04:00
Jenkins
be3f83cb25 chore(i18n): update translations 2023-03-26 17:03:56 -04:00
Jansen Kantor
150c4cb836 fix: droppable must be less than total (#31972) 2023-03-23 11:17:55 -04:00