mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
sanitize appname rowkey
This commit is contained in:
@@ -1 +1 @@
|
||||
914
|
||||
915
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ namespace AutopilotMonitor.Functions.Functions.Ingest
|
||||
|
||||
if (!isRelevant) return;
|
||||
|
||||
var appName = evt.Data?.ContainsKey("appName") == true ? evt.Data["appName"]?.ToString() : null;
|
||||
var appName = evt.Data?.ContainsKey("appName") == true ? evt.Data["appName"]?.ToString()?.Trim() : null;
|
||||
if (string.IsNullOrEmpty(appName)) return;
|
||||
|
||||
if (!summaries.TryGetValue(appName, out var state))
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace AutopilotMonitor.Functions.Services
|
||||
try
|
||||
{
|
||||
var tableClient = _tableServiceClient.GetTableClient(Constants.TableNames.AppInstallSummaries);
|
||||
var rowKey = $"{summary.SessionId}_{summary.AppName}";
|
||||
var rowKey = SanitizeTableKey($"{summary.SessionId}_{summary.AppName}");
|
||||
|
||||
// Merge with existing record to preserve StartedAt from a prior batch
|
||||
var existingResult = await tableClient.GetEntityIfExistsAsync<TableEntity>(summary.TenantId, rowKey);
|
||||
|
||||
Reference in New Issue
Block a user