diff --git a/apps/docs/public/humans.txt b/apps/docs/public/humans.txt index 7aed925d2dbd5..dc97d192858f9 100644 --- a/apps/docs/public/humans.txt +++ b/apps/docs/public/humans.txt @@ -14,6 +14,7 @@ Ant Wilson Ariuna K Artur Zakirov Artyom Borissov +Barco Fourie Beng Eu Bo Lu Bobbie Soedirgo diff --git a/apps/docs/spec/Makefile b/apps/docs/spec/Makefile index 73f5b2dadcc0f..aeb4daa1a1d25 100644 --- a/apps/docs/spec/Makefile +++ b/apps/docs/spec/Makefile @@ -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 diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.yml index e676ae78ec957..7c9fbb1f73614 100644 --- a/apps/docs/spec/supabase_js_v2.yml +++ b/apps/docs/spec/supabase_js_v2.yml @@ -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 @@ -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: @@ -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: diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/DeprecatedChartBlock.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/DeprecatedChartBlock.tsx index 7f8dd241d0b66..4bd09d91a537b 100644 --- a/apps/studio/components/interfaces/Reports/ReportBlock/DeprecatedChartBlock.tsx +++ b/apps/studio/components/interfaces/Reports/ReportBlock/DeprecatedChartBlock.tsx @@ -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': @@ -38,14 +42,16 @@ export const DeprecatedChartBlock = ({ label, attribute, actions }: DeprecatedCh label={label} actions={actions} > -

- This chart is not longer available, and can be removed from your report -

-

- You may view the equivalent of this data from the{' '} - {logsName} Logs{' '} - instead -

+
+

+ This chart is not longer available, and can be removed from your report +

+

+ You may view the equivalent of this data from the{' '} + {logsName} Logs{' '} + instead +

+
) } diff --git a/apps/studio/components/interfaces/Reports/Reports.constants.ts b/apps/studio/components/interfaces/Reports/Reports.constants.ts index b80f349bb6b97..1f60e7ddd3f22 100644 --- a/apps/studio/components/interfaces/Reports/Reports.constants.ts +++ b/apps/studio/components/interfaces/Reports/Reports.constants.ts @@ -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 = [ diff --git a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx index 53001c2230c1f..f6b7a6688b7f6 100644 --- a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx +++ b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx @@ -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' @@ -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 @@ -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 (