Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e6da387
PM-20574 fixing namespaces on reporting work that got moved over fromโ€ฆ
prograhamming May 16, 2025
1b6adf4
PM-20574 adding tables, stored procedures, and migration files
prograhamming May 16, 2025
9d5835f
PM-20574 adding dapper and ef repos and migrations
prograhamming May 20, 2025
7d9d14c
Merge branch 'main' into dirt/pm-20574/database_tables_and_scripts_riโ€ฆ
prograhamming May 20, 2025
3f9ffbb
PM-20574 merging in main
prograhamming May 20, 2025
b62603f
PM-20574 changing table and repo names as requested
prograhamming Jun 10, 2025
dfca2f7
PM-20574 updating sql scripts to new names
prograhamming Jun 10, 2025
8f996a0
PM-20574 updating sql scripts
prograhamming Jun 10, 2025
9dd4334
PM-20574 updating migration script for org delete by id
prograhamming Jun 10, 2025
b354fea
PM-20574 adding mysql migration
prograhamming Jun 10, 2025
4b952b1
Merge branch 'main' into dirt/pm-20574/database_tables_and_scripts_riโ€ฆ
prograhamming Jun 10, 2025
5c37f56
PM-20574 updating sql migration to fix database test
prograhamming Jun 10, 2025
c8e9f02
PM-20574 fixing migration script
prograhamming Jun 10, 2025
79dbb86
PM-20574 fixing migration script
prograhamming Jun 13, 2025
dfd6e50
PM-20574 fixing table scripts
prograhamming Jun 13, 2025
5546a38
Merge branch 'main' into dirt/pm-20574/database_tables_and_scripts_riโ€ฆ
prograhamming Jun 13, 2025
27bce10
PM-20574 fixing table scripts
prograhamming Jun 13, 2025
c427c36
PM-20574 fixing migration script formatting
prograhamming Jun 13, 2025
47eb1ee
PM-20574 fixing syntax in migration script
prograhamming Jun 13, 2025
f0e709d
PM-20574 fixing file names and extensions
prograhamming Jun 13, 2025
093731b
PM-20574 fixing sql file
prograhamming Jun 13, 2025
85c4837
PM-20574 fixing sql
prograhamming Jun 13, 2025
d4e284f
PM-20574 fixing directory for entities and removing scripts from otheโ€ฆ
prograhamming Jun 13, 2025
7d2b12b
PM-20574 generating new migration scripts
prograhamming Jun 13, 2025
26908b2
Merge branch 'main' into dirt/pm-20574/database_tables_and_scripts_riโ€ฆ
prograhamming Jun 14, 2025
ceebfd7
PM-20574 fixed reference to a stored proc
voommen-livefront Jun 17, 2025
7151ae4
PM-20574 adding index in scripts and missing table
voommen-livefront Jun 17, 2025
618f533
Merge branch 'main' into dirt/pm-20574/database_tables_and_scripts_riโ€ฆ
voommen-livefront Jun 17, 2025
661528c
PM-20574 fixing merge conflicts
voommen-livefront Jun 17, 2025
0d50e11
PM-20574 set OUTPUT param for Id property in create and update proc
voommen-livefront Jun 18, 2025
d4b2024
PM-20574 add CreateDate to the update proc
voommen-livefront Jun 18, 2025
6356e94
PM-20574 amend update proc for OrganizationApplication by adding creaโ€ฆ
voommen-livefront Jun 18, 2025
7682178
PM-20574 formatted sql and updated as per PR comments
voommen-livefront Jun 18, 2025
f63bde0
PM-20574 updated script to fix build error
voommen-livefront Jun 18, 2025
360ee89
PM-20574 fixed inconsistency in db script
voommen-livefront Jun 18, 2025
22a89cc
PM-20574 removed revisionDate, update procedures and used views
voommen-livefront Jun 20, 2025
57c01c3
PM-20574 removed RevisionDate from designer files
voommen-livefront Jun 20, 2025
bfeb572
PM-20574 removed revisionDate column that was missed previously
voommen-livefront Jun 20, 2025
d6f4b85
PM-20574 added revision date back into the mix
voommen-livefront Jun 20, 2025
a9553ae
PM-20574 updated database script to fix build error
voommen-livefront Jun 20, 2025
8d61aeb
PM-20574 fixed a procedure issue
voommen-livefront Jun 20, 2025
4e0caf8
PM-20574 fix dB build error
voommen-livefront Jun 20, 2025
d9a7d2a
PM-020574 fixed additional PR comments - files cleaned up
voommen-livefront Jun 20, 2025
e132e1d
PM-20574 updated procedure was inconsistent
voommen-livefront Jun 20, 2025
bd4cd1a
Update 2025-06-13-00_OrganizationReport.sql
voommen-livefront Jun 23, 2025
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
2 changes: 1 addition & 1 deletion src/Api/Dirt/Controllers/ReportsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Bit.Api.Dirt.Models.Response;
using Bit.Api.Tools.Models.Response;
using Bit.Core.Context;
using Bit.Core.Dirt.Reports.Entities;
using Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Reports.Models.Data;
using Bit.Core.Dirt.Reports.ReportFeatures.Interfaces;
using Bit.Core.Dirt.Reports.ReportFeatures.OrganizationReportMembers.Interfaces;
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Dirt/Models/Response/MemberAccessReportModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
๏ปฟusing Bit.Core.Dirt.Reports.Models.Data;
๏ปฟusing Bit.Core.Dirt.Models.Data;

