From 6d4463db997532c1deefd5ada7f705d8539ad599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Mon, 27 Nov 2023 16:43:21 -0300 Subject: [PATCH] fix: overwrite previous tags on taxonomy import (#33752) --- .../content_tagging/rest_api/v1/tests/test_views.py | 5 ++--- requirements/constraints.txt | 2 +- requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/doc.txt | 2 +- requirements/edx/testing.txt | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/openedx/core/djangoapps/content_tagging/rest_api/v1/tests/test_views.py b/openedx/core/djangoapps/content_tagging/rest_api/v1/tests/test_views.py index f3b82b831f94..9a8147464be0 100644 --- a/openedx/core/djangoapps/content_tagging/rest_api/v1/tests/test_views.py +++ b/openedx/core/djangoapps/content_tagging/rest_api/v1/tests/test_views.py @@ -1824,10 +1824,9 @@ def test_import(self, file_format: str) -> None: url = TAXONOMY_TAGS_URL.format(pk=self.taxonomy.id) response = self.client.get(url) tags = response.data["results"] - all_tags = [{"value": tag.value} for tag in self.old_tags] + new_tags - assert len(tags) == len(all_tags) + assert len(tags) == len(new_tags) for i, tag in enumerate(tags): - assert tag["value"] == all_tags[i]["value"] + assert tag["value"] == new_tags[i]["value"] def test_import_no_file(self) -> None: """ diff --git a/requirements/constraints.txt b/requirements/constraints.txt index b8db940648c7..a94a3e013c75 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -112,7 +112,7 @@ libsass==0.10.0 click==8.1.6 # pinning this version to avoid updates while the library is being developed -openedx-learning==0.3.4 +openedx-learning==0.3.5 # lti-consumer-xblock 9.6.2 contains a breaking change that makes # existing custom parameter configurations unusable. diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 062b8e636e8b..3161e2980e5b 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -801,7 +801,7 @@ openedx-filters==1.6.0 # via # -r requirements/edx/kernel.in # lti-consumer-xblock -openedx-learning==0.3.4 +openedx-learning==0.3.5 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/kernel.in diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index a511bb32858d..683f33b09f2e 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -1338,7 +1338,7 @@ openedx-filters==1.6.0 # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt # lti-consumer-xblock -openedx-learning==0.3.4 +openedx-learning==0.3.5 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/doc.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index a3fe1d3054f0..1413bce87c78 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -959,7 +959,7 @@ openedx-filters==1.6.0 # via # -r requirements/edx/base.txt # lti-consumer-xblock -openedx-learning==0.3.4 +openedx-learning==0.3.5 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 3286fe97af9d..93808c013a15 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -1009,7 +1009,7 @@ openedx-filters==1.6.0 # via # -r requirements/edx/base.txt # lti-consumer-xblock -openedx-learning==0.3.4 +openedx-learning==0.3.5 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt