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()
479
479
480
480
val newPatches = compatiblePatchNames - jsonPatchNames
481
+
val oldPatches = jsonPatchNames - compatiblePatchNames
481
482
val removedPatches = jsonPatchNames - allMppPatchNames
482
483
483
-
// Check for new option keys within existing patches
484
-
var patchesWithNewOptions =0
485
-
for ((patchName, snapshotEntry) in patchesSnapshot.patches) {
484
+
// 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.
485
+
val patchesWithNewOptions = mutableMapOf<String, Set<String>>()
486
+
val patchesWithOldOptions = mutableMapOf<String, Set<String>>()
487
+
488
+
for ((patchName, _) in patchesSnapshot.patches) {
486
489
if (patchName.lowercase() !in compatiblePatchNames) continue
487
490
val jsonEntry = patchOptionsBundle.patches.entries
0 commit comments