Skip to content

Commit

Permalink
Add infra overrides tab to Deployments page (#8344)
Browse files Browse the repository at this point in the history
  • Loading branch information
marichka-offen authored and zanieb committed Feb 3, 2023
1 parent 26c19c5 commit 4e23f86
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion orion-ui/src/pages/Deployment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<ParametersTable :deployment="deployment" />
</template>

<template #infra-overrides>
<CodeHighlighting v-if="deployment" language="json" :value="overrides" />
</template>

<template #details>
<DeploymentDetails :deployment="deployment" @update="deploymentSubscription.refresh" />
</template>
Expand All @@ -47,7 +51,7 @@
</template>

<script lang="ts" setup>
import { DeploymentDescription, FlowRunFilteredList, DeploymentDescriptionEmptyState, DeploymentDeprecatedMessage, PageHeadingDeployment, DeploymentDetails, ParametersTable, localization, useRecentFlowRunFilter, useTabs, useWorkspaceApi } from '@prefecthq/orion-design'
import { DeploymentDescription, FlowRunFilteredList, DeploymentDescriptionEmptyState, DeploymentDeprecatedMessage, PageHeadingDeployment, DeploymentDetails, ParametersTable, localization, useRecentFlowRunFilter, useTabs, useWorkspaceApi, CodeHighlighting } from '@prefecthq/orion-design'
import { media } from '@prefecthq/prefect-design'
import { useSubscription, useRouteParam } from '@prefecthq/vue-compositions'
import { computed, watch } from 'vue'
Expand All @@ -70,6 +74,7 @@
{ label: 'Description' },
{ label: 'Runs' },
{ label: 'Parameters', hidden: deployment.value?.deprecated },
{ label: 'Infra Overrides', hidden: deployment.value?.deprecated },
])
const tabs = useTabs(computedTabs)
Expand All @@ -80,6 +85,10 @@
router.push(routes.deployments())
}
const overrides = computed(() => {
return deployment.value?.infrastructureOverrides ? JSON.stringify(deployment.value.infrastructureOverrides, undefined, 2) : '{}'
})
const deploymentFilter = useRecentFlowRunFilter({ deployments: [deploymentId.value] })
const title = computed(() => {
Expand Down

0 comments on commit 4e23f86

Please sign in to comment.