diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 488e054ba..dfb96405a 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -14,7 +14,9 @@ jobs: e2e: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..d018dbf91 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: Mark stale issues + +on: + schedule: + - cron: '0 0 * * *' # Midnight Runtime + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "This issue has been labeled as a 'question', indicating that it requires additional information from the requestor. It has been inactive for 7 days. If no further activity occurs, this issue will be closed in 14 days." + stale-issue-label: 'stale' + days-before-stale: 7 + days-before-close: 14 + remove-stale-when-updated: true + close-issue-message: 'This issue has been closed due to inactivity. If you still require assistance, please provide the requested information.' + close-issue-reason: 'not_planned' + operations-per-run: 100 + only-labels: 'question' diff --git a/src/lib/components/cardGrid.svelte b/src/lib/components/cardGrid.svelte index b9356a15e..61665591c 100644 --- a/src/lib/components/cardGrid.svelte +++ b/src/lib/components/cardGrid.svelte @@ -6,7 +6,7 @@ export let hideFooter = false; - +
diff --git a/src/lib/components/eventModal.svelte b/src/lib/components/eventModal.svelte index c125ddacb..e89d4b74c 100644 --- a/src/lib/components/eventModal.svelte +++ b/src/lib/components/eventModal.svelte @@ -249,7 +249,7 @@

Choose a service

-
+
{#each available.services as service} = [ { name: 'update', attributes: ['email', 'name', 'password', 'status', 'prefs'] }, { name: 'delete' } ] + }, + { + name: 'providers', + resources: [], + actions: [{ name: 'create' }, { name: 'update' }, { name: 'delete' }] + }, + { + name: 'topics', + resources: [ + { + name: 'subscribers', + actions: [{ name: 'create' }, { name: 'delete' }] + } + ], + actions: [{ name: 'create' }, { name: 'update' }, { name: 'delete' }] + }, + { + name: 'messages', + resources: [], + actions: [{ name: 'create' }, { name: 'update' }, { name: 'delete' }] } ]; diff --git a/src/lib/stores/migration.ts b/src/lib/stores/migration.ts index f6498f4b9..eaf142841 100644 --- a/src/lib/stores/migration.ts +++ b/src/lib/stores/migration.ts @@ -91,12 +91,11 @@ export const migrationFormToResources = ( } if (formData.databases.root) { addResource('database'); - } - if (formData.databases.documents) { addResource('collection'); addResource('attribute'); - addResource('index'); + } + if (formData.databases.documents) { addResource('document'); } if (formData.functions.root) { diff --git a/src/lib/wizards/functions/steps/configuration.svelte b/src/lib/wizards/functions/steps/configuration.svelte index b951796e7..d8afed74b 100644 --- a/src/lib/wizards/functions/steps/configuration.svelte +++ b/src/lib/wizards/functions/steps/configuration.svelte @@ -22,7 +22,8 @@ label="Entrypoint" id="entrypoint" placeholder="Entrypoint" - bind:value={$createFunction.entrypoint} /> + bind:value={$createFunction.entrypoint} + required /> Build commands diff --git a/src/routes/console/account/identities.svelte b/src/routes/console/account/identities.svelte index 44ad5b772..55a729a0d 100644 --- a/src/routes/console/account/identities.svelte +++ b/src/routes/console/account/identities.svelte @@ -3,7 +3,7 @@ import { CardGrid, Heading } from '$lib/components'; import { Button } from '$lib/elements/forms'; import { - Table, + TableScroll, TableBody, TableCell, TableCellHead, @@ -54,12 +54,12 @@
{:else} - + Provider - Email - Created At - Expiry Date + Email + Created At + Expiry Date @@ -95,7 +95,7 @@ {/each} -
+ {/if} diff --git a/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte b/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte index dc747b543..91507d198 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/createManual.svelte @@ -75,7 +75,8 @@ label="Entrypoint" id="entrypoint" placeholder="Entrypoint" - bind:value={entrypoint} /> + bind:value={entrypoint} + required /> {#if $func.version !== 'v3'} diff --git a/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte b/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte index d4a9bf35c..0c5b765de 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte @@ -33,4 +33,6 @@ {:else if deployment.type === 'manual'}