Skip to content

Commit 2518d60

Browse files
authored
Merge pull request #2069 from appwrite/release-csv-imports
2 parents feb910c + a9f9ba9 commit 2518d60

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PUBLIC_CONSOLE_MODE=self-hosted
2-
PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths
2+
PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths
33
PUBLIC_APPWRITE_MULTI_REGION=false
44
PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1
55
PUBLIC_STRIPE_KEY=

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
labels: ${{ steps.meta.outputs.labels }}
8080
build-args: |
8181
"PUBLIC_CONSOLE_MODE=cloud"
82-
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths"
82+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths"
8383
"PUBLIC_APPWRITE_MULTI_REGION=true"
8484
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
8585
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"
@@ -118,7 +118,7 @@ jobs:
118118
build-args: |
119119
"PUBLIC_CONSOLE_MODE=self-hosted"
120120
"PUBLIC_APPWRITE_MULTI_REGION=false"
121-
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths"
121+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths"
122122
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
123123
124124
publish-cloud-no-regions:
@@ -156,6 +156,6 @@ jobs:
156156
build-args: |
157157
"PUBLIC_CONSOLE_MODE=cloud"
158158
"PUBLIC_APPWRITE_MULTI_REGION=false"
159-
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths"
159+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths"
160160
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"
161161
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"

src/lib/flags.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ function isFlagEnabled(name: string) {
2020

2121
export const flags = {
2222
showSites: isFlagEnabled('sites'),
23-
showCsvImport: isFlagEnabled('csv-import'),
2423
showAttributeEncrypt: isFlagEnabled('attribute-encrypt'),
2524
showIndexLengths: isFlagEnabled('index-lengths')
2625
};

src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/+page.svelte

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import { base } from '$app/paths';
2525
import { IconPlus } from '@appwrite.io/pink-icons-svelte';
2626
import type { Models } from '@appwrite.io/console';
27-
import { flags } from '$lib/flags';
2827
2928
export let data: PageData;
3029
@@ -100,15 +99,13 @@
10099
analyticsSource="database_documents" />
101100
<Layout.Stack direction="row" alignItems="center" justifyContent="flex-end">
102101
<ViewSelector view={data.view} {columns} hideView isCustomCollection />
103-
{#if flags.showCsvImport(data)}
104-
<Button
105-
secondary
106-
event={Click.DatabaseImportCsv}
107-
disabled={!(hasAttributes && hasValidAttributes)}
108-
on:click={() => (showImportCSV = true)}>
109-
Import CSV
110-
</Button>
111-
{/if}
102+
<Button
103+
secondary
104+
event={Click.DatabaseImportCsv}
105+
disabled={!(hasAttributes && hasValidAttributes)}
106+
on:click={() => (showImportCSV = true)}>
107+
Import CSV
108+
</Button>
112109
{#if !$isSmallViewport}
113110
<Button
114111
disabled={!(hasAttributes && hasValidAttributes)}

0 commit comments

Comments
 (0)