From 9eafa4017972755065215ff8b5e47ca69fe726f2 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 28 May 2025 17:28:08 -0700 Subject: [PATCH] fix(functions): remove specification from function runtime settings There is a separate Resource limits card down the page that allows user to change the runtime specification so there's no need to have it in the Runtime card. --- .../settings/updateRuntime.svelte | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateRuntime.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateRuntime.svelte index 474ff92b40..a46c7cb8f0 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateRuntime.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/updateRuntime.svelte @@ -9,7 +9,6 @@ import { sdk } from '$lib/stores/sdk'; import { func } from '../store'; import InputSelect from '$lib/elements/forms/inputSelect.svelte'; - import { specificationsList } from '$lib/stores/specifications'; import { isValueOfStringEnum } from '$lib/helpers/types'; import { Runtime, type Models } from '@appwrite.io/console'; import { Layout, Typography } from '@appwrite.io/pink-svelte'; @@ -17,18 +16,12 @@ const functionId = page.params.function; export let runtimesList: Models.RuntimeList; - let { runtime, entrypoint, specification } = $func; + let { runtime, entrypoint } = $func; const options = runtimesList.runtimes.map((runtime) => ({ label: `${runtime.name} - ${runtime.version}`, value: runtime.$id })); - const specificationOptions = $specificationsList.specifications.map((size) => ({ - label: - `${size.cpus} CPU, ${size.memory} MB RAM` + - (!size.enabled ? ` (Upgrade to use this)` : ''), - value: size.slug - })); async function updateRuntime() { try { @@ -99,12 +92,6 @@ required placeholder="Enter entrypoint" bind:value={entrypoint} /> -