{ await onNavigate('/scripts/get/' + e.detail + `?workspace=${workspace}`) loadScript(routeHash ?? '') }} /> (versionsDrawerOpen = false)} noPadding> {#if script} { if (script) { onNavigate(`/scripts/get/${e.detail.version}?workspace=${workspace}`) } versionsDrawerOpen = false }} /> {/if} {#key script?.hash} {#snippet header({ wide }: { wide: boolean })} script?.ws_error_handler_muted ?? false, (v) => { if (script !== undefined) script.ws_error_handler_muted = v } } errorHandlerKind="script" scriptOrFlowPath={script?.path ?? ''} tag={script?.tag ?? ''} labels={script?.labels} inheritedLabels={script?.inherited_labels} on:seeTriggers={() => { rightPaneSelected = 'triggers' }} summary={script?.summary} path={script?.path} onSaved={can_write ? async (newPath) => { if (newPath !== script?.path) { await onNavigate(`/scripts/get/${newPath}?workspace=${workspace}`) } else { loadScript(newPath) } } : undefined} > {#snippet trigger_badges()} { if (rightPaneSelected !== 'triggers') { rightPaneSelected = 'triggers' } await tick() triggersState.selectedTriggerIndex = triggerIndex }} /> {/snippet} {#if workspace && script} {#if workspace === $workspaceStore} {/if} {/if} {#if script?.auto_kind === 'wac'} {#snippet text()} Workflow-as-Code {/snippet} wac {/if} {#if script?.auto_kind === 'test'} {#snippet text()} CI test script {/snippet} CI test {/if} {#if script?.codebase} bundleThis script is deployed as a bundle and can only be deployed from the CLI for now {/if} {#if script?.priority != undefined} {/if} {#if script?.restart_unless_cancelled ?? false} {/if} {#if script?.concurrent_limit != undefined && script.concurrency_time_window_s != undefined} {/if} {/snippet} {#snippet form()}
(showEditButtons = v)} />
{#if script} {@const showsDbtGraph = script.language === 'dbt' && !!script.path}
{#if script?.path} {/if}
{#if script.lock_error_logs || topHash || script.archived || script.deleted}
{#if script.lock_error_logs}

This script has not been deployed successfully because of the following errors:

{/if} {#if topHash}
This hash is not HEAD (latest non-archived version at this path) : Go to the HEAD of this path {/if} {#if script.archived && !topHash} This path was archived {/if} {#if script.deleted}

The content of this script was deleted (by an admin, no less)

{/if}
{/if} {#if !emptyString(script.description)}
{/if}
{#if deploymentInProgress}
Deployment in progress {#if deploymentJobId} view job {/if}
{/if}
{#if (script.schema && Object.keys(script.schema.properties ?? {}).length > 0) || inputSelected} {@const hasSchema = script.schema && Object.keys(script.schema.properties ?? {}).length > 0}
{ savedInputsV2?.resetSelected() }} {inputSelected} /> {#if hasSchema && !pendingRun?.planModeActive} {/if}
{/if} {#if dbtRetryFrom && (args?.['command'] as any)?.label !== 'retry'}
The run you came from failed part-way. dbt retry rebuilds only its failed and skipped nodes, with the arguments it ran with.
{/if} {#snippet aiAssistant()} {#if Object.keys(script?.schema?.properties ?? {}).length > 0} onNavigate(`/scripts/edit/${script?.path}?metadata_open=true`) : undefined} runnableType="script" path={script?.path} /> {/if} {/snippet} {#if promptForAi} {@render aiAssistant()} {/if} {#if pendingRun} pendingRun.decline()} /> {/if}
{#if !isHubScript} Edited by {script.created_by || 'unknown'} {/if}
{#if !isHubScript} {truncateHash(script?.hash ?? '')} {/if} {#if script?.is_template} Template {/if} {#if script && script.kind !== 'script'} {script?.kind} {/if}
{#if showsDbtGraph}
{:else if isWac && script.content}
{/if}
{/if} {/snippet} {#snippet save_inputs()} {#if args} { const nargs = JSON.parse(JSON.stringify(e.detail)) args = nargs if (jsonView) { runForm?.syncJsonEditor() } }} /> {/if} {/snippet} {#snippet triggers()} {#if script} {/if} {/snippet} {#snippet scriptRender()}
{#snippet content()} {#if script}
{#if script?.modules} {#each Object.entries(script.modules) as [modulePath, mod]}
{#if expandedModuleCode[modulePath]}
{/if}
{/each} {/if}
{#if script?.lock}
{:else}

There is no lock file for this script

{/if} {#if script?.modules} {@const moduleEntries = Object.entries(script.modules).filter( ([_, m]) => m.lock )} {#each moduleEntries as [modulePath, mod]}
{#if expandedModuleLocks[modulePath]}
{/if}
{/each} {/if}
{/if} {/snippet}
{#if script?.envs && script.envs.length > 0}

Static Env Variables

    {#each script?.envs as e}
  • {e}
  • {/each}
{/if} {/snippet}
{/key}