Add non-players button to log viewer (#14097)

* add include non-players button to log viewer

* breakout player filter check

* fix sending player logs with no players selected

* fix default not returning player logs, causing test issue
This commit is contained in:
Chief-Engineer
2023-02-28 10:09:35 -06:00
committed by GitHub
parent fbb23bd540
commit 8f402ee8ca
9 changed files with 84 additions and 14 deletions

View File

@@ -67,8 +67,10 @@ public static class AdminLogsEuiMsg
HashSet<LogImpact>? impacts,
DateTime? before,
DateTime? after,
bool includePlayers,
Guid[]? anyPlayers,
Guid[]? allPlayers,
bool includeNonPlayers,
int? lastLogId,
DateOrder dateOrder)
{
@@ -78,8 +80,10 @@ public static class AdminLogsEuiMsg
Impacts = impacts;
Before = before;
After = after;
IncludePlayers = includePlayers;
AnyPlayers = anyPlayers is { Length: > 0 } ? anyPlayers : null;
AllPlayers = allPlayers is { Length: > 0 } ? allPlayers : null;
IncludeNonPlayers = includeNonPlayers;
LastLogId = lastLogId;
DateOrder = dateOrder;
}
@@ -90,8 +94,10 @@ public static class AdminLogsEuiMsg
public HashSet<LogImpact>? Impacts { get; set; }
public DateTime? Before { get; set; }
public DateTime? After { get; set; }
public bool IncludePlayers { get; set; }
public Guid[]? AnyPlayers { get; set; }
public Guid[]? AllPlayers { get; set; }
public bool IncludeNonPlayers { get; set; }
public int? LastLogId { get; set; }
public DateOrder DateOrder { get; set; }
}