manifold/web/lib
James Grugett 06b7e49e98
[In progress] Server-side feed computation (#106)
* Store view counts & last viewed time

* Schedule updating user recommendations. Compute using tf-idf.

* Update contract's lastBetTime and lastCommentTime on new bets and comments.

* Remove contract's lastUpdatedTime

* Remove folds activity feed

* Implement getFeed cloud function

* Hook up client to use getFeed

* Script to cache viewCounts and lastViewTime

* Batched wait all userRecommendations

* Cache view script runs on all users

* Update user feed each hour and get feed from cache doc.

* Delete view cache script

* Update feed script

* Tweak feed algorithm

* Compute recommendation scores from updateUserFeed

* Disable lastViewedScore factor

* Update lastCommentTime script

* Comment out console.log

* Fix timeout issue by calling new cloud functions with part of the work.

* Listen for contract updates to feed.

* Handle new user: use default feed of top markets this week

* Track lastUpdatedTime

* Tweak logic of calling cloud functions in batches

* Tweak cloud function batching
2022-05-01 11:36:54 -05:00
..
api Apply permissive CORS headers to API (#115) 2022-04-30 13:30:49 -07:00
firebase [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
service Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
simulator Sell bets (#12) 2021-12-24 15:06:01 -06:00
util Implement copy for non-standard browsers. Fix flaky embed copy 2022-03-21 16:44:11 -05:00