You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val jsonPatchNames = patchOptionsBundle.patches.keys.map { it.lowercase() }.toSet()
491
491
492
492
val newPatches = compatiblePatchNames - jsonPatchNames
493
+
val oldPatches = jsonPatchNames - compatiblePatchNames
493
494
val removedPatches = jsonPatchNames - allMppPatchNames
494
495
495
-
// Check for new option keys within existing patches
496
-
var patchesWithNewOptions =0
497
-
for ((patchName, snapshotEntry) in patchesSnapshot.patches) {
496
+
// Check for new option keys within existing patches. For better messaging, store it as a map and show users which patch is outdated instead of just a number.
497
+
val patchesWithNewOptions = mutableMapOf<String, Set<String>>()
498
+
val patchesWithOldOptions = mutableMapOf<String, Set<String>>()
499
+
500
+
for ((patchName, _) in patchesSnapshot.patches) {
498
501
if (patchName.lowercase() !in compatiblePatchNames) continue
499
502
val jsonEntry = patchOptionsBundle.patches.entries
0 commit comments