in dashboard/new-dashboard/src/components/common/sideBar/InfoSidebarPerformance.ts [26:60]
export function getBuildId(dataSeries: (number | string)[] | (number | string)[][]): number | number[] | undefined {
const dbType = dbTypeStore().dbType
let buildId: number | undefined
if (
dbType == DBType.INTELLIJ_DEV ||
dbType == DBType.PERF_UNIT_TESTS ||
dbType == DBType.FLEET_PERF ||
dbType == DBType.DIOGEN ||
dbType == DBType.QODANA ||
dbType == DBType.TOOLBOX
) {
buildId = dataSeries[5] as number
}
if (dbType == DBType.FLEET || dbType == DBType.STARTUP_TESTS) {
buildId = dataSeries[4] as number
}
if (dbType == DBType.STARTUP_TESTS_DEV) {
buildId = dataSeries[4] as number
}
if (dbType == DBType.JBR) {
buildId = dataSeries[5] as number
}
if (dbType == DBType.INTELLIJ) {
buildId = dataSeries[5] as number
}
if (dbType == DBType.BAZEL) {
buildId = dataSeries[5] as number
}
if (dbType == DBType.UNKNOWN) {
console.error("Unknown type of DB")
}
return buildId
}