Commit Graph

169 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
677d0980dd Connect to Lovable Cloud
Approved Lovable tool use and migration updates to fix security warning and add monitoring edge function. Prepare and apply migrations to ensure search_path is set to public and implement monitoring endpoint for rate limit metrics.
2025-11-11 00:14:48 +00:00
gpt-engineer-app[bot]
89338a06ea Connect to Lovable Cloud
Integrate Lovable Cloud tracing updates by enabling distributed tracing in edge functions, adjusting breadcrumb/trace propagation, and preparing RPC span handling. Files touched include edgeFunctionTracking and related RPC tracing scaffolding.
2025-11-10 14:42:39 +00:00
gpt-engineer-app[bot]
6c03a5b0e7 Implement rejection bulletproofing
Created atomic rejection edge function process-selective-rejection and RPC, updated moderation client to use it, and ensured resilience; added CORS wrapper. Reminder: generate package-lock.json by running npm install.
2025-11-10 13:26:13 +00:00
gpt-engineer-app[bot]
da0ccf7e27 Fix update_entity_from_submission function
The `update_entity_from_submission` function has been updated to correctly handle category fields for rides and ride models. This includes removing a non-existent `ride_type` column reference for rides and adding the missing `category` field for both rides and ride models. The `ride_type` field for ride models has been retained. This resolves critical bugs that were preventing ride and ride model edit submissions from being processed.
2025-11-08 04:11:24 +00:00
gpt-engineer-app[bot]
d6a3df4fd7 Fix timeline event approval and park location creation
The migration to fix timeline event approval and park location creation has been successfully applied. This includes adding the necessary JOINs and data building logic for timeline events in `process_approval_transaction`, and implementing logic in `create_entity_from_submission` to create new locations for parks when location data is provided but no `location_id` exists.
2025-11-08 02:24:22 +00:00
gpt-engineer-app[bot]
f294794763 Connect to Lovable Cloud
The Lovable Cloud tool was approved and used to apply a migration. This migration fixes a critical bug in the composite submission approval process by resolving temporary references to actual entity IDs, ensuring correct foreign key population and data integrity.
2025-11-08 01:14:07 +00:00
gpt-engineer-app[bot]
c52e538932 Apply validation enhancement migration
Apply migration to enhance the `validate_submission_items_for_approval` function with specific error codes and item details. Update `process_approval_transaction` to utilize this enhanced error information for improved debugging and monitoring. This completes Phase 3 of the pipeline audit.
2025-11-07 20:06:23 +00:00
gpt-engineer-app[bot]
eccbe0ab1f Update process_approval_transaction function
Update the `process_approval_transaction` function to utilize the new `error_code` and `item_details` returned by the enhanced `validate_submission_items_for_approval` function. This will improve error handling and debugging by providing more specific information when validation fails.
2025-11-07 19:41:18 +00:00
gpt-engineer-app[bot]
93b9553e2c Connect to Lovable Cloud
Connect to Lovable Cloud using the supabase--enable tool.
2025-11-07 18:02:30 +00:00
gpt-engineer-app[bot]
9122a570fa Connect to Lovable Cloud
The user approved the use of the Lovable tool. This commit reflects the successful connection and execution of the tool, which was used to implement Phase 1 of the Critical Database Fixes for the Sacred Pipeline. The fixes include adding validation, error logging, cascade deletes, and error boundaries.
2025-11-07 17:37:59 +00:00
gpt-engineer-app[bot]
d903e96e13 Implement pipeline monitoring alerts
Approve and implement the Supabase migration for the pipeline monitoring alert system. This includes expanding alert types, adding new monitoring functions, and updating existing ones with escalating thresholds.
2025-11-07 05:05:32 +00:00
gpt-engineer-app[bot]
e747e1f881 Implement RLS and security functions
Apply Row Level Security to orphaned_images and system_alerts tables. Create RLS policies for admin/moderator access. Replace system_health view with get_system_health() function.
2025-11-07 01:02:58 +00:00
gpt-engineer-app[bot]
6bc5343256 Apply database hardening migrations
Approve and apply the latest set of database migrations for Phase 4: Application Boundary Hardening. These migrations include orphan image cleanup, slug validation triggers, monitoring and alerting infrastructure, and scheduled maintenance functions.
2025-11-07 00:59:49 +00:00
gpt-engineer-app[bot]
24dbf5bbba Implement critical fixes
Approve and implement Phase 1 critical fixes including CORS, RPC rollback, idempotency, timeouts, and deadlock retry.
2025-11-06 21:51:39 +00:00
gpt-engineer-app[bot]
edd12b4454 Approve tool use
Approve tool use based on context.
2025-11-06 20:11:48 +00:00
gpt-engineer-app[bot]
371995724a feat: Approve tool use
Approve the use of a lovable tool.
2025-11-06 19:13:52 +00:00
gpt-engineer-app[bot]
93a3fb93fa Fix: Correct idempotency key migration
Corrected database migration for idempotency keys to resolve issues with partial indexes using `now()`. The migration now includes the `submission_idempotency_keys` table, indexes, RLS policies, a cleanup function, and an `idempotency_stats` view.
2025-11-06 16:29:03 +00:00
gpt-engineer-app[bot]
5b0ac813e2 Fix park submission locations
Implement Phase 1 of the JSONB violation fix by creating the `park_submission_locations` table. This includes migrating existing data from `park_submissions.temp_location_data` and updating relevant code to read and write to the new relational table. The `temp_location_data` column will be dropped after data migration.
2025-11-06 15:45:12 +00:00
gpt-engineer-app[bot]
ed9d17bf10 Fix ride model technical specs
Implement plan to fix ride model technical specifications pipeline. This includes creating a new migration for the `ride_model_submission_technical_specifications` table, updating `entitySubmissionHelpers.ts` to handle insertion of technical specifications, and modifying the edge function `process-selective-approval/index.ts` to fetch these specifications. This ensures no data loss for ride model technical specifications.
2025-11-06 15:03:51 +00:00
gpt-engineer-app[bot]
de9a48951f Fix ride submission data loss
Implement the plan to fix critical data loss in ride submissions. This includes:
- Storing ride technical specifications, coaster statistics, and name history in submission tables.
- Adding missing category-specific fields to the `ride_submissions` table via a new migration.
- Updating submission helpers and the edge function to include these new fields.
- Fixing the park location Zod schema to include `street_address`.
2025-11-06 14:51:36 +00:00
gpt-engineer-app[bot]
98fbc94476 feat: Add street address to locations
Adds a street_address column to the locations table and updates the LocationSearch component to capture, store, and display full street addresses. This includes database migration, interface updates, and formatter logic.
2025-11-06 13:51:40 +00:00
gpt-engineer-app[bot]
ceeb41768f Fix composite submission location data 2025-11-06 01:43:28 +00:00
gpt-engineer-app[bot]
dfd17e8244 Refactor park submission location handling 2025-11-05 20:46:02 +00:00
gpt-engineer-app[bot]
c0a4a8dc9c Fix duplicate foreign key constraints 2025-11-05 19:46:56 +00:00
gpt-engineer-app[bot]
bd3bffcc20 Fix edge function errors 2025-11-05 19:40:35 +00:00
gpt-engineer-app[bot]
18d28a1fc8 feat: Create stale temp refs cleanup function 2025-11-05 18:33:58 +00:00
gpt-engineer-app[bot]
b326252138 Refactor: Approve tool use 2025-11-05 18:22:38 +00:00
gpt-engineer-app[bot]
f750763c63 Fix: Implement database schema and code updates 2025-11-05 01:20:30 +00:00
gpt-engineer-app[bot]
16386f9894 Implement superuser lock management 2025-11-04 23:08:00 +00:00
gpt-engineer-app[bot]
9da2fa7ff2 Fix Supabase function schema 2025-11-04 17:14:03 +00:00
gpt-engineer-app[bot]
feee859a50 Refactor moderation data fetching 2025-11-04 16:56:49 +00:00
gpt-engineer-app[bot]
80aa033e70 Fix submission_items foreign keys 2025-11-04 14:57:58 +00:00
gpt-engineer-app[bot]
71b174fe16 Fix: Use RPC for submission claims 2025-11-04 00:32:39 +00:00
gpt-engineer-app[bot]
0b4c4c99ef Fix error logging issues 2025-11-03 21:56:28 +00:00
gpt-engineer-app[bot]
b1d9f9c72b Fix error logging and metadata 2025-11-03 21:49:21 +00:00
gpt-engineer-app[bot]
22f4a68bd8 Refactor: Database and UI updates 2025-11-03 21:32:04 +00:00
gpt-engineer-app[bot]
a4e1be8056 Fix migration failure 2025-11-03 21:13:23 +00:00
gpt-engineer-app[bot]
19b1451f32 Refactor log_request_metadata function 2025-11-03 20:58:52 +00:00
gpt-engineer-app[bot]
223e743330 Fix RLS policy for JSONB migration 2025-11-03 20:42:30 +00:00
gpt-engineer-app[bot]
eee4b1c626 Fix moderation queue issues 2025-11-03 16:43:21 +00:00
gpt-engineer-app[bot]
39e3bbe0fa Code edited in Lovable Code Editor 2025-11-03 16:33:45 +00:00
gpt-engineer-app[bot]
6c3a8e4f51 Apply database migration 2025-11-03 16:28:50 +00:00
gpt-engineer-app[bot]
a86da6e833 Approve database migration 2025-11-03 15:18:06 +00:00
gpt-engineer-app[bot]
a3ef90e275 Fix: Remove hardcoded secrets 2025-11-03 14:44:54 +00:00
gpt-engineer-app[bot]
c3f30b8417 Refactor submission item handling 2025-11-03 14:28:58 +00:00
gpt-engineer-app[bot]
db8029f573 Refactor submission items 2025-11-03 03:55:38 +00:00
gpt-engineer-app[bot]
061c06be29 Implement planned features 2025-11-03 00:38:16 +00:00
gpt-engineer-app[bot]
ecca11a475 Refactor: Fix notification view security 2025-11-03 00:30:56 +00:00
gpt-engineer-app[bot]
a3b52b777c Fix notification logs migration 2025-11-03 00:24:38 +00:00
gpt-engineer-app[bot]
71bb364bce Fix: Correct database migrations 2025-11-03 00:23:04 +00:00