gpt-engineer-app[bot]
96b7594738
Migrate Phase 2 admin edges
...
Migrate five admin/moderator edge functions (merge-contact-tickets, send-escalation-notification, notify-moderators-report, notify-moderators-submission, send-password-added-email) to use createEdgeFunction wrapper. Remove manual CORS, auth, service-client setup, logging, and error handling. Implement handler with EdgeFunctionContext, apply appropriate wrapper config (requireAuth, requiredRoles/useServiceRole, corsEnabled, enableTracing, rateLimitTier). Replace edgeLogger with span events, maintain core business logic and retry/email integration patterns.
2025-11-11 20:39:10 +00:00
gpt-engineer-app[bot]
fa57d497af
Add database persistence to 8 edge functions
...
Implement Phase 1 by adding error span logging and database persistence to 8 edge functions that already log errors:
- detect-location
- export-user-data
- notify-moderators-submission
- novu-webhook
- send-escalation-notification
- send-password-added-email
- resend-deletion-code
- merge-contact-tickets
This update introduces startSpan/endSpan and logSpanToDatabase usage in catch blocks to ensure errors are recorded in the monitoring database.
2025-11-11 18:30:31 +00:00
gpt-engineer-app[bot]
bf3da6414a
Centralize CORS configuration
...
Consolidate CORS handling by introducing a shared supabase/functions/_shared/cors.ts and migrate edge functions to import from it. Remove inline cors.ts usage across functions, standardize headers (including traceparent and x-request-id), and prepare for environment-aware origins.
2025-11-10 21:28:46 +00:00
Claude
571bf07b84
Fix critical error handling gaps in submission pipeline
...
Addressed real error handling issues identified during comprehensive
pipeline review:
1. **process-selective-approval edge function**
- Added try-catch blocks around idempotency key updates (lines 216-262)
- Prevents silent failures when updating submission status tracking
- Updates are now non-blocking to ensure proper response delivery
2. **submissionItemsService.ts**
- Added error logging before throwing in fetchSubmissionItems (line 75-81)
- Added error handling for park location fetch failures (lines 99-107)
- Location fetch errors are now logged as non-critical and don't block
submission item retrieval
3. **notify-moderators-submission edge function**
- Added error handling for notification log insert (lines 216-236)
- Log failures are now non-blocking and properly logged
- Ensures notification delivery isn't blocked by logging issues
4. **upload-image edge function**
- Fixed CORS headers scope issue (line 127)
- Moved corsHeaders definition outside try block
- Prevents undefined reference in catch block error responses
All changes maintain backward compatibility and improve pipeline
resilience without altering functionality. Error handling is now
consistent with non-blocking patterns for auxiliary operations.
2025-11-08 03:47:54 +00:00
gpt-engineer-app[bot]
c8018b827e
feat: Implement retry logic and tracking
2025-11-05 20:19:43 +00:00
gpt-engineer-app[bot]
061c06be29
Implement planned features
2025-11-03 00:38:16 +00:00
gpt-engineer-app[bot]
79277c744a
Fix submission status notifications
2025-10-23 18:54:00 +00:00
gpt-engineer-app[bot]
fa43787360
feat: Add baseUrl to notification edge functions
2025-10-22 15:37:33 +00:00
gpt-engineer-app[bot]
12433e49e3
Implement 5-day plan
2025-10-21 12:37:28 +00:00
gpt-engineer-app[bot]
afd9ecf993
Refactor: Enhance submission notification payload
2025-10-12 18:28:14 +00:00
gpt-engineer-app[bot]
cf7259180f
Fix Novu notification trigger
2025-10-12 18:22:25 +00:00
gpt-engineer-app[bot]
c482f2aa66
Fix: Update trigger function for Novu topics
2025-10-12 18:21:07 +00:00
gpt-engineer-app[bot]
4b71f80939
feat: Implement moderator notifications
2025-10-12 17:39:37 +00:00