Skip to content

Commit

Permalink
add fixtures and fix function names
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Mar 25, 2024
1 parent 0fbfbaf commit 1fd6629
Show file tree
Hide file tree
Showing 10 changed files with 774 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ slackdump_2*
\#*\#
__debug_bin*
!internal/viewer/templates/*.html
!internal/fixtures/**/*.json
74 changes: 74 additions & 0 deletions internal/fixtures/assets/export/channels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[
{
"id": "CFCHDMLG3",
"created": 1547420340,
"is_open": false,
"is_group": false,
"is_shared": false,
"is_im": false,
"is_ext_shared": false,
"is_org_shared": false,
"is_pending_ext_shared": false,
"is_private": false,
"is_mpim": false,
"unlinked": 0,
"name_normalized": "general",
"num_members": 2,
"priority": 0,
"user": "",
"name": "general",
"creator": "UFCFJSRA8",
"is_archived": false,
"members": null,
"topic": {
"value": "Company-wide announcements and work-based matters",
"creator": "UFCFJSRA8",
"last_set": 1547420340
},
"purpose": {
"value": "This channel is for workspace-wide communication and announcements. All members are in this channel.",
"creator": "UFCFJSRA8",
"last_set": 1547420340
},
"is_channel": true,
"is_general": true,
"is_member": true,
"locale": ""
},
{
"id": "CGTR9ED29",
"created": 1552084362,
"is_open": false,
"is_group": false,
"is_shared": false,
"is_im": false,
"is_ext_shared": false,
"is_org_shared": false,
"is_pending_ext_shared": false,
"is_private": false,
"is_mpim": false,
"unlinked": 0,
"name_normalized": "slackdump-discussions",
"num_members": 0,
"priority": 0,
"user": "",
"name": "slackdump-discussions",
"creator": "UFCFJSRA8",
"is_archived": true,
"members": null,
"topic": {
"value": "",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "",
"creator": "",
"last_set": 0
},
"is_channel": true,
"is_general": false,
"is_member": false,
"locale": ""
}
]
66 changes: 66 additions & 0 deletions internal/fixtures/assets/export/dms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[
{
"id": "DNC8S27U5",
"created": 1568448961,
"members": [
"UNEERHWJJ",
"UGTRHT2SH"
]
},
{
"id": "DKJQ93AHG",
"created": 1561497029,
"members": [
"UKW73CTS4",
"UGTRHT2SH"
]
},
{
"id": "DHPM76ZAL",
"created": 1554767224,
"members": [
"UHC8YKG2W",
"UGTRHT2SH"
]
},
{
"id": "DGUUZSFFH",
"created": 1552162407,
"members": [
"UGTPCUB1R",
"UGTRHT2SH"
]
},
{
"id": "DGUHYUNK1",
"created": 1552085074,
"members": [
"UFCFJSRA8",
"UGTRHT2SH"
]
},
{
"id": "DGUHYUMAT",
"created": 1552085073,
"members": [
"USLACKBOT",
"UGTRHT2SH"
]
},
{
"id": "DGTHCM3T5",
"created": 1552114424,
"members": [
"UGTLW32F4",
"UGTRHT2SH"
]
},
{
"id": "DGSP8D83S",
"created": 1552085073,
"members": [
"UGTRHT2SH",
"UGTRHT2SH"
]
}
]
1 change: 1 addition & 0 deletions internal/fixtures/assets/export/groups.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
84 changes: 84 additions & 0 deletions internal/fixtures/assets/export/mpims.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
[
{
"id": "GJPBBJKE0",
"created": 1557900439,
"is_open": true,
"last_read": "1566289818.001700",
"is_group": true,
"is_shared": false,
"is_im": false,
"is_ext_shared": false,
"is_org_shared": false,
"is_pending_ext_shared": false,
"is_private": true,
"is_mpim": true,
"unlinked": 0,
"name_normalized": "mpdm-smith--seymore.a--jane.d-1",
"num_members": 0,
"priority": 0,
"user": "",
"name": "mpdm-smith--seymore.a--jane.d-1",
"creator": "UGTRHT2SH",
"is_archived": false,
"members": [
"UGTRHT2SH",
"UGTLW32F4",
"UHC8YKG2W"
],
"topic": {
"value": "",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "Group messaging with: @smith @seymore.a @jane.d",
"creator": "UGTRHT2SH",
"last_set": 1557900439
},
"is_channel": false,
"is_general": false,
"is_member": true,
"locale": ""
},
{
"id": "GM27XUQT0",
"created": 1564733127,
"is_open": true,
"last_read": "0000000000.000000",
"is_group": true,
"is_shared": false,
"is_im": false,
"is_ext_shared": false,
"is_org_shared": false,
"is_pending_ext_shared": false,
"is_private": true,
"is_mpim": true,
"unlinked": 0,
"name_normalized": "mpdm-smith--john.s--jane.d-1",
"num_members": 0,
"priority": 0,
"user": "",
"name": "mpdm-smith--john.s--jane.d-1",
"creator": "UGTRHT2SH",
"is_archived": false,
"members": [
"UGTRHT2SH",
"UFCFJSRA8",
"UHC8YKG2W"
],
"topic": {
"value": "",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "Group messaging with: @smith @john.s @jane.d",
"creator": "UGTRHT2SH",
"last_set": 1564733127
},
"is_channel": false,
"is_general": false,
"is_member": true,
"locale": ""
}
]
Loading

0 comments on commit 1fd6629

Please sign in to comment.