rhymes
9e4de49b79
[Hotfix] [Search 2.0] Optimize performance of listings and articles and fix bugs ( #13577 )
...
* Add tsvector index on listings
* Fix sorting order when fetching tag flares
* Add published_at as a sorting condition for Homepage::ArticlesQuery
* Re-added param needed by ES, this got lost somewhere down the line
2021-04-29 17:37:59 +02:00
rhymes
c20c4abe3f
[Search 2.0] Use Article.cached_tagged_with* in queries ( #13566 )
...
* Add Symbol to Article.cached_tagged_with* and fix error bug
* Use Article.cached_tagged_with* in search
* Apply PR feedback suggestions
2021-04-29 12:00:49 +02:00
rhymes
8762815709
[Search 2.0] Match both word boundaries when filtering tags ( #13554 )
2021-04-28 11:24:45 +02:00
rhymes
f48cf141a6
Use regexp operator to avoid matching partial tags ( #13547 )
2021-04-27 20:27:11 +02:00
rhymes
8a55c3e888
[Search 2.0] Add query filters for profile, organization and tag index pages ( #13510 )
...
* Re-order test cases to increase tests readability
* Add user_id filter for articles query
* Add organization_id and tags filters
* Add new params to SearchController#feed_content
* Add current_user param so that it can be tested for a small pool of users
2021-04-27 08:49:47 +02:00
rhymes
14d98fc590
[Search 2.0] Homepage query ( #13339 )
...
* Added basic homepage query object
* Add serializers and initial service object
* Add flare tags, select only required columns
* Test default Homepage::FetchArticles behind a feature flag
* Add all needed params for the homepage feeds
* Add Homepage::ArticlesQuery specs
* Add Homepage::FetchTagFlares specs
* Add Homepage::FetchArticles specs
* Add approved filter to Homepage::ArticlesQuery
* Add specs for SearchController
* Addressed feedback
* Apply PR feedback to cleanup SearchController#feed_content
* Update app/services/homepage/fetch_tag_flares.rb
Co-authored-by: Jamie Gaskins <jamie@forem.com>
* Update spec/queries/homepage/articles_query_spec.rb
Co-authored-by: Jamie Gaskins <jamie@forem.com>
* Update spec/queries/homepage/articles_query_spec.rb
Co-authored-by: Jamie Gaskins <jamie@forem.com>
* Apply PR feedback
* Modify travis
* Revert "Modify travis"
This reverts commit b42548e866804af69542602556db47d37a31034e.
Co-authored-by: Jamie Gaskins <jamie@forem.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2021-04-21 12:41:24 +02:00