Skip to content

Commit 3b2f133

Browse files
Merge pull request #1959 from bcgov/test
Test
2 parents 55d2e82 + fc2b30e commit 3b2f133

230 files changed

Lines changed: 33599 additions & 16264 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,5 @@ appsettings.json
115115
/applications/Unity.GrantManager/src/Unity.GrantManager.Web/appsettings.secrets.json
116116

117117
/applications/Orchestrator
118-
*.env
118+
*.env
119+
/applications/Unity.GrantManager/src/Unity.GrantManager.Web/package-lock.json

applications/Unity.AutoUI/package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<!-- Suppress NU1701 warnings for Microsoft.Extensions.Compliance.Abstractions -->
5+
<!-- This package works correctly with .NET 9.0 despite targeting older frameworks -->
6+
<!-- Suppress MSB3277 warnings for EntityFrameworkCore.Relational version conflicts -->
7+
<!-- These conflicts don't cause runtime issues in this solution -->
8+
<NoWarn>$(NoWarn);NU1701;MSB3277</NoWarn>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<!-- Explicitly reference compatible version to avoid transitive dependency warnings -->
13+
<PackageReference Include="Microsoft.Extensions.Compliance.Abstractions" Version="9.5.0" />
14+
15+
</ItemGroup>
16+
17+
</Project>

applications/Unity.GrantManager/common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<LangVersion>latest</LangVersion>
44
<Version>1.0.0</Version>
5-
<NoWarn>$(NoWarn);CS1591</NoWarn>
5+
<NoWarn>$(NoWarn);CS1591;MSB3277</NoWarn>
66
<AbpProjectType>app</AbpProjectType>
77
</PropertyGroup>
88

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application.Contracts/Scoresheets/ScoresheetSectionDto.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ namespace Unity.Flex.Scoresheets
99
public class ScoresheetSectionDto : ExtensibleEntityDto<Guid>
1010
{
1111
public virtual string Name { get; private set; } = string.Empty;
12-
public virtual uint Order { get; private set; }
13-
public virtual Guid ScoresheetId { get; }
14-
12+
public virtual uint Order { get; private set;} = 0;
13+
public virtual Guid ScoresheetId { get; }
1514
public virtual Collection<QuestionDto> Fields { get; private set; } = [];
16-
17-
1815
}
1916
}

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application/Domain/ScoresheetInstances/ScoresheetInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ScoresheetInstance : FullAuditedAggregateRoot<Guid>, IMultiTenant,
2020

2121
// Correlation
2222
public virtual Guid CorrelationId { get; private set; }
23-
public virtual string CorrelationProvider { get; private set; } = string.Empty;
23+
public virtual string CorrelationProvider { get; private set; }
2424

2525
public Guid? TenantId { get; set; }
2626

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Application/Domain/Services/WorksheetsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private async Task<WorksheetInstance> CreateNewWorksheetInstanceAsync(IWorksheet
168168
var newWorksheetInstances = new List<(Worksheet, WorksheetInstance)>();
169169

170170
// naming convention custom_worksheetname_fieldname
171-
foreach (var (fieldName, chefsPropertyName, value) in eventData.CustomFields)
171+
foreach (var (fieldName, _, _) in eventData.CustomFields)
172172
{
173173
var split = fieldName.Split('_', StringSplitOptions.RemoveEmptyEntries);
174174

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/Pages/Components/DataGrid/DataGridServiceUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal static List<WorksheetFieldViewModel> ExtractCustomColumnsValues(DataGri
4141
CurrentValueId = Guid.Empty,
4242
Definition = GetDefaultDefinition(column.Type),
4343
Enabled = true,
44-
Type = (CustomFieldType)Enum.Parse(typeof(CustomFieldType), column.Type),
44+
Type = Enum.Parse<CustomFieldType>(column.Type),
4545
UiAnchor = string.Empty,
4646
Order = rowNumber
4747
});
@@ -52,7 +52,7 @@ internal static List<WorksheetFieldViewModel> ExtractCustomColumnsValues(DataGri
5252

5353
internal static string GetDefaultDefinition(string type)
5454
{
55-
return DefinitionResolver.Resolve((CustomFieldType)Enum.Parse(typeof(CustomFieldType), type), null);
55+
return DefinitionResolver.Resolve(Enum.Parse<CustomFieldType>(type), null);
5656
}
5757

5858
internal static string? GetCurrentValueAndTransform(DataGridRow? dataRow, DataGridDefinitionColumn column)

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/Pages/ScoresheetConfiguration/QuestionModal.cshtml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ public QuestionModalModel(IQuestionAppService questionAppService, IScoresheetApp
2222
{
2323
_questionAppService = questionAppService;
2424
_scoresheetAppService = scoresheetAppService;
25-
QuestionTypeOptionsList = Enum.GetValues(typeof(QuestionType))
26-
.Cast<QuestionType>()
25+
QuestionTypeOptionsList = Enum.GetValues<QuestionType>()
2726
.Select(qt => new SelectListItem
2827
{
2928
Value = ((int)qt).ToString(),

applications/Unity.GrantManager/modules/Unity.Flex/src/Unity.Flex.Web/Pages/WorksheetConfiguration/UpsertCustomFieldModal.cshtml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task OnGetAsync(Guid worksheetId, Guid sectionId, Guid fieldId, str
6363
WorksheetId = worksheetId;
6464
SectionId = sectionId;
6565
FieldTypes = GetAvailableFieldTypes();
66-
UpsertAction = (WorksheetUpsertAction)Enum.Parse(typeof(WorksheetUpsertAction), actionType);
66+
UpsertAction = Enum.Parse<WorksheetUpsertAction>(actionType);
6767
FieldType = "Text";
6868

6969
if (UpsertAction == WorksheetUpsertAction.Update)
@@ -118,7 +118,7 @@ private async Task<CustomFieldDto> InsertCustomField()
118118
Definition = ExtractDefinition(),
119119
Label = Label!,
120120
Key = Key!,
121-
Type = (CustomFieldType)Enum.Parse(typeof(CustomFieldType), FieldType!)
121+
Type = Enum.Parse<CustomFieldType>(FieldType!)
122122
});
123123
}
124124

@@ -129,7 +129,7 @@ private async Task<CustomFieldDto> UpdateCustomField()
129129
Definition = ExtractDefinition(),
130130
Label = Label!,
131131
Key = Key!,
132-
Type = (CustomFieldType)Enum.Parse(typeof(CustomFieldType), FieldType!)
132+
Type = Enum.Parse<CustomFieldType>(FieldType!)
133133
});
134134
}
135135

0 commit comments

Comments
 (0)