- Webhook to run this flow:
- Send a POST http request with a token as bearer token and the args respecting the
- corresponding jsonschema as payload. To create a permanent token, go to your user setting
- by clicking your username on the top-left.
-
WebhookTo trigger this script with a webhook, do a POST request to the endpoint below. Flows
+ are not public and can only be run by users with at least view rights on them. You will
+ need to pass a bearer token to authentify as a user. You can either pass it as a Bearer
+ token or as query arg `?token=XXX`. See docs
+
diff --git a/frontend/src/routes/run/[...run].svelte b/frontend/src/routes/run/[...run].svelte
index 2c0383ded6..3ceb3d69c5 100644
--- a/frontend/src/routes/run/[...run].svelte
+++ b/frontend/src/routes/run/[...run].svelte
@@ -37,6 +37,7 @@
import JobArgs from '$lib/components/JobArgs.svelte'
import FlowProgressBar from '$lib/components/flows/FlowProgressBar.svelte'
import Tabs from '$lib/components/common/tabs/Tabs.svelte'
+ import Badge from '$lib/components/common/badge/Badge.svelte'
let workspace_id_query: string | undefined = $page.url.searchParams.get('workspace') ?? undefined
let workspace_id: string | undefined
@@ -206,14 +207,11 @@
{/if}
{job.script_path ?? (job.job_kind == 'dependencies' ? 'lock dependencies' : 'No path')}
{#if job.script_hash}
- {truncateHash(job.script_hash)}{truncateHash(job.script_hash)}
{/if}
- {#if job && 'job_kind' in job}{job.job_kind}
+ {#if job && 'job_kind' in job}{job.job_kind}
{/if}
{/if}
@@ -255,9 +253,11 @@
ResultLogs
- {job?.job_kind == 'dependencies' ? 'Input Dependencies' : 'Code previewed'}
+ {#if job?.job_kind == 'dependencies'}
+ Dependencies
+ {:else if job?.job_kind == 'preview'}
+ Code
+ {/if}
diff --git a/frontend/src/routes/runs/[...path].svelte b/frontend/src/routes/runs/[...path].svelte
index 6d9bfaff13..55207972bc 100644
--- a/frontend/src/routes/runs/[...path].svelte
+++ b/frontend/src/routes/runs/[...path].svelte
@@ -19,7 +19,6 @@
import Tab from '$lib/components/common/tabs/Tab.svelte'
import JobDetail from '$lib/components/jobs/JobDetail.svelte'
import { Skeleton } from '$lib/components/common'
- import Tooltip from '../../lib/components/Tooltip.svelte'
import { goto } from '$app/navigation'
import PageHeader from '$lib/components/PageHeader.svelte'
diff --git a/frontend/src/routes/scripts/get/[...hash].svelte b/frontend/src/routes/scripts/get/[...hash].svelte
index 957f134306..3c243a88ff 100644
--- a/frontend/src/routes/scripts/get/[...hash].svelte
+++ b/frontend/src/routes/scripts/get/[...hash].svelte
@@ -43,7 +43,9 @@
import HighlightCode from '$lib/components/HighlightCode.svelte'
import { Badge, Tabs, Tab, TabContent, Button, ActionRow } from '$lib/components/common'
import Skeleton from '../../../lib/components/common/skeleton/Skeleton.svelte'
+ import UserSettings from '$lib/components/UserSettings.svelte'
+ let userSettings: UserSettings
let script: Script | undefined
let topHash: string | undefined
let can_write = false
@@ -128,6 +130,8 @@
})
+
+
{#if script}
@@ -326,7 +330,16 @@
-
Webhooks
+
WebhooksTo trigger this script with a webhook, do a POST request to the endpoints below.
+ Scripts are not public and can only be run by users with at least view rights on them.
+ You will need to pass a bearer token to authentify as a user. You can either pass it as
+ a Bearer token or as query arg `?token=XXX`. See docs