From fd7d7d4535f2a05516a8b340cf0ba62d6e8b0059 Mon Sep 17 00:00:00 2001 From: "Zimin A.N." Date: Mon, 25 May 2026 14:14:44 +0300 Subject: [PATCH] =?UTF-8?q?feat(cuod):=20mission.spacecraft=5Fcodes=20?= =?UTF-8?q?=E2=80=94=20FK=20=D0=BD=D0=B0=20spacecraft.designator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Зеркало правки в instrument.spacecraft_codes (MR !257). Список КА программы теперь рендерится в admin-UI как MultiSelect с поиском по designator (2014-037A — Ресурс-П №2) вместо comma-separated «businessKey'и из spacecraft». mission schemaVersion 1.0.0 → 1.1.0, bundle 1.3.3 → 1.3.4. bundleUpdateExistingSchema=true (MR !90) докатит schema_json на рестарте writer'а. --- .../src/main/resources/bundles/cuod/manifest.json | 4 ++-- .../src/main/resources/bundles/cuod/mission.schema.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ordinis-cuod-bundle/src/main/resources/bundles/cuod/manifest.json b/ordinis-cuod-bundle/src/main/resources/bundles/cuod/manifest.json index e418529..e9cd186 100644 --- a/ordinis-cuod-bundle/src/main/resources/bundles/cuod/manifest.json +++ b/ordinis-cuod-bundle/src/main/resources/bundles/cuod/manifest.json @@ -2,7 +2,7 @@ "bundle": "cuod", "displayName": "ЦУОД ДЗЗ", "description": "Bundle справочников для Центра Управления Обработкой Данных ДЗЗ. Anchor v1.", - "version": "1.3.3", + "version": "1.3.4", "supportedLocales": ["ru-RU", "en-US"], "defaultLocale": "ru-RU", "dictionaries": [ @@ -11,7 +11,7 @@ { "name": "spacecraft_status", "displayName": "Статусы КА", "description": "Жизненный цикл КА: planned → operational → decommissioned/lost.", "scope": "PUBLIC", "schemaResource": "spacecraft_status.schema.json", "schemaVersion": "1.0.0" }, { "name": "ground_station", "displayName": "Наземные станции", "description": "Каталог наземных пунктов приёма и управления", "scope": "PUBLIC", "schemaResource": "ground_station.schema.json", "schemaVersion": "1.0.0", "approvalRequired": true }, { "name": "antenna", "displayName": "Антенны", "description": "Антенны наземных станций с G/T и поддерживаемыми диапазонами.", "scope": "PUBLIC", "schemaResource": "antenna.schema.json", "schemaVersion": "1.0.0" }, - { "name": "mission", "displayName": "Миссии / программы", "description": "Программы ДЗЗ — Ресурс-П, Канопус-В, Sentinel и т.д. Группируют семейства КА.", "scope": "PUBLIC", "schemaResource": "mission.schema.json", "schemaVersion": "1.0.0" }, + { "name": "mission", "displayName": "Миссии / программы", "description": "Программы ДЗЗ — Ресурс-П, Канопус-В, Sentinel и т.д. Группируют семейства КА.", "scope": "PUBLIC", "schemaResource": "mission.schema.json", "schemaVersion": "1.1.0" }, { "name": "instrument", "displayName": "Инструменты съёмки", "description": "Полезная нагрузка / сенсоры на борту КА (Геотон-Л1, MODIS, C-SAR, ...)", "scope": "PUBLIC", "schemaResource": "instrument.schema.json", "schemaVersion": "1.1.0", "approvalRequired": true }, { "name": "sensor_type", "displayName": "Типы сенсоров", "description": "Класс полезной нагрузки: optical/SAR/hyperspectral/lidar/thermal.", "scope": "PUBLIC", "schemaResource": "sensor_type.schema.json", "schemaVersion": "1.0.0" }, { "name": "spectral_band", "displayName": "Спектральные каналы", "description": "Стандартные оптические/ИК каналы (PAN/R/G/B/NIR/SWIR/TIR).", "scope": "PUBLIC", "schemaResource": "spectral_band.schema.json", "schemaVersion": "1.0.0" }, diff --git a/ordinis-cuod-bundle/src/main/resources/bundles/cuod/mission.schema.json b/ordinis-cuod-bundle/src/main/resources/bundles/cuod/mission.schema.json index 6a16d78..ee41af2 100644 --- a/ordinis-cuod-bundle/src/main/resources/bundles/cuod/mission.schema.json +++ b/ordinis-cuod-bundle/src/main/resources/bundles/cuod/mission.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://ordinis.nstart.cloud/schemas/cuod/mission/1.0.0", + "$id": "https://ordinis.nstart.cloud/schemas/cuod/mission/1.1.0", "title": "Mission (программа / семейство КА)", "description": "Программа ДЗЗ — например Ресурс, Канопус, Sentinel. Группирует семейство spacecraft, общие цели и задачи.", "type": "object", @@ -33,8 +33,8 @@ }, "spacecraft_codes": { "type": "array", - "description": "businessKey'и из spacecraft, входящих в эту программу", - "items": { "type": "string" }, + "description": "Спутники программы — FK на spacecraft.designator", + "items": { "type": "string", "x-references": "spacecraft.designator" }, "uniqueItems": true }, "operator": {