Commit Graph

38649 Commits

Author SHA1 Message Date
Shannon
ad84c1591e Starts implementing ability to manually run pending migrations from the back office 2021-06-16 15:34:20 -06:00
Shannon
7ec01f232f Removes the runtime PackageMigrations state, the state is just run if unattended migrations are disabled. 2021-06-16 13:53:01 -06:00
Shannon
15f9d675d2 fixes package xml 2021-06-16 13:37:48 -06:00
Shannon
37269a1ac7 Fixes tests 2021-06-16 13:25:52 -06:00
Shannon
9f02b14a5d Fixes Dictionary packaging to ensure an xml hierarchy 2021-06-16 13:14:28 -06:00
Shannon
095576352b Fixes up Key vs Id, moves tests to correct namespace, fix tests 2021-06-16 11:17:41 -06:00
Bjarke Berg
c783da68ca Fix one more test 2021-06-16 11:40:18 +02:00
Bjarke Berg
64233466b7 Added guids to embedded test packages (Some tests are still failing) 2021-06-16 11:23:12 +02:00
Shannon
566a3ab993 Merge remote-tracking branch 'origin/v9/task/package-refactor' into v9/task/package-data-with-guids
# Conflicts:
#	src/Umbraco.Core/Packaging/InstallationSummary.cs
#	src/Umbraco.Infrastructure/Install/UnattendedUpgrader.cs
#	src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs
2021-06-15 13:55:32 -06:00
Shannon
52ce0c8f60 fix automatic migrations to not validate initial state, fixes packaging GUIDs for multiple entities. 2021-06-15 13:49:03 -06:00
Shannon
a187a4ae18 Ensures the GUID for doc types and media types remains consistent for package installation based on what is in the xml. 2021-06-15 11:59:34 -06:00
Shannon
0e5f0304e2 Ensures macros are packaged and used with their GUID 2021-06-15 11:38:24 -06:00
Shannon Deminick
de2fb47b78 Implements unattended package migrations for both explicit and implicit migrations (#10418)
* Clean up and changes to backoffice for the nuget only packages

* temp commit of package logic removal

* Lots of package code cleanup and removal

* Removes old package data from the test package xml

* Updates packaging code to take in XDocument instead of a file since we'll not be dealing with files, starts creating expressions for the package migrations scripting.

* fixing tests

* Fixes runtime state and boot failed middleware so that it actually runs. Separates out unattended install/upgrade into notification handlers.

* Gets unattended package migrations working and running

* Gets embedded package.xml resources able to install from package migration.

* Implements automatic package migrations for package that just declare an xml data manifest.

* fix build

* small cleanups

* fix build

* adds some tests

* Fix export test

* Fix newlines in test for linux

* Typo

* removes old todos and updates AutomaticPackgeMigrationPlan to use getter with backing field.

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-15 07:05:57 +02:00
Shannon
b8ac0b7471 Update dictionary package data to use GUID 2021-06-14 15:31:12 -06:00
Shannon
6db0a2e27d Merge branch 'v9/task/package-refactor-startup-checks' of https://github.com/umbraco/Umbraco-CMS into v9/task/package-refactor-startup-checks
# Conflicts:
#	src/Umbraco.Infrastructure/Packaging/AutomaticPackageMigrationPlan.cs
2021-06-14 14:23:42 -06:00
Shannon
10016c74f9 removes old todos and updates AutomaticPackgeMigrationPlan to use getter with backing field. 2021-06-14 14:22:11 -06:00
Bjarke Berg
d7b04cd819 Typo 2021-06-14 12:47:09 +02:00
Bjarke Berg
9480c8a9c5 Fix newlines in test for linux 2021-06-14 09:54:47 +02:00
Bjarke Berg
3faf0957a9 Fix export test 2021-06-14 09:04:03 +02:00
Shannon
0268793b2d adds some tests 2021-06-11 13:07:41 -06:00
Shannon
50fd7b1460 fix build 2021-06-11 12:49:18 -06:00
Shannon
1297254cc3 small cleanups 2021-06-11 12:47:35 -06:00
Shannon
e8201a09ef fix build 2021-06-11 12:08:09 -06:00
Shannon
6b167b30ce Merge remote-tracking branch 'origin/v9/task/package-refactor' into v9/task/package-refactor-startup-checks 2021-06-11 11:55:39 -06:00
Shannon Deminick
dc6f1a6086 Merge pull request #10449 from umbraco/v9/task/package-refactor-startup-checks-PR1
Implements package migration startup checks
2021-06-12 03:54:52 +10:00
Shannon
76b59bc4f1 Merge branch 'v9/task/package-refactor-startup-checks-PR1' into v9/task/package-refactor-startup-checks 2021-06-11 11:50:25 -06:00
Shannon
436fe29bf8 fixing build 2021-06-11 11:14:43 -06:00
Shannon
daceca54a3 Implements automatic package migrations for package that just declare an xml data manifest. 2021-06-11 10:50:35 -06:00
Shannon
13583514ae Gets embedded package.xml resources able to install from package migration. 2021-06-10 13:06:38 -06:00
Shannon
2114667e65 Gets unattended package migrations working and running 2021-06-10 10:21:58 -06:00
Shannon
144014dc73 Fixes runtime state and boot failed middleware so that it actually runs. Separates out unattended install/upgrade into notification handlers. 2021-06-10 08:06:17 -06:00
Shannon
c9ac62995d fixing tests 2021-06-10 05:10:19 -06:00
Shannon
7a0134fc74 Updates packaging code to take in XDocument instead of a file since we'll not be dealing with files, starts creating expressions for the package migrations scripting. 2021-06-09 16:56:42 -06:00
Shannon
9252210819 Removes old package data from the test package xml 2021-06-09 15:34:57 -06:00
Shannon
607775a5a1 Merge branch 'v9/task/package-refactor-startup-checks-temp' into v9/task/package-refactor-startup-checks 2021-06-09 15:24:43 -06:00
Shannon
14806bc293 Lots of package code cleanup and removal 2021-06-09 15:18:47 -06:00
Shannon
1737052eb3 Merge remote-tracking branch 'origin/v9/task/package-refactor-backoffice-updates' into v9/task/package-refactor-startup-checks-temp
# Conflicts:
#	src/Umbraco.Core/Migrations/MigrationPlan.cs
#	src/Umbraco.Core/Models/Packaging/CompiledPackage.cs
#	src/Umbraco.Core/Models/Packaging/IPackageInfo.cs
#	src/Umbraco.Core/Packaging/CompiledPackageXmlParser.cs
#	src/Umbraco.Core/Packaging/IPackageInstallation.cs
#	src/Umbraco.Core/Packaging/PackageDefinition.cs
#	src/Umbraco.Core/Packaging/PackageFileInstallation.cs
#	src/Umbraco.Core/Packaging/PackageMigrationPlan.cs
#	src/Umbraco.Core/Packaging/PackagesRepository.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs
#	src/Umbraco.Infrastructure/Packaging/PackageInstallation.cs
#	src/Umbraco.Infrastructure/RuntimeState.cs
2021-06-09 10:55:04 -06:00
Shannon
0f1e7bd647 temp commit of package logic removal 2021-06-09 10:43:57 -06:00
Shannon Deminick
99ff3552c2 Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs 2021-06-10 00:55:03 +10:00
Shannon Deminick
0dfbbedefa Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-10 00:53:35 +10:00
Shannon Deminick
c7c2b1dfd4 Update src/Umbraco.Core/Services/IKeyValueService.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-10 00:53:17 +10:00
Shannon Deminick
36baeb0615 Update src/Umbraco.Core/Persistence/Repositories/IKeyValueRepository.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-10 00:53:11 +10:00
Bjarke Berg
c69d689a36 Clean up and changes to backoffice for the nuget only packages 2021-06-09 15:50:40 +02:00
Bjarke Berg
26515117b0 Fix build issue after merge.. 2021-06-09 08:48:32 +02:00
Bjarke Berg
e616332bc8 Merge branch 'v9/task/package-refactor' into v9/task/package-refactor-startup-checks 2021-06-09 08:26:54 +02:00
Shannon Deminick
8eb0f45cf2 Refactor MigrationPlan to separate the executor from the plan itself. (#10417)
* Refactor MigrationPlan to separate the executor from the plan itself.

* cleanup
2021-06-09 08:18:15 +02:00
Shannon
7d0572f2d1 streamline runtime level checks 2021-06-08 16:32:26 -06:00
Shannon
26f989124d New package migration collection, updates runtime state to check for package migrations, adds tests for this. 2021-06-08 14:56:45 -06:00
Shannon
77017f25b3 Adds KeyValueService Find and tests 2021-06-08 10:58:17 -06:00
Shannon
a46ac7c98c cleanup 2021-06-08 10:13:05 -06:00