From 223381c4852b31254cb5a6fccb869f16fb22eaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Sat, 16 Mar 2024 19:31:02 +0100 Subject: [PATCH 01/17] Update OC. --- .../Lombiq.Hosting.Tenants.Admin.Login.csproj | 8 ++++---- ...q.Hosting.Tenants.EmailQuotaManagement.csproj | 16 ++++++++-------- ...mbiq.Hosting.Tenants.EnvironmentRobots.csproj | 6 +++--- .../Lombiq.Hosting.Tenants.FeaturesGuard.csproj | 10 +++++----- ...q.Hosting.Tenants.IdleTenantManagement.csproj | 6 +++--- .../Lombiq.Hosting.Tenants.Maintenance.csproj | 14 +++++++------- .../Lombiq.Hosting.Tenants.Management.csproj | 6 +++--- ...Hosting.Tenants.MediaStorageManagement.csproj | 8 ++++---- 8 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Lombiq.Hosting.Tenants.Admin.Login/Lombiq.Hosting.Tenants.Admin.Login.csproj b/Lombiq.Hosting.Tenants.Admin.Login/Lombiq.Hosting.Tenants.Admin.Login.csproj index c6963a43..d1a295e0 100644 --- a/Lombiq.Hosting.Tenants.Admin.Login/Lombiq.Hosting.Tenants.Admin.Login.csproj +++ b/Lombiq.Hosting.Tenants.Admin.Login/Lombiq.Hosting.Tenants.Admin.Login.csproj @@ -34,10 +34,10 @@ - - - - + + + + diff --git a/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj b/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj index 9f40a4b1..13a40cd9 100644 --- a/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj +++ b/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj @@ -34,14 +34,14 @@ - - - - - - - - + + + + + + + + diff --git a/Lombiq.Hosting.Tenants.EnvironmentRobots/Lombiq.Hosting.Tenants.EnvironmentRobots.csproj b/Lombiq.Hosting.Tenants.EnvironmentRobots/Lombiq.Hosting.Tenants.EnvironmentRobots.csproj index d0c29dee..36f90a88 100644 --- a/Lombiq.Hosting.Tenants.EnvironmentRobots/Lombiq.Hosting.Tenants.EnvironmentRobots.csproj +++ b/Lombiq.Hosting.Tenants.EnvironmentRobots/Lombiq.Hosting.Tenants.EnvironmentRobots.csproj @@ -34,8 +34,8 @@ - - - + + + diff --git a/Lombiq.Hosting.Tenants.FeaturesGuard/Lombiq.Hosting.Tenants.FeaturesGuard.csproj b/Lombiq.Hosting.Tenants.FeaturesGuard/Lombiq.Hosting.Tenants.FeaturesGuard.csproj index 37418954..e0832b14 100644 --- a/Lombiq.Hosting.Tenants.FeaturesGuard/Lombiq.Hosting.Tenants.FeaturesGuard.csproj +++ b/Lombiq.Hosting.Tenants.FeaturesGuard/Lombiq.Hosting.Tenants.FeaturesGuard.csproj @@ -34,11 +34,11 @@ - - - - - + + + + + diff --git a/Lombiq.Hosting.Tenants.IdleTenantManagement/Lombiq.Hosting.Tenants.IdleTenantManagement.csproj b/Lombiq.Hosting.Tenants.IdleTenantManagement/Lombiq.Hosting.Tenants.IdleTenantManagement.csproj index 6bad9d1e..e704ea5e 100644 --- a/Lombiq.Hosting.Tenants.IdleTenantManagement/Lombiq.Hosting.Tenants.IdleTenantManagement.csproj +++ b/Lombiq.Hosting.Tenants.IdleTenantManagement/Lombiq.Hosting.Tenants.IdleTenantManagement.csproj @@ -24,9 +24,9 @@ - - - + + + diff --git a/Lombiq.Hosting.Tenants.Maintenance/Lombiq.Hosting.Tenants.Maintenance.csproj b/Lombiq.Hosting.Tenants.Maintenance/Lombiq.Hosting.Tenants.Maintenance.csproj index 80c66734..15709012 100644 --- a/Lombiq.Hosting.Tenants.Maintenance/Lombiq.Hosting.Tenants.Maintenance.csproj +++ b/Lombiq.Hosting.Tenants.Maintenance/Lombiq.Hosting.Tenants.Maintenance.csproj @@ -23,13 +23,13 @@ - - - - - - - + + + + + + + diff --git a/Lombiq.Hosting.Tenants.Management/Lombiq.Hosting.Tenants.Management.csproj b/Lombiq.Hosting.Tenants.Management/Lombiq.Hosting.Tenants.Management.csproj index 0bbd333a..5a46b6bc 100644 --- a/Lombiq.Hosting.Tenants.Management/Lombiq.Hosting.Tenants.Management.csproj +++ b/Lombiq.Hosting.Tenants.Management/Lombiq.Hosting.Tenants.Management.csproj @@ -34,9 +34,9 @@ - - - + + + diff --git a/Lombiq.Hosting.Tenants.MediaStorageManagement/Lombiq.Hosting.Tenants.MediaStorageManagement.csproj b/Lombiq.Hosting.Tenants.MediaStorageManagement/Lombiq.Hosting.Tenants.MediaStorageManagement.csproj index fe221651..a3b38c7d 100644 --- a/Lombiq.Hosting.Tenants.MediaStorageManagement/Lombiq.Hosting.Tenants.MediaStorageManagement.csproj +++ b/Lombiq.Hosting.Tenants.MediaStorageManagement/Lombiq.Hosting.Tenants.MediaStorageManagement.csproj @@ -34,10 +34,10 @@ - - - - + + + + From 0322d4310d91663166546b86796a35f40121e575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Sat, 16 Mar 2024 19:49:27 +0100 Subject: [PATCH 02/17] Remove redundant package reference. --- .../Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj b/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj index 13a40cd9..7d6d96ca 100644 --- a/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj +++ b/Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj @@ -43,7 +43,6 @@ - From 9b611657c6ad6dec3d1283e552b2104794d775cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Sat, 16 Mar 2024 19:49:46 +0100 Subject: [PATCH 03/17] Convert to STJ. --- .../Extensions/TestCaseUITestContextExtensions.cs | 4 ++-- .../Views/ShellSettingsEditor.cshtml | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Lombiq.Hosting.Tenants.Management.Tests.UI/Extensions/TestCaseUITestContextExtensions.cs b/Lombiq.Hosting.Tenants.Management.Tests.UI/Extensions/TestCaseUITestContextExtensions.cs index c4665351..b447d646 100644 --- a/Lombiq.Hosting.Tenants.Management.Tests.UI/Extensions/TestCaseUITestContextExtensions.cs +++ b/Lombiq.Hosting.Tenants.Management.Tests.UI/Extensions/TestCaseUITestContextExtensions.cs @@ -1,8 +1,8 @@ using Lombiq.Tests.UI.Extensions; using Lombiq.Tests.UI.Services; -using Newtonsoft.Json.Linq; using OpenQA.Selenium; using Shouldly; +using System.Text.Json.Nodes; using System.Threading.Tasks; namespace Lombiq.Hosting.Tenants.Management.Tests.UI.Extensions; @@ -58,6 +58,6 @@ private static void CheckEditorValue(this UITestContext context, string keyToChe var editorJson = string.IsNullOrEmpty(editorText) ? "{}" : editorText; var editorValue = JObject.Parse(editorJson); - editorValue.SelectToken($"TestKey.TestSubKey.TestSubOptions.{keyToCheck}")?.ToString().ShouldBeAsString(expectedValue); + editorValue.SelectNode($"TestKey.TestSubKey.TestSubOptions.{keyToCheck}")?.ToString().ShouldBeAsString(expectedValue); } } diff --git a/Lombiq.Hosting.Tenants.Management/Views/ShellSettingsEditor.cshtml b/Lombiq.Hosting.Tenants.Management/Views/ShellSettingsEditor.cshtml index 0a20b765..1ee456f1 100644 --- a/Lombiq.Hosting.Tenants.Management/Views/ShellSettingsEditor.cshtml +++ b/Lombiq.Hosting.Tenants.Management/Views/ShellSettingsEditor.cshtml @@ -1,5 +1,4 @@ @using Lombiq.Hosting.Tenants.Management.Controllers -@using Newtonsoft.Json @using OrchardCore @using OrchardCore.Mvc.Core.Utilities @using static Lombiq.Hosting.Tenants.Management.Constants.FeatureNames @@ -31,11 +30,11 @@