chore: run prettier to prevent build from failing
Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-cicd-statistics-module-gitlab': minor
|
||||
---
|
||||
|
||||
Will update this once the PR is ready to be merged
|
||||
@@ -32,10 +32,11 @@ import {
|
||||
configApiRef,
|
||||
createApiFactory,
|
||||
errorApiRef,
|
||||
githubAuthApiRef, gitlabAuthApiRef,
|
||||
githubAuthApiRef,
|
||||
gitlabAuthApiRef,
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { cicdStatisticsApiRef } from '@backstage/plugin-cicd-statistics';
|
||||
import {CicdStatisticsApiGitlab} from "@backstage/plugin-cicd-statistics-module-gitlab";
|
||||
import { CicdStatisticsApiGitlab } from '@backstage/plugin-cicd-statistics-module-gitlab';
|
||||
|
||||
export const apis: AnyApiFactory[] = [
|
||||
createApiFactory({
|
||||
@@ -44,7 +45,6 @@ export const apis: AnyApiFactory[] = [
|
||||
factory: ({ configApi }) => ScmIntegrationsApi.fromConfig(configApi),
|
||||
}),
|
||||
|
||||
|
||||
ScmAuth.createDefaultApiFactory(),
|
||||
|
||||
createApiFactory({
|
||||
@@ -69,10 +69,10 @@ export const apis: AnyApiFactory[] = [
|
||||
createApiFactory(costInsightsApiRef, new ExampleCostInsightsClient()),
|
||||
createApiFactory({
|
||||
api: cicdStatisticsApiRef,
|
||||
deps: {gitlabAuthApi: gitlabAuthApiRef},
|
||||
deps: { gitlabAuthApi: gitlabAuthApiRef },
|
||||
factory({ gitlabAuthApi }) {
|
||||
return new CicdStatisticsApiGitlab(gitlabAuthApi);
|
||||
},
|
||||
}),
|
||||
// createApiFactory(cicdStatisticsApiRef, new CicdStatisticsApiGitlab()),
|
||||
// createApiFactory(cicdStatisticsApiRef, new CicdStatisticsApiGitlab()),
|
||||
];
|
||||
|
||||
@@ -136,7 +136,7 @@ import {
|
||||
EntityNewRelicDashboardCard,
|
||||
} from '@backstage/plugin-newrelic-dashboard';
|
||||
import { EntityGoCdContent, isGoCdAvailable } from '@backstage/plugin-gocd';
|
||||
import {EntityCicdStatisticsContent} from "@backstage/plugin-cicd-statistics";
|
||||
import { EntityCicdStatisticsContent } from '@backstage/plugin-cicd-statistics';
|
||||
|
||||
import React, { ReactNode, useMemo, useState } from 'react';
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from "./gitlab";
|
||||
export * from './gitlab';
|
||||
|
||||
@@ -117,7 +117,7 @@ export interface Build {
|
||||
duration: number;
|
||||
|
||||
/** Top-level build stages */
|
||||
stages?: Array<Stage>;
|
||||
stages: Array<Stage>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -78,9 +78,6 @@ export function ButtonSwitch<T extends string>(props: ButtonSwitchProps<T>) {
|
||||
);
|
||||
const value = switchValue(values[index]);
|
||||
|
||||
if(!value){
|
||||
console.log(values[index]);
|
||||
}
|
||||
if (props.multi) {
|
||||
props.onChange(
|
||||
props.selection.includes(value as T)
|
||||
|
||||
@@ -166,8 +166,6 @@ function CicdCharts(props: CicdChartsProps) {
|
||||
errorApi.post(chartableStagesState.error);
|
||||
}, [errorApi, chartableStagesState.error]);
|
||||
|
||||
console.log(chartableStagesState);
|
||||
|
||||
return (
|
||||
<Grid container>
|
||||
<Grid item lg={2} className={classes.pane}>
|
||||
|
||||
@@ -68,8 +68,6 @@ export async function cleanupBuildTree(
|
||||
|
||||
return map(builds, { chunk: 'idle' }, build => ({
|
||||
...build,
|
||||
stages: build.stages
|
||||
? build.stages.map(stage => recurseStage(stage, []))
|
||||
: [],
|
||||
stages: build.stages.map(stage => recurseStage(stage, [])),
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user