From 1a4a2834801155f05597b5cbb17d37d60c540d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Thu, 2 Oct 2025 15:37:50 +0800 Subject: [PATCH 1/5] chore: deprecate additional daily stats blocks (#39162) As part of reducing reliance on our old daily stats pipeline, this PR adds additional deprecated properties. Especially with the revamped reports, these daily stats are barely getting called anymore and it is not worth exposing them to the customers this way. --- .../ReportBlock/DeprecatedChartBlock.tsx | 22 ++++++++++++------- .../interfaces/Reports/Reports.constants.ts | 14 ++++++++++++ 2 files changed, 28 insertions(+), 8 deletions(-) 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 = [ From 2801ce877fb92ac9f6885081e01bf6517ea67ef4 Mon Sep 17 00:00:00 2001 From: matlin Date: Thu, 2 Oct 2025 03:24:27 -0500 Subject: [PATCH 2/5] fix: handling of upgrade failure acknowledgment in ProjectUpgradeFailedBanner (#39185) --- .../components/ui/ProjectUpgradeFailedBanner.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 (
From 3091449547f797be0821ce36d8735cbd70b03acd Mon Sep 17 00:00:00 2001 From: barcofourie Date: Thu, 2 Oct 2025 11:04:02 +0200 Subject: [PATCH 3/5] Added Barco Fourie - humans.txt (#39191) --- apps/docs/public/humans.txt | 1 + 1 file changed, 1 insertion(+) 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 From fc82bc1266e16620135bffeef4f45ebe0bed40b8 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Thu, 2 Oct 2025 12:35:45 +0300 Subject: [PATCH 4/5] chore: update js libs docs url (#39167) --- apps/docs/spec/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 From 75962742048c55870b3d077cb7cb4b6f0b5ab33f Mon Sep 17 00:00:00 2001 From: Charis <26616127+charislam@users.noreply.github.com> Date: Thu, 2 Oct 2025 05:36:04 -0400 Subject: [PATCH 5/5] fix: correct ref paths for new sdk specs (#39085) --- apps/docs/spec/supabase_js_v2.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: