-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
72 lines (54 loc) · 1.85 KB
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
- upgrade webpack to 5
- fix html webpack plugin with webpack 5
- upgrade typescript
- upgrade rxjs
use createReactApp typescript version
login app
save vs insert?
use seasonId, suffix ids
predictions dont have gameRoundPicks
fix leaderboard tests
work on processes
punt:
>>>> jokers
findOrCreateJoker(userId, roundId)
findOneOrCreate(userId, matchId) --> [findOrCreatePrediction(userId, matchId)]
findOrCreatePredictions(userId, roundId)
findOrUpdatePrediction(userId, matchId, choice)
pickJoker(userId, matchId)
unsetJoker(userId, match)
findOrCreatePicks() { isComputerGenerated? }
findOrCreatePicks -> optimize, get matches - zip em with prediction, get match odds; use VosePredictor
findOneOrCreate -> optimize pass full match not matchId
processor -> createPredictionsIfNotExist(roundId) -> findOrCreateJoker, (findOrCreatePredictions -> findOrCreatePrediction)
processor -> unsetJokers(matchId) -> unsetJoker
UI -> load-page [findOrCreatePredictions], pick-joker [pickJoker],
change prediction-score [findOrUpdatePrediction], lucky-spin [findOrCreatePicks]
events -> match status changed [unsetJokers, processPredictions], new match round [findOrCreatePredictions]
match finished/cancelled/postponed? or not scheduled/timed?
<<<< jokers
<<< grouping
- name, teams
- match has gameRound, grouping { Group A, Round of 16, Quarter-finals, Semi-finals, Final, Third-place }
- compe has-groupings
>>> groupings
<<< stadiums
- name
- compe has stadiums
- team has stadium
- ui default to homeTeam if has stadium, drop-down or autocomplete better
<<< stadiums
dao should be composed not inherited base-repo
vose predictor laterz
refactor tests undefined types
<<< userScore
- findStandingAndUpsert
>>>
<<< pred-repo
assert more
withJoker parameter
handle nil match and empty matches --> rearrange rx pipelines
<<<
<<< gameRound
add jokerPickable? -> for last 8 wc
>>>