feature/backend-endpoints-contract-implementation-plan #1

Merged
avm merged 19 commits from feature/backend-endpoints-contract-implementation-plan into dev 2026-04-14 12:23:44 +03:00
5 changed files with 8 additions and 8 deletions
Showing only changes of commit cbfc0fc909 - Show all commits

View File

@@ -50,7 +50,7 @@
- `financial-summary`, `economics`, `personnel`, `equipment`, `products`, `forecast`, `risk-profile`, `dashboard`.
- дополнена проверка query-валидации для invalid `economics`-запроса.
- **Pass 5 — Внешние контуры (2026-04-14): завершён**
- добавлен endpoint `information-security-registry-entries/` с фильтрами `organization` и `presence_status`.
- добавлен endpoint `security-registries/` с фильтрами `organization` и `presence_status`.
- расширены contract checks для внешних списков (prod/products/prosecutor/public-procurement/arbitration/security).
- **Pass 6 — Финализация (2026-04-14): завершён**
- доработан выбор "последней" фоновой задачи в `admin/users` по фактическому временному событию:
@@ -204,7 +204,7 @@
- Проверить фильтры дат и enum-валидаторы.
- Свести response к единой форме пагинации.
### 5.3 Новый `GET /api/v1/information-security-registry-entries/`
### 5.3 Новый `GET /api/v1/security-registries/`
- Добавить модель/миграцию/serializer/viewset при отсутствии.
- Добавить фильтр по `organization`, `presence_status` и пагинацию.
@@ -254,7 +254,7 @@
### Pass 5. Внешние данные
- [x] Довести внешние реестры к единообразным фильтрам/ответам. (2026-04-14)
- [x] Добавить `information-security-registry-entries`. (2026-04-14)
- [x] Добавить `security-registries`. (2026-04-14)
### Pass 6. Финализация
- [x] Обновить OpenAPI по всем контрактам.

View File

@@ -22,7 +22,7 @@
| 5 | GET /api/v1/prosecutor-checks/ | Есть | Проверить filters | API | Проверить `law_type`, дата-диапазон |
| 5 | GET /api/v1/public-procurements/ | Есть | Проверить filters | API | Проверить `law_type`, дата-диапазон |
| 5 | GET /api/v1/arbitration-cases/ | Есть | Проверить filters | API | Проверить `party_role`, дата-диапазон |
| 5 | GET /api/v1/information-security-registry-entries/ | Нет | Отсутствует endpoint | NEW | Добавить сущность/endpoint/фильтр |
| 5 | GET /api/v1/security-registries/ | Нет | Отсутствует endpoint | NEW | Добавить сущность/endpoint/фильтр |
| 6 | OpenAPI | Частично | Недостаточная детализация multipart/error | DOC | Обновить документацию для всех touched endpoints |
## Риск-реестр (Pass 1)

View File

@@ -131,7 +131,7 @@ OPENAPI_TAG_BY_PATH_PREFIX = OrderedDict(
("/api/v1/prosecutor-checks/", "Внешние данные"),
("/api/v1/public-procurements/", "Внешние данные"),
("/api/v1/arbitration-cases/", "Внешние данные"),
("/api/v1/information-security-registry-entries/", "Внешние данные"),
("/api/v1/security-registries/", "Внешние данные"),
("/api/v1/registers/", "Реестры"),
("/api/v1/forms/f1/", "Форма Ф-1"),
("/api/v1/forms/f2/", "Форма Ф-2"),

View File

@@ -26,9 +26,9 @@ router.register(
"arbitration-cases", ArbitrationCaseViewSet, basename="arbitration-cases"
)
router.register(
"information-security-registry-entries",
"security-registries",
InformationSecurityRegistryEntryViewSet,
basename="information-security-registry-entries",
basename="security-registries",
)
urlpatterns = [

View File

@@ -102,7 +102,7 @@ class ExternalDataApiTest(APITestCase):
)
response = self.client.get(
f"/api/v1/information-security-registry-entries/?organization={self.organization.id}"
f"/api/v1/security-registries/?organization={self.organization.id}"
"&presence_status=present"
)