Commit Graph

9913 Commits

Author SHA1 Message Date
Jenkins
8fdb83e9ed chore(i18n): update translations 2023-01-04 14:31:46 -05:00
Jesper Hodge
50b0390f12 fix: TNL-10267 video blocks load wrong editor (#31468)
* fix: video editor button redirect

* fix: remove debugging statements

* fix: remove unnecessary comments
2022-12-22 16:19:40 -05:00
Sagirov Eugeniy
02617283a0 test: fix problem with .get_children() in tests for split modulestore
* fixed problem with creating some CourseItem with some parent:
we must get the updated parent item before using that parent item
* replaced parent_location with parent argument in ItemFactory due to
error children/parent relation for split modulestore. In all tests with
split modulestore parent argument used
2022-12-21 10:58:43 -05:00
Andrew Shultz
e5f81ee36a Merge pull request #31439 from openedx/ashultz0/devstack-worker-transaction
fix: make devstack-with-worker behave like actual worker envs
2022-12-20 09:32:19 -05:00
Agrendalath
ae1dcbea74 refactor: rename HiddenDescriptor to HiddenBlock
This also handles the AttributeError in the default XBlock class fallback.
2022-12-19 17:48:49 +01:00
0x29a
83396ffb07 refactor: convert course_module term to course_block 2022-12-19 17:48:49 +01:00
0x29a
d3fee38a37 refactor: xmodule/split_test_module.py -> xmodule/split_test_block.py 2022-12-19 17:48:49 +01:00
0x29a
dd9f6936bc refactor: xmodule/video_module -> xmodule/video_block 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
2779bd250f refactor: xmodule/lti_module.py -> xmodule/lti_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
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
alangsto
a1322abb0d fix: update docker logger settings to better match normal log settings (#31448)
* fix: update docker logger settings to better match normal log settings

* feat: add docker-production settings for cms
2022-12-15 09:17:12 -05:00
Muhammad Adeel Tajamul
6ef0aba48d feat: added discussion enabled for unit in studio (#31394)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-12-14 13:21:03 +05: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
Andrew Shultz
e4476d3941 Merge pull request #31425 from openedx/ashultz0/wait-for-exam-update
wait for exam block to actually be committed before trying to update off it
2022-12-13 11:00:46 -05:00
connorhaugh
cec560b3ab feat: one problem type for new problem editor (#31423)
* feat: one problem type for new problem editor

* fix: add comment, fix lint

* fix: remove print statement

* fix: lint fix
2022-12-12 15:09:43 -05:00
Andy Shultz
301c173fe0 fix: make devstack-with-worker behave like actual worker envs
We run atomic-requests in almost all environments (for the lms and cms
anyway) EXCEPT devstack_with_worker. Using a different setting means
that even if you think you are testing with a worker like real deploys
use, you are not actually testing with the data a worker would
actually see.

The removed code also claims that if you run with atomic transactions
and a worker you will deadlock the system. If so edx.org would be
deadlocked at all times and yet is not. The old code was vintage 2015
and its assumptions probably haven't been examined since then.
2022-12-12 14:31:03 -05:00
Andy Shultz
0b68c84286 fix: convert exam update into a lambda on commit
Current behavior for both old and new exams paths on exam creation is
that the signal fires, the update code kicks off a celery task which
looks for a new exam, and that exam is not found so no actual update
is done. Or the old version is visible but the updated version is not.

By waiting until the change is actually committed, we should find the
new exam when we search for it.

This is currently an invisible bug just because of the large numbers
of updates that working on a course provides, the exam will be correct
unless it was the absolute last thing that was touched, in which case
it will be out of date.
2022-12-12 13:40:22 -05:00
Andrew Shultz
ceab37bd20 Merge pull request #31438 from openedx/ashultz0/devstack-worker-clear-cache
fix: update devstack with worker for cache and proper redis
2022-12-12 13:39:23 -05:00
Andy Shultz
569403f4ae fix: update devstack with worker for cache and proper redis
https://github.com/openedx/edx-platform/pull/31261 fixed celery
cache behavior when not running a worker and made sure production
would keep the old cache behavior, but missed these secret alternate
settings files, bring them up to date.

Also fixes the cms file to have the actual broker URL.
2022-12-12 11:17:54 -05:00
Jenkins
c1ad89b37e chore(i18n): update translations 2022-12-11 16:00:41 -05:00
connorhaugh
9781aaa618 feat: hide library content block (#31420) 2022-12-08 10:58:41 -05:00
connorhaugh
7103280921 fix: hide library source content block. 2022-12-08 09:15:02 -05:00
Bernard Szabo
d1c6542c3d feat: TNL-9460 Remove unused env
YOUTUBE[TEXT_API] corresponds to defunct API and is no longer needed
2022-12-07 15:07:57 -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
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
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
Jenkins
6ed0a6bc4d chore(i18n): update translations 2022-12-04 15:58:36 -05:00
Rebecca Graber
23e12ac779 feat: pass event_metadata to event bus (#31390) 2022-12-02 09:42:14 -05:00
Tim McCormack
279e4d0b67 feat: Use new configurable producer API for event bus (#31356)
This involves a breaking-change update to edx-event-bus-kafka 2.0.0.
2022-11-28 18:41:35 +00: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
connorhaugh
fe15171209 feat: author permission studio xblock handler (#31239)
Conversation around a hasty fix for security reasons led to a fix-forward improvement. You can find that conversation here. #31221 .
2022-11-18 16:39:51 -05:00
Shahbaz Shabbir
ee6f3164c3 feat: add course enrollment email task (#31241) 2022-11-18 17:25:52 +05:00
Kshitij Sobti
de0b132f10 fix: delay creation of course topics after course publish (#31307)
When running in a sharded MongoDB setup it's possible that querying the
modulestore right after the course publish signal will not return the
latest data.

This commit adds a delay similar to the one used in other places in the
codebase for a similar reason.
2022-11-18 16:49:29 +05:00
Maximiliano Fernandez
5fa05289a4 fix: remove course pre requisite only if is not entrance exam (#22529)
See details in the related PR

Co-authored-by: Omar Al-Ithawi <i@omardo.com>
Co-authored-by: Shadi Naif <shadinaif@gmail.com>
2022-11-17 08:20:38 -04: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
Zachary Hancock
b4ea4f1da5 fix: edx-exams request data/headers (#31290) 2022-11-14 14:11:52 -05:00
Jeff Cohen
f03b141f05 fix: do not clear request cache when running eager Celery tasks (#31261)
Clearing the RequestCache was intended to address memory leaks in the
celery workers. Celery worker processes will process many tasks before
they are terminated. RequestCache cleanup typically happens in the
RequestCacheMiddleware class, and middleware never executes for celery.
To get around that issue, the CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION
setting was created to clear the RequestCache after every task was
successfully completed.

This works fine when celery is running as a separate process, as it's
set up to do in production. But during development, the
CELERY_ALWAYS_EAGER setting variable is set to True, meaning that
celery tasks are run in the same thread as the Django Request. This is
meant to make debugging easier, as task failures run as part of the
request cycle and will raise exceptions that are visible to the
browser.

However, celery tasks are triggered from many different actions. That
means that the RequestCache was being cleared many times during the
course of processing a request. This led to behavior that was
potentially slower, but also incorrect–the RequestCache was getting
flushed in a way that wouldn't happen in any deployed environment
because celery would be running in separate processes there. This came
up when trying to fix an issue around extra history records being
created during problem submissions:

  https://discuss.openedx.org/t/extra-history-record-stored-on-each-problem-submission/8081

Furthermore, it's not necessary to prevent RequestCache memory leaks
when running in CELERY_AWLAYS_EAGER mode in development because the
middleware cleanup happens automatically–as everything is running as
part of the request/response cycle.

There are times in which we may want to run celery eagerly and still
clear the cache, such as testing. I have set
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = False in all dev and test
environments that already have CELERY_ALWAYS_EAGER = True. The unit
test that specifically tests whether the request cache is getting
cleared upon completion of a celery task then overrides
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = True even though
CELERY_ALWAYS_EAGER = True for the sake of that specific testing
purpose.
2022-11-07 11:48:39 -05:00
Jenkins
23f49f4607 chore(i18n): update translations 2022-11-06 15:58:01 -05:00
edx-transifex-bot
4b7eef2ea4 chore(i18n): update translations (#31231)
Co-authored-by: Jenkins <sre+jenkins@edx.org>
Co-authored-by: Tim McCormack <tmccormack@edx.org>
2022-10-31 15:55:09 +00:00
Zachary Hancock
01f14dbc2d test: update exams test to use split modulestore (#31223) 2022-10-28 11:49:17 -04:00
Sagirov Eugeniy
8f88422c4a test: prepare tests for removing support for children in Old Mongo 2022-10-28 11:43:20 -04:00