From 30df4867719400c09156f034ddd8bdd01e3eefbd Mon Sep 17 00:00:00 2001 From: abe garcia Date: Wed, 28 Jun 2023 15:47:58 -0400 Subject: [PATCH] add proxy config for broadside --- .../src/components/pipelines/ExecutionsTable.tsx | 8 ++++---- .../src/services/BroadsideService.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spin-observatory-plugin-deck/src/components/pipelines/ExecutionsTable.tsx b/spin-observatory-plugin-deck/src/components/pipelines/ExecutionsTable.tsx index a4eb9b2..564052d 100644 --- a/spin-observatory-plugin-deck/src/components/pipelines/ExecutionsTable.tsx +++ b/spin-observatory-plugin-deck/src/components/pipelines/ExecutionsTable.tsx @@ -96,14 +96,14 @@ export const ExecutionsTable = ({ executions, parameters, refreshExecutions }: I - selectedExecutionIds.includes(e.id))} refreshExecutions={refreshExecutions} /> - selectedExecutionIds.includes(e.id))} + executionIds={selectedExecutionIds} refreshExecutions={refreshExecutions} /> diff --git a/spin-observatory-plugin-deck/src/services/BroadsideService.ts b/spin-observatory-plugin-deck/src/services/BroadsideService.ts index b68f74b..ee0b339 100644 --- a/spin-observatory-plugin-deck/src/services/BroadsideService.ts +++ b/spin-observatory-plugin-deck/src/services/BroadsideService.ts @@ -1,7 +1,7 @@ import type { IExecution } from '@spinnaker/core'; -import { REST } from '@spinnaker/core'; +import { REST, SETTINGS } from '@spinnaker/core'; // http://broadside.cd:80 -const BROADSIDE_URI = 'http://broadside.cd:80/v1/broadsides'; +const BROADSIDE_URI = `${SETTINGS.gateUrl}/proxies/broadside/v1/broadsides`; // See https://github.com/one-thd/broadside/blob/main/api/swagger.yml#L206 export const retriggerExecutions = ({ executions }: { executions: IExecution[] }) => {