Commit 2850d90
authored
Allow argument of roll referee hub operation to be nullable (#461)
* Make `RefereeHub` inherit `LoggingHub`
Mostly because I'm starting to look at sentry issues from the referee
hub and noticing that they're missing the user ID which is useful
information, and in other hubs it is supplied by `LoggingHub` and its
related hub filter. It'll also add some datadog monitoring which may
come in useful going forward as well.
Not sure why I never did this. I think I convinced myself that the
generics didn't work in my usage because of it being tied to
`StatefulUserHub`, but on closer inspection, no, that's not the case.
* Allow argument of `Roll` referee hub operation to be nullable
Spotted via #459.
I reproduced this by calling `Roll(roomId, null)` from a JS client.
You could argue that the user was at fault here for passing `null`
rather than `{}` or something, but you could also argue that there's no
reason not to make this work with a nullable for user convenience. While
I'm not clairvoyant I can't see a future where rolling has a required
parameter in it either.1 parent 7bab117 commit 2850d90
File tree
3 files changed
+9
-9
lines changed- osu.Server.Spectator
- Hubs/Referee
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
632 | 631 | | |
633 | 632 | | |
634 | 633 | | |
635 | | - | |
| 634 | + | |
636 | 635 | | |
637 | 636 | | |
638 | 637 | | |
| |||
649 | 648 | | |
650 | 649 | | |
651 | 650 | | |
652 | | - | |
| 651 | + | |
653 | 652 | | |
654 | 653 | | |
655 | 654 | | |
| |||
823 | 822 | | |
824 | 823 | | |
825 | 824 | | |
826 | | - | |
| 825 | + | |
827 | 826 | | |
828 | 827 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments