feat: derive event lifecycle status from dates and flags
Replace persisted event statuses with publication and cancellation flags, and compute public lifecycle labels from event timing and registration capacity. Keep filters, registration checks, and profile responses aligned with the derived status.
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "سالن کنفرانس دانشکده مهندسی کامپیوتر",
|
||||
"location": "35.7219,51.3890",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 50,
|
||||
"price": "150000.00",
|
||||
"registration_start_date": "2024-03-01T00:00:00Z",
|
||||
@@ -36,7 +37,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "آزمایشگاه کامپیوتر شماره ۱",
|
||||
"location": "35.7225,51.3885",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 80,
|
||||
"price": null,
|
||||
"registration_start_date": "2024-03-05T00:00:00Z",
|
||||
@@ -57,7 +59,8 @@
|
||||
"end_time": "2024-03-28T21:00:00Z",
|
||||
"event_type": "online",
|
||||
"online_link": "https://meet.google.com/abc-defg-hij",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 200,
|
||||
"price": null,
|
||||
"registration_start_date": "2024-03-10T00:00:00Z",
|
||||
@@ -80,7 +83,8 @@
|
||||
"address": "کلاس ۲۰۵ ساختمان مهندسی کامپیوتر",
|
||||
"location": "35.7230,51.3880",
|
||||
"online_link": "https://zoom.us/j/123456789",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 40,
|
||||
"price": "200000.00",
|
||||
"registration_start_date": "2024-03-20T00:00:00Z",
|
||||
@@ -102,7 +106,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "شرکت دیجیکالا، تهران",
|
||||
"location": "35.7580,51.4100",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 30,
|
||||
"price": null,
|
||||
"registration_start_date": "2024-03-25T00:00:00Z",
|
||||
@@ -124,7 +129,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "مرکز نوآوری دانشگاه",
|
||||
"location": "35.7200,51.3900",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 60,
|
||||
"price": "100000.00",
|
||||
"registration_start_date": "2024-04-01T00:00:00Z",
|
||||
@@ -147,7 +153,8 @@
|
||||
"address": "آمفیتئاتر مرکزی دانشگاه",
|
||||
"location": "35.7210,51.3895",
|
||||
"online_link": "https://meet.google.com/xyz-uvw-rst",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 150,
|
||||
"price": null,
|
||||
"registration_start_date": "2024-04-10T00:00:00Z",
|
||||
@@ -169,7 +176,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "آزمایشگاه شبکه دانشکده",
|
||||
"location": "35.7215,51.3888",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 25,
|
||||
"price": "300000.00",
|
||||
"registration_start_date": "2024-04-15T00:00:00Z",
|
||||
@@ -191,7 +199,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "استودیو طراحی دانشکده هنر",
|
||||
"location": "35.7240,51.3870",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 40,
|
||||
"price": "50000.00",
|
||||
"registration_start_date": "2024-04-20T00:00:00Z",
|
||||
@@ -213,7 +222,8 @@
|
||||
"event_type": "on_site",
|
||||
"address": "سالن همایشهای دانشگاه",
|
||||
"location": "35.7205,51.3892",
|
||||
"status": "published",
|
||||
"is_published": true,
|
||||
"is_cancelled": false,
|
||||
"capacity": 100,
|
||||
"price": null,
|
||||
"registration_start_date": "2024-05-01T00:00:00Z",
|
||||
|
||||
Reference in New Issue
Block a user