The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix updating of comment for functions in API docs
Joshen Lim6ebe4842b158
diff --git a/studio/components/interfaces/Docs/RpcContent.tsx b/studio/components/interfaces/Docs/RpcContent.tsxindex 5f23f1adc53..9711e34c2ed 100644--- a/studio/components/interfaces/Docs/RpcContent.tsx+++ b/studio/components/interfaces/Docs/RpcContent.tsx@@ -42,11 +42,7 @@ const RpcContent = ({<div className="doc-section"><article className="text ">- <Description- content={summary}- metadata={{ rpc: `${rpcId} (${paramList})` }}- onChange={refreshDocs}- />+ <Description content={summary} metadata={{ rpc: rpcId }} onChange={refreshDocs} /></article><article className="code"><CodeSnippetdiff --git a/studio/components/to-be-cleaned/Docs/Description.js b/studio/components/to-be-cleaned/Docs/Description.jsindex 3a87f17d551..ad0367a073b 100644--- a/studio/components/to-be-cleaned/Docs/Description.js+++ b/studio/components/to-be-cleaned/Docs/Description.js@@ -43,7 +43,7 @@ export default function Description({ content, metadata, onChange = () => {} })if (table && column)query = `comment on column public."${table}"."${column}" is '${description}';`if (table && !column) query = `comment on table public."${table}" is '${description}';`- if (rpc) query = `comment on function ${rpc} is '${description}';`+ if (rpc) query = `comment on function "${rpc}" is '${description}';`if (query) {const res = await meta.query(query)diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsxindex 7fb5b053e97..1dcc8ca5cea 100644--- a/studio/pages/project/[ref]/api/index.tsx+++ b/studio/pages/project/[ref]/api/index.tsx@@ -79,7 +79,6 @@ const DocView: FC<any> = observer(({}) => {PermissionAction.READ,'service_api_keys.service_role_key')- console.log('canReadServiceKey', canReadServiceKey)if (API_KEY?.length > 40) headers['Authorization'] = `Bearer ${API_KEY}`