diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php
index b0a8f1259..e2d82ba82 100644
--- a/app/controllers/api/functions.php
+++ b/app/controllers/api/functions.php
@@ -26,7 +26,7 @@ $utopia->post('/v1/functions')
->param('vars', [], function () { return new Assoc();}, 'Key-value JSON object.', true)
->param('events', [], function () { return new ArrayList(new Text(256)); }, 'Events list.', true)
->param('schedule', '', function () { return new Cron(); }, 'Schedule CRON syntax.', true)
- ->param('timeout', 15, function () { return new Range(0, 60); }, 'Function maximum execution time in seconds.', true)
+ ->param('timeout', 15, function () { return new Range(1, 900); }, 'Function maximum execution time in seconds.', true)
->action(
function ($name, $vars, $events, $schedule, $timeout) use ($response, $projectDB) {
$function = $projectDB->createDocument([
@@ -120,7 +120,7 @@ $utopia->put('/v1/functions/:functionId')
->param('vars', [], function () { return new Assoc();}, 'Key-value JSON object.', true)
->param('events', [], function () { return new ArrayList(new Text(256)); }, 'Events list.', true)
->param('schedule', '', function () { return new Cron(); }, 'Schedule CRON syntax.', true)
- ->param('timeout', 15, function () { return new Range(0, 60); }, 'Function maximum execution time in seconds.', true)
+ ->param('timeout', 15, function () { return new Range(1, 900); }, 'Function maximum execution time in seconds.', true)
->action(
function ($functionId, $name, $vars, $events, $schedule, $timeout) use ($response, $projectDB) {
$function = $projectDB->getDocument($functionId);
diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml
index 5b63b3d42..094a7c480 100644
--- a/app/views/console/functions/function.phtml
+++ b/app/views/console/functions/function.phtml
@@ -3,7 +3,6 @@
$events = array_keys($this->getParam('events', []));
?>
-
getParam('events', []));
data-service="functions.listTags"
data-scope="sdk"
data-event="load,functions.createTag,functions.deleteTag"
- data-name="project-functions"
+ data-name="project-function-tags"
data-param-project-id="{{router.params.project}}"
data-success="trigger"
- data-success-param-trigger-events="functions.list">
+ data-success-param-trigger-events="functions.listTags">
-
+
No Tags Found
-
You haven't uploaded any tags for your function yet.
+
You haven't deployed any tags for your function yet.
-
+
-
+
-
Set Default
@@ -106,32 +105,14 @@ $events = array_keys($this->getParam('events', []));
-
@@ -224,15 +205,9 @@ $events = array_keys($this->getParam('events', []));
-
-
+
+
+
Max value is 900 seconds (15 minutes)
@@ -258,7 +233,7 @@ $events = array_keys($this->getParam('events', []));