feat: Fix nutrition service and add location-based alerts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Changes: - Fix nutrition service: add is_active column and Pydantic validation for UUID/datetime - Add location-based alerts feature: users can now see alerts within 1km radius - Fix CORS and response serialization in nutrition service - Add getCurrentLocation() and loadAlertsNearby() functions - Improve UI for nearby alerts display with distance and response count
This commit is contained in:
22
ws_test_final_results.txt
Normal file
22
ws_test_final_results.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
🔐 Step 1: Getting JWT token...
|
||||
Status: 200
|
||||
✅ Token obtained: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1M...
|
||||
✅ User ID: 51
|
||||
|
||||
📡 Step 2: Testing WebSocket connection...
|
||||
✅ WebSocket connected!
|
||||
📨 Received: {"type": "connection_established", "message": "WebSocket connection established successfully", "user_id": 51, "timestamp": "2025-12-13T14:15:14.982894"}
|
||||
|
||||
🏓 Step 3: Testing ping/pong...
|
||||
📤 Ping sent
|
||||
📨 Received: {"type": "connection_established", "message": "Connected to emergency notifications", "user_id": 51}
|
||||
|
||||
👂 Step 4: Listening for broadcasts (10 seconds)...
|
||||
(Leave this running and create an emergency alert in another terminal)
|
||||
📨 Broadcast received: {
|
||||
"type": "pong"
|
||||
}
|
||||
⏱️ No broadcasts received (timeout)
|
||||
|
||||
✅ WebSocket connection test completed successfully!
|
||||
Reference in New Issue
Block a user