forked from nesnass/talkwall
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
98 lines (55 loc) · 1.99 KB
/
notes
File metadata and controls
98 lines (55 loc) · 1.99 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Talkwall UI issues
------------------
next / prev arrow in top bar causes task title text to move around
task list for teacher is too small.
Design for new Message Manager
------------------------------
immutable data set at message creation, not changed thereafter. shared with all on creation only:
---------------------------------------------------------------------------------------
MM type 1 = 'create'
question_id: { type: Schema.Types.ObjectId, ref: 'Question', default: null},
createdAt: { type: Date, default: Date.now },
creator: { type: String }, // nickname
origin: [
{
nickname: { type: String },
message_id: { type: String, default: "" }
}
]
mutable by message creator only. not shared
-------------------------------------------
edits: [
{
date: { type: Date },
text: { type: String }
}
]
mutable by message creator only. shared teacher and student
------------------------------------------------
MM type 2 = 'update'
text: { type: String, default: "" },
deleted: { type: Boolean, default: false },
MM update type 1 = 'edit'
MM update type 2 = 'delete'
mutable by all. shared with teacher (or just share to all?)
------------------------------------------------
MM type 2 = 'update'
board: {
nickname: {
xpos: { type: Number },
ypos: { type: Number },
highlighted: { type: Boolean, default: false }
}
}
MM update type 3 = 'position'
TO DO
=====
(done) Remove unnecessary redis calls
queue message 'position' updates on client, send just before poll.
assign database writes to a worker?
add 'toobusy' to server
add NewRelic to server
report call failures to console
*** Check that nicknames are unique!
-> Test that wall is removed from memory after inactivity
-> Test that clients stop polling after wall is removed