namespace Bit.Api.Dirt.Models.Response;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
๏ปฟusing Bit.Core.Dirt.Reports.Models.Data;

namespace Bit.Api.Dirt.Models.Response;

public class MemberCipherDetailsResponseModel
Expand Down
20 changes: 20 additions & 0 deletions src/Core/Dirt/Entities/OrganizationApplication.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
๏ปฟ#nullable enable

using Bit.Core.Entities;
using Bit.Core.Utilities;

namespace Bit.Core.Dirt.Entities;

public class OrganizationApplication : ITableObject<Guid>, IRevisable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to look up what IRevisable even was -- it can stay I guess but it really never caught on here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand IRevisable - I put it there since most other entities have it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's only a few actually.

{
public Guid Id { get; set; }
public Guid OrganizationId { get; set; }
public string Applications { get; set; } = string.Empty;
public DateTime CreationDate { get; set; } = DateTime.UtcNow;
public DateTime RevisionDate { get; set; } = DateTime.UtcNow;

Check warning on line 14 in src/Core/Dirt/Entities/OrganizationApplication.cs

View check run for this annotation

Codecov / codecov/patch

src/Core/Dirt/Entities/OrganizationApplication.cs#L10-L14

Added lines #L10 - L14 were not covered by tests

public void SetNewId()
{
Id = CoreHelpers.GenerateComb();
}

Check warning on line 19 in src/Core/Dirt/Entities/OrganizationApplication.cs

View check run for this annotation

Codecov / codecov/patch

src/Core/Dirt/Entities/OrganizationApplication.cs#L17-L19

Added lines #L17 - L19 were not covered by tests
}
20 changes: 20 additions & 0 deletions src/Core/Dirt/Entities/OrganizationReport.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
๏ปฟ#nullable enable

using Bit.Core.Entities;
using Bit.Core.Utilities;

namespace Bit.Core.Dirt.Entities;

