Skip to content

Commit

Permalink
PSP-6527 : FT-REG: Lease & License - When a new license is created, t…
Browse files Browse the repository at this point in the history
…he Created By and Last updated By dates are not displayed and the user is always USER (#3336)

Co-authored-by: Eduardo Herrera <Eduardo.Herrera@quartech.com>
  • Loading branch information
eddherrera and Eduardo Herrera committed Jul 18, 2023
1 parent aeb41d7 commit 5411ba7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
9 changes: 2 additions & 7 deletions source/backend/api/Models/Concepts/Lease/LeaseModel.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Pims.Api.Models.Tenant;
using System;
using System.Collections.Generic;
using Pims.Api.Models.Tenant;

namespace Pims.Api.Models.Concepts
{
/// <summary>
/// Provides a lease-oriented model.
/// </summary>
public class LeaseModel
public class LeaseModel : BaseAppModel
{
#region Properties

Expand All @@ -16,11 +16,6 @@ public class LeaseModel
/// </summary>
public long Id { get; set; }

/// <summary>
/// get/set - The concurrency row version.
/// </summary>
public long RowVersion { get; set; }

/// <summary>
/// get/set - The lease amount.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ describe('LeaseHeader component', () => {
const { getByText, getAllByText } = setup({ lease: testLease });

expect(getByText(testLease.lFileNo!)).toBeVisible();
expect(getByText(testLease.appCreateUserid!)).toBeVisible();
expect(getByText(testLease.appLastUpdateUserid!)).toBeVisible();
expect(getAllByText(prettyFormatDate(testLease.appCreateTimestamp))[0]).toBeVisible();
expect(getAllByText(prettyFormatDate(testLease.appLastUpdateTimestamp))[0]).toBeVisible();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ exports[`LeaseHeader component renders as expected when no data is provided 1`]
id="userNameTooltip"
>
<strong>
USER
USER_B
</strong>
</span>
</span>
Expand All @@ -332,7 +332,7 @@ exports[`LeaseHeader component renders as expected when no data is provided 1`]
id="userNameTooltip"
>
<strong>
USER
USER_A
</strong>
</span>
</span>
Expand Down
4 changes: 4 additions & 0 deletions source/frontend/src/mocks/lease.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,8 @@ export const getMockApiLease: () => Api_Lease = () => ({
consultations: [],
appCreateTimestamp: '2022-01-01T00:56:06.693',
appLastUpdateTimestamp: '2022-01-01T00:56:06.693',
appLastUpdateUserid: 'USER_A',
appCreateUserid: 'USER_B',
appLastUpdateUserGuid: '77777777-7777-7777-7777-777777777777',
appCreateUserGuid: '77777777-7777-7777-7777-777777777777',
});

0 comments on commit 5411ba7

Please sign in to comment.