Commit Graph

361 Commits

Author SHA1 Message Date
0x29a
dd9f6936bc refactor: xmodule/video_module -> xmodule/video_block 2022-12-19 17:48:49 +01:00
0x29a
685f1cd679 refactor: xmodule/xml_module.py -> xmodule/xml_block.py 2022-12-19 17:48:49 +01:00
0x29a
7fa5f3847b refactor: xmodule/wrapper_module.py -> xmodule/wrapper_block.py 2022-12-19 17:48:49 +01:00
0x29a
071b4ba1b4 refactor: xmodule/word_cloud_module.py -> xmodule/word_cloud_block.py 2022-12-19 17:48:49 +01:00
0x29a
a2c5e07b41 refactor: xmodule/template_module.py -> xmodule/template_block.py 2022-12-19 17:48:49 +01:00
0x29a
70019bac04 refactor: xmodule/seq_module.py -> xmodule/seq_block.py 2022-12-19 17:48:49 +01:00
0x29a
e443e253df refactor: xmodule/raw_module.py -> xmodule/raw_block.py 2022-12-19 17:48:49 +01:00
0x29a
4aac963223 refactor: xmodule/randomize_module.py -> xmodule/randomize_block.py 2022-12-19 17:48:49 +01:00
0x29a
71b835091e refactor: xmodule/poll_module.py -> xmodule/poll_block.py 2022-12-19 17:48:49 +01:00
0x29a
57383a2840 refactor: xmodule/mako_module.py -> xmodule/mako_block.py 2022-12-19 17:48:49 +01:00
0x29a
2779bd250f refactor: xmodule/lti_module.py -> xmodule/lti_block.py 2022-12-19 17:48:49 +01:00
0x29a
e3591701e3 refactor: xmodule/library_content_module.py -> xmodule/library_content_block.py 2022-12-19 17:48:49 +01:00
0x29a
007e02cd76 refactor: xmodule/html_module.py -> xmodule/html_block.py 2022-12-19 17:48:49 +01:00
0x29a
4d8618517f refactor: xmodule/hidden_module.py -> xmodule/hidden_block.py 2022-12-19 17:48:49 +01:00
0x29a
cf47f6385f refactor: xmodule/error_module.py -> xmodule/error_block.py 2022-12-19 17:48:49 +01:00
0x29a
11caff0d2d refactor: xmodule/editing_module.py -> xmodule/editing_block.py 2022-12-19 17:48:49 +01:00
0x29a
0df1411636 refactor: xmodule/course_module.py -> xmodule/course_block.py 2022-12-19 17:48:49 +01:00
0x29a
7e33dce1ab refactor: xmodule/conditional_module.py -> xmodule/conditional_block.py 2022-12-19 17:48:49 +01:00
0x29a
4c005e86e8 refactor: xmodule/capa_module.py -> xmodule/capa_block.py 2022-12-19 17:48:49 +01:00
0x29a
7f2e68c2fd refactor: xmodule/annotatable_module.py -> xmodule/annotatable_block.py 2022-12-19 17:48:49 +01:00
bszabo
5dc8dc54e1 Merge pull request #31412 from openedx/youtube-scrape-transcripts-squashed
Youtube scrape transcripts squashed
2022-12-13 15:05:03 -05:00
Kaustav Banerjee
99cd4a4715 feat: disable allowed enrollment if enrollment closed 2022-12-13 15:49:25 +01:00
Bernard Szabo
7630ef955a feat: TNL-9460 Drop duplicate tests
Two failing tests add no coverage relative to other tests
2022-12-09 10:58:09 -05:00
Bernard Szabo
c3c8f725dc feat: TNL-9460 differentiated API GET
CMS youtube transcript tests call GET twice & need different responses on each of the two calls

Current solution (setup_caption_responses) decides what to return on basis of call number.

