Commit Graph

38613 Commits

Author SHA1 Message Date
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 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
436fe29bf8 fixing build 2021-06-11 11:14:43 -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
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
Shannon
4f6e491c5f Refactor MigrationPlan to separate the executor from the plan itself. 2021-06-08 10:07:57 -06:00
Shannon
72cd832d93 Removes package actions 2021-06-07 17:53:03 -06:00
Shannon
bb793422f2 Removes package actions 2021-06-07 17:49:20 -06:00
Shannon Deminick
eb70bc313a Implements Examine/Lucene index syncing for use on Azure (#10386)
* Updates to latest examine, ensures indexes are unlocked on startup, adds more info to the diagnostics and allows for the new sync directory factory to work.

* Gets index syncing working correct and fixes reindexing to not overprocess indexes

* fix duplicate package ref

* rebuilds empty indexes and fixes config with enum

* missing file
2021-06-07 14:58:49 +02:00
Warren Buckley
c23efec854 .NETCore & SQL Docker Image for Container Isolated Development & GitHub CodeSpaces (#9835)
* .NETCore & SQL Docker Image

https://github.com/microsoft/vscode-dev-containers/tree/master/containers/dotnet-mssql

* Set the C# extension aka Omnisharp to use the umbraco-netcore-only.sln

* A new script in the postCreate of the docker image to npm install client stuff and initial dotnet build of SLN to help just running straight away

* Remove bash script - doing npm install stuff & dotnet build was hard to see log output and taking longer for image to start

* Adds in port 9000 and friendly label

* Ensure user notified about auto port forward with notification

* Comment out image min of assets as causing problems and eating way too much time up atm - need to revisit

* Automated launch & tasks VSCode JSON files - updated to run client npm install and npm run build before running website

* Update .gitattributes for line ending help for codespaces

https://code.visualstudio.com/docs/remote/troubleshooting#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files

* Tidy up

* Remove npm install from the npm run build step - kinda annoying when you re-run it

* Rather everytime attaching the debugger doing a full npm install, gulp dev and dotnet build is overkill, just build the SLN before debugging

* Update gitignore with casing rules

* Revert "Update .gitattributes for line ending help for codespaces"

This reverts commit 28316d1ba8a552751eef2f211b68531484344153.

* Sets the global user for npm as root

https://stackoverflow.com/a/45505787

* File permission stuff for NPM & Gifsicle binary source compilation from gulp-imagemin

* Revert "Comment out image min of assets as causing problems and eating way too much time up atm - need to revisit"

This reverts commit be48db9653bc58a69422d131b65955985e115e29.

* Add chromium-browser to try & get JS tests to run happy in CodeSpaces

* Set DB connection string & unattended install config to true so we can skip installer flow

* Add in ENV variables to setup the unattended install user

* Try to add SMTP4Dev from Bjarke Recommendation

* Need to specify the port mappings for SMTP4Dev

* Lovely syntax error in docker compose file

* Update ENV variables to renamed settings now this feature merged into NETCore branch by Bjarke

* Needed to match the hostname that SMTP4Dev was listening on, had assumed it would be reachable via localhost

* Fix folder naminng to make UNIX happy running JS tests

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-07 13:23:15 +02:00
Shannon Deminick
2825ec6693 Removes CallContext (#10398) 2021-06-07 13:10:50 +02:00
Shannon
3c3c9a6a47 Merge remote-tracking branch 'origin/v8/contrib' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
#	src/Umbraco.Core/Sync/DatabaseServerMessengerOptions.cs
#	src/Umbraco.Core/Sync/ISyncBootStateAccessor.cs
#	src/Umbraco.Core/Sync/NonRuntimeLevelBootStateAccessor.cs
#	src/Umbraco.Core/Sync/SyncBootState.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
#	src/Umbraco.Tests/Services/ContentTypeServiceVariantsTests.cs
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/de.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/es.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/fr.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/pl.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/ru.xml
#	src/Umbraco.Web/BatchedDatabaseServerMessenger.cs
#	src/Umbraco.Web/Compose/DatabaseServerRegistrarAndMessengerComponent.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/AbstractConfigCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/NotificationEmailCheck.cs
#	src/Umbraco.Web/HealthCheck/HealthCheckAction.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
#	src/Umbraco.Web/Search/ExamineFinalComponent.cs
2021-06-04 10:59:52 -07:00
Shannon Deminick
eb6b7cffad Merge pull request #10182 from umbraco/v8/bugfix/8893-examine-startup
Fix startup issues and timing with Examine and Nucache
2021-06-05 02:37:33 +10:00
Andy Butland
ec3bc95809 Fixed typo in AddUnattendedInstallInstallCreateUser(this method name. (#10388) 2021-06-04 12:48:43 +02:00
Bjarke Berg
213b48d159 V9: Fixed serialization issue Amount (min and max) isn't stored and working with Media picker 3 (#10370)
* https://github.com/umbraco/Umbraco-CMS/issues/10289
Fixed serialisation issue Amount (min and max) isn't stored and working with Media picker 3

* Fixed serialization issue Image Crops (label, alias, width and height) isn't stored and working with Media picker

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-06-04 12:41:47 +02:00
Bjarke Berg
bcd47db21a https://github.com/umbraco/Umbraco-CMS/issues/10382 - Fix for transitive packages 2021-06-03 14:33:03 +02:00
Matthew-Wise
c341a39306 Add a collection to allow adding CSS and JS to the back office via C# (#10310)
* Added Custom back office collection builder, to allow css / js to be added to the back office using c#

* Added call to the collection

* Added obselete attribute to PropertyEditorAssetAttribute
2021-06-02 12:28:14 +02:00
Andy Butland
cd53d7a294 Removed hard-coded email validation for healthcheck fix value. (#5557)
Made validation for healthchcls more flexible, supporting none, email and regex.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-02 12:54:11 +10:00
Bjarne Fyrstenborg
57f7776848 Add input id so click on property label set focus in input (#9477)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-02 11:20:56 +10:00
Bjarne Fyrstenborg
3c2e7759fb Support custom SVG icon in block list editor (#10365)
* Use custom SVG icon in block card

* Adjust icons in block list editor views
2021-06-02 11:00:01 +10:00
Bjarne Fyrstenborg
0990599c63 Support custom SVG icon in content app 2021-06-02 10:50:16 +10:00
Andy Butland
1f97ee8bcf Adds fields to unit test model builder for data editors. (#10363) 2021-06-01 08:15:59 +02:00
Mole
40c8bf62f7 Enable email sender to publish an event if smtp is not configured (#10352) 2021-06-01 06:41:56 +02:00
Shannon Deminick
6b6e16bdbb Updates benchmark proj to net5, adds TypeLoader benchmarks (#10338) 2021-05-31 21:13:45 +02:00
Bjarke Berg
8a0a6e62bf Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs
#	src/Umbraco.Core/Extensions/PublishedContentExtensions.cs
#	src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs
#	src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
2021-05-31 15:10:49 +02:00
Sebastiaan Janssen
3fe52d9aed Merge branch 'v8/dev' into v8/contrib 2021-05-31 09:43:50 +02:00
Sebastiaan Janssen
704f15aa9d Merge branch 'v8/8.14' into v8/dev 2021-05-31 09:42:34 +02:00
Sebastiaan Janssen
d1130a43ab Merge branch 'v8/8.13' into v8/8.14 2021-05-31 09:42:15 +02:00
Sebastiaan Janssen
4f3ab4fd99 Merge branch 'v8/8.12' into v8/8.13
# Conflicts:
#	src/SolutionInfo.cs
2021-05-31 09:41:48 +02:00
Sebastiaan Janssen
0653dcb849 Merge branch 'v8/8.11' into v8/8.12
# Conflicts:
#	src/SolutionInfo.cs
2021-05-31 09:40:59 +02:00
Sebastiaan Janssen
042e296d8f Bump version to 8.12.3 2021-05-31 09:21:44 +02:00
Sebastiaan Janssen
fc417e8ed8 Bump version to 8.11.3 2021-05-31 09:18:12 +02:00
Vlael Layug
1c630e3c5f inject clearAddUserForm() to inviteUser condition 2021-05-28 09:35:49 +02:00
Bjarne Fyrstenborg
2697431de6 Fix issue with extend of object in keyboard service 2021-05-28 17:10:21 +10:00
Bjarne Fyrstenborg
7cccbb3fbf Replaced angular.extend with Utilities.extend (#10023)
* Replace angular.extend with Utilities.extend

* Replace more references of angular.extend with Utilities.extend

* Replace angular.extend

* Replace last reference of angular.extend except in Utilities itself

* Use spread operator

* Add spread operator

* Use existing format with empty destination object

* Configurate Babel to work with JS spread operator

* Use default for loose property which is "false"

* use alias for angular.extend - removes need for any other changes and makes multiple arguments easy

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-05-28 09:25:56 +10:00
patrickdemooij9
3440cbbac9 Fixed 10144: Prevalue alias not set (#10163)
* Fixed 10144: Prevalue alias not set

* Remove console.log

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-05-28 09:14:07 +10:00
Sebastiaan Janssen
7d25439b09 Merge branch 'v8/dev' into v8/contrib 2021-05-27 12:28:01 +02:00
Sebastiaan Janssen
a27c6a7404 Merge branch 'v8/8.14' into v8/dev 2021-05-27 12:27:40 +02:00
Sebastiaan Janssen
d81fac9753 Bump version to 8.14.0 2021-05-27 10:42:23 +02:00
Sebastiaan Janssen
a845d2bffd Shows a warning for people tempted to switch to the new media picker 2021-05-27 10:41:56 +02:00
Vlael Layug
38f5d8329d added cdata on sectionMandatoryDesc for other languages 2021-05-27 08:27:08 +10:00