Commit Graph

80 Commits

Author SHA1 Message Date
Vyacheslav Matyukhin
8fac309bf3
Merge pull request #88 from quantified-uncertainty/embed-question-page
Embed question page
2022-06-01 00:12:21 +03:00
Vyacheslav Matyukhin
c3d144337b
Merge pull request #84 from quantified-uncertainty/metaculus-improvements
Metaculus fetcher improvements
2022-05-31 22:11:09 +03:00
Vyacheslav Matyukhin
f5a3c16322
feat: metaculus group questions, description from api 2022-05-30 23:39:13 +03:00
Vyacheslav Matyukhin
19779bca02
fix: handle empty guesstimate descriptions 2022-05-26 17:02:26 +04:00
Vyacheslav Matyukhin
ab2efa8a88
feat: remove old timestamp field 2022-05-26 14:15:06 +04:00
Vyacheslav Matyukhin
5fdea80f8b
feat: firstSeen, new questions in graphql 2022-05-21 00:59:33 +04:00
Vyacheslav Matyukhin
d684d074f5
feat: metaculus fetcher takes markdown description from js vars 2022-05-19 14:16:08 +04:00
Vyacheslav Matyukhin
4d736f711d
feat: metaculus validates api, supports --id cli arg 2022-05-19 14:16:08 +04:00
Vyacheslav Matyukhin
fad619385c
fix: circular dependency 2022-05-12 18:59:07 +04:00
Vyacheslav Matyukhin
2d5e73dd8b
feat: store smarkets original contracts and prices 2022-05-12 18:33:30 +04:00
Vyacheslav Matyukhin
fcbc627d1d
feat: improve smarkets; cli args and partial fetchers 2022-05-12 17:58:56 +04:00
Vyacheslav Matyukhin
f37a49e398
refactor: strict typescript
also:
- save history simultaneously with question data
- update squiggle
- minor refactorings
2022-05-11 01:45:02 +04:00
Vyacheslav Matyukhin
da03fa8804
refactor: stars calculation moved to platforms 2022-05-10 01:15:18 +04:00
Vyacheslav Matyukhin
ac7b541896
refactor: platforms don't need to pass in results 2022-05-09 23:34:56 +04:00
Vyacheslav Matyukhin
f6e2e8cfa1
refactor: more typescript 2022-05-09 23:27:51 +04:00
Vyacheslav Matyukhin
439a9045da
refactor: some typescript improvements 2022-05-09 21:37:28 +04:00
Vyacheslav Matyukhin
5c248388b6
feat: guesstimate platform, show guesstimate viz on question pages 2022-05-09 17:49:36 +04:00
Vyacheslav Matyukhin
3b85c32c9d
feat: capture on question pages, fixes, new frontpage condition 2022-05-04 01:34:27 +04:00
Vyacheslav Matyukhin
185464c0ae
feat: insert questions without removing (slower, but fixes fks) 2022-04-27 22:07:00 +04:00
Vyacheslav Matyukhin
c039dde3e7
fix: expose qualityIndicators fields in graphql 2022-04-26 00:24:56 +04:00
Vyacheslav Matyukhin
fd2c39435d
refactor: prisma everywhere, drop unused columns and tables 2022-04-23 23:44:38 +04:00
Vyacheslav Matyukhin
02cb8089a7
fix: prisma import, rename global._prisma 2022-04-23 00:49:52 +04:00
Vyacheslav Matyukhin
38d666fec0
feat: filter out non-existent questions on frontpage 2022-04-23 00:40:09 +04:00
Vyacheslav Matyukhin
34cfa31fe9
fix: getFrontpage query 2022-04-23 00:18:53 +04:00
Vyacheslav Matyukhin
b258afe16d
feat: store question ids only for frontpage (closes: #49) 2022-04-22 23:50:39 +04:00
Vyacheslav Matyukhin
297eadc59b
feat: graphql introspection, timestamps, custom scalar skaffolding 2022-04-20 02:50:19 +04:00
Vyacheslav Matyukhin
4397a310fe
feat: create dashboards with graphql 2022-04-20 01:29:12 +04:00
Vyacheslav Matyukhin
60d3973ea3
feat: rewrite frontend with graphql (WIP) 2022-04-19 01:15:42 +03:00
Vyacheslav Matyukhin
b02b730ac5
feat: prisma integration and initial queries for graphql 2022-04-19 01:15:09 +03:00
Vyacheslav Matyukhin
71ab64343f
refactor: extract shuffleArray to src/utils 2022-04-19 01:15:09 +03:00
Vyacheslav Matyukhin
6543a729f3
refactor: rename forecast -> question (see #40) 2022-04-19 01:15:06 +03:00
5e7596e6e7 tweak: Clean infer description + cosmetic changes 2022-04-09 23:21:35 -04:00
789fafd0f6 tweak: cosmetic improvments to good judgment fetcher 2022-04-09 23:21:24 -04:00
7aa44746bf feat: Rework INFER fetcher using the json embedded in its html 2022-04-08 11:14:43 -04:00
Vyacheslav Matyukhin
5e34ebf35e
cleanup: unnecessary db-related code 2022-04-07 22:47:17 +03:00
Vyacheslav Matyukhin
6a6597c657
WIP: more prisma migrate 2022-04-07 22:47:17 +03:00
Vyacheslav Matyukhin
5aef91414c
fix: rootclaim (fixes #39) 2022-04-07 03:02:35 +03:00
Vyacheslav Matyukhin
afeca1e796
fix: avoid connection leaks in frontpage code 2022-04-06 02:16:55 +03:00
Vyacheslav Matyukhin
39e46b1fe6
fix: more dashboards fixing & ts changes 2022-04-06 00:36:38 +03:00
Vyacheslav Matyukhin
3771b53e4f
fix: platform labels in dashboards 2022-04-06 00:02:54 +03:00
067832b72f fix: Tweak polymarket stars calculation b/c wash-trading incentives
Do this by adding liquidity requirements, rather than only loking at
volume
2022-04-05 10:46:46 -04:00
Vyacheslav Matyukhin
5ccbb7fabc
Merge pull request #42 from QURIresearch/no-schemas
Should be fine. Tables in `public` schema are ready.

Fixed secretEmbed and dashboards, fixed small bugs in platforms code (I'm starting to dislike the fact that platform fetchers have to populate `platform` field and set `id` to `${platform}-${shortId}`, it seems error-prone; maybe platforms should remove an object with `id: shortId` and without `platform`, and then an external code would populate it as needed... but then we'd need a different type for "fetcher output result", and I'm still hesitant).

Steps for the next half-hour:
- [ ] move tables to new DB instance in the US (copied with pg_dump/pg_restore)
- [ ] merge code, deploy on heroku/netlify
- [ ] switch to the new db
- [ ] update algolia index
- [ ] check that everything works
- [ ] drop schemas (from new DB, not a problem even in case of significant issues since we have backups and the old DB)
2022-04-02 03:12:36 +03:00
Vyacheslav Matyukhin
1b6ff8d440
fix: platform names, dashboards, cleanups 2022-04-02 02:25:12 +03:00
Vyacheslav Matyukhin
72db637972
feat: new db structure; platform labels 2022-04-01 23:24:35 +03:00
Vyacheslav Matyukhin
a1ba23e340
feat: data in public schema; merge history tables 2022-03-31 13:00:09 +03:00
e9f0c66ca2 tweak: only show first three options of sample when inserting 2022-03-30 22:02:52 -04:00
Vyacheslav Matyukhin
4eeab9c861
WIP: no schemas 2022-03-30 20:21:38 +03:00
Vyacheslav Matyukhin
838fecd556
feat: faster upserts 2022-03-30 20:15:01 +03:00
Vyacheslav Matyukhin
6dfbe0c05e
cleanup: logs for algolia 2022-03-30 20:14:56 +03:00
Vyacheslav Matyukhin
f9e8f320a0
feat: xrisk and givewellopenphil backend platforms 2022-03-30 19:53:22 +03:00