From 5e41aa5cc4080a423fe35454cc1b5331ba731150 Mon Sep 17 00:00:00 2001 From: Andreas Hilbig Date: Tue, 27 Jan 2026 18:44:44 +0100 Subject: [PATCH] chore: add default filters for host and host group queries - Introduced `HOST_TYPE_FILTER_DEFAULT` and `HOST_GROUP_FILTER_DEFAULT` constants in the `Config` class. - Updated resolvers to use these defaults when `tag_hostType` or `search_name` arguments are not provided. - Added corresponding tests to verify default behavior in host and host group queries. - Added documentation on overriding 'HOST_GROUP_FILTER_DEFAULT' by explicitly setting the 'search_name' argument in the 'allHostGroups' query. - Explained the usage of the '*' wildcard in 'search_name' with a concrete example for subgroup matching. --- .idea/workspace.xml | 26 +++++++++++-------- README.md | 52 +++++++++++++++++++++++++++++++++++++ src/api/resolvers.ts | 13 ++++++---- src/common_utils.ts | 2 ++ src/test/host_query.test.ts | 30 +++++++++++++++++++++ 5 files changed, 107 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 58392a8..ad6f159 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,17 +4,12 @@