Fix has pending package migrations (#17423)

* update submodule

* update submodule

* Reintroduce a favicon (#17422)

* Fixes issue where package name was compared to package id, so packages had pending migrations from the management api endpoint, without actually have it.

---------

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
This commit is contained in:
Bjarke Berg
2024-11-06 09:56:26 +01:00
committed by GitHub
parent 21a3c31d77
commit 0bf2fbc24f
3 changed files with 4 additions and 4 deletions

View File

@@ -382,16 +382,16 @@ public class PackagingService : IPackagingService
_keyValueService.FindByKeyPrefix(Constants.Conventions.Migrations.KeyValuePrefix);
InstalledPackage[] installedPackages = _packageMigrationPlans
.GroupBy(plan => plan.PackageName)
.GroupBy(plan => (plan.PackageName, plan.PackageId))
.Select(group =>
{
var package = new InstalledPackage
{
PackageName = group.Key,
PackageName = group.Key.PackageName,
};
var currentState = keyValues?
.GetValueOrDefault(Constants.Conventions.Migrations.KeyValuePrefix + package.PackageName);
.GetValueOrDefault(Constants.Conventions.Migrations.KeyValuePrefix + group.Key.PackageId);
package.PackageMigrationPlans = group
.Select(plan => new InstalledPackageMigrationPlans

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB