Skip to content

Commit

Permalink
Merge branch 'master' into zzzarius/seo-240-cookie-policy-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzarius authored Feb 27, 2023
2 parents 317108a + 860fff6 commit afaf9a9
Show file tree
Hide file tree
Showing 102 changed files with 539 additions and 1,253 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-depr-ticket-to-depr-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
secrets:
GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/add-remove-label-on-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This workflow runs when a comment is made on the ticket
# If the comment starts with "label: " it tries to apply
# the label indicated in rest of comment.
# If the comment starts with "remove label: ", it tries
# to remove the indicated label.
# Note: Labels are allowed to have spaces and this script does
# not parse spaces (as often a space is legitimate), so the command
# "label: really long lots of words label" will apply the
# label "really long lots of words label"

name: Allows for the adding and removing of labels via comment

on:
issue_comment:
types: [created]

jobs:
add_remove_labels:
uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master

12 changes: 12 additions & 0 deletions .github/workflows/self-assign-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This workflow runs when a comment is made on the ticket
# If the comment starts with "assign me" it assigns the author to the
# ticket (case insensitive)

name: Assign comment author to ticket if they say "assign me"
on:
issue_comment:
types: [created]

jobs:
self_assign_by_comment:
uses: openedx/.github/.github/workflows/self-assign-issue.yml@master
33 changes: 18 additions & 15 deletions cms/djangoapps/contentstore/signals/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,35 +176,38 @@ def listen_for_xblock_published(sender, signal, **kwargs):
"""
Publish XBLOCK_PUBLISHED signals onto the event bus.
"""
get_producer().send(
signal=XBLOCK_PUBLISHED, topic='xblock-published',
event_key_field='xblock_info.usage_key', event_data={'xblock_info': kwargs['xblock_info']},
event_metadata=kwargs['metadata'],
)
if settings.FEATURES.get("ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS"):
get_producer().send(
signal=XBLOCK_PUBLISHED, topic='xblock-published',
event_key_field='xblock_info.usage_key', event_data={'xblock_info': kwargs['xblock_info']},
event_metadata=kwargs['metadata'],
)


@receiver(XBLOCK_DELETED)
def listen_for_xblock_deleted(sender, signal, **kwargs):
"""
Publish XBLOCK_DELETED signals onto the event bus.
"""
get_producer().send(
signal=XBLOCK_DELETED, topic='xblock-deleted',
event_key_field='xblock_info.usage_key', event_data={'xblock_info': kwargs['xblock_info']},
event_metadata=kwargs['metadata'],
)
if settings.FEATURES.get("ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS"):
get_producer().send(
signal=XBLOCK_DELETED, topic='xblock-deleted',
event_key_field='xblock_info.usage_key', event_data={'xblock_info': kwargs['xblock_info']},
event_metadata=kwargs['metadata'],
)


@receiver(XBLOCK_DUPLICATED)
def listen_for_xblock_duplicated(sender, signal, **kwargs):
"""
Publish XBLOCK_DUPLICATED signals onto the event bus.
"""
get_producer().send(
signal=XBLOCK_DUPLICATED, topic='xblock-duplicated',
event_key_field='xblock_info.usage_key', event_data={'xblock_info': kwargs['xblock_info']},
event_metadata=kwargs['metadata'],
)
if settings.FEATURES.get("ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS"):
get_producer().send(
signal=XBLOCK_DUPLICATED, topic='xblock-duplicated',
event_key_field='xblock_info.usage_key', event_data={'xblock_info': kwargs['xblock_info']},
event_metadata=kwargs['metadata'],
)


@receiver(SignalHandler.course_deleted)
Expand Down
10 changes: 10 additions & 0 deletions cms/envs/devstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,16 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
CREDENTIALS_PUBLIC_SERVICE_URL = 'http://localhost:18150'

#################### Event bus backend ########################
# .. toggle_name: FEATURES['ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS']
# .. toggle_implementation: DjangoSetting
# .. toggle_default: False
# .. toggle_description: Temporary configuration which enables sending xblock events over the event bus.
# .. toggle_use_cases: open_edx
# .. toggle_creation_date: 2023-02-21
# .. toggle_warning: For consistency in user experience, keep the value in sync with the setting of the same name
# in the LMS and CMS.
# .. toggle_tickets: 'https://github.com/openedx/edx-platform/pull/31813'
FEATURES['ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS'] = True
EVENT_BUS_PRODUCER = 'edx_event_bus_kafka.create_producer'
EVENT_BUS_KAFKA_SCHEMA_REGISTRY_URL = 'http://edx.devstack.schema-registry:8081'
EVENT_BUS_KAFKA_BOOTSTRAP_SERVERS = 'edx.devstack.kafka:29092'
Expand Down
2 changes: 2 additions & 0 deletions cms/static/js/i18n/eo/djangojs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cms/static/js/i18n/rtl/djangojs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion conf/locale/ar/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Abderraouf Mehdi Bouhali <armbouhali@gmail.com>, 2022\n"
"Language-Team: Arabic (http://www.transifex.com/open-edx/edx-platform/language/ar/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/ca/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Waheed Ahmed <waheed@edx.org>, 2019\n"
"Language-Team: Catalan (https://www.transifex.com/open-edx/teams/6205/ca/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/ca/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Waheed Ahmed <waheed@edx.org>, 2019\n"
"Language-Team: Catalan (http://www.transifex.com/open-edx/edx-platform/language/ca/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/de_DE/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Alfredo Guillem, 2022\n"
"Language-Team: German (Germany) (http://www.transifex.com/open-edx/edx-platform/language/de_DE/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/el/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Waheed Ahmed <waheed@edx.org>, 2019\n"
"Language-Team: Greek (https://www.transifex.com/open-edx/teams/6205/el/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/el/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Ioannis Stavrakakis <gsalone@gmail.com>, 2020\n"
"Language-Team: Greek (http://www.transifex.com/open-edx/edx-platform/language/el/)\n"
Expand Down
8 changes: 5 additions & 3 deletions conf/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-02-21 15:16+0000\n"
"PO-Revision-Date: 2023-02-21 15:16:38.756594\n"
"POT-Creation-Date: 2023-02-26 20:35+0000\n"
"PO-Revision-Date: 2023-02-26 20:35:55.019139\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <openedx-translation@googlegroups.com>\n"
"Language: en\n"
Expand Down Expand Up @@ -10187,7 +10187,9 @@ msgid "Count"
msgstr ""

