Skip to content

Commit 184e7f8

Browse files
committed
Add more dummy data to dev setup
1 parent 94118a1 commit 184e7f8

File tree

3 files changed

+274
-9
lines changed

3 files changed

+274
-9
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,20 @@ be provided.
4848
```
4949

5050
#### Load data
51-
For a quick start, you can load some dummy data into the database. Here's how you do that:
51+
For a quick start, you can load some dummy data into the database. Here's how
52+
you do that:
5253

53-
```
54+
```bash
5455
./manage.py loaddata auth_data.json
5556
./manage.py loaddata commitfest_data.json
5657
```
5758

58-
If you do this, the admin username and password are `admin` and `admin`.
59+
If you do this, the admin username and password are `admin` and `admin`. There
60+
are a few other users as well (`staff`, `normal`, `committer`,
61+
`inactive-committer`), that all have the same password as their username.
5962

60-
On the other hand, if you'd like to start from scratch instead, you can run the following command to create
61-
a super user:
63+
On the other hand, if you'd like to start from scratch instead, you can run the
64+
following command to create a super user:
6265

6366
```bash
6467
./manage.py createsuperuser

pgcommitfest/commitfest/fixtures/auth_data.json

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,87 @@
44
"pk": 1,
55
"fields": {
66
"password": "pbkdf2_sha256$600000$49rgHaLmmFQUm7c663LCrU$i68PFeI493lPmgNx/RHnWNuw4ZRzzvJWNqU4os5VnF4=",
7-
"last_login": "2025-01-26T10:43:07.735",
7+
"last_login": "2025-02-16T22:08:24.849",
88
"is_superuser": true,
99
"username": "admin",
10+
"first_name": "Admin",
11+
"last_name": "Adminus",
12+
"email": "[email protected]",
13+
"is_staff": true,
14+
"is_active": true,
15+
"date_joined": "2025-01-20T15:47:04",
16+
"groups": [],
17+
"user_permissions": []
18+
}
19+
},
20+
{
21+
"model": "auth.user",
22+
"pk": 2,
23+
"fields": {
24+
"password": "pbkdf2_sha256$600000$bbuE9W0Hu6YOWlLTi0kh9P$YUDGk6vwA4G0YupCfgQXJ6xVIoqcgO+i6Ss671qGTWY=",
25+
"last_login": null,
26+
"is_superuser": false,
27+
"username": "staff",
28+
"first_name": "Staff",
29+
"last_name": "Staffer",
30+
"email": "[email protected]",
31+
"is_staff": true,
32+
"is_active": true,
33+
"date_joined": "2025-02-16T21:52:04",
34+
"groups": [],
35+
"user_permissions": []
36+
}
37+
},
38+
{
39+
"model": "auth.user",
40+
"pk": 3,
41+
"fields": {
42+
"password": "pbkdf2_sha256$600000$XrYDPbhffDlFYchBg7ex0o$e5NRZ+aVyh2w2d+R8/0eYUj0KEaB7X8eXd5SKjRnntk=",
43+
"last_login": null,
44+
"is_superuser": false,
45+
"username": "normal",
46+
"first_name": "Normie",
47+
"last_name": "Normal",
48+
"email": "[email protected]",
49+
"is_staff": false,
50+
"is_active": true,
51+
"date_joined": "2025-02-16T21:53:59",
52+
"groups": [],
53+
"user_permissions": []
54+
}
55+
},
56+
{
57+
"model": "auth.user",
58+
"pk": 4,
59+
"fields": {
60+
"password": "pbkdf2_sha256$600000$hKZrucSkU4ETpCUsouasTH$rKrcOQ0Rv18nTRT6jLwj7ZH7XwEhFuwvLA9SqNI8lEs=",
61+
"last_login": null,
62+
"is_superuser": false,
63+
"username": "committer",
64+
"first_name": "Powerful",
65+
"last_name": "Committer",
66+
"email": "[email protected]",
67+
"is_staff": false,
68+
"is_active": true,
69+
"date_joined": "2025-02-16T22:08:45",
70+
"groups": [],
71+
"user_permissions": []
72+
}
73+
},
74+
{
75+
"model": "auth.user",
76+
"pk": 5,
77+
"fields": {
78+
"password": "pbkdf2_sha256$600000$MYiA9SBvmUXrBXs0g0XxAc$IQOjsMvTMNCX3xTrrnsc+caaScaxdqfVgmxjkqMY1Ps=",
79+
"last_login": null,
80+
"is_superuser": false,
81+
"username": "inactive-committer",
1082
"first_name": "",
1183
"last_name": "",
12-
"email": "[email protected]",
13-
"is_staff": true,
84+
"email": "",
85+
"is_staff": false,
1486
"is_active": true,
15-
"date_joined": "2025-01-20T15:47:04.132",
87+
"date_joined": "2025-02-16T22:09:18.306",
1688
"groups": [],
1789
"user_permissions": []
1890
}

pgcommitfest/commitfest/fixtures/commitfest_data.json

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
[
2+
{
3+
"model": "commitfest.committer",
4+
"pk": 1,
5+
"fields": {
6+
"active": true
7+
}
8+
},
9+
{
10+
"model": "commitfest.committer",
11+
"pk": 4,
12+
"fields": {
13+
"active": true
14+
}
15+
},
16+
{
17+
"model": "commitfest.committer",
18+
"pk": 5,
19+
"fields": {
20+
"active": false
21+
}
22+
},
223
{
324
"model": "commitfest.commitfest",
425
"pk": 1,
@@ -153,6 +174,48 @@
153174
]
154175
}
155176
},
177+
{
178+
"model": "commitfest.patch",
179+
"pk": 5,
180+
"fields": {
181+
"name": "Add get_bytes() and set_bytes() functions",
182+
"topic": 3,
183+
"wikilink": "",
184+
"gitlink": "",
185+
"targetversion": null,
186+
"committer": 4,
187+
"created": "2025-02-16T21:59:04.131",
188+
"modified": "2025-02-16T22:03:24.902",
189+
"lastmail": "2025-01-20T14:01:53",
190+
"authors": [],
191+
"reviewers": [],
192+
"subscribers": [],
193+
"mailthread_set": [
194+
5
195+
]
196+
}
197+
},
198+
{
199+
"model": "commitfest.patch",
200+
"pk": 6,
201+
"fields": {
202+
"name": "Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options",
203+
"topic": 3,
204+
"wikilink": "",
205+
"gitlink": "",
206+
"targetversion": null,
207+
"committer": null,
208+
"created": "2025-02-16T22:03:58.476",
209+
"modified": "2025-02-16T22:04:23.180",
210+
"lastmail": "2025-01-19T23:55:17",
211+
"authors": [],
212+
"reviewers": [],
213+
"subscribers": [],
214+
"mailthread_set": [
215+
6
216+
]
217+
}
218+
},
156219
{
157220
"model": "commitfest.patchoncommitfest",
158221
"pk": 1,
@@ -208,6 +271,28 @@
208271
"status": 1
209272
}
210273
},
274+
{
275+
"model": "commitfest.patchoncommitfest",
276+
"pk": 6,
277+
"fields": {
278+
"patch": 5,
279+
"commitfest": 2,
280+
"enterdate": "2025-02-16T21:59:04.131",
281+
"leavedate": "2025-02-16T22:03:24.896",
282+
"status": 4
283+
}
284+
},
285+
{
286+
"model": "commitfest.patchoncommitfest",
287+
"pk": 7,
288+
"fields": {
289+
"patch": 6,
290+
"commitfest": 2,
291+
"enterdate": "2025-02-16T22:03:58.477",
292+
"leavedate": "2025-02-16T22:04:18.213",
293+
"status": 6
294+
}
295+
},
211296
{
212297
"model": "commitfest.patchhistory",
213298
"pk": 1,
@@ -318,6 +403,83 @@
318403
"what": "Attached mail thread example@message-4"
319404
}
320405
},
406+
{
407+
"model": "commitfest.patchhistory",
408+
"pk": 11,
409+
"fields": {
410+
"patch": 5,
411+
"date": "2025-02-16T21:59:04.132",
412+
"by": 1,
413+
"by_cfbot": false,
414+
"what": "Created patch record"
415+
}
416+
},
417+
{
418+
"model": "commitfest.patchhistory",
419+
"pk": 12,
420+
"fields": {
421+
"patch": 5,
422+
"date": "2025-02-16T21:59:04.134",
423+
"by": 1,
424+
"by_cfbot": false,
425+
"what": "Attached mail thread example@message-1"
426+
}
427+
},
428+
{
429+
"model": "commitfest.patchhistory",
430+
"pk": 13,
431+
"fields": {
432+
"patch": 5,
433+
"date": "2025-02-16T22:03:24.897",
434+
"by": 1,
435+
"by_cfbot": false,
436+
"what": "Changed committer to committer"
437+
}
438+
},
439+
{
440+
"model": "commitfest.patchhistory",
441+
"pk": 14,
442+
"fields": {
443+
"patch": 5,
444+
"date": "2025-02-16T22:03:24.903",
445+
"by": 1,
446+
"by_cfbot": false,
447+
"what": "Closed in commitfest Sample In Progress Commitfest with status: Committed"
448+
}
449+
},
450+
{
451+
"model": "commitfest.patchhistory",
452+
"pk": 15,
453+
"fields": {
454+
"patch": 6,
455+
"date": "2025-02-16T22:03:58.479",
456+
"by": 1,
457+
"by_cfbot": false,
458+
"what": "Created patch record"
459+
}
460+
},
461+
{
462+
"model": "commitfest.patchhistory",
463+
"pk": 16,
464+
"fields": {
465+
"patch": 6,
466+
"date": "2025-02-16T22:03:58.486",
467+
"by": 1,
468+
"by_cfbot": false,
469+
"what": "Attached mail thread example@message-16"
470+
}
471+
},
472+
{
473+
"model": "commitfest.patchhistory",
474+
"pk": 17,
475+
"fields": {
476+
"patch": 6,
477+
"date": "2025-02-16T22:04:18.217",
478+
"by": 1,
479+
"by_cfbot": false,
480+
"what": "Closed in commitfest Sample In Progress Commitfest with status: Rejected"
481+
}
482+
},
321483
{
322484
"model": "commitfest.mailthread",
323485
"pk": 1,
@@ -374,6 +536,34 @@
374536
"latestmsgid": "example@message-4"
375537
}
376538
},
539+
{
540+
"model": "commitfest.mailthread",
541+
"pk": 5,
542+
"fields": {
543+
"messageid": "example@message-1",
544+
"subject": "Re: [PATCH] Add get_bytes() and set_bytes() functions",
545+
"firstmessage": "2025-01-20T14:01:53",
546+
"firstauthor": "[email protected]",
547+
"latestmessage": "2025-01-20T14:01:53",
548+
"latestauthor": "[email protected]",
549+
"latestsubject": "Re: [PATCH] Add get_bytes() and set_bytes() functions",
550+
"latestmsgid": "example@message-1"
551+
}
552+
},
553+
{
554+
"model": "commitfest.mailthread",
555+
"pk": 6,
556+
"fields": {
557+
"messageid": "example@message-16",
558+
"subject": "Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options",
559+
"firstmessage": "2025-01-19T23:55:17",
560+
"firstauthor": "[email protected]",
561+
"latestmessage": "2025-01-19T23:55:17",
562+
"latestauthor": "[email protected]",
563+
"latestsubject": "Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options",
564+
"latestmsgid": "example@message-16"
565+
}
566+
},
377567
{
378568
"model": "commitfest.patchstatus",
379569
"pk": 1,

0 commit comments

Comments
 (0)