[MM-60083] export: do not export DMs/GMs if users are deleted (#28854)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
09add85a51
Коммит
e76786278b
@@ -40,11 +40,11 @@ const (
|
||||
|
||||
var (
|
||||
performanceReportVersion = semver.MustParse("0.1.0")
|
||||
acceptedPlatforms = sliceToMapKey("linux", "macos", "ios", "android", "windows", "other")
|
||||
acceptedAgents = sliceToMapKey("desktop", "firefox", "chrome", "safari", "edge", "other")
|
||||
acceptedPlatforms = SliceToMapKey("linux", "macos", "ios", "android", "windows", "other")
|
||||
acceptedAgents = SliceToMapKey("desktop", "firefox", "chrome", "safari", "edge", "other")
|
||||
|
||||
AcceptedInteractions = sliceToMapKey("keyboard", "pointer", "other")
|
||||
AcceptedLCPRegions = sliceToMapKey(
|
||||
AcceptedInteractions = SliceToMapKey("keyboard", "pointer", "other")
|
||||
AcceptedLCPRegions = SliceToMapKey(
|
||||
"post",
|
||||
"post_textbox",
|
||||
"channel_sidebar",
|
||||
@@ -56,8 +56,8 @@ var (
|
||||
"modal_content",
|
||||
"other",
|
||||
)
|
||||
AcceptedTrueFalseLabels = sliceToMapKey("true", "false")
|
||||
AcceptedSplashScreenOrigins = sliceToMapKey("root", "team_controller")
|
||||
AcceptedTrueFalseLabels = SliceToMapKey("true", "false")
|
||||
AcceptedSplashScreenOrigins = SliceToMapKey("root", "team_controller")
|
||||
)
|
||||
|
||||
type MetricSample struct {
|
||||
|
||||
@@ -860,7 +860,7 @@ func IsCloud() bool {
|
||||
return os.Getenv("MM_CLOUD_INSTALLATION_ID") != ""
|
||||
}
|
||||
|
||||
func sliceToMapKey(s ...string) map[string]any {
|
||||
func SliceToMapKey(s ...string) map[string]any {
|
||||
m := make(map[string]any)
|
||||
for i := range s {
|
||||
m[s[i]] = struct{}{}
|
||||
|
||||
Ссылка в новой задаче
Block a user