From bf4c021ca9dc8aa3db2208719dfc1053f9ef96df Mon Sep 17 00:00:00 2001 From: Rustam Khalimov Date: Fri, 11 Sep 2026 13:51:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D1=82=D1=8C=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=BA=D0=B8,=20=D0=BF=D0=BE=D0=B2=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D1=8F=D1=8E=D1=89=D0=B8=D0=B5=20=D0=B8=D0=BC=D1=8F/=D0=B7?= =?UTF-8?q?=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=87=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit summary вида «Ключ «x»» удалены; «Ключ «x»: пояснение» сжаты до пояснения; summary, дословно равные имени/значению, удалены. --- src/ai-service/Deal.Ai.Tests/Ai/AiTestHost.cs | 6 - src/ai-service/Deal.Ai/AiServiceImpl.cs | 3 - .../Deal.Api/Endpoints/DiscoveryEndpoints.cs | 3 - .../RequestModels/DiscoveryTaskCreateBody.cs | 3 - src/core/Deal.Api/Extensions/AuthHelpers.cs | 6 - .../IngressServiceTokenInterceptor.cs | 3 - .../Telegram/TelegramIngressService.cs | 3 - .../Integrations/Models/AiGrpcConnection.cs | 6 - .../Integrations/Models/MlGrpcConnection.cs | 6 - .../Models/TelegramGrpcConnection.cs | 6 - .../Persistence/Entities/DiscTaskEntity.cs | 3 - .../Entities/GlobalSettingEntity.cs | 3 - .../Application/Abstractions/IApiSource.cs | 3 - .../Abstractions/IContainerRules.cs | 6 - .../Application/Abstractions/IFileSource.cs | 3 - .../Application/Models/CardFile.cs | 3 - .../Application/Models/DiscoveryTaskDraft.cs | 3 - .../Application/Models/DiscoveryTaskRow.cs | 3 - .../Application/Models/GlobalSettingsKeys.cs | 3 - .../Application/Models/SettingsKeys.cs | 125 +----------------- .../Api/DiscoveryEndpointsHelpersTests.cs | 3 - .../Infrastructure/MtlsOptionsTests.cs | 3 - .../Settings/FakeGlobalSettingsStore.cs | 3 - .../Modules/Settings/FakeSettingsStore.cs | 3 - .../Support/TelegramIngressTestHost.cs | 6 - .../Interceptors/ServiceTokenInterceptor.cs | 3 - .../Deal.Ml.Tests/Grpc/MlTestHost.cs | 6 - src/ml-service/Deal.Ml/MlServiceImpl.cs | 3 - .../Grpc/TelegramTestHost.cs | 6 - .../Deal.Telegram/Core/CoreIngressClient.cs | 6 - .../Deal.Telegram/Core/CoreIngressOptions.cs | 3 - .../Sessions/SessionErrorMessages.cs | 6 - .../Deal.Telegram/Sessions/TgOptions.cs | 3 - .../Deal.Telegram/TelegramServiceImpl.cs | 3 - 34 files changed, 1 insertion(+), 256 deletions(-) diff --git a/src/ai-service/Deal.Ai.Tests/Ai/AiTestHost.cs b/src/ai-service/Deal.Ai.Tests/Ai/AiTestHost.cs index 4210a3e..a7ec9b3 100644 --- a/src/ai-service/Deal.Ai.Tests/Ai/AiTestHost.cs +++ b/src/ai-service/Deal.Ai.Tests/Ai/AiTestHost.cs @@ -19,14 +19,8 @@ internal static class AiTestHost /// public const string ServiceTokenEnvKey = "DEAL_SERVICE_TOKEN"; - /// - /// Ключ gRPC-metadata с service-token - /// public const string ServiceTokenMetadataKey = ServiceTokenInterceptor.ServiceTokenMetadataKey; - /// - /// Ключ gRPC-metadata с tenant-id - /// public const string TenantIdMetadataKey = AiServiceImpl.TenantIdMetadataKey; /// diff --git a/src/ai-service/Deal.Ai/AiServiceImpl.cs b/src/ai-service/Deal.Ai/AiServiceImpl.cs index b9d94f0..07568db 100644 --- a/src/ai-service/Deal.Ai/AiServiceImpl.cs +++ b/src/ai-service/Deal.Ai/AiServiceImpl.cs @@ -11,9 +11,6 @@ namespace Deal.Ai; /// public sealed class AiServiceImpl : AiService.AiServiceBase { - /// - /// Ключ gRPC-metadata с id тенанта. - /// public const string TenantIdMetadataKey = "tenant-id"; // Деталь отказа: tenant-id отсутствует в metadata (UNAUTHENTICATED, шаблон MlServiceImpl). diff --git a/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs b/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs index b6c9e02..0046f91 100644 --- a/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs +++ b/src/core/Deal.Api/Endpoints/DiscoveryEndpoints.cs @@ -414,9 +414,6 @@ public static class DiscoveryEndpoints return Results.Ok(new { items }); } - /// - /// Ключи из ответа ИИ - /// /// Сырые ключи ответа модели (null — пусто). /// Очищенные ключи (не более 30, каждый ≤60 символов). public static IReadOnlyList CleanKeywords(IEnumerable? raw) diff --git a/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs b/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs index f882dd8..9bf8f96 100644 --- a/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs +++ b/src/core/Deal.Api/Endpoints/RequestModels/DiscoveryTaskCreateBody.cs @@ -15,9 +15,6 @@ public sealed record DiscoveryTaskCreateBody /// public string? Description { get; init; } - /// - /// Ключевые слова поиска; null/пусто — список пуст - /// public IReadOnlyList? Keywords { get; init; } /// diff --git a/src/core/Deal.Api/Extensions/AuthHelpers.cs b/src/core/Deal.Api/Extensions/AuthHelpers.cs index 6958fb0..f1b8d40 100644 --- a/src/core/Deal.Api/Extensions/AuthHelpers.cs +++ b/src/core/Deal.Api/Extensions/AuthHelpers.cs @@ -7,14 +7,8 @@ namespace Deal.Api.Extensions; /// public static class AuthHelpers { - /// - /// Ключ в HttpContext.Items, по которому SessionMiddleware хранит CurrentUser. - /// public const string CurrentUserItemKey = "CurrentUser"; - /// - /// Ключ в HttpContext.Items, по которому OperatorSessionMiddleware хранит CurrentOperator. - /// public const string CurrentOperatorItemKey = "CurrentOperator"; /// diff --git a/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs b/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs index 4ee09f8..3ff0050 100644 --- a/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs +++ b/src/core/Deal.Api/Telegram/IngressServiceTokenInterceptor.cs @@ -8,9 +8,6 @@ namespace Deal.Api.Telegram; /// public sealed class IngressServiceTokenInterceptor : Interceptor { - /// - /// Ключ gRPC-metadata с токеном сервиса - /// public const string ServiceTokenMetadataKey = "service-token"; /// diff --git a/src/core/Deal.Api/Telegram/TelegramIngressService.cs b/src/core/Deal.Api/Telegram/TelegramIngressService.cs index 97721ee..0ee9a0c 100644 --- a/src/core/Deal.Api/Telegram/TelegramIngressService.cs +++ b/src/core/Deal.Api/Telegram/TelegramIngressService.cs @@ -23,9 +23,6 @@ public sealed class TelegramIngressService( SseBroker broker, ILogger logger) : IngressService.IngressServiceBase { - /// - /// Ключ gRPC-metadata с id тенанта. - /// public const string TenantIdMetadataKey = "tenant-id"; private const string SystemStatusEventType = "system_status"; diff --git a/src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs b/src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs index 15538d2..2622398 100644 --- a/src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/AiGrpcConnection.cs @@ -15,14 +15,8 @@ public sealed class AiGrpcConnection : IDisposable /// public const string ServiceTokenEnvKey = "DEAL_SERVICE_TOKEN"; - /// - /// Ключ gRPC-metadata с tenant-id. - /// public const string TenantIdMetadataKey = "tenant-id"; - /// - /// Ключ gRPC-metadata с service-token. - /// public const string ServiceTokenMetadataKey = "service-token"; private readonly GrpcChannel _channel; diff --git a/src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs b/src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs index 3756d38..f3eb8e6 100644 --- a/src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/MlGrpcConnection.cs @@ -15,14 +15,8 @@ public sealed class MlGrpcConnection : IDisposable /// public const string ServiceTokenEnvKey = "DEAL_SERVICE_TOKEN"; - /// - /// Ключ gRPC-metadata с tenant-id. - /// public const string TenantIdMetadataKey = "tenant-id"; - /// - /// Ключ gRPC-metadata с service-token. - /// public const string ServiceTokenMetadataKey = "service-token"; private readonly GrpcChannel _channel; diff --git a/src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs b/src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs index 343f6d8..42c9f88 100644 --- a/src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs +++ b/src/core/Deal.Infrastructure/Integrations/Models/TelegramGrpcConnection.cs @@ -15,14 +15,8 @@ public sealed class TelegramGrpcConnection : IDisposable /// public const string ServiceTokenEnvKey = "DEAL_SERVICE_TOKEN"; - /// - /// Ключ gRPC-metadata с tenant-id. - /// public const string TenantIdMetadataKey = "tenant-id"; - /// - /// Ключ gRPC-metadata с service-token. - /// public const string ServiceTokenMetadataKey = "service-token"; private readonly GrpcChannel _channel; diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs index 311d9fb..f738819 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/DiscTaskEntity.cs @@ -20,9 +20,6 @@ public sealed class DiscTaskEntity /// public string Description { get; set; } = string.Empty; - /// - /// Ключевые слова поиска, сериализованные в JSON - /// public string KeywordsJson { get; set; } = "[]"; /// diff --git a/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs b/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs index e4f0a70..843cc92 100644 --- a/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs +++ b/src/core/Deal.Infrastructure/Persistence/Entities/GlobalSettingEntity.cs @@ -5,9 +5,6 @@ namespace Deal.Infrastructure.Persistence.Entities; /// public sealed class GlobalSettingEntity { - /// - /// Ключ глобальной настройки - /// public string Key { get; set; } = string.Empty; /// diff --git a/src/core/Deal.Modules.Cards/Application/Abstractions/IApiSource.cs b/src/core/Deal.Modules.Cards/Application/Abstractions/IApiSource.cs index 54d0708..98f199b 100644 --- a/src/core/Deal.Modules.Cards/Application/Abstractions/IApiSource.cs +++ b/src/core/Deal.Modules.Cards/Application/Abstractions/IApiSource.cs @@ -5,9 +5,6 @@ namespace Deal.Modules.Cards.Application.Abstractions; /// public interface IApiSource : ISource { - /// - /// Ключ интеграции/провайдера - /// public string ProviderId { get; } /// diff --git a/src/core/Deal.Modules.Cards/Application/Abstractions/IContainerRules.cs b/src/core/Deal.Modules.Cards/Application/Abstractions/IContainerRules.cs index b4c7ebb..30a914d 100644 --- a/src/core/Deal.Modules.Cards/Application/Abstractions/IContainerRules.cs +++ b/src/core/Deal.Modules.Cards/Application/Abstractions/IContainerRules.cs @@ -12,14 +12,8 @@ public interface IContainerRules /// public string Mode { get; } - /// - /// Ключевые слова/фразы - /// public IReadOnlyList Keywords { get; } - /// - /// Ключевые технологии/стек-атрибуты - /// public IReadOnlyList Stack { get; } /// diff --git a/src/core/Deal.Modules.Cards/Application/Abstractions/IFileSource.cs b/src/core/Deal.Modules.Cards/Application/Abstractions/IFileSource.cs index b9b4668..0d0564e 100644 --- a/src/core/Deal.Modules.Cards/Application/Abstractions/IFileSource.cs +++ b/src/core/Deal.Modules.Cards/Application/Abstractions/IFileSource.cs @@ -5,9 +5,6 @@ namespace Deal.Modules.Cards.Application.Abstractions; /// public interface IFileSource : ISource { - /// - /// Ключ объекта в хранилище - /// public string ObjectKey { get; } /// diff --git a/src/core/Deal.Modules.Cards/Application/Models/CardFile.cs b/src/core/Deal.Modules.Cards/Application/Models/CardFile.cs index bf4267a..ba4d9ec 100644 --- a/src/core/Deal.Modules.Cards/Application/Models/CardFile.cs +++ b/src/core/Deal.Modules.Cards/Application/Models/CardFile.cs @@ -25,8 +25,5 @@ public sealed record CardFile /// public string Kind { get; init; } = "other"; - /// - /// Ключ объекта в хранилище. - /// public string ObjectKey { get; init; } = string.Empty; } diff --git a/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskDraft.cs b/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskDraft.cs index 496a16a..49a44e6 100644 --- a/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskDraft.cs +++ b/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskDraft.cs @@ -15,9 +15,6 @@ public sealed record DiscoveryTaskDraft /// public string Description { get; init; } = string.Empty; - /// - /// Ключевые слова поиска; null → пустой список - /// public IReadOnlyList? Keywords { get; init; } /// diff --git a/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskRow.cs b/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskRow.cs index ce0ba95..fbfc652 100644 --- a/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskRow.cs +++ b/src/core/Deal.Modules.Discovery/Application/Models/DiscoveryTaskRow.cs @@ -20,9 +20,6 @@ public sealed record DiscoveryTaskRow /// public string Description { get; init; } = string.Empty; - /// - /// Ключевые слова поиска - /// public IReadOnlyList Keywords { get; init; } = Array.Empty(); /// diff --git a/src/core/Deal.Modules.Settings/Application/Models/GlobalSettingsKeys.cs b/src/core/Deal.Modules.Settings/Application/Models/GlobalSettingsKeys.cs index f85259b..73502f4 100644 --- a/src/core/Deal.Modules.Settings/Application/Models/GlobalSettingsKeys.cs +++ b/src/core/Deal.Modules.Settings/Application/Models/GlobalSettingsKeys.cs @@ -5,8 +5,5 @@ namespace Deal.Modules.Settings.Application.Models; /// public static class GlobalSettingsKeys { - /// - /// Ключ «telegramKeys» - /// public const string TelegramKeys = "telegramKeys"; } diff --git a/src/core/Deal.Modules.Settings/Application/Models/SettingsKeys.cs b/src/core/Deal.Modules.Settings/Application/Models/SettingsKeys.cs index 4ea4d97..f695d0f 100644 --- a/src/core/Deal.Modules.Settings/Application/Models/SettingsKeys.cs +++ b/src/core/Deal.Modules.Settings/Application/Models/SettingsKeys.cs @@ -49,143 +49,65 @@ public static class SettingsKeys // ── Int: целочисленные настройки ── - /// - /// Ключ «archiveAfterDays» - /// public const string ArchiveAfterDays = "archiveAfterDays"; - /// - /// Ключ «archiveClearDays» - /// public const string ArchiveClearDays = "archiveClearDays"; - /// - /// Ключ «trashClearDays» - /// public const string TrashClearDays = "trashClearDays"; /// - /// Ключ «minLen»: минимальная длина сообщения для -1 фильтра + /// Минимальная длина сообщения для -1 фильтра /// public const string MinLen = "minLen"; - /// - /// Ключ «discJoinLimit» - /// public const string DiscJoinLimit = "discJoinLimit"; - /// - /// Ключ «discJoinDelayMin» - /// public const string DiscJoinDelayMin = "discJoinDelayMin"; - /// - /// Ключ «discJoinDelayMax» - /// public const string DiscJoinDelayMax = "discJoinDelayMax"; - /// - /// Ключ «discEvalSample» - /// public const string DiscEvalSample = "discEvalSample"; - /// - /// Ключ «discEvalThreshold» - /// public const string DiscEvalThreshold = "discEvalThreshold"; - /// - /// Ключ «excludeBudgetFrom» - /// public const string ExcludeBudgetFrom = "excludeBudgetFrom"; - /// - /// Ключ «excludeBudgetTo» - /// public const string ExcludeBudgetTo = "excludeBudgetTo"; // ── Bool: булевы настройки ── - /// - /// Ключ «autoArchive» - /// public const string AutoArchive = "autoArchive"; - /// - /// Ключ «aiEnabled» - /// public const string AiEnabled = "aiEnabled"; - /// - /// Ключ «aiFilterEnabled» - /// public const string AiFilterEnabled = "aiFilterEnabled"; - /// - /// Ключ «conversionOn» - /// public const string ConversionOn = "conversionOn"; - /// - /// Ключ «remindersEnabled» - /// public const string RemindersEnabled = "remindersEnabled"; - /// - /// Ключ «mlEnabled» - /// public const string MlEnabled = "mlEnabled"; - /// - /// Ключ «blockResumes» - /// public const string BlockResumes = "blockResumes"; - /// - /// Ключ «budgetRequiredHire» - /// public const string BudgetRequiredHire = "budgetRequiredHire"; - /// - /// Ключ «budgetRequiredOrder» - /// public const string BudgetRequiredOrder = "budgetRequiredOrder"; - /// - /// Ключ «autoMonitorNew» - /// public const string AutoMonitorNew = "autoMonitorNew"; - /// - /// Ключ «discPaused» - /// public const string DiscPaused = "discPaused"; // ── String: строковые настройки ── - /// - /// Ключ «targetCurrency» - /// public const string TargetCurrency = "targetCurrency"; - /// - /// Ключ «rateSource» - /// public const string RateSource = "rateSource"; - /// - /// Ключ «aiProvider» - /// public const string AiProvider = "aiProvider"; - /// - /// Ключ «aiPrompt» - /// public const string AiPrompt = "aiPrompt"; - /// - /// Ключ «aiFilterPrompt» - /// public const string AiFilterPrompt = "aiFilterPrompt"; /// @@ -193,83 +115,38 @@ public static class SettingsKeys /// public const string CardPrompt = "cardPrompt"; - /// - /// Ключ «domainDescription» - /// public const string DomainDescription = "domainDescription"; - /// - /// Ключ «wantedType» - /// public const string WantedType = "wantedType"; - /// - /// Ключ «hireLabel» - /// public const string HireLabel = "hireLabel"; - /// - /// Ключ «orderLabel» - /// public const string OrderLabel = "orderLabel"; // ── List: списки строк ── - /// - /// Ключ «stopPhrases» - /// public const string StopPhrases = "stopPhrases"; - /// - /// Ключ «domainKeywords» - /// public const string DomainKeywords = "domainKeywords"; - /// - /// Ключ «hireMarkers» - /// public const string HireMarkers = "hireMarkers"; - /// - /// Ключ «levelTerms» - /// public const string LevelTerms = "levelTerms"; - /// - /// Ключ «resumeMarkers» - /// public const string ResumeMarkers = "resumeMarkers"; - /// - /// Ключ «excludeKeywords» - /// public const string ExcludeKeywords = "excludeKeywords"; - /// - /// Ключ «excludeLocations» - /// public const string ExcludeLocations = "excludeLocations"; - /// - /// Ключ «excludeTypes» - /// public const string ExcludeTypes = "excludeTypes"; // ── Dict / special ── - /// - /// Ключ «colState» - /// public const string ColState = "colState"; - /// - /// Ключ «myPrompts» - /// public const string MyPrompts = "myPrompts"; - /// - /// Ключ «aiConfigs» - /// public const string AiConfigs = "aiConfigs"; /// diff --git a/src/core/tests/Deal.Tests.Unit/Api/DiscoveryEndpointsHelpersTests.cs b/src/core/tests/Deal.Tests.Unit/Api/DiscoveryEndpointsHelpersTests.cs index a88aa16..44d8751 100644 --- a/src/core/tests/Deal.Tests.Unit/Api/DiscoveryEndpointsHelpersTests.cs +++ b/src/core/tests/Deal.Tests.Unit/Api/DiscoveryEndpointsHelpersTests.cs @@ -29,9 +29,6 @@ public sealed class DiscoveryEndpointsHelpersTests Assert.Equal(["кл юч", "тест"], keywords); } - /// - /// Ключ длиннее 60 символов отбрасывается - /// [Fact] public void CleanKeywords_DropsOverlongKeyword() { diff --git a/src/core/tests/Deal.Tests.Unit/Infrastructure/MtlsOptionsTests.cs b/src/core/tests/Deal.Tests.Unit/Infrastructure/MtlsOptionsTests.cs index f18c071..477abce 100644 --- a/src/core/tests/Deal.Tests.Unit/Infrastructure/MtlsOptionsTests.cs +++ b/src/core/tests/Deal.Tests.Unit/Infrastructure/MtlsOptionsTests.cs @@ -57,9 +57,6 @@ public sealed class MtlsOptionsTests Assert.False(options.Enabled); } - /// - /// Ключ DEAL_MTLS_ENABLED отсутствует в окружении — флаг выключен. - /// [Fact] public void FromConfiguration_MissingEnabledKey_EnabledFalse() { diff --git a/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeGlobalSettingsStore.cs b/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeGlobalSettingsStore.cs index 75ce9b5..a3f97c3 100644 --- a/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeGlobalSettingsStore.cs +++ b/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeGlobalSettingsStore.cs @@ -10,9 +10,6 @@ public sealed class FakeGlobalSettingsStore : IGlobalSettingsStore { private readonly Dictionary _rows = new(StringComparer.Ordinal); - /// - /// Ключи сохранённых строк - /// public IReadOnlyCollection Keys => _rows.Keys.ToList(); /// diff --git a/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeSettingsStore.cs b/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeSettingsStore.cs index a126026..f3fad0e 100644 --- a/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeSettingsStore.cs +++ b/src/core/tests/Deal.Tests.Unit/Modules/Settings/FakeSettingsStore.cs @@ -10,9 +10,6 @@ public sealed class FakeSettingsStore : ISettingsStore { private readonly Dictionary _rows = new(StringComparer.Ordinal); - /// - /// Ключи сохранённых строк - /// public IReadOnlyCollection Keys => _rows.Keys.ToList(); /// diff --git a/src/core/tests/Deal.Tests.Unit/Support/TelegramIngressTestHost.cs b/src/core/tests/Deal.Tests.Unit/Support/TelegramIngressTestHost.cs index dc8d258..f90b691 100644 --- a/src/core/tests/Deal.Tests.Unit/Support/TelegramIngressTestHost.cs +++ b/src/core/tests/Deal.Tests.Unit/Support/TelegramIngressTestHost.cs @@ -39,14 +39,8 @@ internal static class TelegramIngressTestHost /// public const int RpcDeadlineSeconds = 10; - /// - /// Ключ gRPC-metadata с service-token - /// public const string ServiceTokenMetadataKey = IngressServiceTokenInterceptor.ServiceTokenMetadataKey; - /// - /// Ключ gRPC-metadata с tenant-id - /// public const string TenantIdMetadataKey = TelegramIngressService.TenantIdMetadataKey; /// diff --git a/src/grpc-hosting/Deal.Grpc.Hosting/Interceptors/ServiceTokenInterceptor.cs b/src/grpc-hosting/Deal.Grpc.Hosting/Interceptors/ServiceTokenInterceptor.cs index 8682823..1bdb4e3 100644 --- a/src/grpc-hosting/Deal.Grpc.Hosting/Interceptors/ServiceTokenInterceptor.cs +++ b/src/grpc-hosting/Deal.Grpc.Hosting/Interceptors/ServiceTokenInterceptor.cs @@ -14,9 +14,6 @@ namespace Deal.Grpc.Hosting.Interceptors; /// public sealed class ServiceTokenInterceptor : Interceptor { - /// - /// Ключ gRPC-metadata с токеном сервиса - /// public const string ServiceTokenMetadataKey = "service-token"; // Префикс методов стандартного gRPC-health, освобождённых от проверки токена. diff --git a/src/ml-service/Deal.Ml.Tests/Grpc/MlTestHost.cs b/src/ml-service/Deal.Ml.Tests/Grpc/MlTestHost.cs index 2aaf3b8..a26c22c 100644 --- a/src/ml-service/Deal.Ml.Tests/Grpc/MlTestHost.cs +++ b/src/ml-service/Deal.Ml.Tests/Grpc/MlTestHost.cs @@ -23,14 +23,8 @@ internal static class MlTestHost /// public const string DataDirEnvKey = MlOptions.DataDirEnvVarName; - /// - /// Ключ gRPC-metadata с service-token - /// public const string ServiceTokenMetadataKey = ServiceTokenInterceptor.ServiceTokenMetadataKey; - /// - /// Ключ gRPC-metadata с tenant-id - /// public const string TenantIdMetadataKey = MlServiceImpl.TenantIdMetadataKey; /// diff --git a/src/ml-service/Deal.Ml/MlServiceImpl.cs b/src/ml-service/Deal.Ml/MlServiceImpl.cs index 9e1890b..4855a6a 100644 --- a/src/ml-service/Deal.Ml/MlServiceImpl.cs +++ b/src/ml-service/Deal.Ml/MlServiceImpl.cs @@ -9,9 +9,6 @@ namespace Deal.Ml; /// public sealed class MlServiceImpl : MlService.MlServiceBase { - /// - /// Ключ gRPC-metadata с id тенанта. - /// public const string TenantIdMetadataKey = "tenant-id"; private const string TenantIdMissingDetail = "tenant-id отсутствует в metadata"; diff --git a/src/telegram-service/Deal.Telegram.Tests/Grpc/TelegramTestHost.cs b/src/telegram-service/Deal.Telegram.Tests/Grpc/TelegramTestHost.cs index 4730996..545b8d4 100644 --- a/src/telegram-service/Deal.Telegram.Tests/Grpc/TelegramTestHost.cs +++ b/src/telegram-service/Deal.Telegram.Tests/Grpc/TelegramTestHost.cs @@ -40,14 +40,8 @@ internal static class TelegramTestHost /// public const string SessionDirEnvKey = TgOptions.SessionDirEnvVarName; - /// - /// Ключ gRPC-metadata с service-token - /// public const string ServiceTokenMetadataKey = ServiceTokenInterceptor.ServiceTokenMetadataKey; - /// - /// Ключ gRPC-metadata с tenant-id - /// public const string TenantIdMetadataKey = TelegramServiceImpl.TenantIdMetadataKey; /// diff --git a/src/telegram-service/Deal.Telegram/Core/CoreIngressClient.cs b/src/telegram-service/Deal.Telegram/Core/CoreIngressClient.cs index 21347dd..4fd81f4 100644 --- a/src/telegram-service/Deal.Telegram/Core/CoreIngressClient.cs +++ b/src/telegram-service/Deal.Telegram/Core/CoreIngressClient.cs @@ -14,14 +14,8 @@ namespace Deal.Telegram.Core; /// public sealed class CoreIngressClient : ICoreIngressClient { - /// - /// Ключ gRPC-metadata с id тенанта. - /// public const string TenantIdMetadataKey = "tenant-id"; - /// - /// Ключ gRPC-metadata с service-token. - /// public const string ServiceTokenMetadataKey = "service-token"; private readonly CoreIngressOptions _options; diff --git a/src/telegram-service/Deal.Telegram/Core/CoreIngressOptions.cs b/src/telegram-service/Deal.Telegram/Core/CoreIngressOptions.cs index b7da7a4..222c2ac 100644 --- a/src/telegram-service/Deal.Telegram/Core/CoreIngressOptions.cs +++ b/src/telegram-service/Deal.Telegram/Core/CoreIngressOptions.cs @@ -10,9 +10,6 @@ public sealed class CoreIngressOptions /// public const string IngressEndpointEnvVarName = "SERVICES__CORE__INGRESS"; - /// - /// Ключ конфигурации адреса ингресса - /// public const string IngressEndpointConfigKey = "Services:Core:Ingress"; /// diff --git a/src/telegram-service/Deal.Telegram/Sessions/SessionErrorMessages.cs b/src/telegram-service/Deal.Telegram/Sessions/SessionErrorMessages.cs index 48ea69f..792cf34 100644 --- a/src/telegram-service/Deal.Telegram/Sessions/SessionErrorMessages.cs +++ b/src/telegram-service/Deal.Telegram/Sessions/SessionErrorMessages.cs @@ -5,9 +5,6 @@ namespace Deal.Telegram.Sessions; /// public static class SessionErrorMessages { - /// - /// Ключи приложения не переданы ядром - /// public const string NoApiKeys = "Сначала сохраните Telegram api_id и api_hash в настройках"; /// @@ -100,8 +97,5 @@ public static class SessionErrorMessages /// public const string SignUpRequired = "Номер не зарегистрирован в Telegram — зарегистрируйте его в приложении Telegram"; - /// - /// Ключ шифрования сессий не задан в env - /// public const string SessionKeyNotConfigured = "Ключ шифрования сессий не задан (DEAL_TELEGRAM_SESSION_KEY)"; } diff --git a/src/telegram-service/Deal.Telegram/Sessions/TgOptions.cs b/src/telegram-service/Deal.Telegram/Sessions/TgOptions.cs index aecee13..19d8783 100644 --- a/src/telegram-service/Deal.Telegram/Sessions/TgOptions.cs +++ b/src/telegram-service/Deal.Telegram/Sessions/TgOptions.cs @@ -31,9 +31,6 @@ public sealed class TgOptions SessionsDirectory = sessionsDirectory; } - /// - /// Ключ AES-256-GCM обёртки файлов сессий - /// public byte[] SessionKey { get; } /// diff --git a/src/telegram-service/Deal.Telegram/TelegramServiceImpl.cs b/src/telegram-service/Deal.Telegram/TelegramServiceImpl.cs index 6e0227d..1504bee 100644 --- a/src/telegram-service/Deal.Telegram/TelegramServiceImpl.cs +++ b/src/telegram-service/Deal.Telegram/TelegramServiceImpl.cs @@ -14,9 +14,6 @@ namespace Deal.Telegram; /// public sealed class TelegramServiceImpl : TelegramService.TelegramServiceBase { - /// - /// Ключ gRPC-metadata с id тенанта. - /// public const string TenantIdMetadataKey = "tenant-id"; private const int DialogListLimit = 500;