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