Skip to content

Commit 4d7c0f4

Browse files
committed
fix: extending 11To12 Migration to include EnableTagDiscoveryPanel setting.
1 parent 1b1190f commit 4d7c0f4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tools/LinkDotNet.Blog.UpgradeAssistant/Migrations/Migration_11_To_12.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace LinkDotNet.Blog.UpgradeAssistant.Migrations;
66
/// <summary>
77
/// Migration from version 11.0 to 12.0.
88
/// Adds ShowBuildInformation setting.
9+
/// Adds EnableTagDiscoveryPanel setting.
910
/// </summary>
1011
public sealed class Migration11To12 : IMigration
1112
{
@@ -27,6 +28,12 @@ public bool Apply(JsonDocument document, ref string jsonContent)
2728
rootObject["ShowBuildInformation"] = true;
2829
hasChanges = true;
2930
ConsoleOutput.WriteInfo("Added 'ShowBuildInformation' setting. Controls display of build information in the footer.");
31+
32+
if (!rootObject.ContainsKey("EnableTagDiscoveryPanel"))
33+
{
34+
rootObject["EnableTagDiscoveryPanel"] = true;
35+
ConsoleOutput.WriteInfo("Added 'EnableTagDiscoveryPanel' setting. Controls whether the Tag Discovery panel is enabled in the UI.");
36+
}
3037
}
3138

3239
if (hasChanges)
@@ -40,6 +47,7 @@ public bool Apply(JsonDocument document, ref string jsonContent)
4047

4148
public string GetDescription()
4249
{
43-
return "Adds ShowBuildInformation setting to control build information display.";
50+
return "Adds ShowBuildInformation setting to control build information display and also the" +
51+
" EnableTagDiscoveryPanel setting that controls whether the Tag Discovery panel is enabled in the UI.";
4452
}
4553
}

0 commit comments

Comments
 (0)