public class OrganizationReport : ITableObject<Guid>
{
public Guid Id { get; set; }
public Guid OrganizationId { get; set; }
public DateTime Date { get; set; }
public string ReportData { get; set; } = string.Empty;
public DateTime CreationDate { get; set; } = DateTime.UtcNow;

Check warning on line 14 in src/Core/Dirt/Entities/OrganizationReport.cs

View check run for this annotation

Codecov / codecov/patch

src/Core/Dirt/Entities/OrganizationReport.cs#L10-L14

Added lines #L10 - L14 were not covered by tests

public void SetNewId()
{
Id = CoreHelpers.GenerateComb();
}

Check warning on line 19 in src/Core/Dirt/Entities/OrganizationReport.cs

View check run for this annotation

Codecov / codecov/patch

src/Core/Dirt/Entities/OrganizationReport.cs#L17-L19

Added lines #L17 - L19 were not covered by tests
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Bit.Core.Entities;
using Bit.Core.Utilities;

namespace Bit.Core.Dirt.Reports.Entities;
namespace Bit.Core.Dirt.Entities;

public class PasswordHealthReportApplication : ITableObject<Guid>, IRevisable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
๏ปฟnamespace Bit.Core.Dirt.Reports.Models.Data;
๏ปฟnamespace Bit.Core.Dirt.Models.Data;

public class MemberAccessDetails
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
๏ปฟusing Bit.Core.Dirt.Reports.Entities;
๏ปฟusing Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Reports.ReportFeatures.Interfaces;
using Bit.Core.Dirt.Reports.ReportFeatures.Requests;
using Bit.Core.Dirt.Reports.Repositories;
using Bit.Core.Dirt.Repositories;
using Bit.Core.Exceptions;
using Bit.Core.Repositories;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
๏ปฟusing Bit.Core.Dirt.Reports.ReportFeatures.Interfaces;
using Bit.Core.Dirt.Reports.ReportFeatures.Requests;
using Bit.Core.Dirt.Reports.Repositories;
using Bit.Core.Dirt.Repositories;
using Bit.Core.Exceptions;

namespace Bit.Core.Dirt.Reports.ReportFeatures;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
๏ปฟusing Bit.Core.Dirt.Reports.Entities;
๏ปฟusing Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Reports.ReportFeatures.Interfaces;
using Bit.Core.Dirt.Reports.Repositories;
using Bit.Core.Dirt.Repositories;
using Bit.Core.Exceptions;

namespace Bit.Core.Dirt.Reports.ReportFeatures;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
๏ปฟusing Bit.Core.Dirt.Reports.Entities;
๏ปฟusing Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Reports.ReportFeatures.Requests;

namespace Bit.Core.Dirt.Reports.ReportFeatures.Interfaces;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
๏ปฟusing Bit.Core.Dirt.Reports.Entities;
๏ปฟusing Bit.Core.Dirt.Entities;

namespace Bit.Core.Dirt.Reports.ReportFeatures.Interfaces;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
public class MemberAccessReportQuery(
IOrganizationMemberBaseDetailRepository organizationMemberBaseDetailRepository,
ITwoFactorIsEnabledQuery twoFactorIsEnabledQuery,
IApplicationCacheService applicationCacheService)
: IMemberAccessReportQuery
IApplicationCacheService applicationCacheService) : IMemberAccessReportQuery
{
public async Task<IEnumerable<MemberAccessReportDetail>> GetMemberAccessReportsAsync(
MemberAccessReportRequest request)

Check warning on line 16 in src/Core/Dirt/Reports/ReportFeatures/MemberAccessReportQuery.cs

View check run for this annotation

Codecov / codecov/patch

src/Core/Dirt/Reports/ReportFeatures/MemberAccessReportQuery.cs#L13-L16

Added lines #L13 - L16 were not covered by tests
{
var baseDetails =
await organizationMemberBaseDetailRepository.GetOrganizationMemberBaseDetailsByOrganizationId(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
๏ปฟusing Bit.Core.Dirt.Entities;
using Bit.Core.Repositories;

namespace Bit.Core.Dirt.Repositories;

public interface IOrganizationApplicationRepository : IRepository<OrganizationApplication, Guid>
{
Task<ICollection<OrganizationApplication>> GetByOrganizationIdAsync(Guid organizationId);
}
10 changes: 10 additions & 0 deletions src/Core/Dirt/Repositories/IOrganizationReportRepository.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
๏ปฟusing Bit.Core.Dirt.Entities;
using Bit.Core.Repositories;

namespace Bit.Core.Dirt.Repositories;

public interface IOrganizationReportRepository : IRepository<OrganizationReport, Guid>
{
Task<ICollection<OrganizationReport>> GetByOrganizationIdAsync(Guid organizationId);
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
๏ปฟusing Bit.Core.Dirt.Reports.Entities;
๏ปฟusing Bit.Core.Dirt.Entities;
using Bit.Core.Repositories;

namespace Bit.Core.Dirt.Reports.Repositories;
namespace Bit.Core.Dirt.Repositories;

public interface IPasswordHealthReportApplicationRepository : IRepository<PasswordHealthReportApplication, Guid>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Bit.Core.Billing.Providers.Repositories;
using Bit.Core.Billing.Repositories;
using Bit.Core.Dirt.Reports.Repositories;
using Bit.Core.Dirt.Repositories;
using Bit.Core.KeyManagement.Repositories;
using Bit.Core.NotificationCenter.Repositories;
using Bit.Core.Platform.Installations;
Expand Down Expand Up @@ -70,6 +71,8 @@ public static void AddDapperRepositories(this IServiceCollection services, bool
services.AddSingleton<ISecurityTaskRepository, SecurityTaskRepository>();
services.AddSingleton<IUserAsymmetricKeysRepository, UserAsymmetricKeysRepository>();
services.AddSingleton<IOrganizationInstallationRepository, OrganizationInstallationRepository>();
services.AddSingleton<IOrganizationReportRepository, OrganizationReportRepository>();
services.AddSingleton<IOrganizationApplicationRepository, OrganizationApplicationRepository>();
services.AddSingleton<IOrganizationMemberBaseDetailRepository, OrganizationMemberBaseDetailRepository>();

if (selfHosted)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
๏ปฟusing System.Data;
using Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Repositories;
using Bit.Core.Settings;
using Bit.Infrastructure.Dapper.Repositories;
using Dapper;
using Microsoft.Data.SqlClient;

namespace Bit.Infrastructure.Dapper.Dirt;

public class OrganizationApplicationRepository : Repository<OrganizationApplication, Guid>, IOrganizationApplicationRepository
{
public OrganizationApplicationRepository(GlobalSettings globalSettings)
: this(globalSettings.SqlServer.ConnectionString, globalSettings.SqlServer.ReadOnlyConnectionString)
{
}

public OrganizationApplicationRepository(string connectionString, string readOnlyConnectionString)
: base(connectionString, readOnlyConnectionString)
{
}

Check warning on line 21 in src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs#L19-L21

Added lines #L19 - L21 were not covered by tests

public async Task<ICollection<OrganizationApplication>> GetByOrganizationIdAsync(Guid organizationId)
{
using (var connection = new SqlConnection(ReadOnlyConnectionString))
{
var results = await connection.QueryAsync<OrganizationApplication>(
$"[{Schema}].[OrganizationApplication_ReadByOrganizationId]",
new { OrganizationId = organizationId },
commandType: CommandType.StoredProcedure);

Check warning on line 30 in src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs#L24-L30

Added lines #L24 - L30 were not covered by tests

return results.ToList();

Check warning on line 32 in src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs#L32

Added line #L32 was not covered by tests
}
}

Check warning on line 34 in src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationApplicationRepository.cs#L34

Added line #L34 was not covered by tests
}
35 changes: 35 additions & 0 deletions src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
๏ปฟusing System.Data;
using Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Repositories;
using Bit.Core.Settings;
using Bit.Infrastructure.Dapper.Repositories;
using Dapper;
using Microsoft.Data.SqlClient;

namespace Bit.Infrastructure.Dapper.Dirt;

public class OrganizationReportRepository : Repository<OrganizationReport, Guid>, IOrganizationReportRepository
{
public OrganizationReportRepository(GlobalSettings globalSettings)
: this(globalSettings.SqlServer.ConnectionString, globalSettings.SqlServer.ReadOnlyConnectionString)
{
}

Check warning on line 16 in src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs#L14-L16

Added lines #L14 - L16 were not covered by tests

public OrganizationReportRepository(string connectionString, string readOnlyConnectionString)
: base(connectionString, readOnlyConnectionString)
{
}

Check warning on line 21 in src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs#L19-L21

Added lines #L19 - L21 were not covered by tests

public async Task<ICollection<OrganizationReport>> GetByOrganizationIdAsync(Guid organizationId)
{
using (var connection = new SqlConnection(ReadOnlyConnectionString))
{
var results = await connection.QueryAsync<OrganizationReport>(
$"[{Schema}].[OrganizationReport_ReadByOrganizationId]",
new { OrganizationId = organizationId },
commandType: CommandType.StoredProcedure);

Check warning on line 30 in src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs#L24-L30

Added lines #L24 - L30 were not covered by tests

return results.ToList();

Check warning on line 32 in src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs#L32

Added line #L32 was not covered by tests
}
}

Check warning on line 34 in src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.Dapper/Dirt/OrganizationReportRepository.cs#L34

Added line #L34 was not covered by tests
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
๏ปฟusing System.Data;
using Bit.Core.Dirt.Reports.Entities;
using Bit.Core.Dirt.Reports.Repositories;
using Bit.Core.Dirt.Entities;
using Bit.Core.Dirt.Repositories;
using Bit.Core.Settings;
using Bit.Infrastructure.Dapper.Repositories;
using Dapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
๏ปฟusing Bit.Infrastructure.EntityFramework.Dirt.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Bit.Infrastructure.EntityFramework.Dirt.Configurations;

public class OrganizationApplicationEntityTypeConfiguration : IEntityTypeConfiguration<OrganizationApplication>
{
public void Configure(EntityTypeBuilder<OrganizationApplication> builder)
{
builder
.Property(s => s.Id)
.ValueGeneratedNever();

builder.HasIndex(s => s.Id)
.IsClustered(true);

builder
.HasIndex(s => s.OrganizationId)
.IsClustered(false);

builder
.HasOne(s => s.Organization)
.WithMany()
.HasForeignKey(s => s.OrganizationId)
.OnDelete(DeleteBehavior.Cascade);

builder.ToTable(nameof(OrganizationApplication));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
๏ปฟusing Bit.Infrastructure.EntityFramework.Dirt.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Bit.Infrastructure.EntityFramework.Dirt.Configurations;

public class OrganizationReportEntityTypeConfiguration : IEntityTypeConfiguration<OrganizationReport>
{
public void Configure(EntityTypeBuilder<OrganizationReport> builder)
{
builder
.Property(s => s.Id)
.ValueGeneratedNever();

builder.HasIndex(s => s.Id)
.IsClustered(true);

builder
.HasIndex(s => s.OrganizationId)
.IsClustered(false);

builder
.HasOne(s => s.Organization)
.WithMany()
.HasForeignKey(s => s.OrganizationId)
.OnDelete(DeleteBehavior.Cascade);

builder.ToTable(nameof(OrganizationReport));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
๏ปฟusing AutoMapper;
using Bit.Infrastructure.EntityFramework.AdminConsole.Models;

namespace Bit.Infrastructure.EntityFramework.Dirt.Models;
public class OrganizationApplication : Core.Dirt.Entities.OrganizationApplication
{
public virtual Organization Organization { get; set; }

Check warning on line 7 in src/Infrastructure.EntityFramework/Dirt/Models/OrganizationApplication.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.EntityFramework/Dirt/Models/OrganizationApplication.cs#L7

Added line #L7 was not covered by tests
}

public class OrganizationApplicationProfile : Profile
{
public OrganizationApplicationProfile()
{
CreateMap<Core.Dirt.Entities.OrganizationApplication, OrganizationApplication>()
.ReverseMap();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
๏ปฟusing AutoMapper;
using Bit.Infrastructure.EntityFramework.AdminConsole.Models;

namespace Bit.Infrastructure.EntityFramework.Dirt.Models;
public class OrganizationReport : Core.Dirt.Entities.OrganizationReport
{
public virtual Organization Organization { get; set; }

Check warning on line 7 in src/Infrastructure.EntityFramework/Dirt/Models/OrganizationReport.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.EntityFramework/Dirt/Models/OrganizationReport.cs#L7

Added line #L7 was not covered by tests
}

public class OrganizationReportProfile : Profile
{
public OrganizationReportProfile()
{
CreateMap<Core.Dirt.Entities.OrganizationReport, OrganizationReport>()
.ReverseMap();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Bit.Infrastructure.EntityFramework.Dirt.Models;

public class PasswordHealthReportApplication : Core.Dirt.Reports.Entities.PasswordHealthReportApplication
public class PasswordHealthReportApplication : Core.Dirt.Entities.PasswordHealthReportApplication
{
public virtual Organization Organization { get; set; }
}
Expand All @@ -12,7 +12,7 @@ public class PasswordHealthReportApplicationProfile : Profile
{
public PasswordHealthReportApplicationProfile()
{
CreateMap<Core.Dirt.Reports.Entities.PasswordHealthReportApplication, PasswordHealthReportApplication>()
CreateMap<Core.Dirt.Entities.PasswordHealthReportApplication, PasswordHealthReportApplication>()
.ReverseMap();
}
}
Loading
Loading