manifold/functions/src
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
..
email-templates Show investment in market resolve email 2022-02-24 01:04:24 -06:00
scripts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
add-liquidity.ts user-added liquidity provision panel (#90) 2022-04-21 12:58:12 -05:00
backup-db.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
call-cloud-function.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
change-user-info.ts Free response (#47) 2022-02-17 17:00:19 -06:00
create-answer.ts Improve Free response UI (#78) 2022-04-18 18:02:40 -05:00
create-contract.ts daily free markets' liquidity provided by @ManifoldMarkets 2022-04-29 15:58:01 -04:00
create-fold.ts Match lowercase tags for folds 2022-02-01 12:29:14 -06:00
create-user.ts Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
emails.ts sendNewCommentEmail: forgot abs value 2022-04-27 23:34:50 -04:00
fetch.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
index.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
keep-awake.ts turn keep awake on 2021-12-24 16:14:02 -05:00
market-close-emails.ts marketCloseEmails: "every hour" => "every 1 hours" 2022-02-17 12:50:47 -06:00
on-create-bet.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
on-create-comment.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
on-fold-delete.ts Fold delete 2022-01-26 14:56:15 -06:00
on-fold-follow.ts Compute fold follower count from cloud function. 2022-01-26 14:27:16 -06:00
on-view.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
place-bet.ts Remove loans: no new loans 2022-04-13 12:52:12 -05:00
redeem-shares.ts check if NaN when updating user balances 2022-03-15 22:05:08 -05:00
resolve-market.ts Probable fix to NaN invested in email 2022-03-16 23:56:59 -05:00
sell-bet.ts Sell shares panel (#69) 2022-03-29 14:56:56 -05:00
sell-shares.ts Fix sell to pay back loans 2022-03-31 00:54:42 -05:00
send-email.ts Send emails for new comments on markets you commented on or created. 2022-02-22 20:35:07 -06:00
stripe.ts Send emails for new comments on markets you commented on or created. 2022-02-22 20:35:07 -06:00
transact.ts Adjust totalDeposits on charity donation 2022-04-30 08:52:24 -04:00
unsubscribe.ts Send better error responses for unsubscribe. 2022-03-09 12:39:21 -06:00
update-contract-metrics.ts Make volume a non-optional field of contract 2022-03-23 00:09:47 -05:00
update-feed.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
update-recommendations.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
update-user-metrics.ts Use generic payout function for leaderboard profit calculation. Exclude redemptions in volume calculation 2022-03-15 17:47:05 -05:00
utils.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00