From bc0ece0b353b4fa8aba2e2faf40066e2e7ba94ac Mon Sep 17 00:00:00 2001 From: Tomas Gonzalez <56565994+tommygonzaleza@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:30:10 -0400 Subject: [PATCH 1/5] Update utils.py --- breathecode/feedback/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/breathecode/feedback/utils.py b/breathecode/feedback/utils.py index 6a78e0ef8..f0542b2da 100644 --- a/breathecode/feedback/utils.py +++ b/breathecode/feedback/utils.py @@ -31,7 +31,7 @@ "lowest": "mala", }, "button_label": "Responder", - "survey_subject": "¿Cómo ha sido tu experiencia en 4Geeks hasta este momento?", + "survey_subject": "Necesitamos tu feedback", "survey_message": "Por favor toma 5 minutos para enviarnos un feedback sobre tu experiencia en la academia hasta ahora", }, "en": { @@ -66,7 +66,7 @@ "lowest": "not good", }, "button_label": "Answer the question", - "survey_subject": "How has been your experience at 4Geeks so far?", + "survey_subject": "We need your feedback", "survey_message": "Please take 5 minutes to give us feedback about your experience at the academy so far.", }, } From 1d1c0dc3e5b985976226805fdbd44a97c0a2b706 Mon Sep 17 00:00:00 2001 From: Tomas Gonzalez <56565994+tommygonzaleza@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:33:22 -0400 Subject: [PATCH 2/5] Update actions.py --- breathecode/registry/actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/breathecode/registry/actions.py b/breathecode/registry/actions.py index 8cfa67642..70060beef 100644 --- a/breathecode/registry/actions.py +++ b/breathecode/registry/actions.py @@ -788,8 +788,9 @@ def process_asset_config(asset, config): asset.with_solutions = True asset.with_video = True - if "agent" in config: - asset.agent = config["agent"] + if "editor" in config: + if "agent" in config["editor"]: + asset.agent = config["editor"]["agent"] if "solution" in config: asset.with_solutions = True From fccaf393b074fe1e193570514913a5f9d9b8f146 Mon Sep 17 00:00:00 2001 From: Tomas Gonzalez <56565994+tommygonzaleza@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:45:32 -0400 Subject: [PATCH 3/5] Update create_academy_roles.py --- .../authenticate/management/commands/create_academy_roles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/breathecode/authenticate/management/commands/create_academy_roles.py b/breathecode/authenticate/management/commands/create_academy_roles.py index be54489c9..f55180f3b 100644 --- a/breathecode/authenticate/management/commands/create_academy_roles.py +++ b/breathecode/authenticate/management/commands/create_academy_roles.py @@ -158,6 +158,7 @@ {"slug": "delete_calendly_organization", "description": "Delete calendly integration"}, {"slug": "crud_assessment", "description": "Manage student quizzes and assessments"}, {"slug": "read_user_assessment", "description": "Read user assessment submissions"}, + {"slug": "read_talent_pipeline", "description": "Read users from the talent pipeline"}, {"slug": "read_subscription", "description": "Read subscriptions and plan financings of other users"}, { "slug": "crud_subscription", @@ -419,6 +420,7 @@ def extend_roles(roles: list[RoleType]) -> None: "classroom_activity", "read_asset", "task_delivery_details", + "read_talent_pipeline", ], } ) From 5f7a18836cd531441fdf907d2a91bcc34c811ddd Mon Sep 17 00:00:00 2001 From: gustavomm19 Date: Fri, 10 Jan 2025 17:17:24 +0000 Subject: [PATCH 4/5] add sort priority to serializer --- breathecode/registry/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/breathecode/registry/serializers.py b/breathecode/registry/serializers.py index 3e7d6305b..f38ac11f1 100644 --- a/breathecode/registry/serializers.py +++ b/breathecode/registry/serializers.py @@ -503,6 +503,7 @@ def to_value(self, instance): class AssetTechnologySerializer(ParentAssetTechnologySerializer): parent = ParentAssetTechnologySerializer(required=False) + sort_priority = serpy.Field() lang = serpy.Field(required=False) From 706750b0b0e517e63c6e90305723f1d05a516070 Mon Sep 17 00:00:00 2001 From: gustavomm19 Date: Fri, 10 Jan 2025 17:39:12 +0000 Subject: [PATCH 5/5] fix test --- breathecode/registry/tests/urls/v1/tests_technology.py | 1 + 1 file changed, 1 insertion(+) diff --git a/breathecode/registry/tests/urls/v1/tests_technology.py b/breathecode/registry/tests/urls/v1/tests_technology.py index 2aabcd206..a730e96ed 100644 --- a/breathecode/registry/tests/urls/v1/tests_technology.py +++ b/breathecode/registry/tests/urls/v1/tests_technology.py @@ -20,6 +20,7 @@ def get_serializer(asset_technology, assets=[], asset_technologies=[]): "slug": asset_technology.slug, "title": asset_technology.title, "visibility": asset_technology.visibility, + "sort_priority": asset_technology.sort_priority, }