New Backoffice: Fix total number of items (health checks, log viewer, packages) (#14003)
* Fix total number of items for health check controllers * Fix total amount of items for log viewer controller * Fixing AllMigrationStatusPackageController * Fixing total items for package controllers * Adding default implementation * Update Nerdbank.GitVersioning dependency to 3.5.119 --------- Co-authored-by: Ronald Barendse <ronald@barend.se>
This commit is contained in:
committed by
GitHub
parent
91d4389d2c
commit
af24f304be
@@ -151,8 +151,17 @@ public class PackagingService : IPackagingService
|
||||
return Attempt.SucceedWithStatus<PackageDefinition?, PackageOperationStatus>(PackageOperationStatus.Success, package);
|
||||
}
|
||||
|
||||
[Obsolete("Use GetCreatedPackagesAsync instead. Scheduled for removal in Umbraco 15.")]
|
||||
public IEnumerable<PackageDefinition?> GetAllCreatedPackages() => _createdPackages.GetAll();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public async Task<PagedModel<PackageDefinition>> GetCreatedPackagesAsync(int skip, int take)
|
||||
{
|
||||
PackageDefinition[] packages = _createdPackages.GetAll().WhereNotNull().ToArray();
|
||||
var pagedModel = new PagedModel<PackageDefinition>(packages.Length, packages.Skip(skip).Take(take));
|
||||
return await Task.FromResult(pagedModel);
|
||||
}
|
||||
|
||||
public PackageDefinition? GetCreatedPackageById(int id) => _createdPackages.GetById(id);
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user