From 03122faeec6e81d46e7cbc73b42fb31227ce1a68 Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Fri, 26 Jul 2024 18:56:35 +0100 Subject: [PATCH] fix(performance):Improve performance of /settings/ endpoint (#2201) No-Issue (cherry picked from commit cdc5b8100a2e85dc32cd9d520a65e748b956bb07) --- galaxy_ng/app/api/ui/views/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/galaxy_ng/app/api/ui/views/settings.py b/galaxy_ng/app/api/ui/views/settings.py index ad98c26ee8..9ef8054552 100644 --- a/galaxy_ng/app/api/ui/views/settings.py +++ b/galaxy_ng/app/api/ui/views/settings.py @@ -27,5 +27,6 @@ def get(self, request, *args, **kwargs): "GALAXY_LDAP_DISABLE_REFERRALS", "KEYCLOAK_URL", ] - data = {key: settings.as_dict().get(key, None) for key in keyset} + settings_dict = settings.as_dict() + data = {key: settings_dict.get(key, None) for key in keyset} return Response(data)