feature: saved exports; include jobs and flags

This commit is contained in:
Gary Sharp
2025-02-13 18:20:47 +11:00
parent eec8ba438c
commit 2c215e4856
18 changed files with 646 additions and 295 deletions
@@ -80,8 +80,8 @@ namespace Disco.Services.Devices.DeviceFlags
}
status.UpdateStatus(15, "Extracting records from the database");
var records = query.Select(a => new DeviceFlagExportRecord()
var assignments = query.ToList();
var records = assignments.Select(a => new DeviceFlagExportRecord()
{
Assignment = a
}).ToList();
@@ -68,8 +68,8 @@ namespace Disco.Services.Users.UserFlags
}
status.UpdateStatus(15, "Extracting records from the database");
var records = query.Select(a => new UserFlagExportRecord()
var assignments = query.ToList();
var records = assignments.Select(a => new UserFlagExportRecord()
{
Assignment = a
}).ToList();