manifold/functions/src/scripts
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
..
cache-views.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
change-user-info.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
correct-bet-probability.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
create-private-users.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
get-json-dump.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
lowercase-fold-tags.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
make-contracts-public.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
migrate-contract.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
migrate-to-cfmm.ts daily free markets' liquidity provided by @ManifoldMarkets 2022-04-29 15:58:01 -04:00
migrate-to-dpm-2.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
pay-out-contract-again.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
recalculate-contract-totals.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
remove-answer-ante.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
rename-user-contracts.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
script-init.ts Rename script environment variable to GOOGLE_APPLICATION_CREDENTIALS_DEV (and _PROD) 2022-04-20 00:47:13 -05:00
update-contract-tags.ts Change how Firebase scripts auth (#87) 2022-04-19 23:31:46 -05:00
update-feed.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
update-last-comment-time.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00