Skip to content

Commit c1c9025

Browse files
authored
Merge pull request #1972 from bcgov/dev
Dev
2 parents cbf7a75 + ac2b07e commit c1c9025

30 files changed

Lines changed: 15950 additions & 261 deletions

File tree

applications/Unity.AutoUI/cypress.pipeline.env.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"test1username": "{{test1username}}",
55
"test1password": "{{test1password}}",
66
"test2username": "{{test2username}}",
7-
"test2password": "{{test2password}}"
7+
"test2password": "{{test2password}}",
8+
"TEST_EMAIL_TO": "{{test_email_to}}",
9+
"TEST_EMAIL_CC": "{{test_email_CC}}",
10+
"TEST_EMAIL_BCC": "{{test_email_BCC}}"
811
}

applications/Unity.AutoUI/cypress/e2e/basicEmail.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// cypress/e2e/basicEmail.cy.ts
22

33
describe('Send an email', () => {
4-
const TEST_EMAIL_TO = 'grantmanagementsupport@gov.bc.ca'
5-
const TEST_EMAIL_CC = 'UnitySupport@gov.bc.ca'
6-
const TEST_EMAIL_BCC = 'UNITYSUP@Victoria1.gov.bc.ca'
4+
const TEST_EMAIL_TO = Cypress.env('TEST_EMAIL_TO') as string
5+
const TEST_EMAIL_CC = Cypress.env('TEST_EMAIL_CC') as string
6+
const TEST_EMAIL_BCC = Cypress.env('TEST_EMAIL_BCC') as string
77
const TEMPLATE_NAME = 'Test Case 1'
88
const STANDARD_TIMEOUT = 20000
99

applications/Unity.AutoUI/cypress/e2e/chefsdata.cy.ts

Lines changed: 172 additions & 196 deletions
Large diffs are not rendered by default.

applications/Unity.GrantManager/modules/Unity.Notifications/src/Unity.Notifications.Domain/NotificationsDataSeedContributor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public async Task SeedAsync(DataSeedContext context)
4343
new EmailTempateVariableDto { Name = "Signing Authority Title", Token = "signing_authority_title", MapTo = "signingAuthorityTitle" },
4444
new EmailTempateVariableDto { Name = "Applicant ID", Token = "applicant_id", MapTo = "applicant.unityApplicantId" },
4545
new EmailTempateVariableDto { Name = "Requested Amount", Token = "requested_amount", MapTo = "requestedAmount" },
46-
new EmailTempateVariableDto { Name = "Recommended Amount", Token = "recommended_amount", MapTo = "recommendedAmount" }
46+
new EmailTempateVariableDto { Name = "Recommended Amount", Token = "recommended_amount", MapTo = "recommendedAmount" },
47+
new EmailTempateVariableDto { Name = "Unity Application ID", Token = "unity_application_id", MapTo = "unityApplicationId" }
4748
};
4849

4950
try

applications/Unity.GrantManager/modules/Unity.Theme.UX2/src/Unity.Theme.UX2/wwwroot/themes/ux2/plugins/filterRow.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@
380380
*/
381381
clearFilters: function () {
382382
let dt = this.s.dt;
383-
let externalSearchId = dt.init().externalSearchInputId;
383+
let dtInit = dt.init();
384+
let externalSearchId = dtInit.externalSearchInputId;
385+
let initialSortOrder = (dtInit && dtInit.order) ? dtInit.order : [];
384386

385387
// Clear external search
386388
if (externalSearchId) {
@@ -391,10 +393,10 @@
391393
$('.custom-filter-input').val('');
392394

393395
// Clear DataTable searches
394-
dt.search('').columns().search('').draw();
396+
dt.search('').columns().search('');
395397

396398
// Clear order
397-
dt.order([]).draw();
399+
dt.order(initialSortOrder);
398400

399401
// Reload data
400402
dt.ajax.reload();

applications/Unity.GrantManager/src/Unity.GrantManager.Domain.Shared/Localization/GrantManager/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
"Summary:Application.ProjectBudget": "Total Project Budget",
349349
"Summary:Application.Sector": "Sector",
350350
"Summary:Application.Owner": "Owner",
351-
"Summary:Application.UnityApplicationId": "Unity Application Id",
351+
"Summary:Application.UnityApplicationId": "Unity Application ID",
352352
"Summary:Application.Assignees": "Assignees",
353353
"Summary:Assessment.Status": "Status",
354354
"Summary:Assessment.LikelihoodOfFunding": "Likelihood Of Funding",

applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Applications/IApplicationRepository.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ Task<List<Application>> WithFullDetailsAsync(
2626
DateTime? submittedToDate = null,
2727
string? searchTerm = null // optional search filter
2828
);
29+
30+
// Get applications by applicant ID
31+
Task<List<Application>> GetByApplicantIdAsync(Guid applicantId);
2932
}
3033
}

applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Contacts/Contact.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ namespace Unity.GrantManager.Contacts;
66

77
public class Contact : AuditedAggregateRoot<Guid>, IMultiTenant
88
{
9-
public bool IsPrimary { get; set; } = false;
10-
public string RelatedEntityType { get; set; } = string.Empty;
11-
public Guid RelatedEntityId { get; set; }
129
public string Name { get; set; } = string.Empty;
1310
public string? Title { get; set; }
1411
public string? Email { get; set; }
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using Volo.Abp.Domain.Entities.Auditing;
3+
using Volo.Abp.MultiTenancy;
4+
5+
namespace Unity.GrantManager.Contacts;
6+
7+
public class ContactLink : AuditedAggregateRoot<Guid>, IMultiTenant
8+
{
9+
public Guid ContactId { get; set; }
10+
public string RelatedEntityType { get; set; } = string.Empty;
11+
public Guid RelatedEntityId { get; set; }
12+
public string? Role { get; set; }
13+
public bool IsPrimary { get; set; } = false;
14+
public bool IsActive { get; set; } = true;
15+
public Guid? TenantId { get; set; }
16+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System;
2+
using Volo.Abp.Domain.Repositories;
3+
4+
namespace Unity.GrantManager.Contacts;
5+
6+
public interface IContactLinkRepository : IRepository<ContactLink, Guid>
7+
{
8+
}

0 commit comments

Comments
 (0)