Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-903: Upgrade to Orchard Core 2.1.2 #895

Merged
merged 23 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b06b641
Updating OC to 2.1.1
Piedone Nov 27, 2024
194659a
Merge remote-tracking branch 'origin/issue/OSOE-917' into issue/OSOE-903
Piedone Nov 27, 2024
a87f631
Merge remote-tracking branch 'origin/issue/OSOE-917' into issue/OSOE-903
Piedone Nov 27, 2024
a240474
Temporarily skipping OrchardCoreApiClientShouldWork
Piedone Nov 27, 2024
641f932
IdleTenantManagement test optimization
Piedone Nov 27, 2024
6bb687d
Fixing Maintenance and its tests
Piedone Nov 27, 2024
4b437f4
Spelling
Piedone Nov 28, 2024
d1ccd60
Adapting to Site Owner being deprecated
Piedone Nov 28, 2024
58bc73c
Spelling
Piedone Nov 28, 2024
9089b6e
Fixing ContentEditors MissingMethodException
Piedone Nov 28, 2024
8ed11dd
Updating to Orchard Core 2.1.0
Piedone Nov 28, 2024
b0102c7
Simplfying Deployment classes
Piedone Nov 28, 2024
04216ab
Fixing deprecations
Piedone Nov 28, 2024
cc065f9
Outdated note
Piedone Nov 28, 2024
e6c742f
Adding warning about dynamic cache
Piedone Nov 28, 2024
5832899
Merge remote-tracking branch 'origin/issue/OSOE-917' into issue/OSOE-903
Piedone Nov 28, 2024
3480bbc
Merge remote-tracking branch 'origin/dev' into issue/OSOE-903
Piedone Nov 28, 2024
9433731
Updating to OC 2.1.2
Piedone Nov 28, 2024
f70557c
Fixing NuGet publishing
Piedone Nov 28, 2024
482493c
Merge remote-tracking branch 'origin/dev' into issue/OSOE-903
Piedone Dec 1, 2024
8de34a9
Updating Walkthroughs
Piedone Dec 1, 2024
95b1552
Merge remote-tracking branch 'origin/dev' into issue/OSOE-903
Piedone Dec 4, 2024
89d02ba
[skip ci]
sarahelsaig Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.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
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
Loading