docbrown/app/javascript
rhymes 83852038e4
[Search 2.0] Reading list (#13052)
* Step one in populating the reading list with PG

This first attempt tries to recycle the `Search::ArticleSerializer` which is only
used in input in ES, but we're using it in output in PG.
For this reason it's currently 15.55x times slower

* Serialize only what is requested by the frontend

`Search::ArticleSerializer` which is only used in ES in the indexing step aims
to add as much info as possible for broader purposes, in this case
(with serialization in output) we should aim to save only what's requested from
the frontend.

* Optimize selection of articles columns

* Select only needed columns for users

* Compute total of reading list items

* Attach the basic filtering based on PG on the search controller

* Restructure in methods

* Add tags support

* Use LIKE on articles.cached_tag_list

* Fix tags as nil

* Fix default pagination

* Add optional FTS for reading list

* Reworded the tags comment explaining why

* Add index to reactions.status

* Fix total counter in Preact readingList component

* Fix total count in reading list backend search

* Add GIN index to articles.cached_tag_list

* Add service tests

* Add search request specs

* Added missing early return

* Update spec/requests/search_spec.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Extract MAX_PER_PAGE constant and add comments

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
2021-03-24 15:40:00 +01:00
..
.storybook Added react aliases in Storybook webpack configuration. (#12825) 2021-02-26 09:25:38 +00:00
actionsPanel CSS size reduce + cleanups. (#12625) 2021-02-16 13:44:26 +01:00
admin Remove buffer gem and related code: step 1 (#12993) 2021-03-24 09:58:38 +07:00
analytics Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
article-form Add missing CSS class (#13053) 2021-03-19 08:55:25 -05:00
articles improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
chat [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
CommentSubscription Fix subscribe to discussion button when user is not logged in (#12837) 2021-03-03 18:50:29 -06:00
common-prop-types Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
contentDisplayPolicy Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
crayons Remove buffer gem and related code: step 1 (#12993) 2021-03-24 09:58:38 +07:00
githubRepos Deprecate old button stylings with Crayons buttons (#10694) [deploy] 2020-10-14 07:28:41 -07:00
icons Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
leftSidebar Replace redundant div with Fragment (#12613) 2021-02-09 11:41:46 -06:00
listings improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
modCenter Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
onboarding Adding aria labels in Suggested people to follow screen during onboarding (#12384) 2021-03-17 11:59:50 -04:00
organization Fixed Error: Not implemented: window.computedStyle(elt, pseudoElt) console error in frontend tests. (#11633) 2020-11-26 16:55:33 -05:00
packs [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
podcasts Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00
profileDropdown Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
readingList [Search 2.0] Reading list (#13052) 2021-03-24 15:40:00 +01:00
responseTemplates improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
Search Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
searchableItemList [Search 2.0] Reading list (#13052) 2021-03-24 15:40:00 +01:00
shared/components Update shortcut code with best practices (#13026) 2021-03-24 14:03:45 +00:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
topNavigation [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
utilities [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
.eslintrc.js [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
netlify.toml Try yarn instead over npm for storybook deploys (#12376) 2021-02-26 10:30:56 -05:00