From 819f299d3bdc2485394120583b8a76a67b10b418 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 20 Mar 2024 16:00:18 +0100 Subject: tags: attempt to modify searches on tag rename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't want to break existing searches upon renaming a tag, since most of searches will be based on tag names. NOTE: if the UI of searches is improved, maybe the `tags:""` clause can contain tag ids instead of names, and hence we won't need all this dance afterwards. Signed-off-by: Miquel Sabaté Solà --- test/fixtures/searches.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test/fixtures/searches.yml') diff --git a/test/fixtures/searches.yml b/test/fixtures/searches.yml index ffc7a28..81af270 100644 --- a/test/fixtures/searches.yml +++ b/test/fixtures/searches.yml @@ -1,4 +1,14 @@ search1: name: 'search1' - body: "tag:\"tag1\"" + body: 'tag:"tag1"' + user_id: <%= ActiveRecord::FixtureSet.identify(:user) %> + +search2: + name: 'search2' + body: 'tag:"tag2"' + user_id: <%= ActiveRecord::FixtureSet.identify(:user) %> + +search3: + name: 'search3' + body: 'tag:"unknown"' user_id: <%= ActiveRecord::FixtureSet.identify(:user) %> -- cgit v1.2.3