Browse Source
Merge pull request #5815 from Budibase/bug/sev3/automation-query-limit-placeholder
Add limit placeholder for Automation queries
master
melohagan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
0 deletions
-
packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte
-
packages/server/src/automations/steps/queryRows.js
|
|
|
@ -53,6 +53,7 @@ |
|
|
|
: { schema: {} } |
|
|
|
$: schema = getSchemaForTable(tableId, { searchableSchema: true }).schema |
|
|
|
$: schemaFields = Object.values(schema || {}) |
|
|
|
$: queryLimit = tableId?.includes("datasource") ? "∞" : "1000" |
|
|
|
|
|
|
|
const onChange = Utils.sequential(async (e, key) => { |
|
|
|
try { |
|
|
|
@ -330,6 +331,7 @@ |
|
|
|
on:change={e => onChange(e, key)} |
|
|
|
{bindings} |
|
|
|
updateOnChange={false} |
|
|
|
placeholder={value.customType === "queryLimit" ? queryLimit : ""} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
{/if} |
|
|
|
|
|
|
|
@ -50,6 +50,7 @@ exports.definition = { |
|
|
|
limit: { |
|
|
|
type: "number", |
|
|
|
title: "Limit", |
|
|
|
customType: "queryLimit", |
|
|
|
}, |
|
|
|
}, |
|
|
|
required: ["tableId"], |
|
|
|
|