~launchpad-pqm/launchpad/devel

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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
/*
   FOAF Sample Data

   Copyright 2009 Canonical Ltd.  This software is licensed under the
   GNU Affero General Public License version 3 (see the file LICENSE).
*/

-- Person
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Dave Miller', 'Dave', 'Miller', 'name2' );           
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Colin Watson', 'Colin', 'Watson', 'name3' );                 
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Scott James Remnant', 'Scott James', 'Remnant', 'name4' );   
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Jeff Waugh', 'Jeff', 'Waugh', 'name5' );                     
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Andrew Bennetts', 'Andrew', 'Bennetts', 'name6' );           
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'James Blackwell', 'James', 'Blackwell', 'name7' );           
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Christian Reis', 'Christian', 'Reis', 'name8' );            
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Alexander Limi', 'Alexander', 'Limi', 'name9' );            
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES 
	( 'Steve Alexander', 'Steve', 'Alexander', 'name10' );          
INSERT INTO Person ( displayname, givenname, familyname, name) VALUES
        ( 'Sample Person', 'Sample', 'Person', 'name11' );              

/*
  These sample people came from the Rosetta team. They all have password "test"
*/
INSERT INTO Person ( displayname, givenname, familyname, password )
VALUES ( 'Carlos Perelló Marín', 'Carlos', 'Perelló Marín', 'MdB+BoAdbza3BA6mIkMm6bFo1kv9hR2PKZ3U' );
INSERT INTO EmailAddress (email, person, status)
VALUES ('carlos@canonical.com',
	(SELECT id FROM Person WHERE givenname='Carlos'),
	2);
INSERT INTO Person ( displayname, givenname, familyname, password )
VALUES ( 'Dafydd Harries', 'Dafydd', 'Harries', 'EvSuSe4k4tkRHSp6p+g91vyQIwL5VJ3iTbRZ' );
INSERT INTO EmailAddress (email, person, status)
VALUES ('daf@canonical.com',
	(SELECT id FROM Person WHERE givenname='Dafydd'),
	2);
INSERT INTO Person ( displayname, givenname, familyname, password )
VALUES ( 'Lalo Martins', 'Lalo', 'Martins', 'K7Qmeansl6RbuPfulfcmyDQOzp70OxVh5Fcf' );
INSERT INTO EmailAddress (email, person, status)
VALUES ('lalo@canonical.com',
	(SELECT id FROM Person WHERE givenname='Lalo'),
	2);
INSERT INTO Person ( displayname, givenname, familyname, password )
VALUES ( 'Foo Bar', 'Foo', 'Bar', 'K7Qmeansl6RbuPfulfcmyDQOzp70OxVh5Fcf' );
INSERT INTO EmailAddress (email, person, status)
VALUES ('foo.bar@canonical.com',
	(SELECT id FROM Person WHERE givenname='Foo'),
	2);

-- Insert some Teams in Person following FOAF approach

INSERT INTO Person (teamowner, displayname, teamdescription) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'Ubuntu Team',
	'This Team is responsible for the Ubuntu Distribution');

INSERT INTO Person (teamowner, displayname, teamdescription) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'Ubuntu Gnome Team',
 	'This Team is responsible for the GNOME releases Issues on whole Ubuntu Distribution');

INSERT INTO Person (teamowner, displayname, teamdescription) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'Warty Gnome Team',
  	'This Team is responsible for GNOME release Issues on Warty Distribution Release');

INSERT INTO Person (teamowner, displayname, teamdescription) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'Warty Security Team',
 	'This Team is responsible for Security Issues on Warty Distribution Release');

INSERT INTO Person (teamowner, displayname, teamdescription) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'Hoary Gnome Team',
	'This team is responsible for Security Issues on Hoary Distribution Release');

-- EmailAdress

INSERT INTO EmailAddress (email, person, status) VALUES
	('steve.alexander@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Steve Alexander'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('colin.watson@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Colin Watson'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('scott.james.remnant@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Scott James Remnant'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('andrew.bennetts@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Andrew Bennetts'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('james.blackwell@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'James Blackwell'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('christian.reis@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Christian Reis'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('jeff.waugh@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Jeff Waugh'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
	('dave.miller@ubuntulinux.com',
	(SELECT id FROM Person WHERE displayname = 'Dave Miller'),
	1 -- NEW (or 2 = VALIDATED and 3 = OLD) 
	);
INSERT INTO EmailAddress (email, person, status) VALUES
        ('justdave@bugzilla.org',
        (SELECT id FROM Person WHERE displayname='Dave Miller'),
        2
        );


-- ArchUserID
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'mark.shuttleworth');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Steve Alexander'),
	'steve.alexander');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Alexander Limi'),
	'alexander.limi');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'James Blackwell'),
	'james.blackwell');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Christian Reis'),
	'christian.reis');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Colin Watson'),
	'colin.watson');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Scott James Remnant'),
	'scott.james.remnant');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Andrew Bennetts'),
	'andrew.bennetts');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Dave Miller'),
	'dave.miller');
