Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Moved by tag from the fuzzy match group to exact match (#4481)
Szymon Polaczy47fe5df0e9b8
diff --git a/catalog/dags/common/storage/media.py b/catalog/dags/common/storage/media.pyindex 1ab8afece..e977adde3 100644--- a/catalog/dags/common/storage/media.py+++ b/catalog/dags/common/storage/media.py@@ -16,13 +16,13 @@ TAG_DENYLIST = {"no person","squareformat","undefined",+ "by",}# Filter out tags that contain the following terms. All entrées should be lowercase.TAG_CONTAINS_DENYLIST = {":","=",- "by","by-nc","by-nc-nd","by-nc-sa",diff --git a/catalog/tests/dags/common/storage/test_media.py b/catalog/tests/dags/common/storage/test_media.pyindex 6f084512e..6969c657c 100644--- a/catalog/tests/dags/common/storage/test_media.py+++ b/catalog/tests/dags/common/storage/test_media.py@@ -565,8 +565,11 @@ def test_MediaStore_validates_filetype(filetype, url, expected_filetype):id="sort and enriches multiple tags",),pytest.param(- ["cc0", "valid", "garbage:=metacrap", "uploaded:by=flickrmobile"],- [{"name": "valid", "provider": "test_provider"}],+ ["cc0", "valid", "garbage:=metacrap", "uploaded:by=flickrmobile", "frisby"],+ [+ {"name": "frisby", "provider": "test_provider"},+ {"name": "valid", "provider": "test_provider"},+ ],id="exclude tags by the denylist",),pytest.param("notalist", None, id="nonlist tags should be None"),diff --git a/ingestion_server/ingestion_server/cleanup.py b/ingestion_server/ingestion_server/cleanup.pyindex da092a324..14ba9063d 100644--- a/ingestion_server/ingestion_server/cleanup.py+++ b/ingestion_server/ingestion_server/cleanup.py@@ -29,6 +29,7 @@ TAG_DENYLIST = {"uploaded:by=flickrmobile","uploaded:by=instagram","flickriosapp:filter=flamingo",+ "by",}# Filter out tags that contain the following terms. All entrees should be@@ -39,7 +40,6 @@ TAG_CONTAINS_DENYLIST = {":","=","cc0",- "by","by-nc","by-nd","by-sa",