Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions PPMTool/Services/ProjectService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,13 @@ internal void UpdateAllProjectMetaData(PPMToolContext context)
var prefix = settingsService.GetSetting(SettingType.ProjectAbbreviation, string.Empty);
var indirects = settingsService.GetSetting(SettingType.BAUTopSliceFractionDefault, 0f);
var finrefs = financialReferenceService.GetAll(context).ToList();
var projects = GetAll(context);
var projects = context.Projects
Comment thread
aharwood2 marked this conversation as resolved.
.Include(p => p.SubTasks)
.ThenInclude(s => s.AssignedResources)
.ThenInclude(r => r.Person)
.ThenInclude(r => r.WorkloadModelChanges)
.Include(p => p.FundingSources)
.ToList();
foreach (var project in projects)
{
try
Expand All @@ -242,7 +248,7 @@ internal void UpdateAllProjectMetaData(PPMToolContext context)
finrefs,
indirects
);
Update(context, project);
CommitChanges(context);
logger.LogInformation($"Updated project metadata for project {project.ProjectId} ({prefix}-{project.RTP})");
}
catch (Exception ex)
Expand Down
Loading