Skip to content

Commit

Permalink
Merge pull request #895 from Lombiq/issue/OSOE-903
Browse files Browse the repository at this point in the history
OSOE-903: Upgrade to Orchard Core 2.1.2
  • Loading branch information
sarahelsaig authored Dec 4, 2024
2 parents 7f96700 + 89d02ba commit 101a923
Show file tree
Hide file tree
Showing 27 changed files with 36 additions and 74 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Note that this solution also has an Orchard 1 counterpart, [Lombiq's Open-Source
- [`Lombiq.Hosting.Tenants.Maintenance`](https://github.com/Lombiq/Hosting-Tenants/tree/dev/Lombiq.Hosting.Tenants.Maintenance): With the help of this module, you can execute maintenance tasks on tenants.
- [`Lombiq.Hosting.Tenants.Management`](https://github.com/Lombiq/Hosting-Tenants/tree/dev/Lombiq.Hosting.Tenants.Management): With the help of this module, you can set restrictions on tenant creation and set tenant level shell settings in the tenant editor.
- [`Lombiq.JsonEditor`](https://github.com/Lombiq/Orchard-JSON-Editor): Orchard Core module for displaying a JSON Editor like on [jsoneditoronline.org](https://jsoneditoronline.org/). Watch a demo video of it from the Orchard Community Meeting [here](https://www.youtube.com/watch?app=desktop&v=nFhRjhXTKAY).
- [`Lombiq.LoginAsAnybody`](https://github.com/Lombiq/Orchard-Login-as-Anybody): With the help of this module, a user with the site owner permission can log in as anybody on the admin dashboard.
- [`Lombiq.LoginAsAnybody`](https://github.com/Lombiq/Orchard-Login-as-Anybody): With the help of this module, an administrator can log in as anybody on the admin dashboard.
- [`Lombiq.OSOCE.Samples`](https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/tree/dev/src/Modules/Lombiq.OSOCE.Samples): This is a placeholder module that will contain sample code for UI tests and demonstration content for our open-source Orchard Core extensions.
- [`Lombiq.Privacy`](https://github.com/Lombiq/Orchard-Privacy): Orchard module containing features related to data protection/privacy and the EU law on it, the [General Data Protection Regulation](https://eur-lex.europa.eu/legal-content/EN/TXT/?qid=1462439808430&uri=CELEX:32016R0679) (GDPR). Check out a demo video of this module [here](https://www.youtube.com/watch?v=GnyYL9Zdo8Q). **Important!** Using this module will not make your site GDPR-compliant alone. Do not forget to create a privacy policy page that you need to link to from the various consent-asking features.
- [`Lombiq.TrainingDemo`](https://github.com/Lombiq/Orchard-Training-Demo-Module): Demo Orchard Core module for training purposes guiding you to become an Orchard developer. Note that this module also has an Orchard 1.x version in the [`dev-orchard-1` branch of the repository](https://github.com/Lombiq/Orchard-Training-Demo-Module/tree/dev-orchard-1). If you prefer tutorial videos more then check out the [Dojo Course 3, the complete Orchard Core tutorial series](https://orcharddojo.net/orchard-training/dojo-course-3-the-full-orchard-core-tutorial).
Expand Down
6 changes: 3 additions & 3 deletions src/Lombiq.OSOCE.Web/Lombiq.OSOCE.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.Admin.Abstractions" Version="2.0.1" />
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="2.0.1" />
<PackageReference Include="OrchardCore.Logging.NLog" Version="2.0.1" />
<PackageReference Include="OrchardCore.Admin.Abstractions" Version="2.1.2" />
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="2.1.2" />
<PackageReference Include="OrchardCore.Logging.NLog" Version="2.1.2" />
<PackageReference Include="SixLabors.ImageSharp.Web" Version="3.1.3" />
</ItemGroup>

Expand Down
40 changes: 1 addition & 39 deletions src/Lombiq.OSOCE.Web/Recipes/Lombiq.OSOCE.Tests.recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"Lombiq.Hosting.Tenants.Management.ShellSettingsEditor",
"Lombiq.Hosting.Tenants.Maintenance",
"Lombiq.Hosting.Tenants.Maintenance.UpdateSiteUrl",
"Lombiq.Hosting.Tenants.Maintenance.AddSiteOwnerPermissionToRole",
"Lombiq.Hosting.Tenants.Maintenance.AddAdministratorRoleToUsersWithRole",
"Lombiq.Hosting.Tenants.Maintenance.ChangeUserSensitiveContent",
"Lombiq.Hosting.Tenants.IdleTenantManagement.ShutDownIdleTenants",
"Lombiq.Hosting.Tenants.EmailQuotaManagement",
Expand Down Expand Up @@ -166,44 +166,6 @@
"ManageWorkflows",
"ExecuteWorkflows"
]
},
{
"Name": "Administrator",
"Description": "Administrator role",
"Permissions": [
"ManageSettings",
"AccessAdminPanel",
"ManageAdminSettings",
"ManageUsers",
"ManageRoles",
"SiteOwner",
"ManageTenants",
"ApplyTheme",
"PublishContent",
"EditContent",
"DeleteContent",
"PreviewContent",
"CloneContent",
"AccessContentApi",
"ListContent",
"ViewContentTypes",
"EditContentTypes",
"ManageMediaContent",
"ManageAttachedMediaFieldsFolder",
"ManageMediaProfiles",
"ViewMediaOptions",
"ManageAssetCache",
"ViewAzureMediaOptions",
"ManageBackgroundTasks",
"ManageEmailSettings",
"ManageWorkflows",
"ExecuteWorkflows",
"SetHomepage",
"Import",
"Export",
"ViewAuditTrail",
"ManageAuditTrailSettings"
]
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.AuditTrailExtensions
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.Hosting.Tenants
Submodule Lombiq.Hosting.Tenants updated 35 files
+4 −4 Lombiq.Hosting.Tenants.Admin.Login/Lombiq.Hosting.Tenants.Admin.Login.csproj
+1 −1 Lombiq.Hosting.Tenants.Admin.Login/Permissions/TenantAdminPermissions.cs
+1 −1 ...q.Hosting.Tenants.EmailQuotaManagement.Tests.UI/Lombiq.Hosting.Tenants.EmailQuotaManagement.Tests.UI.csproj
+11 −0 Lombiq.Hosting.Tenants.EmailQuotaManagement/CompatibilitySuppressions.xml
+8 −8 Lombiq.Hosting.Tenants.EmailQuotaManagement/Lombiq.Hosting.Tenants.EmailQuotaManagement.csproj
+1 −1 Lombiq.Hosting.Tenants.EmailQuotaManagement/Readme.md
+3 −20 Lombiq.Hosting.Tenants.EmailQuotaManagement/Services/EmailQuotaService.cs
+1 −1 Lombiq.Hosting.Tenants.EmailQuotaManagement/Services/IEmailQuotaService.cs
+6 −6 Lombiq.Hosting.Tenants.EmailQuotaManagement/Services/QuotaManagingSmtpServiceDecorator.cs
+3 −3 Lombiq.Hosting.Tenants.EnvironmentRobots/Lombiq.Hosting.Tenants.EnvironmentRobots.csproj
+5 −5 Lombiq.Hosting.Tenants.FeaturesGuard/Lombiq.Hosting.Tenants.FeaturesGuard.csproj
+7 −1 Lombiq.Hosting.Tenants.IdleTenantManagement.Tests.UI/Extensions/IdleTenantManagementExtensions.cs
+16 −9 Lombiq.Hosting.Tenants.IdleTenantManagement.Tests.UI/Extensions/TestCaseUITestContextExtensions.cs
+1 −1 ...q.Hosting.Tenants.IdleTenantManagement.Tests.UI/Lombiq.Hosting.Tenants.IdleTenantManagement.Tests.UI.csproj
+3 −3 Lombiq.Hosting.Tenants.IdleTenantManagement/Lombiq.Hosting.Tenants.IdleTenantManagement.csproj
+18 −0 Lombiq.Hosting.Tenants.Maintenance.Tests.UI/CompatibilitySuppressions.xml
+4 −4 ...ting.Tenants.Maintenance.Tests.UI/Extensions/MaintenanceOrchardCoreUITestExecutorConfigurationExtensions.cs
+45 −16 Lombiq.Hosting.Tenants.Maintenance.Tests.UI/Extensions/TestCaseUITestContextExtensions.cs
+4 −8 Lombiq.Hosting.Tenants.Maintenance.Tests.UI/Lombiq.Hosting.Tenants.Maintenance.Tests.UI.csproj
+0 −19 ....Hosting.Tenants.Maintenance.Tests.UI/Recipes/Lombiq.Hosting.Tenants.Maintenance.Tests.UI.Users.recipe.json
+39 −0 Lombiq.Hosting.Tenants.Maintenance/CompatibilitySuppressions.xml
+1 −1 Lombiq.Hosting.Tenants.Maintenance/Constants/FeatureNames.cs
+8 −8 Lombiq.Hosting.Tenants.Maintenance/Lombiq.Hosting.Tenants.Maintenance.csproj
+7 −0 ...ce/Maintenance/AddAdministratorRoleToUsersWithRole/AddAdministratorRoleToUsersWithRoleMaintenanceOptions.cs
+57 −0 ...e/Maintenance/AddAdministratorRoleToUsersWithRole/AddAdministratorRoleToUsersWithRoleMaintenanceProvider.cs
+5 −5 Lombiq.Hosting.Tenants.Maintenance/Maintenance/AddAdministratorRoleToUsersWithRole/Startup.cs
+0 −7 ...ants.Maintenance/Maintenance/AddSiteOwnerPermissionToRole/AddSiteOwnerPermissionToRoleMaintenanceOptions.cs
+0 −41 ...nts.Maintenance/Maintenance/AddSiteOwnerPermissionToRole/AddSiteOwnerPermissionToRoleMaintenanceProvider.cs
+1 −1 ....Tenants.Maintenance/Maintenance/ChangeUserSensitiveContent/ChangeUserSensitiveContentMaintenanceOptions.cs
+4 −3 Lombiq.Hosting.Tenants.Maintenance/Manifest.cs
+4 −4 Lombiq.Hosting.Tenants.Maintenance/Readme.md
+6 −0 Lombiq.Hosting.Tenants.Maintenance/Services/IMaintenanceManager.cs
+13 −0 Lombiq.Hosting.Tenants.Maintenance/Services/MaintenanceManager.cs
+3 −3 Lombiq.Hosting.Tenants.Management/Lombiq.Hosting.Tenants.Management.csproj
+4 −4 Lombiq.Hosting.Tenants.MediaStorageManagement/Lombiq.Hosting.Tenants.MediaStorageManagement.csproj
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.JsonEditor
8 changes: 4 additions & 4 deletions src/Modules/Lombiq.OSOCE.Samples/Lombiq.OSOCE.Samples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.Module.Targets" Version="2.0.0" />
<PackageReference Include="OrchardCore.ContentManagement" Version="2.0.0" />
<PackageReference Include="OrchardCore.ContentTypes.Abstractions" Version="2.0.0" />
<PackageReference Include="OrchardCore.DisplayManagement" Version="2.0.0" />
<PackageReference Include="OrchardCore.Module.Targets" Version="2.1.0" />
<PackageReference Include="OrchardCore.ContentManagement" Version="2.1.0" />
<PackageReference Include="OrchardCore.ContentTypes.Abstractions" Version="2.1.0" />
<PackageReference Include="OrchardCore.DisplayManagement" Version="2.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.UIKit
2 changes: 1 addition & 1 deletion src/Utilities/Lombiq.SetupExtensions
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public BehaviorLoginAsAnybodyTests(ITestOutputHelper testOutputHelper)

[Fact]
public Task SwitchingUserShouldWorkCorrectly() =>
ExecuteTestAfterSetupAsync(context => context.TestLoginAsAnybodyAsync());
ExecuteTestAfterSetupAsync(context => context.SwitchingUserShouldWorkCorrectlyAsync());

[Fact]
public Task PermissionCheckShouldWorkCorrectly() =>
ExecuteTestAfterSetupAsync(
context => context.TestLoginAsAnybodyAuthorizationAsync(),
context => context.PermissionCheckShouldWorkCorrectlyAsync(),
changeConfiguration: Configurations.IgnoreUnauthorizedBrowserLogEntries);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ public BehaviorMaintenanceTests(ITestOutputHelper testOutputHelper)
}

[Fact]
public Task MaintenanceTaskShouldBeExecutedSuccessfully() =>
public Task UpdateSiteUrlMaintenanceTaskShouldBeExecutedSuccessfully() =>
ExecuteTestAfterSetupAsync(
context => context.TestSiteUrlMaintenanceExecutionAsync(),
configuration => configuration.SetUpdateSiteUrlMaintenanceConfiguration());

[Fact]
public Task AddSiteOwnerPermissionToRoleMaintenanceTaskShouldBeExecutedSuccessfully() =>
public Task AddAdministratorRoleToUsersWithRoleMaintenanceTaskShouldBeExecutedSuccessfully() =>
ExecuteTestAfterSetupAsync(
context => context.TestSiteOwnerPermissionToRoleMaintenanceExecutionAsync(),
configuration => configuration.SetAddSiteOwnerPermissionToRoleMaintenanceConfiguration());
context => context.TestAdministratorRoleToUsersWithRoleMaintenanceExecutionAsync(),
configuration => configuration.SetAddAdministratorRoleToUsersWithRoleConfiguration());

// This test uses ExecuteTestAsync with a different setup delegate instead of ExecuteTestAfterSetupAsync because the
// maintenance does changes to the DB on startup only necessary for this test (like depersonalizing user accounts).
Expand Down

0 comments on commit 101a923

Please sign in to comment.