Skip to content

Commit 0f9b0d5

Browse files
authored
RM-239: Remove import pipeline (#100)
1 parent ca08849 commit 0f9b0d5

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

bot/command/impl/admin/debug/debugserver.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,6 @@ func (AdminDebugServerCommand) Execute(ctx registry.CommandContext, raw string)
183183
return
184184
}
185185

186-
importLogs, err := dbclient.Client.ImportLogs.GetRuns(ctx, guild.Id)
187-
if err != nil {
188-
ctx.HandleError(err)
189-
return
190-
}
191-
192186
featuresEnabled := []string{}
193187

194188
for i := range experiments.List {
@@ -328,18 +322,6 @@ func (AdminDebugServerCommand) Execute(ctx registry.CommandContext, raw string)
328322
settingsInfo = append(settingsInfo, fmt.Sprintf("Enabled Integrations: %d (%s)", len(enabledIntegrations), strings.Join(enabledIntegrations, ", ")))
329323
}
330324

331-
hasDataRun, hasTranscriptRun := false, false
332-
for _, log := range importLogs {
333-
switch log.RunType {
334-
case "DATA":
335-
hasDataRun = true
336-
case "TRANSCRIPT":
337-
hasTranscriptRun = true
338-
}
339-
}
340-
settingsInfo = append(settingsInfo, fmt.Sprintf("Data Imported: `%t`", hasDataRun))
341-
settingsInfo = append(settingsInfo, fmt.Sprintf("Transcripts Imported: `%t`", hasTranscriptRun))
342-
343325
debugResponse := []string{
344326
fmt.Sprintf("**Server Info**\n- %s", strings.Join(guildInfo, "\n- ")),
345327
fmt.Sprintf("**Settings**\n- %s", strings.Join(settingsInfo, "\n- ")),

0 commit comments

Comments
 (0)