Merge branch 'feature/wbt-aws' into develop

This commit is contained in:
Daniel Egger 2023-01-11 15:34:43 +01:00
commit 01eb6f0e78
817 changed files with 35 additions and 7087 deletions

View File

@ -105,6 +105,7 @@ const profileDropdownData: DropdownListItem[] = [
<div>
<Teleport to="body">
<MobileMenu
v-if="userStore.loggedIn"
:show="state.showMenu"
:course-session="courseSessionsStore.courseSessionForRoute"
@closemodal="state.showMenu = false"

View File

@ -53,7 +53,7 @@ const clickLink = (to: string | undefined) => {
</div>
<div>
<div v-if="courseSession" class="mt-6 pb-6 border-b">
<h4 class="text-gray-900 text-sm">{{ courseSession.course.title }}</h4>
<h4 class="text-gray-900 text-sm">{{ courseSession?.course.title }}</h4>
<ul class="mt-6">
<li>
<button @click="clickLink(courseSession?.learning_path_url)">

View File

@ -28,7 +28,9 @@ function loadCourseSessionsData(reload = false) {
courseSessions.value = await itGetCached(`/api/course/sessions/`, {
reload: reload,
});
if (!courseSessions.value) {
const userStore = useUserStore();
if (!courseSessions.value && userStore.loggedIn) {
throw `No courseSessionData found for user`;
}
}

View File

@ -6,11 +6,21 @@ from wagtail.models import Page
logger = structlog.get_logger(__name__)
def get_all_subclasses(cls):
all_subclasses = []
for subclass in cls.__subclasses__():
all_subclasses.append(subclass)
all_subclasses.extend(get_all_subclasses(subclass))
return all_subclasses
def invalidate_api_page_cache(sender, **kwargs):
logger.debug("invalidate api_page_cache", label="api_page_cache")
caches["api_page_cache"].clear()
for subclass in Page.__subclasses__():
for subclass in get_all_subclasses(Page):
post_save.connect(invalidate_api_page_cache, subclass)
post_delete.connect(invalidate_api_page_cache, subclass)

View File

@ -288,7 +288,7 @@ wichtige Grundlage für eine erfolgreiche Beziehung.
"Patrizia & Marco sichern sich ab",
parent=circle,
category_name="Einkommenssicherung",
wbt_url="/static/media/lfs/story-patrizia-marco-sichern-sich-ab-einstieg/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/story-patrizia-marco-sichern-sich-ab-einstieg/index.html",
)
LearningSequenceFactory(title="Anwenden", parent=circle, icon="it-icon-ls-apply")
@ -296,8 +296,8 @@ wichtige Grundlage für eine erfolgreiche Beziehung.
"Rafael Fasel wechselt sein Auto",
parent=circle,
category_name="Fahrzeug",
wbt_url="/static/media/lfs/rafael-fasel-wechselt-sein-auto-einstieg-xapi-yXLHE5Xo/index.html",
check_url="/static/media/lfs/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/rafael-fasel-wechselt-sein-auto-einstieg-xapi-yXLHE5Xo/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
)
create_standard_learning_unit(
"Rafael Fasel zieht von zu Hause aus",
@ -308,8 +308,8 @@ wichtige Grundlage für eine erfolgreiche Beziehung.
"Emma und Ayla campen durch Amerika",
parent=circle,
category_name="Reisen",
wbt_url="/static/media/lfs/emma-und-ayla-campen-durch-amerika-einstieg-xapi-_BfVBK8d/index.html",
check_url="/static/media/lfs/fach_check_reisen/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/emma-und-ayla-campen-durch-amerika-einstieg-xapi-_BfVBK8d/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach_check_reisen/index.html",
)
create_standard_learning_unit(
"Herr und Frau Russo planen ihre Pensionierung",
@ -374,7 +374,7 @@ def create_circle_analyse(lp, title="Analyse"):
"Patrizia & Marco sichern sich ab",
parent=circle,
category_name="Einkommenssicherung",
wbt_url="/static/media/lfs/patrizia-marco-sichern-sich-ab-analyse-xapi-AoI_Ssua/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/patrizia-marco-sichern-sich-ab-analyse-xapi-AoI_Ssua/index.html",
)
LearningSequenceFactory(title="Anwenden", parent=circle, icon="it-icon-ls-apply")
@ -382,8 +382,8 @@ def create_circle_analyse(lp, title="Analyse"):
"Rafael Fasel wechselt sein Auto",
parent=circle,
category_name="Fahrzeug",
wbt_url="/static/media/lfs/rafael-fasel-wechselt-sein-auto-analyse-xapi-SmrKAa0J/index.html",
check_url="/static/media/lfs/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/rafael-fasel-wechselt-sein-auto-analyse-xapi-SmrKAa0J/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
)
create_standard_learning_unit(
"Rafael Fasel zieht von zu Hause aus",
@ -394,8 +394,8 @@ def create_circle_analyse(lp, title="Analyse"):
"Emma und Ayla campen durch Amerika",
parent=circle,
category_name="Reisen",
wbt_url="/static/media/lfs/emma-und-ayla-campen-durch-amerika-analyse-xapi-mtXA4uBz/index.html",
check_url="/static/media/lfs/fach_check_reisen/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/emma-und-ayla-campen-durch-amerika-analyse-xapi-mtXA4uBz/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach_check_reisen/index.html",
)
create_standard_learning_unit(
"Herr und Frau Russo planen ihre Pensionierung",
@ -471,8 +471,8 @@ def create_circle_loesung(lp, title="Lösung"):
"Rafael Fasel wechselt sein Auto",
parent=circle,
category_name="Fahrzeug",
wbt_url="/static/media/lfs/rafael-fasel-wechselt-sein-auto-losung-xapi-3rzf8ySd/index.html",
check_url="/static/media/lfs/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/rafael-fasel-wechselt-sein-auto-losung-xapi-3rzf8ySd/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
)
create_standard_learning_unit(
"Rafael und Claudia ziehen zusammen",
@ -483,8 +483,8 @@ def create_circle_loesung(lp, title="Lösung"):
"Emma und Ayla campen durch Amerika",
parent=circle,
category_name="Reisen",
wbt_url="/static/media/lfs/emma-und-ayla-campen-durch-amerika-losung-xapi-hn7GwUTn/index.html",
check_url="/static/media/lfs/fach_check_reisen/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/emma-und-ayla-campen-durch-amerika-losung-xapi-hn7GwUTn/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach_check_reisen/index.html",
)
create_standard_learning_unit(
"Giulia und Davide planen ihre Pensionierung",
@ -561,8 +561,8 @@ def create_circle_abschluss(lp, title="Abschluss"):
"Rafael Fasel wechselt sein Auto",
parent=circle,
category_name="Fahrzeug",
wbt_url="/static/media/lfs/rafael-fasel-wechselt-sein-auto-abschluss-xapi-WbFBv-4y/index.html",
check_url="/static/media/lfs/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/rafael-fasel-wechselt-sein-auto-abschluss-xapi-WbFBv-4y/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach-check-fahrzeug-xapi-LqpAWv1J/index.html",
)
create_standard_learning_unit(
"Rafael Fasel zieht von zu Hause aus",
@ -573,8 +573,8 @@ def create_circle_abschluss(lp, title="Abschluss"):
"Emma und Ayla campen durch Amerika",
parent=circle,
category_name="Reisen",
wbt_url="/static/media/lfs/emma-und-ayla-campen-durch-amerika-abschluss-xapi-Qv4X-yua/index.html",
check_url="/static/media/lfs/fach_check_reisen/index.html",
wbt_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/emma-und-ayla-campen-durch-amerika-abschluss-xapi-Qv4X-yua/index.html",
check_url="https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/fach_check_reisen/index.html",
)
create_standard_learning_unit(
"Herr und Frau Russo planen ihre Pensionierung",

View File

@ -96,7 +96,7 @@ class ResourceBlockFactory(wagtail_factories.StructBlockFactory):
class OnlineTrainingBlockFactory(wagtail_factories.StructBlockFactory):
url = "/static/media/web_based_trainings/rise_cmi5_test_export/scormcontent/index.html"
url = "https://s3.eu-central-1.amazonaws.com/myvbv-wbt.iterativ.ch/rise_cmi5_test_export/scormcontent/index.html"
description = "Beispiel Rise Modul"
class Meta:

Some files were not shown because too many files have changed in this diff Show More