in dashboard/new-dashboard/src/components/common/sideBar/InfoSidebarPerformance.ts [62:83]
export function getAccidentBuild(params: CallbackDataParams): string | undefined {
const dbType = dbTypeStore().dbType
if (dbType == DBType.INTELLIJ_DEV || dbType == DBType.PERF_UNIT_TESTS || dbType == DBType.FLEET_PERF || dbType == DBType.DIOGEN || dbType == DBType.TOOLBOX) {
return getBuildId(params.value as number[])?.toString()
}
if (dbType == DBType.FLEET || dbType == DBType.STARTUP_TESTS) {
return getFullBuildId(params)
}
if (dbType == DBType.STARTUP_TESTS_DEV) {
return getBuildId(params.value as number[])?.toString()
}
if (dbType == DBType.INTELLIJ) {
return getFullBuildId(params)
}
if (dbType == DBType.BAZEL) {
return getBuildId(params.value as number[])?.toString()
}
if (dbType == DBType.UNKNOWN) {
console.error("Unknown type of DB")
}
return undefined
}