-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional metadata to index. (#29)
This includes: * Team name, id, display name * Channel name, id, display name and type * Basic LegalHold details (name, id, display name, start time, last executed at time) Also adds TeamID to CSV files of messages. This is to make the HTML processed version more human-friendly. Fixes #22
- Loading branch information
1 parent
9a1de34
commit 436a009
Showing
7 changed files
with
205 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package model | ||
|
||
type ChannelMetadata struct { | ||
ChannelID string | ||
ChannelName string | ||
ChannelDisplayName string | ||
ChannelType string | ||
TeamID string | ||
TeamName string | ||
TeamDisplayName string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ import ( | |
) | ||
|
||
func TestMerge(t *testing.T) { | ||
oldIndex := LegalHoldIndex{ | ||
oldIndex := LegalHoldIndexUsers{ | ||
"user1": { | ||
Username: "oldUser", | ||
Email: "[email protected]", | ||
|
@@ -27,7 +27,7 @@ func TestMerge(t *testing.T) { | |
}, | ||
} | ||
|
||
newIndex := LegalHoldIndex{ | ||
newIndex := LegalHoldIndexUsers{ | ||
"user1": { | ||
Username: "newUser", | ||
Email: "[email protected]", | ||
|
@@ -46,7 +46,7 @@ func TestMerge(t *testing.T) { | |
}, | ||
} | ||
|
||
expectedIndexAfterMerge := LegalHoldIndex{ | ||
expectedIndexAfterMerge := LegalHoldIndexUsers{ | ||
"user1": { | ||
Username: "newUser", | ||
Email: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters