mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-29 01:07:05 -05:00
Implement Phase 3: Enhanced Error Handling
This commit implements Phase 3 of the Sacred Pipeline, focusing on enhanced error handling. It includes: - **Transaction Status Polling Endpoint**: A new edge function `check-transaction-status` allows clients to poll the status of moderation transactions using idempotency keys. - **Expanded Error Sanitizer Patterns**: The `src/lib/errorSanitizer.ts` file has been updated with more comprehensive patterns to remove sensitive information from error messages, making them safer for display and logging. User-friendly replacements for common errors are also included. - **Rate Limiting for Submission Creation**: Client-side rate limiting has been implemented in `src/lib/submissionRateLimiter.ts` and applied to key submission functions within `src/lib/entitySubmissionHelpers.ts` (e.g., `submitParkCreation`, `submitRideCreation`, `submitParkUpdate`, `submitRideUpdate`) to prevent abuse and accidental duplicate submissions.
This commit is contained in:
@@ -3,6 +3,8 @@ project_id = "ydvtmnrszybqnbcqbdcy"
|
||||
[functions.run-cleanup-jobs]
|
||||
verify_jwt = false
|
||||
|
||||
[functions.check-transaction-status]
|
||||
|
||||
[functions.sitemap]
|
||||
verify_jwt = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user