From db5df13bfda684f4f43266011f80f6f741623ab7 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 1 Jan 2025 19:09:09 +0100 Subject: [PATCH] fix testcase failiour by updaating snapshot --- ...21e4c984144695bc3b0c2d5be6993126dbc1c.json | 14 ++++++ ...search_executor__test__bad_queries-19.snap | 50 +++++++++---------- 2 files changed, 39 insertions(+), 25 deletions(-) create mode 100644 server/.sqlx/query-064abe062d039025429a814407c21e4c984144695bc3b0c2d5be6993126dbc1c.json diff --git a/server/.sqlx/query-064abe062d039025429a814407c21e4c984144695bc3b0c2d5be6993126dbc1c.json b/server/.sqlx/query-064abe062d039025429a814407c21e4c984144695bc3b0c2d5be6993126dbc1c.json new file mode 100644 index 000000000..4e09f8fb2 --- /dev/null +++ b/server/.sqlx/query-064abe062d039025429a814407c21e4c984144695bc3b0c2d5be6993126dbc1c.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH rows_to_delete AS (\n SELECT id\n FROM calendar WHERE room_code = $1\n LIMIT 1000\n )\n \n DELETE FROM calendar\n WHERE id IN (SELECT id FROM rows_to_delete);", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "064abe062d039025429a814407c21e4c984144695bc3b0c2d5be6993126dbc1c" +} diff --git a/server/src/search/search_executor/snapshots/navigatum_server__search__search_executor__test__bad_queries-19.snap b/server/src/search/search_executor/snapshots/navigatum_server__search__search_executor__test__bad_queries-19.snap index ffd5909af..6008add65 100644 --- a/server/src/search/search_executor/snapshots/navigatum_server__search__search_executor__test__bad_queries-19.snap +++ b/server/src/search/search_executor/snapshots/navigatum_server__search__search_executor__test__bad_queries-19.snap @@ -24,40 +24,40 @@ info: "'H.03' should get '2910.EG.003' in 1 results # H.003 is the correct room, parsed_id: "\u0019H.03\u00171 RiWa 1 (HfP/GOV)" - id: 2910.EG.032 type: room - name: "2910.EG.\u001903\u00172 (Beh.-WC)" + name: "2910.EG.\u001903\u00172 (WC-Barrierefrei)" subtext: "stammgelände, RiWa 1 (HfP/GOV)" subtext_bold: H.032@2910 parsed_id: "\u0019H.03\u00172 RiWa 1 (HfP/GOV)" - - id: 0504.03.430 + - id: 2910.03.301 type: room - name: "0504.\u001903\u0017.430 (WC-\u0019H\u0017)" - subtext: "stammgelände, Landwirtschaftsbau (Z4)" - subtext_bold: 3430@0504 - - id: 0505.03.522 + name: "2910.\u001903\u0017.301 (Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.301@2910 + - id: 2910.03.302 type: room - name: "0505.\u001903\u0017.522 (WC-\u0019H\u0017)" - subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" - subtext_bold: 3522@0505 - - id: 0505.03.526A + name: "2910.\u001903\u0017.302 (Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.302@2910 + - id: 2910.03.303 type: room - name: "0505.\u001903\u0017.526A (WC-\u0019H\u0017)" - subtext: "stammgelände, Wirtschaftswissenschaften (Z5)" - subtext_bold: 3526@0505 - - id: 0501.03.135 + name: "2910.\u001903\u0017.303 (Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.303@2910 + - id: 2910.03.304 type: room - name: "0501.\u001903\u0017.135 (Vorraum WC-\u0019H\u0017)" - subtext: "stammgelände, Hauptgebäude (Z1)" - subtext_bold: 3135@0501 - - id: 0501.03.135B + name: "2910.\u001903\u0017.304 (Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.304@2910 + - id: 2910.03.305 type: room - name: "0501.\u001903\u0017.135B (Toilette WC-\u0019H\u0017)" - subtext: "stammgelände, Hauptgebäude (Z1)" - subtext_bold: 3135B@0501 - - id: 0501.03.153A + name: "2910.\u001903\u0017.305 (Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.305@2910 + - id: 2910.03.306 type: room - name: "0501.\u001903\u0017.153A (Vorraum WC-\u0019H\u0017)" - subtext: "stammgelände, Hauptgebäude (Z1)" - subtext_bold: 3153A@0501 + name: "2910.\u001903\u0017.306 (Büro)" + subtext: "stammgelände, RiWa 1 (HfP/GOV)" + subtext_bold: H.306@2910 n_visible: 10 estimatedTotalHits: "[estimatedTotalHits]" - facet: sites_buildings