retrospring/spec
Georg Gadinger c14bae74d5 attempt to add pg_search
this commit is an attempt at building a search functionality using only
the stuff provided by postgresql

it is, unfortunately, painfully slow:

    PgSearch::Document Load (7869.1ms)  SELECT "pg_search_documents".* FROM "pg_search_documents" INNER JOIN (SELECT "pg_search_documents"."id" AS pg_search_id, (ts_rank((to_tsvector('simple', coalesce("pg_search_documents"."content"::text, ''))), (to_tsquery('simple', ''' ' || 'awoo' || ' ''')), 0)) AS rank FROM "pg_search_documents" WHERE ((to_tsvector('simple', coalesce("pg_search_documents"."content"::text, ''))) @@ (to_tsquery('simple', ''' ' || 'awoo' || ' ''')))) AS pg_search_ce9b9dd18c5c0023f2116f ON "pg_search_documents"."id" = pg_search_ce9b9dd18c5c0023f2116f.pg_search_id ORDER BY pg_search_ce9b9dd18c5c0023f2116f.rank DESC, "pg_search_documents"."id" ASC LIMIT $1  [["LIMIT", 10]]
2023-10-22 18:13:26 +02:00
..
controllers Move reactions to separate view/endpoint 2023-10-15 18:42:30 +02:00
factories Fix theme export specs 2023-01-29 21:17:23 +01:00
fixtures Add tests for MarkdownHelper 2021-12-31 22:40:38 +01:00
helpers attempt to add pg_search 2023-10-22 18:13:26 +02:00
integration add specs for version bump rake task 2023-01-11 21:18:07 +01:00
lib Adjust mute rule test case to now expect an error 2023-10-15 10:16:21 +02:00
models fix deletion of notification entries when deleting a user 2023-10-18 22:13:25 +02:00
requests attempt to add pg_search 2023-10-22 18:13:26 +02:00
shared_examples Update tests to check for touching of caching timestamps 2023-06-16 18:09:38 +02:00
support replace matchers in view specs with nokogiri-based ones 2023-02-16 21:50:12 +01:00
views attempt to add pg_search 2023-10-22 18:13:26 +02:00
workers Fix incorrect access of unread_inbox_count in notification_data 2023-03-07 19:14:14 +01:00
rails_helper.rb add view specs for inbox/_entry.html 2023-02-16 21:26:09 +01:00
spec_helper.rb enable some RSpec options (randomised tests and some other QoL things) 2023-01-06 13:59:57 +01:00