Skip to content

Commit 69712d8

Browse files
authored
Merge pull request #2243 from appwrite/feat-execution-deployment-filters
Feat: Execution's deploymentId column&filter
2 parents df93ac7 + 84edf33 commit 69712d8

File tree

7 files changed

+29
-8
lines changed

7 files changed

+29
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"@ai-sdk/svelte": "^1.1.24",
25-
"@appwrite.io/console": "^1.10.0",
25+
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@2408",
2626
"@appwrite.io/pink-icons": "0.25.0",
2727
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@0b77850",
2828
"@appwrite.io/pink-legacy": "^1.0.3",

pnpm-lock.yaml

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/stores/uploader.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ const createUploader = () => {
103103
newFile.progress = p.progress;
104104
newFile.status = p.progress === 100 ? 'success' : 'pending';
105105
updateFile(p.$id, newFile);
106+
107+
return {};
106108
}
107109
);
108110
newFile.$id = uploadedFile.$id;
@@ -133,6 +135,8 @@ const createUploader = () => {
133135
newDeployment.progress = p.progress;
134136
newDeployment.status = p.progress === 100 ? 'success' : 'pending';
135137
updateFile(p.$id, newDeployment);
138+
139+
return {};
136140
});
137141
newDeployment.$id = uploadedFile.$id;
138142
newDeployment.progress = 100;

src/routes/(console)/project-[region]-[project]/functions/function-[function]/executions/store.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ import { writable } from 'svelte/store';
33

44
export const columns = writable<Column[]>([
55
{ id: '$id', title: 'Execution ID', type: 'string', width: { min: 200, max: 250 } },
6+
{
7+
id: 'deploymentId',
8+
title: 'Deployment ID',
9+
type: 'string',
10+
width: { min: 210 },
11+
hide: true
12+
},
613
{
714
id: 'requestPath',
815
title: 'Path',
916
type: 'string',
1017
width: { min: 200 },
1118
format: 'string'
1219
},
13-
1420
{
1521
id: 'trigger',
1622
title: 'Trigger',

src/routes/(console)/project-[region]-[project]/functions/function-[function]/executions/table.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
{#key column.id}
8585
<Id value={log.$id}>{log.$id}</Id>
8686
{/key}
87+
{:else if column.id === 'deploymentId'}
88+
<Id value={log.deploymentId}>{log.deploymentId}</Id>
8789
{:else if column.id === '$createdAt'}
8890
<DualTimeView time={log.$createdAt} />
8991
{:else if column.id === 'requestPath'}

src/routes/(console)/project-[region]-[project]/sites/site-[site]/logs/store.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ import { writable } from 'svelte/store';
33

44
export const columns = writable<Column[]>([
55
{ id: '$id', title: 'Log ID', type: 'string', width: { min: 200, max: 250 } },
6+
{
7+
id: 'deploymentId',
8+
title: 'Deployment ID',
9+
type: 'string',
10+
width: { min: 210 },
11+
hide: true
12+
},
613
{
714
id: 'requestPath',
815
title: 'Path',
916
type: 'string',
1017
width: { min: 480 },
1118
format: 'string'
1219
},
13-
1420
{
1521
id: 'requestMethod',
1622
title: 'Method',

src/routes/(console)/project-[region]-[project]/sites/site-[site]/logs/table.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
{#key column.id}
7575
<Id value={log.$id}>{log.$id}</Id>
7676
{/key}
77+
{:else if column.id === 'deploymentId'}
78+
<Id value={log.deploymentId}>{log.deploymentId}</Id>
7779
{:else if column.id === 'requestMethod'}
7880
<Typography.Code size="m">
7981
{log.requestMethod}

0 commit comments

Comments
 (0)