Skip to content

Commit 4e218db

Browse files
Structure Notification Samples (#107)
* docs: add randomized notification text samples * docs: explain notification samples
1 parent 93988d2 commit 4e218db

File tree

7 files changed

+115
-0
lines changed

7 files changed

+115
-0
lines changed

docs/notification-text-samples.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Notification Text Samples
2+
When working on notifications, it is, like with any code, important to test your changes.
3+
This poses some unique challenges with the `notifications` packages: Some notifications
4+
like `StructureDestroyed` are hard to generate in EVE for obvious reasons, meaning it is
5+
difficult to test them. Therefore, we decided to create a collection of such difficult
6+
notifications that can be imported for testing.
7+
8+
EVE notification in SeAT are stored in the `character_notifications` table. Most of the columns
9+
of this table are easy to fake for testing, except for `type` and `text`, which aren't documented
10+
by CCP.
11+
12+
The `notification-text-samples` directory contains a file for some notification types, with the
13+
filename being the `type` column. In some cases, a comment is added with a `-`, e.g.
14+
`StructureUnderAttack-Hull.yaml`. In that case, only `StructureUnderAttack` is the type and
15+
`Hull` is just a comment.
16+
17+
The content of such a file is the value of the `text` field. The data is randomized on request
18+
of the people that helped to collect the dataset, so while it references for example valid
19+
structure ids, the solar system id might not match the actual system of the structure.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
isAbandoned: false
2+
ownerCorpLinkData:
3+
- showinfo
4+
- 2
5+
- 1000001
6+
ownerCorpName: Doomheim
7+
solarsystemID: 31000671
8+
structureID: &id001 1032717532381
9+
structureShowInfoData:
10+
- showinfo
11+
- 35835
12+
- *id001
13+
structureTypeID: 35835
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
solarsystemID: 31000671
2+
structureID: &id001 1032717532381
3+
structureShowInfoData:
4+
- showinfo
5+
- 35835
6+
- *id001
7+
structureTypeID: 35835
8+
timeLeft: 3252541831648
9+
timestamp: 123688745190000000
10+
vulnerableTime: 9000000000
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
allianceID: 99011162
2+
allianceLinkData:
3+
- showinfo
4+
- 16159
5+
- 99011162
6+
allianceName: Test Alliance Please Ignore
7+
armorPercentage: 99.97752473143959
8+
charID: 2120512110
9+
corpLinkData:
10+
- showinfo
11+
- 2
12+
- 1000001
13+
corpName: Doomheim
14+
hullPercentage: 100.0
15+
shieldPercentage: 1.4270966304931494e-10
16+
solarsystemID: 31000671
17+
structureID: &id001 1032717532381
18+
structureShowInfoData:
19+
- showinfo
20+
- 35835
21+
- *id001
22+
structureTypeID: 35835
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
allianceID: 99011162
2+
allianceLinkData:
3+
- showinfo
4+
- 16159
5+
- 99011162
6+
allianceName: Test Alliance Please Ignore
7+
armorPercentage: -340.00000000000006
8+
charID: 2120512110
9+
corpLinkData:
10+
- showinfo
11+
- 2
12+
- 1000001
13+
corpName: Doomheim
14+
hullPercentage: 99.05702928542462
15+
shieldPercentage: 4.833641826923347e-15
16+
solarsystemID: 31000671
17+
structureID: &id001 1032717532381
18+
structureShowInfoData:
19+
- showinfo
20+
- 35835
21+
- *id001
22+
structureTypeID: 35835
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
allianceID: 99011162
2+
allianceLinkData:
3+
- showinfo
4+
- 16159
5+
- 99011162
6+
allianceName: Test Alliance Please Ignore
7+
armorPercentage: 100.0
8+
charID: 2120512110
9+
corpLinkData:
10+
- showinfo
11+
- 2
12+
- 1000001
13+
corpName: Doomheim
14+
hullPercentage: 100.0
15+
shieldPercentage: 94.8777165028905
16+
solarsystemID: 31000671
17+
structureID: &id001 1032717532381
18+
structureShowInfoData:
19+
- showinfo
20+
- 35835
21+
- *id001
22+
structureTypeID: 35835
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
solarsystemID: 31000671
2+
structureID: &id001 1032717532381
3+
structureShowInfoData:
4+
- showinfo
5+
- 35835
6+
- *id001
7+
structureTypeID: 35835

0 commit comments

Comments
 (0)