mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
nits
This commit is contained in:
@@ -741,7 +741,7 @@ JsonNode ${windmillPathToCamelCaseName(path)} = JsonNode.Parse(await client.GetS
|
||||
}
|
||||
}}
|
||||
tooltip="Attach a Ducklake to your scripts. Ducklake allows you to manipulate large data on S3 blob files through a traditional SQL interface."
|
||||
documentationLink="https://www.windmill.dev/docs/core_concepts/ducklake"
|
||||
documentationLink="https://www.windmill.dev/docs/core_concepts/persistent_storage/ducklake"
|
||||
itemName="ducklake"
|
||||
loadItems={async () =>
|
||||
(await WorkspaceService.listDucklakes({ workspace: $workspaceStore ?? 'NO_W' })).map(
|
||||
@@ -836,7 +836,7 @@ JsonNode ${windmillPathToCamelCaseName(path)} = JsonNode.Parse(await client.GetS
|
||||
onSelectAndClose={(s3obj) => {
|
||||
let s = `'${formatS3Object(s3obj)}'`
|
||||
if (lang === 'duckdb') {
|
||||
editor?.insertAtCursor(`SELECT * FROM ${s}`)
|
||||
editor?.insertAtCursor(`SELECT * FROM ${s};`)
|
||||
} else if (lang === 'python3') {
|
||||
if (!editor?.getCode().includes('import wmill')) {
|
||||
editor?.insertAtBeginning('import wmill\n')
|
||||
|
||||
@@ -146,9 +146,7 @@
|
||||
<div
|
||||
class={twMerge(
|
||||
'text-xs font-normal border text-primary w-10 p-1 text-center rounded-md',
|
||||
!asset.access_type && !asset.alt_access_type
|
||||
? 'text-orange-500 !border-orange-500'
|
||||
: '',
|
||||
!asset.access_type ? 'text-orange-600 !border-orange-600' : '',
|
||||
!asset.access_type ? 'hover:bg-surface active:opacity-80' : ''
|
||||
)}
|
||||
>
|
||||
@@ -162,7 +160,11 @@
|
||||
<span class="text-xs">Please select manually </span>
|
||||
</span>
|
||||
<div class="flex items-center gap-2">
|
||||
<ToggleButtonGroup bind:selected={asset.alt_access_type} class="max-w-fit">
|
||||
<ToggleButtonGroup
|
||||
allowEmpty
|
||||
bind:selected={asset.alt_access_type}
|
||||
class="max-w-fit"
|
||||
>
|
||||
{#snippet children({ item })}
|
||||
<ToggleButton value="r" label="Read" {item} />
|
||||
<ToggleButton value="w" label="Write" {item} />
|
||||
|
||||
@@ -93,8 +93,8 @@ export function formatAssetAccessType(accessType: AssetUsageAccessType | undefin
|
||||
}
|
||||
|
||||
export function getAccessType(asset: AssetWithAltAccessType): AssetUsageAccessType | undefined {
|
||||
if (asset.alt_access_type) return asset.alt_access_type
|
||||
if (asset.access_type) return asset.access_type
|
||||
if (asset.alt_access_type) return asset.alt_access_type
|
||||
}
|
||||
|
||||
export function getFlowModuleAssets(
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
<div class="flex flex-col gap-4 mb-8 mt-20">
|
||||
<div class="flex flex-col gap-1">
|
||||
<div class="text-primary text-lg font-semibold">Ducklake</div>
|
||||
<Description link="https://www.windmill.dev/docs/core_concepts/ducklake">
|
||||
<Description link="https://www.windmill.dev/docs/core_concepts/persistent_storage/ducklake">
|
||||
Windmill has first class support for Ducklake. You can use and explore ducklakes like a normal
|
||||
SQL database, even though the data is actually stored in parquet files in S3 !
|
||||
</Description>
|
||||
|
||||
@@ -323,7 +323,7 @@ const DUCKDB_INIT_CODE = `-- result_collection=last_statement_all_rows
|
||||
-- SELECT * FROM db.public.friends;
|
||||
|
||||
-- Click the +Ducklake button to use a ducklake
|
||||
-- https://www.windmill.dev/docs/core_concepts/ducklake
|
||||
-- https://www.windmill.dev/docs/core_concepts/persistent_storage/ducklake
|
||||
--
|
||||
-- ATTACH 'ducklake' AS dl;
|
||||
-- USE dl;
|
||||
|
||||
Reference in New Issue
Block a user