Former solution (mock_request_get()) decided what to return on the basis of kwargs, which would differ on first vs. second call
2022-12-07 15:07:57 -05:00
Bernard Szabo
6b0dce2911 feat: TNL-9460 remove unused transcript utility
Removed unused youtube_video_transcript_name() method & associated unit tests ( method supported defunct API)
2022-12-07 15:07:57 -05:00
Bernard Szabo
68f8093605 feat: TNL-9460 TEXT_API -> TRANSCRIPTS
TEXT_API should have been deleted in this commit, but wasn't. Attended to in a later commit.
2022-12-07 15:07:57 -05:00
Bernard Szabo
9efa820cef feat: add youtube caption link unit tests 2022-12-07 12:18:42 -05:00
iamcristye@outlook.com
44158ec844 fix: importing transcript from YouTube TNL-9460
Co-authored-by: Crist Ye  <iamCristYe@Outlook.com>
2022-12-07 12:18:42 -05:00
Piotr Surowiec
5b5a0e4c06 Merge pull request #30072 from open-craft/agrendalath/bd-13-simplify_xmodule_serialization
reafactor: simplify XModule serialization/deserialization layer [BD-13]
2022-12-07 18:01:57 +01:00
Maria Grimaldi
20b93b8b01 fix: upgrade problem templates according newer python versions (#31365) 2022-12-06 11:30:06 -04:00
Saad Ali
d0fad59306 chore: Overhaul Dockerfile for sandboxes (#31232)
* chore: Overhaul Dockerfile for sandboxes using Docker best practices
* Reduce image size by installing and removing prerequisite packages
in the same layer.
* Rearrange stages to use docker-production settings for non-dev
  targets. docker-production settings already inherit production
  settings and can be used to override configuration specific to
  containers e.g. logging.

* chore: write improved Dockerfile2 just for testing

* chore: update development stage to not run as app user

* fix: wrap settings configuration in if statement

* chore: update Dockerfile.
* Moved code COPY command down in the base stage.
* Added comments.

Co-authored-by: Alie Langston <alangsto@wellesley.edu>
2022-12-06 08:42:13 -05:00
Agrendalath
c214e697ff refactor: simplify url_name lookup
This removes a `slug` check, as we had already removed its translation in
702866b225.
2022-12-05 13:57:41 +01:00
Agrendalath
3380f88ab3 refactor: delete class XmlDescriptor
It also adds `@XBlock.needs("i18n")` to `XModuleMixin` because this service is
required there.
2022-12-05 13:57:41 +01:00
Agrendalath
8127d19115 refactor: replace XmlMixin with XmlParserMixin
Most of the methods in `XmlMixin` act as wrappers for the official API for
serialization and deserialization (parse_xml() and add_xml_to_node()).
`XmlParserMixin` contains the code which does the actual serialization and
deserialization.
2022-12-05 13:57:41 +01:00
Agrendalath
499f09e2fb refactor: convert from_xml to parse_xml for TranslateCustomTagBlock 2022-12-05 13:57:41 +01:00
Agrendalath
20f6650f53 refactor: convert from_xml to parse_xml for VideoBlock 2022-12-05 13:57:41 +01:00
Agrendalath
1bfd3842c7 refactor: convert from_xml to parse_xml in CourseBlock 2022-12-05 13:57:41 +01:00
Agrendalath
da2e89db83 refactor: move resources_dir from XmlMixin to XmlParserMixin 2022-12-05 13:57:41 +01:00
Jansen Kantor
db082830e3 fix: slight change to logic of how teams is considered enabled (#31277)
* fix: slight change to logic of how teams is considered enabled

* fixup! fix: slight change to logic of how teams is considered enabled
2022-11-29 14:01:55 -05:00
Arunmozhi
54507c1e08 feat: allow overriding TinyMCE config using settings
The TinyMCE configuration can be overridden by adding a
`TINYMCE_CONFIG_OVERRIDES` dict to the `JS_ENV_EXTRA_CONFIG`.
2022-11-23 19:55:28 +01:00
0x29a
d6c6a44ed5 refactor: remove prefer_xmodules
This function is no longer needed as all XModules have been converted to XBlocks.

XBLOCK_SELECT_FUNCTION Django setting is removed too, as it could take only `prefer_xmodules` or `default_select` values.
2022-11-16 13:08:22 +01:00
Piotr Surowiec
f419d6b194 feat: deprecate track_function and publish in ModuleSystem [BD-13] (#30046)
* feat: delete `track_function` from ModuleSystem

* feat: delete `publish` argument from ModuleSystem
2022-11-15 10:46:24 -05:00
Asad Ali
cb4279dd9e fix: retrieve raw content from TinyMCE editor (#31212)
During the upgrade to TinyMCE v5, we changed the content format to `text`.
However, it ignores changes in HTML tags. This reverts the format to `raw`.
2022-11-07 17:44:54 +01:00
Piotr Surowiec
fd2e95f531 Merge pull request #31173 from open-craft/maxim/remove-unused-xmodule-classes
[BD-13] refactor: Remove unused XModule classes
2022-11-07 17:42:39 +01:00
Sagirov Eugeniy
8f88422c4a test: prepare tests for removing support for children in Old Mongo 2022-10-28 11:43:20 -04:00
Maxim Beder
3e9437cc4a refactor: remove unused TabsEditingMixin 2022-10-28 15:37:56 +02:00
Maxim Beder
bbfa975e80 refactor: remove unused assetstore exceptions 2022-10-28 11:23:16 +02:00
Maxim Beder
205a7b25cf refactor: remove unused TimeInfo 2022-10-28 11:23:16 +02:00
Maxim Beder
8336c7f9b5 refactor: remove unused StudioEditableModule 2022-10-28 11:23:16 +02:00
Maxim Beder
98d9e622b4 refactor: remove unused MakoModuleDescriptor 2022-10-28 11:23:16 +02:00