From 62a7067570a0ebb1e3f9dea0bb6e65f8ffef6bb7 Mon Sep 17 00:00:00 2001 From: Roger Plotz <115798183+Roger-Ethyca@users.noreply.github.com> Date: Wed, 4 Dec 2024 15:43:43 -0500 Subject: [PATCH 1/6] empty commit to start release 2.51.0 From cd95a92e4c34bc3c5a66a7f7b5b2ef2d209437ab Mon Sep 17 00:00:00 2001 From: Andres Torres Date: Thu, 5 Dec 2024 08:25:16 -0600 Subject: [PATCH 2/6] HJ-97 - Missing QA from HJ-97 (#5559) Co-authored-by: Adam Sachs --- src/fides/api/api/v1/endpoints/system.py | 33 ++++++++++++++---------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/src/fides/api/api/v1/endpoints/system.py b/src/fides/api/api/v1/endpoints/system.py index 0171265eda..266f23e1c5 100644 --- a/src/fides/api/api/v1/endpoints/system.py +++ b/src/fides/api/api/v1/endpoints/system.py @@ -19,7 +19,11 @@ from fides.api.api import deps from fides.api.api.v1.endpoints.saas_config_endpoints import instantiate_connection -from fides.api.db.crud import get_resource, get_resource_with_custom_fields +from fides.api.db.crud import ( + get_resource, + get_resource_with_custom_fields, + list_resource, +) from fides.api.db.ctl_session import get_async_db from fides.api.db.system import ( create_system, @@ -396,6 +400,20 @@ async def ls( # pylint: disable=invalid-name Otherwise all Systems will be returned (this may be a slow operation if there are many systems, so using the pagination parameters is recommended). """ + if not ( + size + or page + or search + or data_uses + or data_categories + or data_subjects + or dnd_relevant + or show_hidden + ): + # if no advanced parameters are passed, we return a very basic list of all System resources + # to maintain backward compatibility of the original API, which backs some important client usages, e.g. the fides CLI + + return await list_resource(System, db) query = select(System) @@ -447,19 +465,6 @@ async def ls( # pylint: disable=invalid-name # Add a distinct so we only get one row per system duplicates_removed = filtered_query.distinct(System.id) - if not ( - size - or page - or search - or data_uses - or data_categories - or data_subjects - or dnd_relevant - or show_hidden - ): - result = await db.execute(duplicates_removed) - return result.scalars().all() - return await async_paginate(db, duplicates_removed, pagination_params) From b46a426115d4b5795bd9a2e11614d064b41bb832 Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Thu, 5 Dec 2024 09:43:01 -0800 Subject: [PATCH 3/6] Disable test datasets button for non-database integrations (#5560) --- .../forms/ConnectorParametersForm.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx b/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx index dae5bce4b1..92c881bd41 100644 --- a/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx +++ b/clients/admin-ui/src/features/datastore-connections/system_portal_config/forms/ConnectorParametersForm.tsx @@ -522,11 +522,13 @@ export const ConnectorParametersForm = ({ {testButtonLabel} ) : null} - {isPlusEnabled && !_.isEmpty(initialDatasets) && ( - - )} + {isPlusEnabled && + SystemType.DATABASE === connectionOption.type && + !_.isEmpty(initialDatasets) && ( + + )} {connectionOption.authorization_required && !authorized ? (