Functions only show functions for the public
schema
#16955
Replies: 3 comments
-
The functions that are displayed in the UI are filtered by a list of schemas. If this filter is removed, then all of the default available functions are displayed in the UI (something like 200+ from my test default project). supabase/studio/stores/pgmeta/MetaStore.ts Lines 172 to 189 in 4ed3e26 To remove the filter, updates need to be made to the below two places. There are a few options on how to fix this that I came up with below, but somebody from the Supabase team should weigh in on how it should be handled.
|
Beta Was this translation helpful? Give feedback.
-
Hey @nrayburn-tech, thanks for the deep dive! A good solution would be to have a UI control that can dynamically update the filters so that not one is hardcoded and it gives users the options. The possible filters could be to show user-created schemas, default, or all. |
Beta Was this translation helpful? Give feedback.
-
`` Hey, not sure if this is still an open question. I ran into a similar issue and this helped me. you can just copy the definition into an sql editor to get a readable version. If you do not know the name of your function just remove the p.proname where clause. |
Beta Was this translation helpful? Give feedback.
-
Bug report
Describe the bug
In the Supabase dashboard, when one creates a custom function for a schema other than
public
, they are created but not shown in the dashboard. We confirm that they exist by running:To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
public
(for example, theauth
schema)Expected behavior
I expect to see functions created in the non-
public
schemaScreenshots
Only the public schema functions are shown in the dashboard.
System information
Beta Was this translation helpful? Give feedback.
All reactions