Skip to content

Commit bedd7ec

Browse files
committed
Add fixtures for conversation, comments, reactions
1 parent 0e10d6d commit bedd7ec

File tree

3 files changed

+225
-0
lines changed

3 files changed

+225
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
-
2+
id: 1 # conversation reaction
3+
type: zzz # not allowed reaction (added before allowed reaction list has changed)
4+
conversation_id: 1
5+
comment_id: 0
6+
user_id: 2
7+
created_unix: 1573248001
8+
9+
-
10+
id: 2 # conversation reaction
11+
type: zzz # not allowed reaction (added before allowed reaction list has changed)
12+
conversation_id: 1
13+
comment_id: 0
14+
user_id: 1
15+
created_unix: 1573248002
16+
17+
-
18+
id: 3 # conversation reaction
19+
type: eyes # allowed reaction
20+
conversation_id: 1
21+
comment_id: 0
22+
user_id: 2
23+
created_unix: 1573248003
24+
25+
-
26+
id: 4 # comment reaction
27+
type: laugh # allowed reaction
28+
conversation_id: 1
29+
comment_id: 2
30+
user_id: 2
31+
created_unix: 1573248004
32+
33+
-
34+
id: 5 # comment reaction
35+
type: laugh # allowed reaction
36+
conversation_id: 1
37+
comment_id: 2
38+
user_id: 1
39+
created_unix: 1573248005

models/fixtures/conversation.yml

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
-
2+
created_unix: 946684800
3+
id: 1
4+
index: 1
5+
num_comments: 2
6+
repo_id: 1
7+
updated_unix: 978307200
8+
-
9+
created_unix: 946684810
10+
id: 2
11+
index: 2
12+
num_comments: 0
13+
repo_id: 1
14+
updated_unix: 978307190
15+
-
16+
created_unix: 946684820
17+
id: 3
18+
index: 3
19+
num_comments: 0
20+
repo_id: 1
21+
updated_unix: 978307180
22+
-
23+
created_unix: 946684830
24+
id: 4
25+
index: 1
26+
num_comments: 1
27+
repo_id: 2
28+
updated_unix: 978307200
29+
-
30+
created_unix: 946684840
31+
id: 5
32+
index: 4
33+
num_comments: 0
34+
repo_id: 1
35+
updated_unix: 978307200
36+
-
37+
created_unix: 946684850
38+
id: 6
39+
index: 1
40+
num_comments: 0
41+
repo_id: 3
42+
updated_unix: 978307200
43+
-
44+
created_unix: 946684830
45+
id: 7
46+
index: 2
47+
num_comments: 0
48+
repo_id: 2
49+
updated_unix: 978307200
50+
-
51+
created_unix: 946684820
52+
id: 8
53+
index: 1
54+
num_comments: 0
55+
repo_id: 10
56+
updated_unix: 978307180
57+
-
58+
created_unix: 946684820
59+
id: 9
60+
index: 1
61+
num_comments: 0
62+
repo_id: 48
63+
updated_unix: 978307180
64+
-
65+
created_unix: 946684830
66+
id: 10
67+
index: 1
68+
num_comments: 0
69+
repo_id: 42
70+
updated_unix: 999307200
71+
-
72+
created_unix: 1579194806
73+
id: 11
74+
index: 5
75+
num_comments: 0
76+
repo_id: 1
77+
updated_unix: 1579194806
78+
-
79+
created_unix: 1602935696
80+
id: 12
81+
index: 2
82+
num_comments: 0
83+
repo_id: 3
84+
updated_unix: 1602935696
85+
-
86+
created_unix: 1602935696
87+
id: 13
88+
index: 1
89+
num_comments: 0
90+
repo_id: 50
91+
updated_unix: 1602935696
92+
-
93+
created_unix: 1602935696
94+
id: 14
95+
index: 1
96+
num_comments: 0
97+
repo_id: 51
98+
updated_unix: 1602935696
99+
-
100+
created_unix: 1602935696
101+
id: 15
102+
index: 1
103+
num_comments: 0
104+
repo_id: 5
105+
updated_unix: 1602935696
106+
-
107+
created_unix: 1602935696
108+
id: 16
109+
index: 1
110+
num_comments: 0
111+
repo_id: 32
112+
updated_unix: 1602935696
113+
-
114+
created_unix: 1602935696
115+
id: 17
116+
index: 2
117+
num_comments: 0
118+
repo_id: 32
119+
updated_unix: 1602935696
120+
-
121+
created_unix: 946684830
122+
id: 18
123+
index: 1
124+
num_comments: 0
125+
repo_id: 55
126+
updated_unix: 978307200
127+
-
128+
created_unix: 946684830
129+
id: 19
130+
index: 1
131+
num_comments: 0
132+
repo_id: 58
133+
updated_unix: 978307200
134+
-
135+
created_unix: 978307210
136+
id: 20
137+
index: 1
138+
num_comments: 0
139+
repo_id: 23
140+
updated_unix: 978307210
141+
-
142+
created_unix: 1707270422
143+
id: 21
144+
index: 1
145+
num_comments: 0
146+
repo_id: 60
147+
updated_unix: 1707270422
148+
-
149+
created_unix: 1707270422
150+
id: 22
151+
index: 1
152+
num_comments: 0
153+
repo_id: 61
154+
updated_unix: 1707270422
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
-
2+
id: 1
3+
type: 0 # comment
4+
poster_id: 2
5+
conversation_id: 1 # in repo_id 1
6+
label_id: 1
7+
content: "1"
8+
created_unix: 946684810
9+
-
10+
id: 2
11+
type: 0 # comment
12+
poster_id: 3 # user not watching (see watch.yml)
13+
conversation_id: 1 # in repo_id 1
14+
content: "good work!"
15+
created_unix: 946684811
16+
updated_unix: 946684811
17+
-
18+
id: 3
19+
type: 0 # comment
20+
poster_id: 5 # user not watching (see watch.yml)
21+
conversation_id: 1 # in repo_id 1
22+
content: "meh..."
23+
created_unix: 946684812
24+
updated_unix: 946684812
25+
-
26+
id: 4
27+
type: 0 # comment
28+
poster_id: 2
29+
conversation_id: 4 # in repo_id 2
30+
content: "comment in private pository"
31+
created_unix: 946684811
32+
updated_unix: 946684811

0 commit comments

Comments
 (0)