-
Notifications
You must be signed in to change notification settings - Fork 0
/
NOTES
68 lines (55 loc) · 2.09 KB
/
NOTES
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
In order to use fields in an Ent Custom Query they need to have an index on them
Brief:
Objects:
- User
- User Authentication
- Question
- Question Vote
- Question Comment
- Answer
- Answer Vote
- Answer Comment
- Private Note
Business Logic:
User:
- User should be viewable by anyone with an account
User Login:
- User login should be viewable only by the user
Questions:
- Questions need to be visible to everyone, even without an account
- Questions need to be creatable by anyone with an account
- Questions need to be editale by the author, superusers and anyone with a reputation > 100
- Questions need to be deletable by a superuser
Question Feed:
- Need to show recent questions that have not been answered and were not written by the viewer
Question Comment:
- Need to be viewable by anyone
- Need to be creatable by anyone
- Need to be editable by super users or the author or anyone with a reputation > 100
- Need to be removable by super users
- Notify question author when question receives a comment
Answers:
- Answers need to be visible to everyone with an account
- Answers need to be creatable by anyone with an account
- Answers need to be editale by the author, superusers and anyone with a reputation > 100
- Answers need to be deletable by a superuser
Answer Comment:
- Need to be viewable by anyone
- Need to be creatable by anyone
- Need to be editable by super users or the author or anyone with a reputation > 100
- Need to be removable by super users
Question Votes:
- Need to make sure votes are visible to all accounts
- Need to make sure only auther can remove a vote
- Need to make sure only one vote per question per user
- Need to add/remove reputation to question author on vote
- Need to prevent author from voting for own question
Answer Votes:
- Need to make sure votes are visible to all accounts
- Need to make sure only auther can remove a vote
- Need to make sure only one vote per answer per user
- Need to add/remove reputation to answer author on vote
- Need to prevent author from voting for own answer
Private Notes:
- Only viewable by author
- Only editable and deletable by author