Se actualizo la biblioteca para entregar los resultados ordenados
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATaskAwaitAdapter_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FSourcesCache_003F3fad8e3b42a0f7ae367986c4177c844d48c22c6e8a9ebc5ec7c60ad5e677267_003FTaskAwaitAdapter_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATaskAwaitAdapter_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FSourcesCache_003F3fad8e3b42a0f7ae367986c4177c844d48c22c6e8a9ebc5ec7c60ad5e677267_003FTaskAwaitAdapter_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATaskAwaitAdapter_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FSourcesCache_003F3fad8e3b42a0f7ae367986c4177c844d48c22c6e8a9ebc5ec7c60ad5e677267_003FTaskAwaitAdapter_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATaskAwaitAdapter_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FSourcesCache_003F3fad8e3b42a0f7ae367986c4177c844d48c22c6e8a9ebc5ec7c60ad5e677267_003FTaskAwaitAdapter_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATestInvoker_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FSourcesCache_003F5e14a4e27990972fa4ae94975603bd298aaf328ee083c03b10569ee4724d57_003FTestInvoker_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATestInvoker_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2024_002E2_003Fresharper_002Dhost_003FSourcesCache_003F5e14a4e27990972fa4ae94975603bd298aaf328ee083c03b10569ee4724d57_003FTestInvoker_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=5c25c1e3_002D715f_002D443f_002D85ea_002Deb33bc1449eb/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="AuditRecordRepositoryTests" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=5c25c1e3_002D715f_002D443f_002D85ea_002Deb33bc1449eb/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" Name="AuditRecordRepositoryTests" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
||||||
<Project Location="/home/julian/Documentos/repos/audit/audit-logs/audit-test" Presentation="&lt;audit-test&gt;" />
|
<Project Location="/home/julian/Documentos/repos/audit/audit-logs/audit-test" Presentation="&lt;audit-test&gt;" />
|
||||||
</SessionState></s:String>
|
</SessionState></s:String>
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=71375b51_002D357b_002D4f69_002Da9dc_002D71fc12f6a8a3/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords #2" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=71375b51_002D357b_002D4f69_002Da9dc_002D71fc12f6a8a3/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords #2" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
||||||
@@ -21,21 +21,7 @@
|
|||||||
<TestId>NUnit3x::053B6D24-445B-439A-AD42-80D31DC53059::net8.0::audit_test.Repository.AuditServiceFilterTests.GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords</TestId>
|
<TestId>NUnit3x::053B6D24-445B-439A-AD42-80D31DC53059::net8.0::audit_test.Repository.AuditServiceFilterTests.GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords</TestId>
|
||||||
</TestAncestor>
|
</TestAncestor>
|
||||||
</SessionState></s:String>
|
</SessionState></s:String>
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=76097418_002Db1d6_002D43a3_002D9e2a_002D9715294cfd8b/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords #3" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
|
||||||
<TestAncestor>
|
|
||||||
<TestId>NUnit3x::053B6D24-445B-439A-AD42-80D31DC53059::net8.0::audit_test.Repository.AuditServiceFilterbyTextAndDateTests.GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords</TestId>
|
|
||||||
</TestAncestor>
|
</wpf:ResourceDictionary>
|
||||||
</SessionState></s:String>
|
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=b6b33046_002De69c_002D486b_002Da14b_002D422c721c36e0/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="VerifyAllRecordsLoaded_ReturnsCorrectCount" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
|
||||||
<TestAncestor>
|
|
||||||
<TestId>NUnit3x::053B6D24-445B-439A-AD42-80D31DC53059::net8.0::audit_test.Repository.AuditServiceFilterbyTextAndDateTests</TestId>
|
|
||||||
</TestAncestor>
|
|
||||||
</SessionState></s:String>
|
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=dc0c1757_002D86d4_002D46f7_002D9951_002D514ccda9e8cc/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" Name="GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
|
||||||
<TestAncestor>
|
|
||||||
<TestId>NUnit3x::053B6D24-445B-439A-AD42-80D31DC53059::net8.0::audit_test.Repository.AuditServiceFilterTests.GetAuditLogsAsync_FilterByDateRange_ReturnsCorrectRecords</TestId>
|
|
||||||
</TestAncestor>
|
|
||||||
</SessionState></s:String>
|
|
||||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=e7280f2a_002D5b45_002D4bb8_002Db12f_002D674403112dab/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" Name="RecordAuditAsync_ValidRecord_InsertsRecord" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
|
||||||
<Project Location="/home/julian/Documentos/repos/audit/audit-logs/audit-test" Presentation="&lt;audit-test&gt;" />
|
|
||||||
</SessionState></s:String></wpf:ResourceDictionary>
|
|
||||||
@@ -67,8 +67,11 @@ public class AuditRecordRepository : MongoRepository<AuditRecord>, IAuditRecordR
|
|||||||
return await Collection.Find(new BsonDocument()).ToListAsync();
|
return await Collection.Find(new BsonDocument()).ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<IEnumerable<AuditRecord>> GetPaginatedAsync(int pageNumber, int pageSize)
|
|
||||||
|
public async Task<List<AuditRecord>> GetPaginatedAsync(int pageNumber, int pageSize)
|
||||||
{
|
{
|
||||||
|
// var skip = (pageNumber - 1) * pageSize;
|
||||||
|
// return await Collection.Find(new BsonDocument()).Sort(sort).Skip(skip).Limit(pageSize).ToListAsync();
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ using MongoDB.Bson;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using MongoDB.Driver;
|
||||||
|
|
||||||
namespace audit_logs.Repositories.Interfaces;
|
namespace audit_logs.Repositories.Interfaces;
|
||||||
|
|
||||||
public interface IAuditRecordRepository : IMongoRepository<AuditRecord>
|
public interface IAuditRecordRepository : IMongoRepository<AuditRecord>
|
||||||
@@ -12,6 +14,6 @@ public interface IAuditRecordRepository : IMongoRepository<AuditRecord>
|
|||||||
Task<long> InsertBatch(IEnumerable<AuditRecord> auditRecords);
|
Task<long> InsertBatch(IEnumerable<AuditRecord> auditRecords);
|
||||||
Task<List<AuditRecord>> FindAllFromOrigin(ObjectId originId);
|
Task<List<AuditRecord>> FindAllFromOrigin(ObjectId originId);
|
||||||
Task<List<AuditRecord>> GetAllAuditRecordsAsync();
|
Task<List<AuditRecord>> GetAllAuditRecordsAsync();
|
||||||
Task<IEnumerable<AuditRecord>> GetPaginatedAsync(int pageNumber, int pageSize); // Nuevo método para paginación
|
Task<List<AuditRecord>> GetPaginatedAsync(int pageNumber, int pageSize);
|
||||||
Task<long> CountDocumentsAsync(); // Nuevo método para contar documentos
|
Task<long> CountDocumentsAsync(); // Nuevo método para contar documentos
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@ public interface IMongoRepository<T>
|
|||||||
Task InsertOneAsync(T obj);
|
Task InsertOneAsync(T obj);
|
||||||
Task<T?> DeleteAsync(ObjectId id);
|
Task<T?> DeleteAsync(ObjectId id);
|
||||||
Task UpdateOneAsync(ObjectId id, T obj);
|
Task UpdateOneAsync(ObjectId id, T obj);
|
||||||
Task<IEnumerable<T>> GetPaginatedAsync(int pageNumber, int pageSize,FilterDefinition<T>? filter = null);
|
Task<IEnumerable<T>> GetPaginatedAsync(int pageNumber, int pageSize,FilterDefinition<T>? filter = null, SortDefinition<T> sort=null);
|
||||||
|
|
||||||
Task<long> CountDocumentsAsync(FilterDefinition<T>? filter = null);
|
Task<long> CountDocumentsAsync(FilterDefinition<T>? filter = null);
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ public abstract class MongoRepository<T> : IMongoRepository<T>
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public async Task<IEnumerable<T>> GetPaginatedAsync(int pageNumber, int pageSize,FilterDefinition<T>? filter = null)
|
public async Task<IEnumerable<T>> GetPaginatedAsync(int pageNumber, int pageSize,FilterDefinition<T>? filter = null,SortDefinition<T> sort=null)
|
||||||
{
|
{
|
||||||
if (pageNumber <= 0) throw new ArgumentException("Page number must be greater than 0.", nameof(pageNumber));
|
if (pageNumber <= 0) throw new ArgumentException("Page number must be greater than 0.", nameof(pageNumber));
|
||||||
if (pageSize <= 0) throw new ArgumentException("Page size must be greater than 0.", nameof(pageSize));
|
if (pageSize <= 0) throw new ArgumentException("Page size must be greater than 0.", nameof(pageSize));
|
||||||
@@ -166,6 +166,7 @@ public abstract class MongoRepository<T> : IMongoRepository<T>
|
|||||||
return await Collection
|
return await Collection
|
||||||
.Find(filter)
|
.Find(filter)
|
||||||
.Skip((pageNumber - 1) * pageSize)
|
.Skip((pageNumber - 1) * pageSize)
|
||||||
|
.Sort(sort)
|
||||||
.Limit(pageSize)
|
.Limit(pageSize)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -265,8 +265,11 @@ public class AuditService : IAuditService
|
|||||||
|
|
||||||
var totalRecords = await _auditLogRepository.CountDocumentsAsync(filter);
|
var totalRecords = await _auditLogRepository.CountDocumentsAsync(filter);
|
||||||
var totalPages = (int)Math.Ceiling((double)totalRecords / filterDto.pageSize);
|
var totalPages = (int)Math.Ceiling((double)totalRecords / filterDto.pageSize);
|
||||||
|
var sort = Builders<AuditRecord>.Sort.Descending(x => x.ActionTime); // Ordenar por fecha más reciente
|
||||||
|
var records = await _auditLogRepository.GetPaginatedAsync(filterDto.pageNumber, filterDto.pageSize, filter, sort);
|
||||||
|
|
||||||
var records = await _auditLogRepository.GetPaginatedAsync(filterDto.pageNumber, filterDto.pageSize, filter);
|
|
||||||
|
// var records = await _auditLogRepository.GetPaginatedAsync(filterDto.pageNumber, filterDto.pageSize, filter);
|
||||||
var recordsDto = records.Select(record => AuditRecordMapper.ToDto(record)).ToList();
|
var recordsDto = records.Select(record => AuditRecordMapper.ToDto(record)).ToList();
|
||||||
|
|
||||||
return new PaginatedLogsResultDto<AuditRecordDto>
|
return new PaginatedLogsResultDto<AuditRecordDto>
|
||||||
@@ -311,8 +314,10 @@ public class AuditService : IAuditService
|
|||||||
|
|
||||||
var totalRecords = await _auditLogRepository.CountDocumentsAsync(filter);
|
var totalRecords = await _auditLogRepository.CountDocumentsAsync(filter);
|
||||||
var totalPages = (int)Math.Ceiling((double)totalRecords / filtertTextOrDateDto.pageSize);
|
var totalPages = (int)Math.Ceiling((double)totalRecords / filtertTextOrDateDto.pageSize);
|
||||||
|
var sort = Builders<AuditRecord>.Sort.Descending(x => x.ActionTime); // Ordenar por fecha más reciente
|
||||||
|
|
||||||
var records = await _auditLogRepository.GetPaginatedAsync(filtertTextOrDateDto.pageNumber,
|
var records = await _auditLogRepository.GetPaginatedAsync(filtertTextOrDateDto.pageNumber,
|
||||||
filtertTextOrDateDto.pageSize, filter);
|
filtertTextOrDateDto.pageSize, filter,sort);
|
||||||
var recordsDto = records.Select(record => AuditRecordMapper.ToDto(record)).ToList();
|
var recordsDto = records.Select(record => AuditRecordMapper.ToDto(record)).ToList();
|
||||||
|
|
||||||
return new PaginatedLogsResultDto<AuditRecordDto>
|
return new PaginatedLogsResultDto<AuditRecordDto>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<!-- Informacion para NuGet -->
|
<!-- Informacion para NuGet -->
|
||||||
<PackageId>AuditLogs</PackageId>
|
<PackageId>AuditLogs</PackageId>
|
||||||
<Version>1.0.22</Version>
|
<Version>1.0.23</Version>
|
||||||
<Authors>Epigram</Authors>
|
<Authors>Epigram</Authors>
|
||||||
<Company>Epigram</Company>
|
<Company>Epigram</Company>
|
||||||
<Description>Library for recording audit logs using MongoDB.</Description>
|
<Description>Library for recording audit logs using MongoDB.</Description>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compilationOptions": {},
|
"compilationOptions": {},
|
||||||
"targets": {
|
"targets": {
|
||||||
".NETCoreApp,Version=v8.0": {
|
".NETCoreApp,Version=v8.0": {
|
||||||
"audit-logs/1.0.22": {
|
"audit-logs/1.0.23": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.Extensions.Hosting": "8.0.0",
|
"Microsoft.Extensions.Hosting": "8.0.0",
|
||||||
"MongoDB.Driver": "2.23.1",
|
"MongoDB.Driver": "2.23.1",
|
||||||
@@ -569,7 +569,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libraries": {
|
"libraries": {
|
||||||
"audit-logs/1.0.22": {
|
"audit-logs/1.0.23": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"serviceable": false,
|
"serviceable": false,
|
||||||
"sha512": ""
|
"sha512": ""
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,11 +13,11 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Epigram")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Epigram")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyDescriptionAttribute("Library for recording audit logs using MongoDB.")]
|
[assembly: System.Reflection.AssemblyDescriptionAttribute("Library for recording audit logs using MongoDB.")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.22.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.23.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.22+bc84c1b5a7fcfaf1fe295f7a9b17884dc7a0c5f4")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.23+5ba0097bc0659efcde1b1fd780635d1420e2fd7d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("audit-logs")]
|
[assembly: System.Reflection.AssemblyProductAttribute("audit-logs")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("audit-logs")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("audit-logs")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.22.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.23.0")]
|
||||||
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://git.teralevel.io/jrojas/audit/src/branch/master/audit-logs")]
|
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://git.teralevel.io/jrojas/audit/src/branch/master/audit-logs")]
|
||||||
|
|
||||||
// Generado por la clase WriteCodeFragment de MSBuild.
|
// Generado por la clase WriteCodeFragment de MSBuild.
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
6493451f7dd447ecac820618a27a0b425fde21d09a04385a327931a4edf0c580
|
2272dca971e4559ffdbbb9b6f69cd2ccaf32d825201c7c703dbde8c3bec65df1
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,7 @@
|
|||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj": {
|
"/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj": {
|
||||||
"version": "1.0.20",
|
"version": "1.0.22",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
||||||
"projectName": "AuditLogs",
|
"projectName": "AuditLogs",
|
||||||
|
|||||||
@@ -2567,7 +2567,7 @@
|
|||||||
"/home/julian/.nuget/packages/": {}
|
"/home/julian/.nuget/packages/": {}
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.20",
|
"version": "1.0.22",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
||||||
"projectName": "AuditLogs",
|
"projectName": "AuditLogs",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "E8Mu0oI9VA4=",
|
"dgSpecHash": "+bR8MvondWI=",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
"projectFilePath": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
17328160760523427
|
17359129028094576
|
||||||
@@ -1 +1 @@
|
|||||||
17358944606935849
|
17359135886798651
|
||||||
@@ -28,7 +28,7 @@ public class AuditServiceFilterbyTextAndDateTests
|
|||||||
var allRecords = await _service.AuditLogRepository.GetAllAuditRecordsAsync();
|
var allRecords = await _service.AuditLogRepository.GetAllAuditRecordsAsync();
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.That(allRecords.Count(), Is.EqualTo(7), "All records from the JSON file should be loaded.");
|
Assert.That(allRecords.Count(), Is.EqualTo(13), "All records from the JSON file should be loaded.");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -8,7 +8,7 @@
|
|||||||
".NETCoreApp,Version=v8.0": {
|
".NETCoreApp,Version=v8.0": {
|
||||||
"audit-test/1.0.0": {
|
"audit-test/1.0.0": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"AuditLogs": "1.0.20",
|
"AuditLogs": "1.0.22",
|
||||||
"Microsoft.Extensions.Hosting": "8.0.0",
|
"Microsoft.Extensions.Hosting": "8.0.0",
|
||||||
"Microsoft.NET.Test.Sdk": "17.8.0",
|
"Microsoft.NET.Test.Sdk": "17.8.0",
|
||||||
"Mongo2Go": "2.2.16",
|
"Mongo2Go": "2.2.16",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"NUnit3TestAdapter": "4.5.0",
|
"NUnit3TestAdapter": "4.5.0",
|
||||||
"coverlet.collector": "6.0.0",
|
"coverlet.collector": "6.0.0",
|
||||||
"xunit": "2.9.2",
|
"xunit": "2.9.2",
|
||||||
"audit-logs": "1.0.21.0"
|
"audit-logs": "1.0.22.0"
|
||||||
},
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"audit-test.dll": {}
|
"audit-test.dll": {}
|
||||||
@@ -944,7 +944,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AuditLogs/1.0.20": {
|
"AuditLogs/1.0.22": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.Extensions.Hosting": "8.0.0",
|
"Microsoft.Extensions.Hosting": "8.0.0",
|
||||||
"MongoDB.Driver": "2.23.1",
|
"MongoDB.Driver": "2.23.1",
|
||||||
@@ -953,16 +953,16 @@
|
|||||||
},
|
},
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"audit-logs.dll": {
|
"audit-logs.dll": {
|
||||||
"assemblyVersion": "1.0.20",
|
"assemblyVersion": "1.0.22",
|
||||||
"fileVersion": "1.0.21.0"
|
"fileVersion": "1.0.22.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"audit-logs/1.0.21.0": {
|
"audit-logs/1.0.22.0": {
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"audit-logs.dll": {
|
"audit-logs.dll": {
|
||||||
"assemblyVersion": "1.0.21.0",
|
"assemblyVersion": "1.0.22.0",
|
||||||
"fileVersion": "1.0.21.0"
|
"fileVersion": "1.0.22.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1471,12 +1471,12 @@
|
|||||||
"path": "zstdsharp.port/0.7.3",
|
"path": "zstdsharp.port/0.7.3",
|
||||||
"hashPath": "zstdsharp.port.0.7.3.nupkg.sha512"
|
"hashPath": "zstdsharp.port.0.7.3.nupkg.sha512"
|
||||||
},
|
},
|
||||||
"AuditLogs/1.0.20": {
|
"AuditLogs/1.0.22": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"serviceable": false,
|
"serviceable": false,
|
||||||
"sha512": ""
|
"sha512": ""
|
||||||
},
|
},
|
||||||
"audit-logs/1.0.21.0": {
|
"audit-logs/1.0.22.0": {
|
||||||
"type": "reference",
|
"type": "reference",
|
||||||
"serviceable": false,
|
"serviceable": false,
|
||||||
"sha512": ""
|
"sha512": ""
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("audit-test")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("audit-test")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc84c1b5a7fcfaf1fe295f7a9b17884dc7a0c5f4")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5ba0097bc0659efcde1b1fd780635d1420e2fd7d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("audit-test")]
|
[assembly: System.Reflection.AssemblyProductAttribute("audit-test")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("audit-test")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("audit-test")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
65c5a86e5aae554493732612ef6e118c5f5f96269b30d47e8b9b44d28cff3612
|
c1d0c091b3c1309484e1f582fb33efca1d0a857a5ffc7ca00a694b8713130030
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,7 @@
|
|||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj": {
|
"/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj": {
|
||||||
"version": "1.0.20",
|
"version": "1.0.22",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
|
||||||
"projectName": "AuditLogs",
|
"projectName": "AuditLogs",
|
||||||
|
|||||||
@@ -1448,7 +1448,7 @@
|
|||||||
"lib/net7.0/ZstdSharp.dll": {}
|
"lib/net7.0/ZstdSharp.dll": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AuditLogs/1.0.20": {
|
"AuditLogs/1.0.22": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"framework": ".NETCoreApp,Version=v8.0",
|
"framework": ".NETCoreApp,Version=v8.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -3799,7 +3799,7 @@
|
|||||||
"zstdsharp.port.nuspec"
|
"zstdsharp.port.nuspec"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"AuditLogs/1.0.20": {
|
"AuditLogs/1.0.22": {
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"path": "../audit-logs/audit-logs.csproj",
|
"path": "../audit-logs/audit-logs.csproj",
|
||||||
"msbuildProject": "../audit-logs/audit-logs.csproj"
|
"msbuildProject": "../audit-logs/audit-logs.csproj"
|
||||||
@@ -3807,7 +3807,7 @@
|
|||||||
},
|
},
|
||||||
"projectFileDependencyGroups": {
|
"projectFileDependencyGroups": {
|
||||||
"net8.0": [
|
"net8.0": [
|
||||||
"AuditLogs >= 1.0.20",
|
"AuditLogs >= 1.0.22",
|
||||||
"Microsoft.Extensions.Hosting >= 8.0.0",
|
"Microsoft.Extensions.Hosting >= 8.0.0",
|
||||||
"Microsoft.NET.Test.Sdk >= 17.8.0",
|
"Microsoft.NET.Test.Sdk >= 17.8.0",
|
||||||
"Mongo2Go >= 2.2.16",
|
"Mongo2Go >= 2.2.16",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "fe+l7mwhslo=",
|
"dgSpecHash": "h1xEPiLr3po=",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "/home/julian/Documentos/repos/audit/audit-logs/audit-test/audit-test.csproj",
|
"projectFilePath": "/home/julian/Documentos/repos/audit/audit-logs/audit-test/audit-test.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
"/home/julian/.nuget/packages/xunit.extensibility.core/2.9.2/xunit.extensibility.core.2.9.2.nupkg.sha512",
|
"/home/julian/.nuget/packages/xunit.extensibility.core/2.9.2/xunit.extensibility.core.2.9.2.nupkg.sha512",
|
||||||
"/home/julian/.nuget/packages/xunit.extensibility.execution/2.9.2/xunit.extensibility.execution.2.9.2.nupkg.sha512",
|
"/home/julian/.nuget/packages/xunit.extensibility.execution/2.9.2/xunit.extensibility.execution.2.9.2.nupkg.sha512",
|
||||||
"/home/julian/.nuget/packages/zstdsharp.port/0.7.3/zstdsharp.port.0.7.3.nupkg.sha512",
|
"/home/julian/.nuget/packages/zstdsharp.port/0.7.3/zstdsharp.port.0.7.3.nupkg.sha512",
|
||||||
"/home/julian/.nuget/packages/auditlogs/1.0.20/auditlogs.1.0.20.nupkg.sha512"
|
"/home/julian/.nuget/packages/auditlogs/1.0.22/auditlogs.1.0.22.nupkg.sha512"
|
||||||
],
|
],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
17328160760563428
|
17358944606935849
|
||||||
@@ -1 +1 @@
|
|||||||
17358944606935849
|
17359135886838652
|
||||||
Reference in New Issue
Block a user