fix(cuod-bundle): spacecraft seed records — мигрировать статусы на новый FK
Bundle v1.2.1 ввёл x-references на spacecraft_status, но seed records оставались со старыми enum-значениями (ACTIVE, DECAYED) которых нет в spacecraft_status.records.json. Migration: - ACTIVE (12 records) → OPERATIONAL (штатная целевая работа) - DECAYED (2 records) → LOST (аварийная потеря или внеплановый сход) Mapping выбран по семантике: ACTIVE = currently working = OPERATIONAL. DECAYED означает unplanned re-entry = LOST (DECOMMISSIONED это плановый вывод). После следующего bundle re-import (TRUNCATE+restart) seed будет проходить x-references validation.
This commit is contained in:
+14
-14
@@ -16,7 +16,7 @@
|
||||
"satellite_type_code": "OPT_MIDRES_MS",
|
||||
"mass_kg": 4864,
|
||||
"launch_date": "1999-12-18",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": {
|
||||
"type": "SSO",
|
||||
"semimajor_axis_km": 7083,
|
||||
@@ -47,7 +47,7 @@
|
||||
"satellite_type_code": "SAR_X_HIRES",
|
||||
"mass_kg": 2300,
|
||||
"launch_date": "2014-04-03",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": {
|
||||
"type": "SSO",
|
||||
"semimajor_axis_km": 7064,
|
||||
@@ -78,7 +78,7 @@
|
||||
"satellite_type_code": "OPT_MIDRES_MS",
|
||||
"mass_kg": 1140,
|
||||
"launch_date": "2015-06-23",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": {
|
||||
"type": "SSO",
|
||||
"semimajor_axis_km": 7167,
|
||||
@@ -107,7 +107,7 @@
|
||||
"satellite_type_code": "SAR_X_HIRES",
|
||||
"mass_kg": 1050,
|
||||
"launch_date": "2024-08-13",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": {
|
||||
"type": "SSO",
|
||||
"inclination_deg": 97.5
|
||||
@@ -131,7 +131,7 @@
|
||||
"mass_kg": 5920,
|
||||
"launch_date": "2013-06-25",
|
||||
"decay_date": "2021-12-19",
|
||||
"status": "DECAYED",
|
||||
"status": "LOST",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 97.27 },
|
||||
"spectrum_bands": ["VIS", "NIR"],
|
||||
"mission": { "ru-RU": "Высокодетальная оптическая съёмка", "en-US": "High-resolution optical imaging" }
|
||||
@@ -149,7 +149,7 @@
|
||||
"mass_kg": 5920,
|
||||
"launch_date": "2014-12-26",
|
||||
"decay_date": "2022-04-13",
|
||||
"status": "DECAYED",
|
||||
"status": "LOST",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 97.27 }
|
||||
}
|
||||
},
|
||||
@@ -164,7 +164,7 @@
|
||||
"satellite_type_code": "OPT_HIRES_VIS",
|
||||
"mass_kg": 5920,
|
||||
"launch_date": "2016-03-13",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 97.28 },
|
||||
"spectrum_bands": ["VIS", "NIR"]
|
||||
}
|
||||
@@ -179,7 +179,7 @@
|
||||
"satellite_type_code": "OPT_HIRES_VIS",
|
||||
"mass_kg": 5920,
|
||||
"launch_date": "2024-03-31",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 97.28 },
|
||||
"spectrum_bands": ["VIS", "NIR"]
|
||||
}
|
||||
@@ -195,7 +195,7 @@
|
||||
"satellite_type_code": "OPT_HIRES_VIS",
|
||||
"mass_kg": 473,
|
||||
"launch_date": "2012-07-22",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 97.43 },
|
||||
"spectrum_bands": ["VIS", "NIR"]
|
||||
}
|
||||
@@ -210,7 +210,7 @@
|
||||
"satellite_type_code": "OPT_HIRES_VIS",
|
||||
"mass_kg": 473,
|
||||
"launch_date": "2017-12-01",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 97.45 }
|
||||
}
|
||||
},
|
||||
@@ -224,7 +224,7 @@
|
||||
"satellite_type_code": "OPT_MIDRES_MS",
|
||||
"mass_kg": 2900,
|
||||
"launch_date": "2014-07-08",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 98.86 },
|
||||
"spectrum_bands": ["VIS", "NIR", "SWIR", "TIR"]
|
||||
}
|
||||
@@ -239,7 +239,7 @@
|
||||
"satellite_type_code": "OPT_MIDRES_MS",
|
||||
"mass_kg": 2900,
|
||||
"launch_date": "2019-07-05",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "SSO", "inclination_deg": 98.83 }
|
||||
}
|
||||
},
|
||||
@@ -253,7 +253,7 @@
|
||||
"satellite_type_code": "OPT_MIDRES_MS",
|
||||
"mass_kg": 1740,
|
||||
"launch_date": "2015-12-11",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "GEO" },
|
||||
"spectrum_bands": ["VIS", "NIR", "MWIR", "TIR"]
|
||||
}
|
||||
@@ -268,7 +268,7 @@
|
||||
"satellite_type_code": "OPT_MIDRES_MS",
|
||||
"mass_kg": 2200,
|
||||
"launch_date": "2021-02-28",
|
||||
"status": "ACTIVE",
|
||||
"status": "OPERATIONAL",
|
||||
"orbit": { "type": "HEO" },
|
||||
"spectrum_bands": ["VIS", "NIR", "MWIR", "TIR"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user