From 586ecb4abdc9a4702d2840d6e2889ea9240caa98 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Mon, 27 Oct 2025 12:18:18 +0700 Subject: [PATCH 1/2] Fix case sensitive search for issues Signed-off-by: Artem Savchenko --- plugins/tracker-resources/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/tracker-resources/src/index.ts b/plugins/tracker-resources/src/index.ts index e84579fd7c4..4951d8f532c 100644 --- a/plugins/tracker-resources/src/index.ts +++ b/plugins/tracker-resources/src/index.ts @@ -211,8 +211,9 @@ export async function queryIssue ( q2._id = q._id } const named = await client.findAll(_class, q2, { limit: 200 }) + const lowerSearch = search.toLowerCase() for (const d of named) { - if (d.identifier.includes(search) || d.title.includes(search)) { + if (d.identifier.toLowerCase().includes(lowerSearch) || d.title.toLowerCase().includes(lowerSearch)) { if (!numbered.has(d._id)) { numbered.set(d._id, d) } From e94e6037ec79fac9a7396a490223b5db95b089c7 Mon Sep 17 00:00:00 2001 From: Artyom Savchenko Date: Mon, 27 Oct 2025 12:21:46 +0700 Subject: [PATCH 2/2] Update plugins/tracker-resources/src/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Artyom Savchenko --- plugins/tracker-resources/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/tracker-resources/src/index.ts b/plugins/tracker-resources/src/index.ts index 4951d8f532c..4015e1a640c 100644 --- a/plugins/tracker-resources/src/index.ts +++ b/plugins/tracker-resources/src/index.ts @@ -213,7 +213,9 @@ export async function queryIssue ( const named = await client.findAll(_class, q2, { limit: 200 }) const lowerSearch = search.toLowerCase() for (const d of named) { - if (d.identifier.toLowerCase().includes(lowerSearch) || d.title.toLowerCase().includes(lowerSearch)) { + const identifierLower = d.identifier.toLowerCase() + const titleLower = d.title.toLowerCase() + if (identifierLower.includes(lowerSearch) || titleLower.includes(lowerSearch)) { if (!numbered.has(d._id)) { numbered.set(d._id, d) }