From 8a78ca8e0e8446fea6f2a7d761f5f771e0873559 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Thu, 11 Jul 2024 17:31:24 +0100 Subject: [PATCH] ENH: Stop extracting outdated `order` parameter from events --- functions/event_handler/main.py | 1 - setup.py | 2 +- tests/test_event_handler.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/functions/event_handler/main.py b/functions/event_handler/main.py index aa935c6..7af378f 100644 --- a/functions/event_handler/main.py +++ b/functions/event_handler/main.py @@ -50,7 +50,6 @@ def store_pub_sub_event_in_bigquery(cloud_event): "question_uuid": attributes.pop("question_uuid"), "parent_question_uuid": attributes.pop("parent_question_uuid"), "originator_question_uuid": attributes.pop("originator_question_uuid"), - "order": attributes.pop("order"), # Backend-specific metadata. "backend": BACKEND, "backend_metadata": backend_metadata, diff --git a/setup.py b/setup.py index abce434..28d7ac5 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name="twined-gcp", - version="0.6.0", + version="0.6.1", author="Marcus Lugg ", install_requires=[ "setuptools", diff --git a/tests/test_event_handler.py b/tests/test_event_handler.py index 912f0b5..1d40fd2 100644 --- a/tests/test_event_handler.py +++ b/tests/test_event_handler.py @@ -29,7 +29,6 @@ def test_store_pub_sub_event_in_bigquery(self): "question_uuid": "ca534cdd-24cb-4ed2-af57-e36757192acb", "parent_question_uuid": "1d897229-155d-498d-b6ae-21960fab3754", "originator_question_uuid": "fb6cf9a3-84fb-45ce-a4da-0d2257bec319", - "order": "0", "forward_logs": True, }, "messageId": "1234", @@ -61,7 +60,6 @@ def test_store_pub_sub_event_in_bigquery(self): "question_uuid": "ca534cdd-24cb-4ed2-af57-e36757192acb", "parent_question_uuid": "1d897229-155d-498d-b6ae-21960fab3754", "originator_question_uuid": "fb6cf9a3-84fb-45ce-a4da-0d2257bec319", - "order": "0", "backend": "GoogleCloudPubSub", "backend_metadata": {"message_id": "1234", "ordering_key": None}, },