fix(seed): check idempotent ignore la casse (CA1862) + gitignore fichiers GitVersion générés

This commit is contained in:
Arnaud Dartois committed 2026-08-12 11:19:42 +02:00
1 parent d566c21c7f
commit 87c238aa86
4 files changed
+7 -21

No files matched your search

+4
View File
@@ -86,3 +86,7 @@ templates/
.env
**/.env
docker/.env
# GitVersion (généré au build)
GitVersion.yml
GitVersion.Agent.yml
-10
View File
@@ -1,10 +0,0 @@
# ═══════════════════════════════════════════════════════════════════════
# GitVersion.Agent.yml — Version de l'AGENT (Heimdall.Agent, FFmpeg/YOLO)
# Tags de release : agent-v* (ex. agent-v1.0.0)
# Config séparée : cycle de release indépendant du central (tickets #95 #96 #97)
# Usage : dotnet-gitversion -config GitVersion.Agent.yml
# ═══════════════════════════════════════════════════════════════════════
workflow: TrunkBased/preview1
next-version: 1.0.0
assembly-informational-format: '{MajorMinorPatch}+{BranchName}.{ShortSha}'
tag-prefix: 'agent-v'
-9
View File
@@ -1,9 +0,0 @@
# ═══════════════════════════════════════════════════════════════════════
# GitVersion.yml — Version du CENTRAL (Heimdall.Web / API + UI + Jobs)
# Tags de release : v* (ex. v1.0.0)
# L'agent utilise sa propre config : GitVersion.Agent.yml (tags agent-v*)
# ═══════════════════════════════════════════════════════════════════════
workflow: TrunkBased/preview1
next-version: 1.0.0
assembly-informational-format: '{MajorMinorPatch}+{BranchName}.{ShortSha}'
tag-prefix: 'v'
+3 -2
View File
@@ -263,8 +263,9 @@ public partial class Program {
foreach (var (key, value) in integrationDefaults)
{
// Le constructeur AppSetting lower-case la clé — comparer en
// lowercase pour que le check idempotent matche le stockage réel.
if (await groupDb.AppSettings.AnyAsync(s => s.Key == key.ToLowerInvariant()))
// ignorant la casse pour que le check idempotent matche le stockage réel.
if (await groupDb.AppSettings.AnyAsync(s =>
string.Equals(s.Key, key, StringComparison.OrdinalIgnoreCase)))
continue;
groupDb.AppSettings.Add(new Heimdall.Domain.Entities.AppSetting(
key, value ?? string.Empty,