From c96b995620240778870927567925e73521740204 Mon Sep 17 00:00:00 2001 From: SquirrelDevelopper Date: Fri, 15 Nov 2024 17:08:57 +0100 Subject: [PATCH] Set default directory exclusions for tags Previously, the tags list did not include any default values. This update initializes the directoryExclusionList with common exclusion directories like 'production' and 'staging'. This helps ensure that these directories are excluded by default if no selections are made. --- .../subcomponents/forms/DirectoryExclusionForm.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/src/pages/Admin/Settings/components/subcomponents/forms/DirectoryExclusionForm.tsx b/client/src/pages/Admin/Settings/components/subcomponents/forms/DirectoryExclusionForm.tsx index 7458902b..c5b8da8b 100644 --- a/client/src/pages/Admin/Settings/components/subcomponents/forms/DirectoryExclusionForm.tsx +++ b/client/src/pages/Admin/Settings/components/subcomponents/forms/DirectoryExclusionForm.tsx @@ -11,7 +11,17 @@ const DirectoryExclusionForm: React.FC = ( props, ) => { const [tags, setTags] = useState( - props.selectedRecord?.directoryExclusionList || [], + props.selectedRecord?.directoryExclusionList || [ + 'production', + 'staging', + 'group_vars', + 'host_vars', + 'library', + 'module_utils', + 'filters_plugin', + 'roles', + 'inventories', + ], ); const validateTag = (tag: string): boolean => {