docbrown/app/controllers/concerns/api
Joshua Wehner c2a131e43d
Add organizations to onboarding follow suggestions (#19564)
* Prepare: relocate user suggestions

* Prepare: relocate users suggestion service -> query

* Organization query for orgs with above-average scores

* Rubocop

* Limit to last 3 weeks

* Tweak recent scope, limit to 5 orgs

* Onboarding routes are also always JSON

* Divide by zero makes NaN means

* Add Orgs suggester into suggestions

* Rubocop

* select distinct orgs

* Fix for weird edge-case with bad local data

* Include type_identifier in JSON payload

* Update follows API to allow org_ids as input

* Update onboarding front-end to distinguish users/orgs

* Fix: i18n issues

* Fix: type_identifier in json output

* Fix: distinct is weird

* Fix: JS linter

* Continue tweaking front-end

* Audit import order

* Cleanup @todo note

* Try renaming controller action

* Move Article average calculation to postgres and fix math

* Refactor decorated type_identifier

* Refactor SuggestProminent, return more orgs, fix spec math

* Use FeatureFlag for organization suggestions

* This might fix the jest
2023-06-09 10:32:03 +02:00
..
admin
analytics_controller.rb
articles_controller.rb Preparation of endpoint and files required for ChatGPT Plugin (#19394) 2023-04-27 16:51:24 -04:00
comments_controller.rb
feature_flags_controller.rb
followers_controller.rb
follows_controller.rb Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
health_checks_controller.rb
instances_controller.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
listings_controller.rb Update per_page_max in API endpoints + docs bump (#18415) 2022-09-02 14:07:19 -06:00
organizations_controller.rb Update per_page_max in API endpoints + docs bump (#18415) 2022-09-02 14:07:19 -06:00
podcast_episodes_controller.rb Update per_page_max in API endpoints + docs bump (#18415) 2022-09-02 14:07:19 -06:00
profile_images_controller.rb
readinglist_controller.rb
tags_controller.rb Update per_page_max in API endpoints + docs bump (#18415) 2022-09-02 14:07:19 -06:00
users_controller.rb Create a note when a users' articles are being unpublished via API (#18545) 2022-10-10 16:25:56 +03:00
videos_controller.rb Update per_page_max in API endpoints + docs bump (#18415) 2022-09-02 14:07:19 -06:00