From 64c4fbf68a69703088d8a2ce2c6038abf5254048 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Tue, 23 Jul 2024 18:16:37 +0300 Subject: [PATCH] fix: Rename `id` field to `field_id` as apparently some clients cache values based on the id field alone --- selfprivacy_api/graphql/common_types/service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/selfprivacy_api/graphql/common_types/service.py b/selfprivacy_api/graphql/common_types/service.py index 5be6d3a..367ef6a 100644 --- a/selfprivacy_api/graphql/common_types/service.py +++ b/selfprivacy_api/graphql/common_types/service.py @@ -105,7 +105,7 @@ def service_dns_to_graphql(record: ServiceDnsRecord) -> DnsRecord: @strawberry.interface class ConfigItem: - id: str + field_id: str description: str widget: str type: str @@ -135,7 +135,7 @@ def config_item_to_graphql(item: dict) -> ConfigItem: item_type = item.get("type") if item_type == "string": return StringConfigItem( - id=item["id"], + field_id=item["id"], description=item["description"], widget=item["widget"], type=item_type, @@ -145,7 +145,7 @@ def config_item_to_graphql(item: dict) -> ConfigItem: ) elif item_type == "bool": return BoolConfigItem( - id=item["id"], + field_id=item["id"], description=item["description"], widget=item["widget"], type=item_type, @@ -154,7 +154,7 @@ def config_item_to_graphql(item: dict) -> ConfigItem: ) elif item_type == "enum": return EnumConfigItem( - id=item["id"], + field_id=item["id"], description=item["description"], widget=item["widget"], type=item_type,