INSERT INTO ArchUserID (person, archuserid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Jeff Waugh'),
	'jeff.waugh');


-- WikiName
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'https://wiki.ubuntu.com/',
	'MarkShuttleworth');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Steve Alexander'),
	'https://wiki.ubuntu.com/',
	'SteveAlexander');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Alexander Limi'),
	'https://wiki.ubuntu.com/',
	'AlexanderLimi');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'James Blackwell'),
	'https://wiki.ubuntu.com/',
	'JamesBlackwell');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Christian Reis'),
	'https://wiki.ubuntu.com/',
	'ChristianReis');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Colin Watson'),
	'https://wiki.ubuntu.com/',
	'ColinWatson');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Scott James Remnant'),
	'https://wiki.ubuntu.com/',
	'ScottJamesRemnant');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Andrew Bennetts'),
	'https://wiki.ubuntu.com/',
	'AndrewBennetts');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Dave Miller'),
	'https://wiki.ubuntu.com/',
	'DaveMiller');
INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Jeff Waugh'),
	'https://wiki.ubuntu.com/',
	'JeffWaugh');

INSERT INTO WikiName (person, wiki, wikiname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Foo Bar'),
	'https://wiki.ubuntu.com/',
	'FooBar');

-- JabberID
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'markshuttleworth@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Steve Alexander'),
	'stevea@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Alexander Limi'),
	'limi@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'James Blackwell'),
	'jblack@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Christian Reis'),
	'kiko@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Colin Watson'),
	'colin@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Scott James Remnant'),
	'scott@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Andrew Bennetts'),
	'spiv@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Dave Miller'),
	'justdave@jabber.org');
INSERT INTO JabberID (person, jabberid) VALUES
	((SELECT id FROM Person WHERE displayname = 'Jeff Waugh'),
	'jeff@jabber.org');

-- IrcID
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	'irc.freenode.net',
	'mark');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Steve Alexander'),
	'irc.freenode.net',
	'SteveA');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Alexander Limi'),
	'irc.freenode.net',
	'limi');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'James Blackwell'),
	'irc.freenode.net',
	'jblack');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Dave Miller'),
	'irc.freenode.net',
	'justdave');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Christian Reis'),
	'irc.freenode.net',
	'kiko');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Colin Watson'),
	'irc.freenode.net',
	'Kamion');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Scott James Remnant'),
	'irc.freenode.net',
	'Keybuk');
INSERT INTO IrcID (person, network, nickname) VALUES
	((SELECT id FROM Person WHERE displayname = 'Jeff Waugh'),
	'irc.freenode.net',
	'jeff');

-- Membership
INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	1, -- ADMIN (2 = MEMBER)
	2); -- CURRENT (1 = PROPOSED)	

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Steve Alexander'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	2, -- MEMBER
	2); -- CURRENT

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Alexander Limi'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	2, -- MEMBER
	1); -- PROPOSED

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Colin Watson'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	2, -- MEMBER
	1); -- PROPOSED

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Andrew Bennetts'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	2, -- MEMBER
	1); -- PROPOSED

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Dave Miller'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	2, -- MEMBER
	1); -- PROPOSED

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Gnome Team'),
	1, -- ADMIN
	2); -- CURRENT	

INSERT INTO Membership(person, team, role, status) VALUES
	((SELECT id FROM Person WHERE displayname = 'Jeff Waugh'),
	(SELECT id FROM Person WHERE displayname = 'Ubuntu Gnome Team'),
	2, -- MEMBER
	2); -- CURRENT	
	

-- TeamParticipation	
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Steve Alexander')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Alexander Limi')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Colin Watson')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Andrew Bennetts')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Dave Miller')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Gnome Team'),
	(SELECT id FROM Person WHERE displayname = 'Mark Shuttleworth')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Gnome Team'),
	(SELECT id FROM Person WHERE displayname = 'Jeff Waugh')
	);

-- Nested Teams
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Team'),
	(SELECT id FROM Person WHERE displayname = 'Warty Security Team')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Gnome Team'),
	(SELECT id FROM Person WHERE displayname = 'Warty Gnome Team')
	);
INSERT INTO TeamParticipation (team, person) VALUES
	((SELECT id FROM Person WHERE displayname = 'Ubuntu Gnome Team'),
	(SELECT id FROM Person WHERE displayname = 'Hoary Gnome Team')
	);


-- GPG and Signed CoC

INSERT INTO GPGKey (owner, keyid, fingerprint, active, algorithm, keysize) 
       VALUES ((SELECT id FROM person WHERE name = 'name16'), 
               '12345678', 
               'ABCDEF0123456789ABCDDCBA0000111112345678', 
               true, 17, 1024);


INSERT INTO SignedCodeOfConduct (owner, signingkey, datecreated, signedcode, 
                                 active) VALUES 
            ((SELECT id FROM person WHERE name = 'name16'), 
             (SELECT id FROM gpgkey WHERE keyid = '12345678'), 
             '2005-09-27 10:01:13', 
             'Sampledata signedcode',
             true);