#: xmodule/library_content_block.py
msgid "Enter the number of components to display to each student."
msgid ""
"Enter the number of components to display to each student. Set it to -1 to "
"display all components."
msgstr ""

#: xmodule/library_content_block.py
Expand Down
12 changes: 10 additions & 2 deletions conf/locale/en/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-02-21 15:16+0000\n"
"PO-Revision-Date: 2023-02-21 15:16:38.909937\n"
"POT-Creation-Date: 2023-02-26 20:35+0000\n"
"PO-Revision-Date: 2023-02-26 20:35:54.725234\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <openedx-translation@googlegroups.com>\n"
"Language: en\n"
Expand Down Expand Up @@ -9698,6 +9698,14 @@ msgstr ""
msgid "Enable discussion"
msgstr ""

#: cms/templates/js/discussion-editor.underscore
msgid "Topics for unpublished units would not be created"
msgstr ""

#: cms/templates/js/discussion-editor.underscore
msgid "Please enable discussions for graded units from course authoring app"
msgstr ""

#: cms/templates/js/due-date-editor.underscore
msgid "Due Date:"
msgstr ""
Expand Down
Binary file modified conf/locale/eo/LC_MESSAGES/django.mo
Binary file not shown.
12 changes: 7 additions & 5 deletions conf/locale/eo/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-02-21 15:16+0000\n"
"PO-Revision-Date: 2023-02-21 15:16:38.756594\n"
"POT-Creation-Date: 2023-02-26 20:35+0000\n"
"PO-Revision-Date: 2023-02-26 20:35:55.019139\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <openedx-translation@googlegroups.com>\n"
"Language: eo\n"
Expand Down Expand Up @@ -13097,10 +13097,12 @@ msgid "Count"
msgstr "Çöünt Ⱡ'σяєм ιρѕ#"

#: xmodule/library_content_block.py
msgid "Enter the number of components to display to each student."
msgid ""
"Enter the number of components to display to each student. Set it to -1 to "
"display all components."
msgstr ""
"Éntér thé nümßér öf çömpönénts tö dïspläý tö éäçh stüdént. Ⱡ'σяєм ιρѕυм "
"∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#"
"Éntér thé nümßér öf çömpönénts tö dïspläý tö éäçh stüdént. Sét ït tö -1 tö "
"dïspläý äll çömpönénts. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#"

#: xmodule/library_content_block.py
msgid "Problem Type"
Expand Down
Binary file modified conf/locale/eo/LC_MESSAGES/djangojs.mo
Binary file not shown.
16 changes: 14 additions & 2 deletions conf/locale/eo/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-02-21 15:16+0000\n"
"PO-Revision-Date: 2023-02-21 15:16:38.909937\n"
"POT-Creation-Date: 2023-02-26 20:35+0000\n"
"PO-Revision-Date: 2023-02-26 20:35:54.725234\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <openedx-translation@googlegroups.com>\n"
"Language: eo\n"
Expand Down Expand Up @@ -11600,6 +11600,18 @@ msgstr "Pöst Ⱡ'σяєм ι#"
msgid "Enable discussion"
msgstr "Énäßlé dïsçüssïön Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмє#"

#: cms/templates/js/discussion-editor.underscore
msgid "Topics for unpublished units would not be created"
msgstr ""
"Töpïçs för ünpüßlïshéd ünïts wöüld nöt ßé çréätéd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт "
"αмєт, ¢σηѕє¢тєтυя α#"

#: cms/templates/js/discussion-editor.underscore
msgid "Please enable discussions for graded units from course authoring app"
msgstr ""
"Pléäsé énäßlé dïsçüssïöns för grädéd ünïts fröm çöürsé äüthörïng äpp Ⱡ'σяєм "
"ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя #"

#: cms/templates/js/due-date-editor.underscore
msgid "Due Date:"
msgstr "Düé Däté: Ⱡ'σяєм ιρѕυм ∂σł#"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/eu_ES/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Abel Camacho <abelcama@gmail.com>, 2019\n"
"Language-Team: Basque (Spain) (https://www.transifex.com/open-edx/teams/6205/eu_ES/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/eu_ES/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Abel Camacho <abelcama@gmail.com>, 2017,2019-2020\n"
"Language-Team: Basque (Spain) (http://www.transifex.com/open-edx/edx-platform/language/eu_ES/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/fa_IR/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Somaye Joolaee, 2022\n"
"Language-Team: Persian (Iran) (http://www.transifex.com/open-edx/edx-platform/language/fa_IR/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Alexandre DS <alexandre@cleverm8.com>, 2020\n"
"Language-Team: French (https://www.transifex.com/open-edx/teams/6205/fr/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/fr/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2023-01-29 20:42+0000\n"
"POT-Creation-Date: 2023-02-19 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Pierre Mailhot <pierre.mailhot@gmail.com>, 2023\n"
"Language-Team: French (http://www.transifex.com/open-edx/edx-platform/language/fr/)\n"
Expand Down
Loading

0 comments on commit afaf9a9

Please sign in to comment.