Skip to content

Commit f5b9989

Browse files
authored
remove warehouse settings page (supabase#30919)
* rm links and page * add some comments w context
1 parent 8c37eb1 commit f5b9989

File tree

6 files changed

+10
-42
lines changed

6 files changed

+10
-42
lines changed

apps/studio/components/interfaces/DataWarehouse/WarehouseCollectionDetail.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,6 @@ order by timestamp desc limit ${filters.limit} offset ${filters.offset}
220220
/>
221221
</form>
222222
<div className="flex items-center gap-2">
223-
<Button asChild type={'text'}>
224-
<Link href={`/project/${projectRef}/settings/warehouse`}>Access tokens</Link>
225-
</Button>
226-
227223
<Tooltip>
228224
<TooltipTrigger asChild>
229225
<Button asChild className="px-1.5" type="outline" icon={<Terminal />}>

apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,6 @@ export function LogsSidebarMenuV2() {
242242
>
243243
Templates
244244
</InnerSideMenuItem>
245-
<InnerSideMenuItem
246-
title="Settings"
247-
isActive={isActive(`/project/${ref}/settings/warehouse`)}
248-
href={`/project/${ref}/settings/warehouse`}
249-
>
250-
Settings
251-
<ArrowUpRight strokeWidth={1} className="h-4 w-4" />
252-
</InnerSideMenuItem>
253245
</div>
254246
<Separator className="my-4" />
255247

apps/studio/data/analytics/warehouse-access-tokens-create-mutation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ type WarehouseAccessTokenCreateVariables = {
88
ref: string
99
description: string
1010
}
11+
12+
/**
13+
* This will be deprecated or rewritten in favor of the new project API keys
14+
*/
1115
async function createWarehouseAccessToken({
1216
ref,
1317
description,

apps/studio/data/analytics/warehouse-access-tokens-delete-mutation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export type DeleteAccessTokenArgs = {
88
projectRef: string
99
token: string
1010
}
11-
11+
/**
12+
* This will be deprecated or rewritten in favor of the new project API keys
13+
*/
1214
export async function deleteWarehouseAccessToken({ projectRef, token }: DeleteAccessTokenArgs) {
1315
const { data, error } = await del(
1416
'/platform/projects/{ref}/analytics/warehouse/access-tokens/{token}',

apps/studio/data/analytics/warehouse-access-tokens-query.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export async function getWarehouseAccessTokens(
3030

3131
export type WarehouseAccessTokensData = Awaited<ReturnType<typeof getWarehouseAccessTokens>>
3232
export type WarehouseAccessTokensError = ResponseError
33-
33+
/**
34+
* This will be deprecated or rewritten in favor of the new project API keys
35+
*/
3436
export const useWarehouseAccessTokensQuery = <TData = WarehouseAccessTokensData>(
3537
{ projectRef }: WarehouseAccessTokensVariables,
3638
{

apps/studio/pages/project/[ref]/settings/warehouse.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)