feat(api): add media news sorting
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 1m20s
CI/CD Pipeline / Build and Push Images (push) Successful in 17s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 31s

This commit is contained in:
2026-08-18 10:27:15 +02:00
parent 31eaa7e907
commit cdc4698864
3 changed files with 69 additions and 2 deletions

View File

@@ -105,6 +105,8 @@ SOURCE_RECORD_ORDERING_FIELDS = (
"extension__organization__okpo",
"status",
"payload__attestation_status",
"payload__sentiment",
"payload__news_source",
)
SOURCE_RECORD_ORDERING_VALUES = [
value
@@ -227,8 +229,9 @@ SOURCE_RECORD_LIST_PARAMS = [
"extension__organization__full_name, created_at, updated_at, title, "
"uid, extension__organization__inn, extension__organization__ogrn, "
"extension__organization__okpo, status, "
"payload__attestation_status. Для обратной сортировки используйте "
"префикс -. Значения record_date с null сортируются последними."
"payload__attestation_status, payload__sentiment, "
"payload__news_source. Для обратной сортировки используйте префикс -. "
"Значения record_date с null сортируются последними."
),
enum=SOURCE_RECORD_ORDERING_VALUES,
),