Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: adds in new filters for api requests (#9695)

Ziinc3f760475dc18
diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.ts
index 85dc9ba6f89..6c50b7cd2d2 100644
--- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts
+++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts
@@ -215,7 +215,9 @@ export const SQL_FILTER_TEMPLATES: any = {
'method.get': `request.method = 'GET'`,
'method.post': `request.method = 'POST'`,
- 'method.del': `request.method = 'DEL'`,
+ 'method.put': `request.method = 'PUT'`,
+ 'method.patch': `request.method = 'PATCH'`,
+ 'method.delete': `request.method = 'DELETE'`,
'method.options': `request.method = 'OPTIONS'`,
},
function_edge_logs: {
@@ -373,11 +375,26 @@ export const FILTER_OPTIONS: FilterTableSet = {
label: 'OPTIONS',
description: '',
},
+ {
+ key: 'put',
+ label: 'PUT',
+ description: '',
+ },
{
key: 'post',
label: 'POST',
description: '',
},
+ {
+ key: 'patch',
+ label: 'PATCH',
+ description: '',
+ },
+ {
+ key: 'delete',
+ label: 'DELETE',
+ description: '',
+ },
],
},
},