From 2e0cc93b561ff72f86b38827ccf76b4b25d643fa Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Tue, 6 Oct 2026 12:07:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=D0=BE=D0=BA=20=D0=BF=D1=80=D0=B8=D1=87=D0=B8?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B2=D0=B0=D0=BA=D0=B0=D0=BD=D1=81=D0=B8=D0=B8=20=D0=B2=20?= =?UTF-8?q?=D0=BE=D1=82=D1=87=D1=91=D1=82=D0=B5=20=D0=BF=D0=BE=20=D0=B2?= =?UTF-8?q?=D0=B0=D0=BA=D0=B0=D0=BD=D1=81=D0=B8=D1=8F=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В списке «Заявка на подбор — данные» колонки называются VacancyOpenReason и VacancyOpenReasonDetails; запрос с несуществующими OpenReason* падал, ошибка партиции глушилась в лог, и отчёт возвращался пустым. Co-Authored-By: Claude Sonnet 5.5 --- .../Tnsu.ApprovalRoute.Application/Reports/SelectionRow.cs | 6 +++--- .../Reports/VacancyReportService.cs | 2 +- .../ApplicationServices/VacancyReportServiceTests.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/Tnsu.ApprovalRoute.Application/Reports/SelectionRow.cs b/backend/Tnsu.ApprovalRoute.Application/Reports/SelectionRow.cs index b533139..474dc1b 100644 --- a/backend/Tnsu.ApprovalRoute.Application/Reports/SelectionRow.cs +++ b/backend/Tnsu.ApprovalRoute.Application/Reports/SelectionRow.cs @@ -26,7 +26,7 @@ internal sealed record SelectionRow( /// public const string Select = "$select=Id,RequestStatus,Position,DepartmentName,ObjectProject,OpenVacanciesCount," + - "SubmitDate,Created,OpenReason,OpenReasonDetails,Responsible/Title&$expand=Responsible&$top=5000"; + "SubmitDate,Created,VacancyOpenReason,VacancyOpenReasonDetails,Responsible/Title&$expand=Responsible&$top=5000"; public static SelectionRow? TryParse(JsonElement item, string listId) { @@ -50,7 +50,7 @@ internal sealed record SelectionRow( // иначе заявка попадала бы в отчёт, но с пустой колонкой H. SharePointJson.Date(item, "SubmitDate") ?? SharePointJson.Date(item, "Created"), SharePointJson.PersonTitle(item, "Responsible"), - SharePointJson.String(item, "OpenReason"), - SharePointJson.String(item, "OpenReasonDetails")); + SharePointJson.String(item, "VacancyOpenReason"), + SharePointJson.String(item, "VacancyOpenReasonDetails")); } } diff --git a/backend/Tnsu.ApprovalRoute.Application/Reports/VacancyReportService.cs b/backend/Tnsu.ApprovalRoute.Application/Reports/VacancyReportService.cs index a03dc40..a023fb4 100644 --- a/backend/Tnsu.ApprovalRoute.Application/Reports/VacancyReportService.cs +++ b/backend/Tnsu.ApprovalRoute.Application/Reports/VacancyReportService.cs @@ -24,7 +24,7 @@ namespace Tnsu.ApprovalRoute.Application.Reports; /// индекса отчёту не критично. Но на этом тенанте ЧАСТЬ нужных полей индекс не /// отдаёт вовсе, при том что в самих списках значения есть (проверено поштучно /// через REST): -/// • «Заявка на подбор»: OpenReason, OpenReasonDetails; +/// • «Заявка на подбор»: VacancyOpenReason, VacancyOpenReasonDetails; /// • «Прием на работу»: CandidateName, HireDate, ReplacedEmployee; /// • «— согласование»: Ticket — Lookup, managed property не нашлась ни под /// одним из разумных имён (TicketOWSTEXT/TicketOWSLKID/TicketId/…). diff --git a/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/VacancyReportServiceTests.cs b/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/VacancyReportServiceTests.cs index ee7e3d9..d1be1ab 100644 --- a/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/VacancyReportServiceTests.cs +++ b/backend/tests/Tnsu.ApprovalRoute.IntegrationTests/ApplicationServices/VacancyReportServiceTests.cs @@ -75,8 +75,8 @@ public sealed class VacancyReportServiceTests : IClassFixture