Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/docs/public/humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Ant Wilson
Ariuna K
Artur Zakirov
Artyom Borissov
Barco Fourie
Beng Eu
Bo Lu
Bobbie Soedirgo
Expand Down
12 changes: 6 additions & 6 deletions apps/docs/spec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ download.storage.v1:
# curl -sS https://supabase.github.io/functions-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/functions.json

download.tsdoc.v2:
curl -sS https://supabase.github.io/supabase-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/supabase.json
curl -sS https://supabase.github.io/auth-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/gotrue.json
curl -sS https://supabase.github.io/postgrest-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/postgrest.json
curl -sS https://supabase.github.io/realtime-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/realtime.json
curl -sS https://supabase.github.io/storage-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/storage.json
curl -sS https://supabase.github.io/functions-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/functions.json
curl -sS https://supabase.github.io/supabase-js/supabase-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/supabase.json
curl -sS https://supabase.github.io/supabase-js/auth-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/gotrue.json
curl -sS https://supabase.github.io/supabase-js/postgrest-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/postgrest.json
curl -sS https://supabase.github.io/supabase-js/realtime-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/realtime.json
curl -sS https://supabase.github.io/supabase-js/storage-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/storage.json
curl -sS https://supabase.github.io/supabase-js/functions-js/v2/spec.json > $(REPO_DIR)/enrichments/tsdoc_v2/functions.json

download.analytics.v0:
curl -sS https://logflare.app/api/openapi > $(REPO_DIR)/analytics_v0_openapi.json
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/spec/supabase_js_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7384,7 +7384,7 @@ functions:
```
- id: get-channels
title: getChannels()
$ref: '@supabase/supabase-js.index.SupabaseClient.getChannels'
$ref: '@supabase/supabase-js.SupabaseClient.getChannels'
examples:
- id: get-all-channels
name: Get all channels
Expand All @@ -7396,7 +7396,7 @@ functions:

- id: remove-channel
title: removeChannel()
$ref: '@supabase/supabase-js.index.SupabaseClient.removeChannel'
$ref: '@supabase/supabase-js.SupabaseClient.removeChannel'
notes: |
- Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed.
examples:
Expand All @@ -7410,7 +7410,7 @@ functions:

- id: remove-all-channels
title: removeAllChannels()
$ref: '@supabase/supabase-js.index.SupabaseClient.removeAllChannels'
$ref: '@supabase/supabase-js.SupabaseClient.removeAllChannels'
notes: |
- Removing channels is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed.
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const DeprecatedChartBlock = ({ label, attribute, actions }: DeprecatedCh

const getLogsUrl = (logsName?: string) => {
switch (logsName) {
case 'Database API':
return '/logs/postgrest-logs'
case 'All API usage':
return '/logs/explorer'
case 'Realtime':
return '/logs/realtime-logs'
case 'Storage':
Expand All @@ -38,14 +42,16 @@ export const DeprecatedChartBlock = ({ label, attribute, actions }: DeprecatedCh
label={label}
actions={actions}
>
<p className="text-xs text-foreground-light">
This chart is not longer available, and can be removed from your report
</p>
<p className="text-xs text-foreground-lighter">
You may view the equivalent of this data from the{' '}
<InlineLink href={`/project/${ref}/${getLogsUrl(logsName)}`}>{logsName} Logs</InlineLink>{' '}
instead
</p>
<div className="flex flex-col justify-center flex-1">
<p className="text-xs text-foreground-lightr">
This chart is not longer available, and can be removed from your report
</p>
<p className="text-xs text-foreground-lighter">
You may view the equivalent of this data from the{' '}
<InlineLink href={`/project/${ref}/${getLogsUrl(logsName)}`}>{logsName} Logs</InlineLink>{' '}
instead
</p>
</div>
</ReportBlockContainer>
)
}
14 changes: 14 additions & 0 deletions apps/studio/components/interfaces/Reports/Reports.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,20 @@ export const DEPRECATED_REPORTS = [
'total_storage_options_requests',
'total_storage_patch_requests',
'total_options_requests',
'total_rest_ingress',
'total_rest_get_requests',
'total_rest_post_requests',
'total_rest_patch_requests',
'total_rest_delete_requests',
'total_storage_get_requests',
'total_storage_post_requests',
'total_storage_delete_requests',
'total_auth_delete_requests',
'total_get_requests',
'total_patch_requests',
'total_post_requests',
'total_ingress',
'total_delete_requests',
]

export const EDGE_FUNCTION_REGIONS = [
Expand Down
14 changes: 8 additions & 6 deletions apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DatabaseUpgradeStatus } from '@supabase/shared-types/out/events'
import dayjs from 'dayjs'
import { X } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { useEffect, useState } from 'react'

import { useParams } from 'common'
import { useProjectUpgradingStatusQuery } from 'data/config/project-upgrade-status-query'
Expand All @@ -18,9 +18,11 @@ export const ProjectUpgradeFailedBanner = () => {
const { status, initiated_at, latest_status_at, error } = data?.databaseUpgradeStatus ?? {}

const key = `supabase-upgrade-${ref}-${initiated_at}`
const isAcknowledged =
typeof window !== 'undefined' ? localStorage?.getItem(key) === 'true' : false
const [showMessage, setShowMessage] = useState(!isAcknowledged)

const [hasDismissed, setHasDismissed] = useState(false)
useEffect(() => {
setHasDismissed(localStorage?.getItem(key) === 'true')
}, [key])

const isFailed = status === DatabaseUpgradeStatus.Failed
const initiatedAt = dayjs
Expand All @@ -43,11 +45,11 @@ export const ProjectUpgradeFailedBanner = () => {
const timestampFilter = `its=${initiatedAtEncoded}&ite=${latestStatusAtEncoded}`

const acknowledgeMessage = () => {
setShowMessage(false)
setHasDismissed(true)
localStorage.setItem(key, 'true')
}

if (!isFailed || !showMessage) return null
if (!isFailed || hasDismissed) return null

return (
<div className="max-w-7xl">
Expand Down
Loading