Compare commits

..
Author SHA1 Message Date
Andy Butland c6ab394947 Merge branch 'release/10.8.11' into v10/dev
# Conflicts:
#	version.json
2025-07-02 06:32:18 +02:00
Kenn JacobsenandGitHub d8f68d2c40 Merge commit from fork 2025-06-24 08:39:17 +02:00
Andy Butland ff88617db0 Bumped version to 10.8.11. 2025-06-05 07:49:09 +02:00
Andy Butland 9f912aea0e Merge branch 'release/10.8.10' into v10/dev
# Conflicts:
#	version.json
2025-05-06 07:15:10 +02:00
Andy Butland ba95c12f09 Resolved failures in unit tests. 2025-05-06 05:37:30 +02:00
Andy ButlandandGitHub 14fbd20665 Merge commit from fork
* Backport user enumeration fix.

* Supress warning on use of .NET 6 with TimeProvider dependency.

* Replace TimeProvider with Stopwatch, as the former isn't tested against .NET 6.0 and generates warnings.

* Remove full path details from exception when requesting a path outside of the physical file system's root.

* Added randomness to login duration.

* Ensured against negative duration.
2025-05-06 05:11:03 +02:00
mole 2d8b5e8786 Use windows agent for nuget push 2025-04-28 10:48:26 +02:00
Andy Butland 747e095178 Bump version to 10.8.10. 2025-04-22 10:06:27 +02:00
Andy Butland 1cfa5a225e Merge branch 'release/10.8.9' into v10/dev
# Conflicts:
#	version.json
2025-03-11 09:20:51 +01:00
7888b9a4ce Merge commit from fork
* Bumped version to 10.8.9.

* Fixed parsing of node if in content and media permission querystring handlers to retrieve expected value when multiple are provided in the querystring.

# Conflicts:
#	tests/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/ContentPermissionsQueryStringHandlerTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Authorization/MediaPermissionsQueryStringHandlerTests.cs

* Add HttpPost attributes to backoffice endpoints that should only accept post requests.

* Narrow PermissionQueryString parsing to the releveant UmbracoObjectType

* Add missed update from v10

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
2025-03-11 05:11:08 +01:00
Andy Butland e31582b297 Backport bumped imagesharp to prevent CVE-2025-27598 #18602 2025-03-09 08:58:25 +01:00
Nikolaj Geisle 75cc017a18 Merge branch 'release/10.8.8' into v10/dev
# Conflicts:
#	version.json
2025-01-23 11:08:09 +01:00
d60137e6da Merge commit from fork
* Ensure preview can only be requested with a valid culture code.

* Update src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Restricted to predefined culture codes.

---------

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2025-01-20 14:14:28 +01:00
Andy Butland 9f9c88781a Bumped version to 10.8.8. 2025-01-07 10:08:01 +01:00
c7014e159b Sort manifest file paths alphabetically (#14466)
* Sort manifest file paths alphabetically

* Update src/Umbraco.Infrastructure/Manifest/ManifestParser.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

---------

Co-authored-by: Ronald Barendse <ronald@barend.se>
2024-11-21 16:19:48 +01:00
Zeegaan 31e1acce67 Merge remote-tracking branch 'origin/release/10.8.7' into v10/dev
# Conflicts:
#	version.json
2024-10-23 08:48:08 +02:00
Sven GeusensandNikolaj Geisle 35c51a029a Prevents XSS when viewing an uploaded SVG
from the media-info and image-preview components.
2024-10-21 12:42:06 +02:00
ElitsaandNikolaj Geisle 8c1128c85b Update the HttpContext's user with the authenticated user's principal 2024-10-21 12:41:42 +02:00
ElitsaandNikolaj Geisle c9021ab2d2 Reduce the time when getRemainingTimeoutSeconds request is made from 30s to 20s, so fewer calls are made 2024-10-21 12:41:18 +02:00
ElitsaandNikolaj Geisle 67a71f8f82 Make sure that the client shows the login screen as close to the server's timout time as possible 2024-10-21 12:41:17 +02:00
Andreas ZerbstandAndreas Zerbst edd0a4a4a9 Updated message pack (#17320)
(cherry picked from commit 11270eaaf5)
2024-10-21 11:46:43 +02:00
Andreas ZerbstandGitHub 11270eaaf5 Updated message pack (#17320) 2024-10-21 11:00:47 +02:00
Bjarke BergandGitHub 2d71b5a63b Updated image sharp to a non vulnerable version (#17290) 2024-10-16 12:16:38 +02:00
Nikolaj Geisle 9bab74d30e Bump version.json 2024-10-07 11:55:34 +02:00
Bjarke Berg 0ee0db8071 Merge remote-tracking branch 'refs/remotes/origin/release/10.8' into v10/dev
# Conflicts:
#	version.json
2024-05-21 08:44:27 +02:00
Bjarke BergandGitHub c17d4e1a60 Merge pull request from GHSA-j74q-mv2c-rxmp 2024-05-17 08:37:51 +02:00
Bjarke Berg fee222daff Bump version 2024-05-03 09:29:37 +02:00
119fde2033 V10: Fix for fallback file upload (#14892) (#15868)
* Fix for fallback file upload (#14892)

* Added check for file type

* Removed unneeded null checks and fixed tabs

* Cleaning

* Cleanups, cleanups, and removal of unneeded null checks

* Reverted removal of relationshipservice

* Revert null check removals (too risky)

---------

Co-authored-by: Ambert van Unen <AvanUnen@ilionx.com>
Co-authored-by: Laura Neto <12862535+lauraneto@users.noreply.github.com>

(cherry picked from commit 0b5d1f8aa6)

* Fix up formatting

---------

Co-authored-by: Ambert van Unen <ambertvu@gmail.com>
2024-04-24 13:44:20 +02:00
Andy ButlandandGitHub 52c21b0fca Updates JSON schema for Umbraco 10 with latest references for Forms and Deploy (#15918) 2024-03-20 13:20:40 +01:00
Bjarke Berg 99d5a7e609 Merge remote-tracking branch 'origin/release/10.8' into v10/dev 2024-03-19 08:43:59 +01:00
JeyandBjarke Berg 7e1d1a1968 Merge pull request from GHSA-552f-97wf-pmpq
Co-authored-by: jey <jey@umbraco.dk>
(cherry picked from commit b743f6a2df)
2024-03-18 08:28:25 +01:00
b743f6a2df Merge pull request from GHSA-552f-97wf-pmpq
Co-authored-by: jey <jey@umbraco.dk>
2024-03-18 08:27:41 +01:00
Bjarke Berg a2511ff09b Fixing locking issues for document type saves. (#15854)
* Added  ExecuteNonQuery(DbCommand command) on database to ensure we call OnExecutingCommand and OnExecutedCommand when executing DbCommands

* Added Cache Instructions lock, to avoid deadlocks

* Optimized read locks for nucache when only one content type is rebuilt

* Optimized the SqlServer locks, so only one command is executed (and thereby roundtrip) per lock instead of two

* Avoid breaking changes

* Cosmetic changes

* Take locks if everything is rebuild

* Use same lock in scopes, to avoid potential deadlocks between the two

* Use eager locks in PublishedSnapshotService.cs

* Added timeouts to some of the application locks

* Revert "Use eager locks in PublishedSnapshotService.cs"

This reverts commit 01873aae97.

* Revert "Added Cache Instructions lock, to avoid deadlocks"

This reverts commit e3fca7c12a.

* Use single readlock call to lock many

* Use eager locks for reads

* Eager write locks

* Ignore test of lazy locks

* Unique timeout exception messages

---------

Co-authored-by: kjac <kja@umbraco.dk>
(cherry picked from commit 2c23e67c65)
2024-03-15 14:55:20 +01:00
2c23e67c65 Fixing locking issues for document type saves. (#15854)
* Added  ExecuteNonQuery(DbCommand command) on database to ensure we call OnExecutingCommand and OnExecutedCommand when executing DbCommands

* Added Cache Instructions lock, to avoid deadlocks

* Optimized read locks for nucache when only one content type is rebuilt

* Optimized the SqlServer locks, so only one command is executed (and thereby roundtrip) per lock instead of two

* Avoid breaking changes

* Cosmetic changes

* Take locks if everything is rebuild

* Use same lock in scopes, to avoid potential deadlocks between the two

* Use eager locks in PublishedSnapshotService.cs

* Added timeouts to some of the application locks

* Revert "Use eager locks in PublishedSnapshotService.cs"

This reverts commit 01873aae97.

* Revert "Added Cache Instructions lock, to avoid deadlocks"

This reverts commit e3fca7c12a.

* Use single readlock call to lock many

* Use eager locks for reads

* Eager write locks

* Ignore test of lazy locks

* Unique timeout exception messages

---------

Co-authored-by: kjac <kja@umbraco.dk>
2024-03-15 10:56:02 +01:00
Bjarke Berg 8e837d387d Merge remote-tracking branch 'origin/v10/dev' into release/10.8
# Conflicts:
#	version.json
2024-03-14 14:53:42 +01:00
Bjarke Berg 801fb5f885 Bump version 2024-03-14 14:48:09 +01:00
Bjarke BergandGitHub ed517ecd86 Update Imagesharp (#15885) 2024-03-14 14:31:30 +01:00
Bjarke Berg b5e46ba880 Merge remote-tracking branch 'origin/release/10.8' into v10/dev 2024-02-06 11:07:16 +01:00
Nikolaj GeisleandGitHub cbf9f9bcd1 Merge pull request from GHSA-gvpc-3pj6-4m9w
* Add MarkDownPropertyValueEditor with html sanitizer

* Implement IMarkdownSanitizer.
2024-02-06 09:53:40 +01:00
Bjarke Berg 2735f17ed8 Merge remote-tracking branch 'origin/release/10.8' into v10/dev
# Conflicts:
#	version.json
2024-02-01 11:09:47 +01:00
Ronald BarendseandBjarke Berg e37cf30690 Skip cache refresher operations for content blueprints (#15633)
* Skip cache refresher operations for content blueprints

* Fix JsonPayload deserialization error by adding a default constructor and property initializers

* Obsolete JsonPayload constructor and update usages

(cherry picked from commit 3e28e10cdf)
2024-02-01 10:00:42 +01:00
Bjarke BergandGitHub 118ac8e230 V10+ version of https://github.com/umbraco/Umbraco-CMS/pull/15638 (#15664) 2024-02-01 09:58:42 +01:00
Ronald BarendseandGitHub 3e28e10cdf Skip cache refresher operations for content blueprints (#15633)
* Skip cache refresher operations for content blueprints

* Fix JsonPayload deserialization error by adding a default constructor and property initializers

* Obsolete JsonPayload constructor and update usages
2024-02-01 09:55:09 +01:00
AleksanderandBjarke Berg b18b6cc5e7 Pass cache level to properties when creating published content in nucache
(cherry picked from commit d9d2b66e85)

# Conflicts:
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs
(cherry picked from commit 040495f359)
2024-01-31 10:52:01 +01:00
Elitsa MarinovskaandBjarke Berg 7a04baf9ef V10: Pass in variation context to published cache (#15563)
* Make sure that we always have variation context

* Fix references

(cherry picked from commit 57b3a196bf)
2024-01-30 15:57:33 +01:00
Sven GeusensandBjarke Berg bc1ddaed8c Run the same cleanup with scaffolding content as when copying. (#15541)
* Run the same cleanup with scaffolding content as when copying.

- Added a new ContentScaffoldedNotification
- Published the notification when a new scaffold has been created from a blueprint (content template)
- Linked up the ComplextPEContent handler to do the same cleanup for the new notification as when copying.
- registered handlers to the event for blocklist, blockgrid and nested content

* PR pattern matching suggestion

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
(cherry picked from commit dff90c6ec0)
2024-01-30 15:54:33 +01:00
Bjarke Berg 860afb35f2 Bump version 2024-01-30 15:53:21 +01:00
Ronald BarendseandGitHub 9799c550f4 Create shadow file systems in configured LocalTempPath (#15637) 2024-01-29 08:48:45 +01:00
Ronald BarendseandGitHub b7e43a8def Get references from macro parameters using IDataValueReferenceFactory (#15625) 2024-01-23 16:08:17 +01:00
Ronald BarendseandGitHub cdbbd6a921 Optimize relation tracking for adding new and keeping existing relations (#15596)
* Include automatic relation type aliases from factory and fix SQL parameter overflow (#15141)

* Include automatic relation type aliases from factory

* Remove unnessecary distinct and fix SQL parameter overflow issue

* Fixed assertions and test distinct aliases

* Simplified collection assertions

* Improve logging of invalid reference relations (#15160)

* Include automatic relation type aliases from factory

* Remove unnessecary distinct and fix SQL parameter overflow issue

* Fixed assertions and test distinct aliases

* Simplified collection assertions

* Improve logging of invalid reference relations

* Always get all automatic relation type aliases

* Do not set relation type alias for unknown entity types

* Get references from recursive (nested/block) properties

* Optimize relation tracking for adding new and keeping existing relations

* Optimize getting references by grouping by property editor alias and avoiding duplicate parsing of the same value
2024-01-22 14:53:20 +01:00
Ronald BarendseandGitHub 5198e7c52d Backport relation tracking fixes and get references from recursive (nested/block) properties (#15593)
* Include automatic relation type aliases from factory and fix SQL parameter overflow (#15141)

* Include automatic relation type aliases from factory

* Remove unnessecary distinct and fix SQL parameter overflow issue

* Fixed assertions and test distinct aliases

* Simplified collection assertions

* Improve logging of invalid reference relations (#15160)

* Include automatic relation type aliases from factory

* Remove unnessecary distinct and fix SQL parameter overflow issue

* Fixed assertions and test distinct aliases

* Simplified collection assertions

* Improve logging of invalid reference relations

* Always get all automatic relation type aliases

* Do not set relation type alias for unknown entity types

* Get references from recursive (nested/block) properties
2024-01-19 20:02:57 +01:00
Andy ButlandandGitHub 49f5d2e2d4 Updates JSON schema for Umbraco 10 to include details of additional configuration introduced in Forms and Deploy. (#15566) 2024-01-12 13:13:20 +01:00
Elitsa MarinovskaandGitHub 57b3a196bf V10: Pass in variation context to published cache (#15563)
* Make sure that we always have variation context

* Fix references
2024-01-11 12:46:31 +01:00
dff90c6ec0 Run the same cleanup with scaffolding content as when copying. (#15541)
* Run the same cleanup with scaffolding content as when copying.

- Added a new ContentScaffoldedNotification
- Published the notification when a new scaffold has been created from a blueprint (content template)
- Linked up the ComplextPEContent handler to do the same cleanup for the new notification as when copying.
- registered handlers to the event for blocklist, blockgrid and nested content

* PR pattern matching suggestion

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2024-01-10 12:22:36 +01:00
AleksanderandSebastiaan Janssen 040495f359 Pass cache level to properties when creating published content in nucache
(cherry picked from commit d9d2b66e85)

# Conflicts:
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedContent.cs
2024-01-08 14:42:17 +01:00
Bjarke Berg a2ad95d965 Change content 2023-12-22 13:49:57 +01:00
Bjarke Berg 64f2447c0e Added script to update default version 2023-12-22 13:15:13 +01:00
Bjarke Berg b648126d19 Use wildcard as default valid 2023-12-22 12:59:13 +01:00
812b414d96 Batched more update calls to avoid Sql paramater count error (#15487)
Co-authored-by: Sven Geusens <sge@umbraco.dk>
2023-12-21 09:43:37 +01:00
Bjarke Berg ec91c47158 Merge remote-tracking branch 'origin/release/10.8' into v10/dev
# Conflicts:
#	version.json
2023-12-20 09:51:14 +01:00
Kenn JacobsenandGitHub e04a41be45 Add policies for content template handling (#15482) 2023-12-19 14:18:48 +01:00
Chris Fitz-AvonandBjarke Berg d5156aced2 Remove content section access policy from GetAllLanguages endpoint. #15435 (#15450)
(cherry picked from commit cedfdcc9b2)
2023-12-18 08:25:00 +01:00
Bjarke Berg fa9b0e4718 Bump version 2023-12-18 08:23:34 +01:00
Bjarke Berg 8915064780 Merge remote-tracking branch 'origin/release/10.8' into v10/dev
# Conflicts:
#	version.json
2023-12-13 09:28:19 +01:00
ZeegaanandBjarke Berg 677ff59d04 Loosen up policies so editors can get what they need 2023-12-12 15:46:46 +01:00
Bjarke Berg 1fe2ec08be bump version 2023-12-12 15:35:15 +01:00
Bjarke Berg 5dfa76600a Post fix 2023-12-11 16:32:38 +01:00
Bjarke Berg 83bcd37250 Merge remote-tracking branch 'origin/release/10.8' into v10/dev 2023-12-11 14:37:10 +01:00
Kenn JacobsenandGitHub 4a7ad4a562 Merge pull request from GHSA-v98m-398x-269r 2023-12-11 14:00:23 +01:00
cdd4d2a000 Merge pull request from GHSA-cfr5-7p54-4qg8
* Bump version

* Apply authorization policies to controllers

* Return bad request if we urltracking is disabled

* Apply authorization policies to controllers

* Return bad request if we urltracking is disabled

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-12-11 13:59:59 +01:00
be5a740c96 Merge pull request from GHSA-8qp8-9rpw-j46c
* Added Exception handling and replicated error and info message

* Update auth.resource.js

Fixed the message

* Changed Delay introduction to early phase to avoid repeating code.

---------

Co-authored-by: jey <jey@umbraco.dk>
Co-authored-by: Jey <cyaqublu@gmail.com>
2023-12-11 13:59:35 +01:00
13cc320f19 Merge pull request from GHSA-6324-52pr-h4p5
* Bump version

* Fix https://github.com/umbraco/Umbraco-CMS/security/advisories/GHSA-6324-52pr-h4p5

* Fix https://github.com/umbraco/Umbraco-CMS/security/advisories/GHSA-6324-52pr-h4p5

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-12-11 13:59:03 +01:00
ZeegaanandBjarke Berg b5544aa520 Suppress flow when queueing background threads 2023-12-11 12:43:25 +01:00
Bjarke Berg 9e3f8c7d0c Merge remote-tracking branch 'origin/release/10.8' into v10/dev
# Conflicts:
#	version.json
2023-12-08 13:12:33 +01:00
Bjarke Berg cb76554455 Bugfix: Count existing media correct (#15206)
* https://github.com/umbraco/Umbraco-CMS/issues/15205
Count media correct

* Fix content should be document

(cherry picked from commit d2ff2ea46e)
2023-12-07 09:21:25 +01:00
Jacob Overgaard 37e4d80ce8 Update nightly build (#15359)
* cherry-pick templateParameters from v14/dev

* add isNightly parameter

* remove v9

* add parameter check for myget isNightly
2023-12-05 12:45:23 +01:00
Bjarke Berg d5d4edbe92 Bump Version 2023-11-30 21:51:54 +01:00
Bjarke Berg 8d9343b564 Merge branch 'release/10.8' into v10/dev
# Conflicts:
#	version.json
2023-11-27 18:10:40 +01:00
Bjarke Berg 1ee891c8d5 Merge remote-tracking branch 'origin/release/10.8' into release/10.8 2023-11-27 18:09:41 +01:00
Bjarke Berg bf1a5b9b28 Bump version 2023-11-27 18:09:30 +01:00
Bjarke Berg 696b74cdb6 Merge branch 'release/10.8' into v10/dev 2023-11-27 18:08:30 +01:00
Bjarke BergandGitHub bf8af4588e Centralised NuGet packages (#15293)
* Moved to centralized nuget packages

* Handle JsonSchema

* Change PackageReference to PackageVersion

* Opt out of central package management for mangement api (at least for versions less than 14) and the UI project

* ManagePackageVersionsCentrally = false

* Change folder acceptance tests are build, to avoid reading the test Directory.Packages.props

* Change folder acceptance tests are build, to avoid reading the test Directory.Packages.props

* change working directory

* workingDirectory

* Force the template to use local nuget packages

* Force the template to use local nuget packages

* clean up

* added wait on

* added wait on
2023-11-27 15:18:00 +01:00
Kenn JacobsenandBjarke Berg 4781fb1d8b Ensure content types are updated in ContentStore when a data type changes (#15239) 2023-11-17 10:37:23 +01:00
Bjarke Berg d714741bee Fixed build 2023-11-15 09:53:28 +01:00
Bjarke Berg ea33b73daa Added scope.complete in edge cases. (#15207)
(cherry picked from commit 28e8ac11f0)
2023-11-15 09:46:24 +01:00
Bjarke Berg ba64b46824 Merge remote-tracking branch 'origin/release/10.8' into release/10.8 2023-11-15 09:45:30 +01:00
Bjarke Berg 04e59e9a9d Fixed a couple of occurrences where scopes was auto-completed while modified db state (#14947)
* Fixed a couple of occurrences where scopes was auto-complated while actually modified the state of the database.

* Added temp ctor to fix boot issue

(cherry picked from commit 41f8f03c2c)
2023-11-15 09:45:23 +01:00
Jacob OvergaardandGitHub be39b9c19a V10: Update @umbraco-ui/uui, jQuery, ace-editor, nouislider, spectrum-colorpicker2 (#15197)
* V13: Add support for Node.js 20 (#15022)

* update versionSpec to nodejs 20 and avoid specifying minor and patch versions to improve Azure Pipelines stability

* update engines and package lock files

* update helpful displayNames for npm builds

* add retry to counter nodejs.org timeouts

add retryCountOnTaskFailure as suggested on https://developercommunity.visualstudio.com/t/NodeTool0-task-to-install-nodejs-fails/10455454

* update lockfile

* bump nvm support to latest node.js 20.9 LTS

* build(deps): bump @umbraco-ui/uui from 1.3.0 to 1.5.0

* build(deps): bump public dependencies to latest

* build(deps-dev): bump build dependencies to latest

* build(deps-dev): bump test tools to latest

* build: add script to lint and run --fix

* revert login merge from v13
2023-11-14 13:08:29 +01:00
Bjarke Berg 9a143c0850 Merge remote-tracking branch 'origin/release/10.8' into release/10.8 2023-11-14 11:46:26 +01:00
Bjarke Berg df4cd63962 https://github.com/umbraco/Umbraco-CMS/issues/15195 Fixed issue with media not cached correct (#15196) 2023-11-14 10:59:30 +01:00
Bjarke Berg a17e398f28 Merge remote-tracking branch 'origin/release/10.8' into v10/dev 2023-11-14 09:29:36 +01:00
Bjarke Berg 9af9dd2c02 Merge remote-tracking branch 'origin/release/10.8' into v10/dev 2023-11-14 09:29:09 +01:00
Bjarke BergandGitHub 2266a98fc6 https://github.com/umbraco/Umbraco-CMS/issues/15195 Fixed issue with media not cached correct (#15196) 2023-11-14 09:14:01 +01:00
151fccee97 Performance optimisations related to blocks (and multi url picker) (#15184)
* Added content types to property index value factory, because the deep cloning is too expensive to execute often

* Do not use entityservice in ToEditor, as it goes to the database. We need to use something that is cached.

* Small performance optimization for nested content too

* A little formatting and an obsoletion message

---------

Co-authored-by: kjac <kja@umbraco.dk>
2023-11-14 08:12:05 +01:00
Bjarke Berg abfa07367f Bump version 2023-11-13 18:06:41 +01:00
Bjarke BergandGitHub e5de8bf56b Updated nuget packages (#15192) 2023-11-13 14:59:52 +01:00
Bjarke Berg 00bb5170a0 Merge remote-tracking branch 'origin/v10/dev' into release/10.8
# Conflicts:
#	version.json
2023-11-09 13:53:46 +01:00
919138c299 #14835 Update link on permissionsreport.html (#14872)
* #14835 Update link on permissionsreport.html

Updated link to permissions page to point to 10-LTS documentation

* retrigger checks

---------

Co-authored-by: Rasmus Berntsen <rasmus.berntsen@isobar.com>
2023-11-09 13:53:18 +01:00
Ronald BarendseandGitHub ed65645a33 Add global.json and cleanup UI project file (#14900)
* Add global.json with minimum .NET 6.0.5 SDK version and roll forward policy

* Clean up UI project file
2023-11-09 13:52:21 +01:00
Ronald BarendseandGitHub d0be4ab263 Publish ContentTreeChangeNotification after saving/deleting blueprints (#14898) 2023-11-09 13:51:05 +01:00
Bjarke Berg ddb26632f9 Bump to rc 2023-11-09 13:38:34 +01:00
Bjarke Berg d5b1f5875b Bump version 2023-11-09 13:38:13 +01:00
Bjarke Berg f8c1a560ff Bump version 2023-11-09 13:36:57 +01:00
9e5ff305c8 Batched bulk WhereIn query to avoid To mana paramaters error (#15004)
Co-authored-by: Sven Geusens <sge@umbraco.dk>
2023-11-07 10:49:46 +01:00
Elitsa MarinovskaandGitHub ffaa77eb25 Update correct action (#15142) 2023-11-06 17:54:16 +01:00
Kenn JacobsenandGitHub 6777145079 Ensure that missing access rules do not break the site (#15081) 2023-11-02 08:45:27 +01:00
Elitsa MarinovskaandGitHub 92af8ac881 Check content permissions before performing action (#15043)
* Setting actionContext.Result when authz wasn't successful

* Taking into account permissions when it is a new node

* Cleanup

* Passing nodeId as path when new item
2023-11-01 11:30:32 +01:00
Lucas Bach BisgaardandSebastiaan Janssen bde88caf14 Fixes #14351 - Using Fallback to default langauge on a specific item changes the whole VariationContext (#14620)
(cherry picked from commit 738749b705)
2023-10-26 11:47:44 +02:00
Bjarke BergandGitHub f4ac6cdded Added "pr: none" to nightly trigger (#15044) 2023-10-26 09:01:25 +02:00
Elitsa MarinovskaandGitHub 132935c2d7 Handle corrupted index (#14889) 2023-10-09 10:19:36 +02:00
Kenn JacobsenandGitHub 04b05714e5 Add notification state to "final" published notification when publishing with descendants (#14922)
* Revert "V10/bugfix/14543 publish descendants (#14763)"

This reverts commit f750bca453.

* Add notification state to "final" published notification when publishing with descendants
2023-10-05 14:39:00 +02:00
Kenn JacobsenandGitHub 7be1852827 Make sure to sign out external users if an error occurs during sign-in (#14867) 2023-09-28 13:25:11 +02:00
Andreas ZerbstandGitHub 158cef1692 V10 fixed up failing acceptance test (#14829)
* Updated playwright, our builders, and our helpers

* Updated the use of our testhelper methods, we removed the need for sending umbracoApi through the methods as a parameter since it was unnecessary

* Added a timeout

* Updated successNotifications and added a locator

* Removed timeout from successNotification

* Added additional timeouts and updated old locators which were failing

* Updated locator so it only finds one element

* Removed timeouts and added a waitForTimeout

* Removed timeouts

* Removed timeouts

* Added timeouts

* Updated locator

* Added a timeout

* Updated locators for clicking button

* Changed locator for adding the image, sometimes the old locator would find 2 locators
2023-09-20 12:15:24 +02:00
Bjarke Berg 1a4f3981eb Merge remote-tracking branch 'origin/v10/dev' into v10/dev 2023-09-20 09:42:28 +02:00
Bjarke Berg 7765f98ee1 Added random delay in forgot password to lessen the risk the response times can be use to determine whether the mail exist or not. 2023-09-20 09:02:32 +02:00
6b72880c0b fix: ensured that allowed user name characters are supported in backoffice users as well (#14810) (#14825)
Co-authored-by: Arkadiusz Biel <bielu@bielu.com.pl>
2023-09-19 09:01:35 +02:00
Andy ButlandandGitHub d9f3936a43 Updated dependencies to Forms and Deploy for JSON schema generation. (#14826) 2023-09-19 08:54:41 +02:00
bf09c87f87 Mention MultiUrlPickerValueConverter instead (#14818)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-09-18 13:48:11 +02:00
Sven GeusensandGitHub ec2134dea0 Disabled nighly build branch trigger (#14807) 2023-09-15 10:02:29 +02:00
Nikolaj GeisleandGitHub 8ccc2faee0 Add UsePagedSqlQuery setting to NucacheSettings (#14806)
* imlement UsePagedSqlQuery

* Remove unneccesary spacing
2023-09-14 20:11:08 +02:00
Jacob Overgaard 0a4cc27a5d V12: Property editors should only contain layout when in preview mode (#14796)
* Revert "Make sure the property editor layout is contained within its container (prevent Z-index bleed-through) (#13583)"

This reverts commit 8463d906a7.

* remove seemingly unused attribute readonly

* contain everything with contain:layout

this is set if the property editor is in preview mode to make sure all overlays work

* Revert "remove seemingly unused attribute readonly"

This reverts commit 7a2743e8f6.
2023-09-14 13:19:36 +02:00
c8e054baa2 V10/feature/pipeline test filters (#14766)
* Add configuration/code to not run certain tests based on variables/release builds

* Applied longrunning testAttribute to the worst offenders (>200ms on my machine)

* Fix yaml notation

* split up windows/non windows test runs

* Added supression for moved tests

* Fix yaml validation issues

* Change yaml string parameter null value to empty string

* Convert empty strings to whitespace strings

* Rename and cleanup some paramater to better reflect why we use them

* Nightly build test

* Change nightly build authentication type

* template paramater fix

* Update nightly pipeline name

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
2023-09-12 14:16:27 +02:00
Bjarke Berg 95ffdae475 Merge remote-tracking branch 'origin/v10/dev' into v10/dev 2023-09-12 09:43:52 +02:00
Andreas ZerbstandJacob Overgaard ca8ac21f4b Added test for checking if settings model contains default value (#14513)
* Added test for checking if a settings model contains default value.
Fixed tests

* Bumped version

* Moved createSliderWithDefaultValue function to our testHelpers. Removed the use of count in test since there was only one
2023-09-11 15:13:08 +02:00
Jacob Overgaard f85a0d1715 Render all tabs in the background to ensure they register their initial state on any $scope.model in the stack. (#14493)
Sometimes a tab, e.g. a "block list settings model" might register some default values, but if the user never clicks on the tab then they are not registered due to how AngularJS renders views with "ng-if".
2023-09-11 15:12:48 +02:00
Andreas ZerbstandGitHub 2fc29e638c Limbo models builder changes the content to element when using Compositions (#14776) 2023-09-07 17:18:57 +02:00
Andreas ZerbstandGitHub 56486b1ace V10 Cherrypicked issuu RTE embed (#14777)
* Added a UserAgent to header

* Added the use of iframe. This allows us to see the issuu embed in the RTE
2023-09-07 16:28:11 +02:00
Bjarke Berg fd043f6ecf Merge remote-tracking branch 'origin/v10/dev' into release/10.7 2023-09-05 10:19:13 +02:00
Bjarke Berg 39a102ed8a rollback version 2023-09-05 10:14:21 +02:00
f750bca453 V10/bugfix/14543 publish descendants (#14763)
* WIP: Fix publish descendants and related notifications

* Removed related entitities from publish notification

* Fixed root not being saved when publishingWithDescendants

* Updated integrationtests to reflect the update view on when to save the root when its part of a branch

* PR formatting fix

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* PR Cleanup

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Spicing up the codebase with some PR pattern matching

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2023-09-05 10:14:06 +02:00
Bjarke Berg 7e36203f60 Merge remote-tracking branch 'origin/release/10.7' into v10/dev
# Conflicts:
#	version.json
2023-09-04 10:24:22 +02:00
Bjarke Berg 334dff8645 bump version number 2023-09-04 10:23:44 +02:00
Bjarke Berg 9fd140f81d Merge remote-tracking branch 'origin/release/10.7' into v10/dev 2023-08-28 11:35:41 +02:00
Bjarke BergandGitHub 1198c76d67 Remove parsing of short into integer (#14721) 2023-08-25 13:07:42 +02:00
Nikolaj 869b480dae Bump version 2023-08-24 10:49:50 +02:00
Nikolaj 12704b112e Merge branch 'release/10.7' into v10/dev 2023-08-24 10:49:11 +02:00
Ronald BarendseandNikolaj 3c37653012 Fix exceptions in Slider and Tags property value converters (#13782)
* Fix IndexOutOfRangeException when converting single value to range in SliderValueConverter

* Fix NullReferenceException while deserializing empty value in TagsValueConverter

* Use invariant decimal parsing

* Handle converting from slider to single value

* Fix parsing range as single value

* Make Handle methods autonomous

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2023-08-23 10:50:25 +02:00
e5a8d01004 Fix exceptions in Slider and Tags property value converters (#13782)
* Fix IndexOutOfRangeException when converting single value to range in SliderValueConverter

* Fix NullReferenceException while deserializing empty value in TagsValueConverter

* Use invariant decimal parsing

* Handle converting from slider to single value

* Fix parsing range as single value

* Make Handle methods autonomous

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2023-08-23 10:09:43 +02:00
Andy ButlandandBjarke Berg 9fd0b1986c Updated JSON schema reference for Umbraco Forms. (#14701) 2023-08-22 13:30:26 +02:00
Andy ButlandandGitHub 80ea5174c6 Updated JSON schema reference for Umbraco Forms. (#14701) 2023-08-22 13:28:01 +02:00
Niels Lyngsøandkjac e1b4aebb0f directly render labels without angularJS template code (#14700) 2023-08-22 11:35:38 +02:00
Niels LyngsøandGitHub 38910a8d5c directly render labels without angularJS template code (#14700) 2023-08-22 11:27:16 +02:00
Kenn JacobsenandGitHub 0dc18982ee Do not allow content type property aliases that conflict with IPublishedElement (#14683) 2023-08-21 13:17:15 +02:00
311d322129 Add code infrastructure to validate file content (#14657)
* Implemented modular architecture for filestream security sanitization with an svg-html example

* 31440: Refactoring, applied to more entry points and removed test analyzer

* 31440 Added Unittests for FileStreamSecurityValidator

* PR fixes and better unittest mock names

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
2023-08-21 13:08:26 +02:00
Andreas ZerbstandGitHub e7af98027d Updated the name of our Acceptance test project in the pipeline (#14691)
* Updated the name of our Acceptance test project.

The reason is because we want the naming to be clear and concise.

* Changed the name of the e2e pipeline project name for linux

* Updated dll file
2023-08-18 13:36:54 +03:00
Anders ReusandBjarke Berg 30f0cfc15d Add exclusion filter setting to typefinder settings (#14426)
* Obsolete constructor with deprecated IScopeProvider

* Add exclusion setting to typefinder settings

* The old TypeFinder constructor calls the new constructor now instead and excluded duplicates by using Union instead of Concat.

* Revert "The old TypeFinder constructor calls the new constructor now instead and excluded duplicates by using Union instead of Concat."

This reverts commit 87801c6c1c.

* Add changes to TypeFinder

* Do not use null when type is not nullable

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2023-08-15 09:58:58 +02:00
Ronald BarendseandBjarke Berg b743e715d4 Add DynamicRequestCultureProviderBase and improve locking (#14064) 2023-08-10 11:16:23 +02:00
d3243f8700 Bugfix 31584 - Remove Lazy "caching" that retains keys of deleted ContentTypes which causes unecesary validation errors (#14643)
The validation errors should not happen as the model mapping cleans up block data for entity types that do not longer exist (which is checked on the aformentioned key)

Co-authored-by: Sven Geusens <sge@umbraco.dk>
2023-08-09 13:11:44 +02:00
264e4f8b57 Add config so it is configurable whether to explicitly index each nested property (#14648)
* Added new configuration "Umbraco:CMS:Examine:ExplicitlyIndexEachNestedProperty" that can be used to avoid nested properties like block grid to index each property individually.

* Moved the setting "Umbraco:CMS:Examine:ExplicitlyIndexEachNestedProperty" to "Umbraco:CMS:Indexing:ExplicitlyIndexEachNestedProperty" to make it more future proof

* Added missing registration

* Fixed registration

* Small readability improvement

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
2023-08-09 11:47:45 +02:00
Sven Geusens 2b3f048db7 Revert "Implemented modular architecture for filestream security sanitization with an svg-html example"
This reverts commit 18ee016ae9.
2023-08-08 16:26:59 +02:00
Sven Geusens 18ee016ae9 Implemented modular architecture for filestream security sanitization with an svg-html example 2023-08-08 14:49:18 +02:00
Bjarke BergandGitHub 512199c8ab Pass the existing notification state to the ContentUnpublishingNotification so it can be shared. (#14638) 2023-08-08 09:40:44 +02:00
Bjarke BergandGitHub 4e410a9dd5 Stop event propagation when clicking on the expand-arrow in the tree. (#14637) 2023-08-08 09:27:23 +02:00
Jacob OvergaardandNiels Lyngsø e16e36c68f V12: Remove avatar step from login (#14629)
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2023-08-07 11:02:53 +02:00
Bjarke Berg f384e0c30c Allow newlines in invite email and escape other html (#14618) 2023-08-02 14:17:39 +02:00
Bjarke Berg 04b74dddd0 Added missing async awaits in notifications that ensures objects are not disposed too early
Fixes https://github.com/umbraco/Umbraco-CMS/issues/14574
2023-08-02 11:37:39 +02:00
Kenn JacobsenandGitHub 43700d2bcb Ensure that the Slider does not crash the back-office (#14601)
* Ensure that the Slider does not crash the back-office

* Add field descriptions to config
2023-07-25 08:39:59 +02:00
Adrian CojocariuandGitHub eed9feb5f3 Fix method invoke. (#14597) 2023-07-24 15:18:23 +02:00
b2a5ce3e48 V10: Dropzone should handle internal and external errors when uploading (#14578)
* fix: mark files that result in error as processed

* fix: for safety measure check that a file is truthy before trying to upload it

* fix: push an error when file.$error is encountered to make sure it does not get uploaded

* fix: remove header from error messages since it is not being used anyway

* fix: check for maxFileSize before uploading pasted images in tinymce

* use stored blob variable

* feat: add property to fileManager to get and format the maxFileSize

* fix: make tinymce use fileManager to get maxFileSize

* fix(image cropper): check for maxFileSize before setting file to upload

* multiply by 1000 to get bytes

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
2023-07-24 10:17:21 +02:00
Andy ButlandandGitHub 0ae404ce03 Extends JSON schema/Intellisense to full details of InstallDefaultData settings. (#14568)
* Fixes an incorrect property name used for generating JSON schema.

* Added JSON schema/intellisense for default data dictionary keys.

* Renamed private variable to match setting name.
2023-07-20 13:51:05 +02:00
ab836d2326 V10: Find and persist embedded images in rich text (#14546)
* add method to find and persist embedded base64 (data-uri) images in a html string

* use method to find embedded images in the Umbraco.TinyMce and Umbraco.Grid property editors

* rename method to better reflect what it does

* set allowed upload file types for integration tests

* add test for embedded images in Umbraco.TinyMce

* let old ctor call new ctor

* Apply suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* apply pattern matching

---------

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2023-07-18 09:17:19 +02:00
Andy ButlandandGitHub c12cce6d8c Fixes an incorrect property name used for generating JSON schema. (#14542) 2023-07-14 09:27:02 +02:00
nikolajlauridsen 78e1da3231 Merge branch 'release/10.6' into v10/dev 2023-07-13 10:55:36 +02:00
82eae48d09 Merge pull request from GHSA-h8wc-r4jh-mg7m
* Don't login after install

* Fail the install if database is not created

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
2023-07-13 06:03:39 +02:00
Elitsa MarinovskaandGitHub a5ba32bfd7 Store tags as text (instead of nvarchar) (#14510)
* Migrate tags from NVarchar To NText

* Cleanup
2023-07-07 14:23:32 +02:00
Bjarke Berg c695f2192f Merge remote-tracking branch 'origin/release/10.6' into v10/dev
# Conflicts:
#	version.json
2023-07-07 08:27:51 +02:00
Zeegaan dc5c7a14a5 Bump version 2023-07-06 10:40:50 +02:00
Zeegaan c751e90928 Merge branch 'release/10.6' into v10/dev
# Conflicts:
#	version.json
2023-07-06 09:20:47 +02:00
Zeegaan d86e4b2d38 Bumb version 2023-07-05 10:46:14 +02:00
MaartenandSebastiaan Janssen 3f196a9de4 Fix broken CookieAuthenticationRedirect caused by PR #14036 for non-api requests (#14399)
* Fix broken CookieAuthenticationRedirect caused by PR #14036 when not in an API controller

* Added Integration Tests for the MemberAuthorizationFilter

* Fix merge conflict

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
(cherry picked from commit 1d239a30ca)
2023-07-04 11:10:58 +02:00
Nikolaj Brask-NielsenandSebastiaan Janssen 30ec9d9bc7 fix: Allows copying from unsaved content (#14464)
#14459

(cherry picked from commit 1d14158d82)
2023-07-04 11:08:39 +02:00
Anders BjernerandSebastiaan Janssen 3087fc3ba9 Added missing Danish translation for general_change (#14461)
* Added missing Danish translation for `general_change`

* Update en_us.xml

(cherry picked from commit a090997aa1)
2023-07-04 11:07:21 +02:00
christophnzandSebastiaan Janssen 7fd7a8715d Fixed typo "optinal" to "optional" for translation dictionary import dialog and 2 other occurrences
(cherry picked from commit 77a2e4b557)
2023-07-04 10:42:56 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 62fd860a9e Show SVG icons for toolbar in configuration of richtext editor (#14404)
* Load default icons to show them next to checkboxes in configuration of richtext editor

* More mapping of icons

* Fix vertical align items centered not reflected

* Wrap mapping in function

* Map a few more icons

* Cleanup and formatting

* Cleanup

* Cleanup

* Add period in description

(cherry picked from commit 583965cf9d)
2023-07-04 10:41:40 +02:00
Mads Mørch SchouandSebastiaan Janssen 76ad99beb0 Makes sure the nucache is not truncated when its null (#14395)
* Makes sure the nucache is not truncated when its null
* Removed parentheses

(cherry picked from commit 0a4a938b88)
2023-07-04 10:36:57 +02:00
Jason ElkinandSebastiaan Janssen ebe375d23b Add ContentDeletingNotification to EmptyRecycleBin (#14397)
* Add ContentDeletingNotification to EmptyRecycleBin

* Fix formatting.

(cherry picked from commit 118f914158)
2023-07-04 10:35:08 +02:00
Marco TeodoroandSebastiaan Janssen 2f35967bb2 fix: #12253 Anchor picker does not appear (#13492)
* fix: #12253 Anchor picker does not appear

* Update ContentServiceExtensions.cs

fix: #12253  #13492 ; implement PR suggestions, test the new changes to confirm that they fix the issue with the anchorlink implementation on RTE from blocklist, blockgrid and normal RTE properties
Co-Authored-By: Laura Neto <12862535+lauraneto@users.noreply.github.com>

* Removed unnecessary using and code

* Small adjustments

---------

Co-authored-by: Laura Neto <12862535+lauraneto@users.noreply.github.com>
(cherry picked from commit 1ba834a9ca)
2023-07-04 10:33:05 +02:00
Paul SealandSebastiaan Janssen f93f3d88da Fix/delete language error message 14333 (#14396)
* Update the tour text to the correct text and to save confusion

* Added extra information to the delete language warning to inform the user that it will also delete all content related to the language

* Updated language files with same message re deletion

---------

Co-authored-by: Paul Seal <p.seal@clerkswell.com>
Co-authored-by: Emma Garland <emma.garland@rocksolidknowledge.com>
(cherry picked from commit 542d0f7f74)
2023-07-04 10:06:26 +02:00
Bjarne FyrstenborgandSebastiaan Janssen dbd009ffcd Update label in Danish translation
(cherry picked from commit 575f00d6f0)
2023-07-04 10:05:17 +02:00
alevak09andSebastiaan Janssen b99e14e288 Add Croatian Language (#14379)
Croatian language translation of Umbraco backoffice and culture settings

(cherry picked from commit 9f4d3e5525)
2023-07-04 10:03:42 +02:00
Paul SealandSebastiaan Janssen b8415ed7f0 Update the tour text to the correct text and to save confusion
(cherry picked from commit 5073a26e7f)
2023-07-04 10:00:09 +02:00
Miguel PintoandSebastiaan Janssen 8f6370a480 Swapped the sortCreateDateAscending and sortCreateDateDescending translation values to match the intended behavior (#14315)
(cherry picked from commit 76cb85224e)
2023-07-04 09:53:46 +02:00
RussellandSebastiaan Janssen aa4a1b3498 Fix for User null from IP address "::1" has logged out (#14322)
(cherry picked from commit dd59ef17f5)
2023-07-04 09:51:59 +02:00
RussellandSebastiaan Janssen b716e98780 Change "Media Picker" in RTE to "Image Picker" (#14321)
(cherry picked from commit 0220621337)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js
2023-07-04 09:49:34 +02:00
Elitsa MarinovskaandGitHub e86fb0eeb6 Adding null check and descriptive error (#14469) 2023-06-27 13:35:01 +02:00
Elitsa MarinovskaandGitHub fe1080dd64 Check the cases where there might be a custom image type, instead of an the default Umbraco image type (#14463) 2023-06-27 10:33:46 +02:00
Bjarke Berg 1133c4e7f2 Merge remote-tracking branch 'origin/release/10.6' into v10/dev 2023-06-27 09:06:17 +02:00
Jacob Overgaard f5b834974d package-lock.json sync 2023-06-26 14:28:59 +02:00
Nikolaj 75113a90fb Bump version 2023-06-22 09:18:57 +02:00
miguelcrpintoandZeegaan 7e573c70a3 Updated the IsoDateTimeConverter initialization in the JsonDateTimeFormatAttribute to set the Culture to InvariantCulture so that the custom DateTime format symbols ( date and time separators) are respected independent of the CurrentCulture being used. 2023-06-21 14:04:56 +02:00
dependabot[bot]andNikolaj 5c5de77965 Bump socket.io-parser from 4.2.1 to 4.2.4 in /src/Umbraco.Web.UI.Client
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.2.1 to 4.2.4.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.2.1...4.2.4)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-21 09:45:50 +02:00
dependabot[bot]andNikolaj 2f486610bb Bump fast-xml-parser and is-svg in /src/Umbraco.Web.UI.Client
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) and [is-svg](https://github.com/sindresorhus/is-svg). These dependencies needed to be updated together.

Updates `fast-xml-parser` from 3.20.3 to 4.2.4
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/commits)

Updates `is-svg` from 4.3.1 to 4.4.0
- [Release notes](https://github.com/sindresorhus/is-svg/releases)
- [Commits](https://github.com/sindresorhus/is-svg/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
- dependency-name: is-svg
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-21 09:45:45 +02:00
Nikolaj d19a30768f Merge remote-tracking branch 'origin/v10/dev' into v10/dev 2023-06-21 09:20:26 +02:00
Nikolaj b451bb802b Revert "Case-insensitive tag names with SQLite provider (#14012)"
This reverts commit bb7752c483.
2023-06-21 08:45:54 +02:00
MoleandGitHub 785390efd7 Add Noop property indexer to multi url picker (#14416) 2023-06-20 12:14:35 +02:00
nikolajlauridsenandBjarke Berg 3b3e1cec40 Add Noop property indexer to multi url picker 2023-06-20 12:12:00 +02:00
Jacob OvergaardandGitHub 89d104e176 v10: Backoffice JS updates (#14406)
* update @umbraco-ui/uui to 1.3.0

* update ace editor to 1.22.1

* update diff to 5.1.0

* update autoprefixer to 10.4.14

* update underscore to 1.13.6

* update jQuery to 3.7.0

* fix pr-first-response workflow
2023-06-20 09:24:07 +02:00
Bjarne FyrstenborgandNikolaj 9a3e655645 Fix transparent background after upgrade of spectrum color picker (#14251) 2023-06-19 08:50:57 +02:00
Andy ButlandandGitHub 5f15b8abb1 Updated Forms and Deploy references in JSON schema project for Umbraco 10. (#14383) 2023-06-16 10:01:09 +02:00
Andreas ZerbstandGitHub 4df3e19af7 Added a mapper for the IPropertyType (#14373) 2023-06-12 11:18:57 +02:00
89d670372d Update security stamps on logout (#14362)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-06-12 09:56:04 +02:00
Mole b5ab115318 Remove external login tokens before removing external logins (#14341) 2023-06-06 14:11:20 +02:00
407263d090 V10: Handle blob images (#14317)
* Handle blob images

* remove dots from mapping

* Revert bad formatting

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-05-31 08:43:14 +02:00
b37bb517ab V10: Implement varying blocklist indexing (#14287)
* Implement available culture in Interface and base classes

* Add available cultures

* DI localizationService and use it

* Make the new method have default implementation to avoid breaking change

* Create implementations for old method

* Pass available cultures

* Pass localization service

* Create new method that takes available cultures

* Add ILocalizationService to DI

* implement missing method

* Add database for schema test

* Fixed issue with indexes not added correctly to nested types..

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2023-05-25 08:36:42 +02:00
MoleandGitHub 999a83995e V10: Add external login provider count to detailed telemetry (#14282)
* Add backoffice external login provider count to telemetry

* Update translation

* Fix integration test
2023-05-24 11:48:56 +02:00
Kenn Jacobsenandnikolajlauridsen b3a93ac86c Ensure that blocks always open automatically when added to block list or block grid (#14294) 2023-05-24 10:23:40 +02:00
Andy ButlandandGitHub e79246368b Update JSON schema package references for Forms and Deploy. (#14285) 2023-05-23 09:38:01 +02:00
Sebastiaan Janssen b67c7fbe77 Cherry pick b8d6613bd8 accidentally kept both lines instead of just the one, this fixes the problem. 2023-05-22 15:15:19 +02:00
Dhanesh Kumar MjandSebastiaan Janssen 16f448a802 [Fix] Block editor labels showing Angular JS on first load. (#14143)
Co-authored-by: Dhanesh Kumar <“dhanesh.kumar@phases.io”>
(cherry picked from commit 58695b6e9f)
2023-05-19 11:25:15 +02:00
b3bedb4efe XPath can unambiguously use $site/$parent (#14127)
* XPath can unambiguously use $site/$parent

* add deprecation notices and obsolete methods

* Update deprecation description text/instruction

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Small spelling fix on deprecation description

* keep depr. getByQuery and handle legacy usage

---------

Co-authored-by: Kalle Macklin <karlmacklin@users.noreply.github.co>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2023-05-15 08:48:36 +02:00
Andreas ZerbstandGitHub 5b73fc19ee V10: Fix NoopPublishedValuefallback varation context member not implemented (#14227)
* Added missing VariationContextAccessor

* Fixed identation
2023-05-10 14:31:40 +02:00
4cdab08910 Fixes #14102 - NestedPropertyIndexValueFactoryBase ignores compositions (#14115) (#14219)
Co-authored-by: Nuklon <Nuklon@users.noreply.github.com>
2023-05-09 09:49:04 +02:00
MoleandGitHub 391cade75f Merge pull request #14205 from umbraco/v10/bugfix/fix_acceptance_test
Fix acceptance test
2023-05-04 10:24:24 +02:00
Anders BrohusandSebastiaan Janssen e27e8d1189 Fixing danish typos (#14184)
* Fixed typo

* Fixed another typo

* Removed space from translation

(cherry picked from commit 7df5c9c212)
2023-05-04 10:13:51 +02:00
MichałandSebastiaan Janssen 1e0ace7a34 Save and preview translation.
(cherry picked from commit 0765a2ebbb)
2023-05-04 10:10:56 +02:00
Nikolaj 21c6828b59 Use regex for class 2023-05-04 09:32:32 +02:00
Nikolaj f7f361239c Try quick fix for test 2023-05-04 09:32:27 +02:00
Nikolaj 05908e2c78 Remove test.only 2023-05-04 09:32:18 +02:00
Jacob Overgaard 3a7ba530a2 Fix: Form elements in thirdparty dashboard views get removed (#14152) 2023-05-03 11:07:33 +02:00
Jacob Overgaard f4073c1dc7 update @umbraco-ui/uui to 1.2.1 2023-05-03 11:07:10 +02:00
Niels LyngsøandJacob Overgaard 7b5233803e fix situation when config was not available. (#14148) 2023-05-03 08:42:19 +02:00
Jacob OvergaardandGitHub 822febb8e8 update @umbraco-ui/uui to 1.2.1 (#14186) 2023-05-03 08:07:04 +02:00
MoleandGitHub bf7b9a20a8 Set culture variation when getting property types for indexing (#14167) 2023-04-26 14:51:55 +02:00
Elitsa MarinovskaandGitHub 9aadb41f4a Change state to publishing before handling ContentSavingNotification (#14114) 2023-04-25 15:08:15 +02:00
Mark DrakeandSebastiaan Janssen aaec419672 Edge Cases for Issue #13838: Hotkey Actions Triggered from Web Components (#14098)
(cherry picked from commit 1436fe4e15)
2023-04-21 14:13:02 +02:00
Dhanesh Kumar MjandSebastiaan Janssen 66b1add0d0 Save and Preview blank on second use #14052 (#14094)
(cherry picked from commit 00eab03d50)
2023-04-21 11:31:47 +02:00
Søren KottalandSebastiaan Janssen 81c6a1b8e6 Adds padding to the icon in btn-social (#14080)
(cherry picked from commit c4cf5f910d)
2023-04-18 16:30:40 +02:00
Nikolaj GeisleandSebastiaan Janssen 747f2e7599 V11: Fix decimal variants (#13741)
* fix sqlite with variants

* Create and register SqlSpecificMapper

* Delete obsolete file

* Add back inheritance

Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit c868c60ed2)
2023-04-18 15:22:39 +02:00
Markus JohanssonandSebastiaan Janssen f9aaf1984a #14016 Fixed, added cache buster to Block Grid Editor stylesheets
(cherry picked from commit 80f6bb404a)
2023-04-18 14:48:08 +02:00
Mark DrakeandSebastiaan Janssen 539640f995 resolve spacing issues with block list inline editor when it is the last property editor on the current tab
(cherry picked from commit 9a638b6edc)
2023-04-18 14:46:56 +02:00
Dhanesh KumarandSebastiaan Janssen 07a45d02f9 fix for the char limit(512) for textboxdatatype
(cherry picked from commit 2c580e8d4f)
2023-04-18 14:45:31 +02:00
Lewis HazellandSebastiaan Janssen bb7752c483 Case-insensitive tag names with SQLite provider (#14012)
* Ensure case insensitivity in tag name queries.

Use LIKE instead of = to ignore collation rules.

* Add integration test for creating tag relations with mixed casing.

(cherry picked from commit 37d737f9bc)
2023-04-18 14:41:06 +02:00
Lucas Bach BisgaardandSebastiaan Janssen d1975ee2cf Fix bug, in multiurlpicker where you cannot deselect a selected entity.
(cherry picked from commit 3385947c4e)
2023-04-18 14:40:10 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 4d13345b14 Support readonly set via SendingContentNotification (#13557)
* Support readonly set via SendingContentNotification

* Apply changes to second umb-property-editor as well

* Remove check on property.supportsReadOnly

* Disable allow unlock

* Add check on property.readonly

* Small adjustment in the order of preview checks

---------

Co-authored-by: Laura Neto <12862535+lauraneto@users.noreply.github.com>
(cherry picked from commit e30587f90d)
2023-04-18 14:37:23 +02:00
Andreas ZerbstandGitHub 02e16992b4 V10/qa/added more acceptance tests (#14100)
* Imported BlockGrid tests from v11

* Updated existing tests

* Updated version of playwright, our models builders and testhelpers

* More imported tests

* Updated flaky tests
2023-04-18 08:13:01 +02:00
Nikolaj 5d3546e1b5 Bump version 2023-04-13 08:53:47 +02:00
Nikolaj 5828080589 Merge branch 'release/10.5' into v10/dev 2023-04-13 08:47:41 +02:00
Nikolaj 8e32ac3e20 Bump to non-rc 2023-04-12 09:35:23 +02:00
Elitsa MarinovskaandGitHub 22328598db Adding dedicated Forbidden and Unauthorized handling for members (#14036) 2023-04-11 15:41:55 +02:00
ce47281c04 Determine correct if we can create a database with current connectionstring (#14030)
* Fix CanForceCreateDatabase method and add some unit tests

* Fixed an old copy/paste error

* A little nitpicking over wording and formatting

---------

Co-authored-by: kjac <kja@umbraco.dk>
2023-03-31 11:44:56 +02:00
BatJanandSebastiaan Janssen 83ad463e81 Change style to class
(cherry picked from commit 69010baceb)
2023-03-28 12:56:22 +02:00
Matthew CareandSebastiaan Janssen 06f527e87b Fix pressing enter in a property editor name field (#13329)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit 7349ae1c5c)
2023-03-28 12:55:50 +02:00
Sebastiaan Janssen 6bc999bca4 Unit tests need updating now that the WriterId is properly being set after merging #12843
(cherry picked from commit a88d0c0ec9)
2023-03-28 10:28:33 +02:00
patrickdemooij9andSebastiaan Janssen 5f8ba2e864 Memory improvements to ShortStringHelper (#13089)
(cherry picked from commit b17d9004fd)
2023-03-28 10:19:43 +02:00
patrickdemooij9andSebastiaan Janssen eee6207f19 Performance improvement for ReplaceFirst function (#13018)
* Some benchmarks for replacefirst & span method

(cherry picked from commit e550a4ce3a)
2023-03-28 10:14:42 +02:00
LandLogic ITandSebastiaan Janssen 888173ac5b Add it key translation
(cherry picked from commit 99268f6211)
2023-03-28 10:11:57 +02:00
DennisandSebastiaan Janssen 7208f591c7 Fix equality check on property group (#13133)
* Fix equality check on property group

Also fix circular reference on PropertyTypeCollection

(cherry picked from commit f64f634979)
2023-03-28 10:08:48 +02:00
gadgetfbiandSebastiaan Janssen 391bfb73e8 Fixes: listitem: <li> elements must be contained in a <ul> or <ol> (#13120)
Co-authored-by: Rob Nicolson <rob.nicolson@brightwire.net>
(cherry picked from commit 1f6307944b)
2023-03-28 09:38:51 +02:00
Matthew CareandSebastiaan Janssen 9f2e79e9db Prevent overflowing property values (#12943)
(cherry picked from commit b34a93ed59)
2023-03-27 12:49:20 +02:00
Ealse BoumaandSebastiaan Janssen 40285b76b9 Fix: Infinite Editor creates each save action a new version when content is invalid (#12713)
(cherry picked from commit 93a85a46f3)
2023-03-27 11:30:53 +02:00
Patrick de MooijandSebastiaan Janssen aab6539d1f 12748: Make sure to set writerId
(cherry picked from commit 3ee9bfbc93)
2023-03-27 09:57:51 +02:00
Nikolaj 5598cc2491 Convert path to absolute 2023-03-23 09:21:07 +01:00
Andy ButlandandNikolaj b665099657 Updated reference for JSON schema to latest release of Forms 10. (#13996) 2023-03-23 09:14:23 +01:00
Andy ButlandandGitHub 010f722fa0 Updated reference for JSON schema to latest release of Forms 10. (#13996) 2023-03-23 08:59:28 +01:00
NuklonandSebastiaan Janssen 4f8b8b3415 Fixes #13732 - IsBackOfficeRequest is extremely inefficient (#13743)
* Update UmbracoRequestPaths.cs

* Update UmbracoRequestPaths.cs

* remove redundant check

---------

Co-authored-by: Michael <michael@crossingpaths.be>
(cherry picked from commit de27eb697e)

# Conflicts:
#	src/Umbraco.Core/Routing/UmbracoRequestPaths.cs
2023-03-21 08:24:13 +01:00
jesperweberandSebastiaan Janssen b1fd9e6f16 Added sort audit to nodes actually being sorted
(cherry picked from commit 36069aa813)
2023-03-20 16:23:12 +01:00
Joel MandellandSebastiaan Janssen d31bd8755e Fixing issue #13865 (i.e. Rich text link picker not resolving correct variant when using .ValueFor()). (#13889)
(cherry picked from commit 451d1cec6a)
2023-03-20 15:59:08 +01:00
Dhanesh Kumar MjandSebastiaan Janssen 6b208362cc [fix] Infinite Editor from member property with a media picker (#13817)
(cherry picked from commit 71e7836001)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
2023-03-17 12:24:39 +01:00
Lennard FonteijnandSebastiaan Janssen 9d1140165e Fixed issue where filtering allowed element types with a NotificationHandler causes issues with Block Grid areas
(cherry picked from commit e10ff16fa1)
2023-03-17 08:52:46 +01:00
Matt BegentandSebastiaan Janssen f70533e3a0 Add skip links to header (#13938)
* Add skip links to header

* Tweak skip link z-index

(cherry picked from commit f6ebcdcfb6)
2023-03-17 08:51:41 +01:00
Jason ElkinandSebastiaan Janssen 53c547fb61 Use correct listenAddress for Karma on node 18+
(cherry picked from commit 50c4f8c6b5)
2023-03-17 08:50:31 +01:00
Erik-Jan WestendorpandSebastiaan Janssen 82c21da5b7 Add Romanian language (#13965)
(cherry picked from commit 11b20cc6cc)
2023-03-17 08:49:35 +01:00
Karn BlackmoreandSebastiaan Janssen 2d32f46d80 Fix algiment issues by setting the editor to position fix.
(cherry picked from commit daf54468b1)
2023-03-17 08:48:56 +01:00
kiasynandSebastiaan Janssen e9d17d3b9f Fix ViewContext.FormContext not being set during BeginUmbracoForm (#13914)
* Fix ViewContext.FormContext not being set during BeginUmbracoForm

Client validation is broken without this if there are multiple forms with the same field names on a page.

* Tweaked comment

(cherry picked from commit 62b49c7ea7)
2023-03-17 08:47:48 +01:00
ChadandSebastiaan Janssen 7c77fd1ca9 Faster cache key generation (#13504)
* Reduce the number of string concatenations required to generate cache keys.
* Updated to match existing Nucache keys.

---------

(cherry picked from commit 7c30da9fbf)
2023-03-17 08:46:29 +01:00
Joe GlombekandSebastiaan Janssen d4970ed752 Add checkered background to file upload
(including SVGs added to the media library)

(cherry picked from commit 066276a532)
2023-03-17 08:44:47 +01:00
AaronandSebastiaan Janssen 66c786a42d Changed to cast double to long (#13935)
(cherry picked from commit ca515c3ed7)
2023-03-17 08:43:27 +01:00
Sean ThorneandSebastiaan Janssen e6c0826d39 update block label not assigning fixes: #13833 (#13937)
Co-authored-by: Sean Thorne <sean.thorne@truedigital.co.uk>
Co-authored-by: georgebid <91198628+georgebid@users.noreply.github.com>
(cherry picked from commit 64bd310037)
2023-03-17 08:42:13 +01:00
AaronandSebastiaan Janssen 8a3cf2731e Solves tooltip issue for block column editor on remove block column editor option
(cherry picked from commit 393845ce4d)
2023-03-17 08:40:16 +01:00
Paul SealandSebastiaan Janssen b8d6613bd8 Fix the reference to the .targets file (#13847)
Updates the reference to the .targets file to use the correct folder name of `buildTransitive` instead of `build`

(cherry picked from commit d8f204ddf9)
2023-03-17 08:38:04 +01:00
ChadandSebastiaan Janssen 12414013d5 Faster full nucache table rebuild (#13501)
* SQL Server Truncate when full nucache SQL rebuild.

* Optimize truncate for SQL Lite

* Remove comment.

* Use current DB Types

* I added a couple of formatting changes.

---------

Co-authored-by: georgebid <91198628+georgebid@users.noreply.github.com>
(cherry picked from commit be72c8147d)
2023-03-17 08:37:05 +01:00
CyberReiterandSebastiaan Janssen 5fcbd4e4cd Fall back to object if PublishedPropertyType modelType is null (#13553)
* add null check

* return object when type is null

(cherry picked from commit 0cfc1fb664)
2023-03-17 08:36:05 +01:00
CyberReiterandSebastiaan Janssen 6b309dc3be Fix install when adding custom default languages (#13904)
* Adding ids to language installation

---------

Co-authored-by: Jason Elkin <jasonelkin86@gmail.com>
(cherry picked from commit 30abbb0c5d)
2023-03-17 08:35:12 +01:00
Miska HusgafvelandSebastiaan Janssen 458688aed6 Ensure cropperHelper.pixelsToCoordinates returns valid coordinates
(cherry picked from commit 282b7ac3d5)
2023-03-17 08:31:40 +01:00
Erik-Jan WestendorpandSebastiaan Janssen a56a6bae31 Map BackOfficeNotification in ContentMapDefinitions (#13874)
* Map Notifications

* Empty line

(cherry picked from commit 5158d8119d)
2023-03-17 08:29:20 +01:00
Erik-Jan WestendorpandSebastiaan Janssen 010ea5a2aa IsNullOrWhiteSpace Extension method for HtmlEncodedString (#13747)
* Add IsNullOrWhiteSpace Extension method

IsNullOrWhiteSpace extension method for IHtmlEncodedString

* Move extension method

* Add a UnitTest for the IsNullOrWhiteSpace extension method

* Update unit test

(cherry picked from commit 9771e77243)
2023-03-17 08:21:21 +01:00
Menno MoutandSebastiaan Janssen 84d81b20ef Added a CalculateMediaStartNodeIds method call when the startNode passed in as parameter is null. When this does return an array of startNodes the first one is being used. The question remains if this is desired behaviour. With this implementation the user has no real control over where the file is going to go. Atleast with this implementation the user can now see the file.
(cherry picked from commit ca23784898)
2023-03-17 08:19:57 +01:00
mwillebrandsandSebastiaan Janssen d148e93b45 Fix for #13860
Undefined error when inserting an empty link in the RTE editor

(cherry picked from commit 6ce30fb561)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js
2023-03-17 08:06:49 +01:00
niekvanderreestandSebastiaan Janssen 0ce2fdb23b Change GetMinNonAlphaNumericChars() to return 1 (#13876)
(cherry picked from commit 27e38e1606)
2023-03-17 08:03:45 +01:00
Menno MoutandSebastiaan Janssen 273e7708e5 Listview batch publishing on multi language site, publishes all variants #13755 - Fix (#13772)
* Modified PostPublishById to handle content that is culture variant. Added model and modified the javascript function that call the api endpoint.

* Added separate method for publishing with cultures. Added if else statment to js function.

* Moved check for all cultures being published to the top of PostPublishByIdAndCulture. Added parameter to ngDoc. Added Where Query.

(cherry picked from commit 37db3ae3da)
2023-03-16 13:03:16 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 154021801e Reset selected index/searcher (#13866)
(cherry picked from commit 62fdbd159c)
2023-03-16 12:49:39 +01:00
Smayke95andSebastiaan Janssen d418d06c02 Add Bosnian language (#13854)
* Add Bosnian language

* fix

* Fix issue with Marketplace

(cherry picked from commit 42d143c6b2)
2023-03-16 12:47:50 +01:00
Simone ChiarettaandSebastiaan Janssen c684b38247 Changed modifier for ContentPickerValueConverter (#13864)
Changed internal to public for ContentPickerValueConverter, which was the only property value converter defined as `internal`
Fixes issue umbraco#13858

(cherry picked from commit 362832b594)
2023-03-16 12:46:38 +01:00
tristanjthompsonandSebastiaan Janssen dca1c1b1be Update JITOptimizerValidator error message.
(cherry picked from commit e9f5b562ad)
2023-03-16 11:35:28 +01:00
Sebastiaan Janssen 86247b4578 Revert "Add DefaultLanguage fallback policy for published values (#13814)"
This reverts commit ef4c9c508d.
2023-03-16 11:32:35 +01:00
Ronald BarendseandSebastiaan Janssen ef4c9c508d Add DefaultLanguage fallback policy for published values (#13814)
* Add DefaultLanguage fallback

* Implement DefaultLanguage fallback

* Add DefaultLanguage fallback test

(cherry picked from commit 7348171c01)
2023-03-16 11:31:30 +01:00
Anders BrohusandSebastiaan Janssen f7ba2cfe96 2FA translations
Added and changed some translations about 2FA

(cherry picked from commit 559e56949f)
2023-03-16 11:21:15 +01:00
Dhanesh Kumar MjandSebastiaan Janssen 80a2839797 Mini-list view search by id,name & key is fixed. (#13735)
* Mini-list view search by id,name & key is fixed.
Added  multiple conditions in the query to consider id or name or key from the filter param(search bar from minilistview)

* make it more simple ,now using || instead of clause conditions.

---------

Co-authored-by: Dhanesh Kumar <dhanesh.kumar@phases.dk>
Co-authored-by: Michael <michael@crossingpaths.be>
(cherry picked from commit 2f5726384d)
2023-03-16 11:20:00 +01:00
Erik-Jan WestendorpandSebastiaan Janssen aacac4997d Remove special characters in avatar [part 2] (#13796)
* Update regex

* Update src/Umbraco.Web.UI.Client/src/common/directives/components/umbavatar.directive.js

Co-authored-by: Ronald Barendse <ronald@barend.se>

---------

Co-authored-by: Ronald Barendse <ronald@barend.se>
(cherry picked from commit 280fbdd870)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/umbavatar.directive.js
2023-03-16 11:17:02 +01:00
Jeroen BreuerandSebastiaan Janssen 815eb5b9c8 Make methods virtual so they can be redefined in derived classes.
(cherry picked from commit ff3d8c1c6c)
2023-03-16 11:06:19 +01:00
Ealse BoumaandSebastiaan Janssen 5966ad4a05 Changed default initialized button permissions for listviews
(cherry picked from commit 5c0673930a)
2023-03-16 11:01:45 +01:00
Warren BuckleyandSebastiaan Janssen 06b89963e4 Fixes #13715 Simple LogViewer queries not returning results (#13748)
* Fixes #13715 issue with simple logviewer searches

* Update Logviewer test - to ensure MessageLike and simple equivalent returns same result count to help catch

(cherry picked from commit d38fabea4a)
2023-03-16 10:57:52 +01:00
Marc GoodsonandSebastiaan Janssen caa4ca510e Add .woff2 to BrowsableFileExtensions
(cherry picked from commit 23b03f408e)
2023-03-16 10:53:44 +01:00
Sebastiaan Janssen 0ecb613b4a Revert "add the s html element to allow list for TinyMCE (#13697)"
This reverts commit 48ad91392f.
2023-03-16 10:45:47 +01:00
Jacob OvergaardandSebastiaan Janssen 48ad91392f add the s html element to allow list for TinyMCE (#13697)
Fixes #13637

(cherry picked from commit cfdc4a9573)

# Conflicts:
#	src/Umbraco.Core/Configuration/Models/RichTextEditorSettings.cs
2023-03-16 10:43:47 +01:00
CyberReiterandSebastiaan Janssen 5e555c6129 Updating german translation (#13684)
* updating german translations

* translating missing sections

* added missing closing tag

Co-authored-by: Michael <michael@crossingpaths.be>
(cherry picked from commit 8fdb5a55ea)
2023-03-16 10:38:20 +01:00
Mike MaseyandSebastiaan Janssen 47078bcc70 fix: move list view selection options to after list in focus order
(cherry picked from commit 3ebd15b67e)
2023-03-16 10:37:11 +01:00
ustadstarandSebastiaan Janssen 0ba1254e7d Fix copy content with descendants not copying sort order (#13464)
(cherry picked from commit fd992f65bb)
2023-03-16 10:33:39 +01:00
Erik-Jan WestendorpandSebastiaan Janssen d0e34c38a0 Translate dictionary area
(cherry picked from commit 045c755ccf)
2023-03-16 10:11:58 +01:00
Mykola GorbatenkoandSebastiaan Janssen 6be8d2e885 added Ukrainian language
(cherry picked from commit b52a4363c4)
2023-03-16 10:08:54 +01:00
CyberReiterandSebastiaan Janssen bfd29dfc3b minor improvements to indexing performance
(cherry picked from commit b7a26360e5)
2023-03-16 09:19:41 +01:00
Robert FosterandSebastiaan Janssen 4b2af296be fix for #13623 by hiding Member Edit Action Menu on Infinite editing … (#13624)
* fix for #13623 by hiding Member Edit Action Menu on Infinite editing for consistency

* added missing attribute to umb-editor-header for Member editing

(cherry picked from commit e7a986b1c3)
2023-03-16 09:18:23 +01:00
MehmetandSebastiaan Janssen 17aa9cee51 Rename title marketplace to packages (#13625)
(cherry picked from commit 59c5226d68)
2023-03-16 09:14:21 +01:00
Mario LopezandSebastiaan Janssen f035b2bee2 fixes data-element attribute on media section (#13621)
* fixes data-element attribute on media section

* Revert "fixes data-element attribute on media section"

This reverts commit 2a35c9fbed.

* use property alias on members umb-property

Co-authored-by: Mario Lopez <mario@luminary.com>
(cherry picked from commit dc46b649f7)
2023-03-16 09:10:57 +01:00
Calvin DavisandSebastiaan Janssen 4d4b5b7007 Add margin-right to block card name and subname
(cherry picked from commit 4fbb0805e8)
2023-03-16 09:08:05 +01:00
Bjarne FyrstenborgandSebastiaan Janssen c04b11cf17 Only show rollback button if allowed action
(cherry picked from commit 05a511a16c)
2023-03-16 09:06:14 +01:00
Bjarke Berg 6404f2dae8 Merge remote-tracking branch 'origin/release/10.4.1' into v10/dev
# Conflicts:
#	version.json
2023-03-15 16:21:40 +01:00
Nikolaj 0c6632eeb4 Bump version 2023-03-14 14:25:02 +01:00
Bjarke Berg 4e3ac66865 Check the tmpimg path is in the expected folder 2023-03-14 08:27:17 +01:00
Bjarke BergandGitHub de6e9aeb31 Prioritise surface controller requests highest (#13919)
* Fixed issue mentioned in https://github.com/umbraco/Umbraco-CMS/issues/13836

Now surface controller requests always has higher priority than other. So if this is both a surface controller request and a virtual page request, it will execute the surface controller.

* Moved some login into private methods

* More clean up

* Clean up

* Only handle valid candidates
2023-03-08 13:43:35 +01:00
Nikolaj GeisleandGitHub a8a8a7fea5 Make Detailed telemetry the default (#13918) 2023-03-07 13:14:23 +01:00
MoleandGitHub 84e20e74d3 Don't replace hyphen and underscore with empty string (#13896)
Replace it with a space instead
2023-03-07 11:31:15 +01:00
Bjarke BergandNikolaj Geisle 220414114e Fallback to use ActivatorUtilities to create controller from type, if it is not registered in DI (#13910) 2023-03-07 11:24:44 +01:00
MoleandGitHub 2538f946fc Check explicitly for MaintenanceResult in published request filter (#13911)
LGTM 💪
2023-03-07 08:15:19 +01:00
Bjarke BergandGitHub eb07998cf2 Merge pull request #13900 from umbraco/v10/bugfix/12200
Add allowlist of media hosts.
2023-03-02 14:34:05 +01:00
Bjarke Berg 7119253e6f Add allowlist of media hosts. 2023-03-01 15:17:08 +01:00
9cfda6e05c new up settings so they are no longer null (#13879)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-02-23 14:22:33 +01:00
555f6e2514 Add obsolete messages to no longer used properties (#13859)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-02-21 08:13:44 +01:00
Elitsa MarinovskaandGitHub cc76289a36 Fix mapping (#13844) 2023-02-17 09:38:39 +01:00
Andy ButlandandGitHub f9ed9c0ae8 Bumped dependencies on Forms and Deploy to latest releases in JSON schema project. (#13827) 2023-02-14 08:01:08 +01:00
d9f342bee7 Added missing property index value factories (#13819)
* Added missing PropertyIndexValueFactories, for Block Grid, Block List, Nested Content, Tags and added No-op for image picker, image cropper etc, where the content dont make any sense anyway.

Made it replace for block grid/list, nested content and tags

* Fixed tests

* Ensure raw-fields are the prefix

* Code clean up

* build fix

* Minor cleanup

* Fixed issue with published values / external index

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2023-02-13 14:47:26 +01:00
Kenn JacobsenandGitHub e529818560 Make the default lockout time configurable for users and members (#13808)
* Make the default lock timeout configurable for users and members

* Update obsoletion to V13
2023-02-10 10:56:55 +01:00
Kenn JacobsenandGitHub 45f8ffcd0b Support notifications for multiple root nodes (#13805) 2023-02-10 10:49:39 +01:00
Kenn JacobsenandGitHub 7d9e07ff7c Don't show DB details on install screen when using a pre-configured connection string (#13809) 2023-02-10 10:45:19 +01:00
b83c88e9f1 V10: fix content version cleanup dto migration (#13788)
* Add DoesPrimaryKeyExist method

* Add primary key name to dto

* Add extension method PrimaryKeyExists

* Dont use sql_master table

* Implement DoesPrimaryKeyExists

* Rename without plural s

* Refactor to get proper primary key name and not column name

* Use primary key name and not column name

* Dont filter tables in memory

* Remove .Where

* Don't select all, select only sql

* throw NotImplementedException by default

* USe virtual instead of abstract to avoid breaking change

* Reinstert primary key attribute

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-02-07 13:46:14 +01:00
Bjarke BergandGitHub 884793f729 Added fix to maintenance page so it is shown before the content cache is created. (#13767) 2023-02-05 16:47:09 +01:00
Jacob Overgaard c90a0ecfdc add check for editorState.getCurrent to find the current editor (relevant in infinite editors), and throw a warning if an editor completely misses the current node context (#13778)
disable drag&drop entirely if the property editor did not get a node through bindings or editorState
2023-02-03 10:24:27 +01:00
Andreas ZerbstandGitHub 5871fd2097 Updated the ID of the locator in the test 'can set a minimum of required blocks in content with a block list editor' to match the correct ID. (#13769) 2023-02-01 13:52:39 +01:00
Yari MariënandSebastiaan Janssen 8616f01bf6 Added youtube shorts url pattern. 2023-01-31 18:25:15 +01:00
Kenn JacobsenandGitHub c585b1da9e Correct the obsolete message for DataTypeService constructor. (#13761) 2023-01-31 09:56:36 +01:00
Andy ButlandandGitHub e87196909a Uses URL path separator when generating UDIs for files nested in folders. (#13689) 2023-01-31 09:46:45 +01:00
823c59cee1 Send email notification on password reset (#13756)
Co-authored-by: Aleksander <alf@umrabco.dk>
2023-01-31 09:05:15 +01:00
03365f55c4 Update label when updating color (#13720)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-01-27 09:52:37 +01:00
Bjarke BergandGitHub f275d80e2f Fixes issue with nucache slow on linux, when cold-booting (#13719)
* Fixes issue with nucache slow on linux, when cold-booting

https://github.com/umbraco/Umbraco-CMS/issues/12159
2023-01-26 16:20:57 +01:00
Jacob OvergaardandElitsa Marinovska 435b6f0650 V11: Prevalues as toggles have problems in datatype settings view (#13709)
* format preValues with DataTypeHelper.createPreValuesProps before rendering so they have the 'alias' prop used for input-id to umb-toggle

* preValues are now formatted on fetch so we do not need to do it again

(cherry picked from commit 7aee15d6d1)
2023-01-20 08:16:25 +01:00
Bjarke BergandGitHub ea3668a224 Update docfx (#13679) 2023-01-16 16:10:06 +01:00
Kenn JacobsenandGitHub f6113db0fc Re-introduce the option to conditionally login members after registration (#13659)
* Re-introduce the option to conditionally login members after registration

* Make absolutely sure the default is true for automatic member login after registration
2023-01-12 10:56:14 +01:00
Kenn JacobsenandGitHub 9d522ea9a0 Make it possible to drag multiple properties to other tabs in succession (#13579) 2023-01-12 10:53:57 +01:00
Kenn JacobsenandGitHub 6f2016d6da Only save selected variant for new content (#13649) 2023-01-12 10:53:14 +01:00
Kenn JacobsenandGitHub 4e7f663596 Use element type icon colors in block list catalogue, unless a specific color has been defined for catalogue appearance (#13651) 2023-01-12 10:51:23 +01:00
Kenn JacobsenandGitHub 2ec05431ba Fix the content picker XPATH scope in infinite editing (#13657) 2023-01-12 10:49:30 +01:00
Kenn JacobsenandGitHub 75a85bab0f Make sure the expand icon is never faded in mini list views (#13661) 2023-01-12 10:48:28 +01:00
Kenn JacobsenandGitHub 0c694c4b9d Fix broken buttons for properties with alias "navigation" (#13663) 2023-01-12 10:47:27 +01:00
Nikolaj ba74ca0512 Bump version 2023-01-11 15:37:27 +01:00
Nikolaj 96561b9446 Merge branch 'release/10.4' into v10/dev 2023-01-11 15:36:00 +01:00
Andy ButlandandNikolaj daff9884a3 Changed healthcheck collection configuration to use a concrete type to ensure configuration settings are bound. 2023-01-11 10:16:53 +01:00
Andy ButlandandSebastiaan Janssen d582632c85 Changed healthcheck collection configuration to use a concrete type to ensure configuration settings are bound. 2023-01-11 10:12:49 +01:00
Nikolaj 29bc727a4b Bump version 2023-01-11 10:06:39 +01:00
Kenn JacobsenandGitHub 42f6717de8 Use the client culture if available when rendering macro HTML for the backoffice (#13653) 2023-01-11 10:02:51 +01:00
24455bae6e Add primary key column attribute to ContentVersionCleanupPolicyDto.cs (#12684)
* Add primary key column attribute to ContentVersionCleanupPolicyDto.cs

* Test pipelines

* Revert "Test pipelines"

This reverts commit a8f654ebb7.

* test commit for pipelines

* Revert "test commit for pipelines"

This reverts commit ab03f977f4.

* Dont cascade delete

Signed-off-by: Zeegaan <nge@umbraco.dk>

* Remove unneccesary delete clause

Signed-off-by: Zeegaan <nge@umbraco.dk>

* Remove added whitespace

Signed-off-by: Zeegaan <nge@umbraco.dk>

* Revert "Remove unneccesary delete clause"

This reverts commit 4b2b665169.

* Disable identity for PK

* Add PK migration

* formatting

* Keep latest entry

Signed-off-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-01-10 10:59:10 +01:00
31655536b1 Implement check for connectionstring value (#13641)
Signed-off-by: Zeegaan <nge@umbraco.dk>

Signed-off-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-01-09 08:52:46 +01:00
Nikolaj 392b48f159 Merge branch 'release/10.4' into v10/dev 2022-12-21 13:53:58 +01:00
a364141efa V10: Dont disable invited users (#13600)
* Dont allow disable user when invited

* Use data instead of selection

* return succesfully disabled users

* Disable disable button when invited

* Add integration tests

* Remove unused usings

* Update src/Umbraco.Web.BackOffice/Controllers/UsersController.cs

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Create DisabledUsersModel

* use data.disabledUsers

* Return OK if no users to be saved

* User disabledUsersModel

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
2022-12-21 09:57:00 +01:00
Bjarke Berg fae74c53ba Merge remote-tracking branch 'origin/release/10.4' into v10/dev 2022-12-20 10:18:14 +01:00
d62e2d731b V10: Dont disable invited users (#13600)
* Dont allow disable user when invited

* Use data instead of selection

* return succesfully disabled users

* Disable disable button when invited

* Add integration tests

* Remove unused usings

* Update src/Umbraco.Web.BackOffice/Controllers/UsersController.cs

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Create DisabledUsersModel

* use data.disabledUsers

* Return OK if no users to be saved

* User disabledUsersModel

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
2022-12-20 09:53:54 +01:00
Kenn Jacobsenandnikolajlauridsen ab82549fd6 Support space (and more) in tag groups (#13589) 2022-12-16 14:25:30 +01:00
Kenn JacobsenandGitHub 9c21951d02 Support space (and more) in tag groups (#13589) 2022-12-16 14:23:31 +01:00
Ronald BarendseandElitsa Marinovska 4d760a54c8 Set redirect URL when building model (#12969)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
(cherry picked from commit 544cb30602)
2022-12-16 13:00:39 +01:00
Nikolaj GeisleandGitHub 5066491726 Close shared connection (#13580)
* Close shared connection

* Use transaction instead of shared connection
2022-12-14 18:33:00 +01:00
Elitsa MarinovskaandSebastiaan Janssen dabc7bed9b Enabling an Umbraco admin user to disable 2FA for a member (#13369)
* Fix Invalid authentication code bug

* Add translation keys for 2fa

* Display toggle for 2FA on member

* Add TwoFactorEnabled prop when saving member

* Handle disabling of 2FA

* Fix tests

* Changing obsolete msg

(cherry picked from commit af6b8fc5cb)
2022-12-14 13:50:16 +01:00
Jacob OvergaardandSebastiaan Janssen d6d4421a37 Tree picker support for selecting containers (#13507)
Fixes https://github.com/umbraco/Umbraco-CMS/issues/13463

(cherry picked from commit 63e4adca92)
2022-12-14 13:48:51 +01:00
Bjarne FyrstenborgandSebastiaan Janssen aaababca9b UserController should use getLocalDate from dateHelper (#13469)
* Use `getLocalDate` from dateHelper

* Remove duplicate import

* Keep function getLocalDate but use dateHelper

* Mark function as deprecated

(cherry picked from commit 30a7bca0ef)
2022-12-14 13:45:01 +01:00
Erik-Jan WestendorpandSebastiaan Janssen 77fdcf20ca Add AddManifestFilter extension method to UmbracoBuilder.CollectionBuilders.cs (#13161)
(cherry picked from commit 65dd52ad05)
2022-12-14 13:44:22 +01:00
Anders BjernerandSebastiaan Janssen fb881d568b Added "loading" parameter to "umbEditorHeader" directive
(cherry picked from commit 33668a5d95)
2022-12-14 13:43:36 +01:00
Owain JonesandSebastiaan Janssen 345feaf16a Updated welsh translations file
(cherry picked from commit 079b2b7452)
2022-12-14 13:41:28 +01:00
Anders BjernerandSebastiaan Janssen f4012115a3 NullOrWhiteSpaceAsNull should be nullable
(cherry picked from commit 5ffc2b1ccb)
2022-12-14 13:40:40 +01:00
SimonJansson2andSebastiaan Janssen 8bee709720 Adding swedish backoffice translations
(cherry picked from commit 2071224d1f)
2022-12-14 13:40:02 +01:00
Jason ElkinandSebastiaan Janssen 90ffd25d96 Swap HSTS healthcheck status on localhost
(cherry picked from commit 6cb53fd703)
2022-12-14 13:39:10 +01:00
CyberReiterandSebastiaan Janssen 43a4a49409 adding some german translations
(cherry picked from commit ce60e72452)
2022-12-14 13:38:22 +01:00
Sebastiaan Janssen 2265d0a928 Changed Logo button behavior to be more consistent with the rest of the header
(cherry picked from commit 7d9ee69fbc)
2022-12-14 13:37:38 +01:00
Tobias MønsterandSebastiaan Janssen 67d6e9f3df Renames Installer form from "myForm" to "installerForm" (#12806)
Co-authored-by: Joe Glombek <joe@glombek.com>
(cherry picked from commit 6cad4013e4)
2022-12-14 13:36:53 +01:00
Anders BjernerandSebastiaan Janssen 8ff1d0769e Added shortcut="esc" to RTE HTML editor close button
(cherry picked from commit 4922144528)
2022-12-14 13:35:01 +01:00
TiffanyandSebastiaan Janssen 4dbd7de0d6 Tree Roots are H1
(cherry picked from commit 105670dcc1)
2022-12-14 13:34:17 +01:00
Matthew WiseandSebastiaan Janssen 508898c4ee standarising ActionLetter and ActionName for IAction
(cherry picked from commit ec56778c9f)
2022-12-14 13:32:08 +01:00
Kristian Tolleshaug MørchandSebastiaan Janssen ba53b47b72 Ensure format processor is before quality processor.
(cherry picked from commit 69c725b3ec)
2022-12-14 13:31:08 +01:00
ustadstarandSebastiaan Janssen faf69e4349 Fix check for existing userStatesFilter
(cherry picked from commit f7e73fbff5)
2022-12-14 13:26:28 +01:00
Paul SealandSebastiaan Janssen 5db507cb96 created an add current domain button to the cultures and hostnames sc… (#13436)
* created an add current domain button to the cultures and hostnames screen

* removed unwanted space

(cherry picked from commit d86d29807d)
2022-12-14 13:23:34 +01:00
Corné HoskamandSebastiaan Janssen 479dde280f Added various Block Grid translations (NL) - Pt 2. (#13508)
* Added various translations

* Added another translation

* Change request

* Added various other area translations

* Resolve conflict

* Forgot one!

* Update nl.xml

(cherry picked from commit 9099bf44ac)
2022-12-14 13:22:44 +01:00
Corné HoskamandSebastiaan Janssen 93c0a4ee38 Added various Block Grid translations (EN & NL) (#13488)
* Added various translations

* Added another translation

* Change request

(cherry picked from commit a4e67bf444)

# Conflicts:
#	src/Umbraco.Core/EmbeddedResources/Lang/en.xml
#	src/Umbraco.Core/EmbeddedResources/Lang/en_us.xml
2022-12-14 13:21:59 +01:00
Vlael LayugandSebastiaan Janssen a810c59774 add default culture when there's only 1 language configured
(cherry picked from commit f7b42a50cc)
2022-12-14 13:19:08 +01:00
Erik-Jan WestendorpandSebastiaan Janssen 0b36c1195e Use constants instead of hardcoded strings
(cherry picked from commit 4f129baebd)
2022-12-14 13:17:49 +01:00
Justin NevilleandSebastiaan Janssen 5f4dc7a994 Added aria label to time period on log dashboard
(cherry picked from commit 8bf6a9246f)
2022-12-14 13:17:00 +01:00
Justin NevilleandSebastiaan Janssen 04be6889ab Allow empty valuesets to be indexed so the back-offce does not hang when rebuilding empty indexes
(cherry picked from commit 88ff05a836)
2022-12-14 13:15:53 +01:00
Markus JohanssonandSebastiaan Janssen 3bd9da00cc LogViewe: Adding support for destructed properties
(cherry picked from commit d2ab80534a)
2022-12-14 13:15:01 +01:00
Lotte PitcherandSebastiaan Janssen a0e8049916 Remove reference to installing a local package via backoffice (#13330)
(cherry picked from commit da9eae1252)
2022-12-14 13:14:19 +01:00
CyberReiterandSebastiaan Janssen 328f5e0817 make use of spans in UriExtensions to make them faster
(cherry picked from commit 02dcf98e3d)
2022-12-14 13:13:24 +01:00
Vitor RodriguesandSebastiaan Janssen 57a29e4085 Re-use any existing ReloadableLogger
It's possible that consumers have already set up a bootstrap logger themselves before Umbraco had a chance too, if that's the case we just reload it.

(cherry picked from commit 7ad1e638e6)
2022-12-14 13:12:37 +01:00
Vitor RodriguesandSebastiaan Janssen ea3c862228 Added missing content-type header to BootFailedMiddleware response
When Umbraco is configured with X-Content-Type-Options nosniff as is recommended (there's even a health check for it), any boot failure would simply show the html source code in the browser instead of properly rendering the html, as the content-type wasn't being set.

(cherry picked from commit d4c921264d)
2022-12-14 13:11:32 +01:00
Kenn JacobsenandGitHub dc2701cb5e Handle StringValues in ObjectExtensions.TryConvertTo (#13575) 2022-12-14 11:39:36 +01:00
Marc GoodsonandSebastiaan Janssen b87b9bebe2 Adjust the wording of some of the helper text around the new Block Grid editor (#13484)
(cherry picked from commit 2461b7d805)

# Conflicts:
#	src/Umbraco.Core/EmbeddedResources/Lang/en.xml
#	src/Umbraco.Core/EmbeddedResources/Lang/en_us.xml
2022-12-14 11:03:45 +01:00
Kenn JacobsenandGitHub c0d022be10 Fix wrongfully reported pending package migrations (#13574) 2022-12-14 11:00:12 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 2f1ef29690 Adjust sorting of block grid editor groups to y-axis only (#13225)
fixes https://github.com/umbraco/Umbraco-CMS/issues/13180

(cherry picked from commit d4c5f5017f)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/prevalue/blockgrid.blockconfiguration.controller.js
2022-12-14 10:53:35 +01:00
CyberReiterandSebastiaan Janssen d46d5aac0d Use ToArray instead of ToList
(cherry picked from commit f99378c5d3)
2022-12-14 10:47:16 +01:00
Lars-Erik AabechandSebastiaan Janssen c0d5b544f5 Ensure culture is always set in LocalizeText
(cherry picked from commit 4d23e8a6bd)
2022-12-14 10:45:56 +01:00
Karl ButlerandSebastiaan Janssen 303abaea28 Accessibility Fixes for Users and Packages pages (#13087)
(cherry picked from commit 2d560e9766)
2022-12-14 10:41:49 +01:00
patrickdemooij9andSebastiaan Janssen 481d496641 Use span in StripFileExtension to speed up and use less memory (#13101)
(cherry picked from commit 475cea40a1)
2022-12-14 10:38:04 +01:00
bkclerkeandSebastiaan Janssen ae31c2f5e4 add aria-labelledby attribute to tags input
(cherry picked from commit 1009238f32)
2022-12-14 10:36:09 +01:00
Kenn JacobsenandGitHub 2e271ba766 Fix unpublished state for culture variant content in a single language site (#13570) 2022-12-14 10:35:41 +01:00
Jan SkovgaardandSebastiaan Janssen 39e59efd22 Accessibility: Fix - Missing table description: A data table is present with no description associated to it (#13117)
(cherry picked from commit 97fa4d76dc)
2022-12-14 10:33:22 +01:00
Asbjørn Riis-KnudsenandSebastiaan Janssen ce9766eb69 Skip populating the PropertyTypeGroup alias column if it is already populated (#13109)
(cherry picked from commit 50d361c4e6)
2022-12-14 10:32:05 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 3c89b5271c Add input id to args in toggleValue event (#13108)
(cherry picked from commit a7368542d8)
2022-12-14 10:25:58 +01:00
JesseandSebastiaan Janssen a3c259482c added fix for ncNodeName filter in list view (#13086)
(cherry picked from commit e87701c482)
2022-12-14 10:24:22 +01:00
bakersbakebreadandSebastiaan Janssen ded4424b98 add setDirty() logic to remove actions on mediaPicker3 property editor
(cherry picked from commit 3377a7c96b)
2022-12-14 10:22:52 +01:00
TiffanyandSebastiaan Janssen 1c12e96c65 Fixed user invited badge color
(cherry picked from commit 5209840597)
2022-12-14 10:18:19 +01:00
Bjarke BergandGitHub 2d564a11b9 Maintenance page when in upgrade state (#13551)
* Added functionality to show maintenance page and fixed issues with showing custom api controllers and 404 page, when umbraco had been in install or upgrade state

* Fixed Tests

* Fixed typo

* Fixed issue with login screen redirecting to website when in upgrade state, instead of backoffice
2022-12-14 08:14:19 +01:00
Ronald BarendseandGitHub fd7778320a Save using consistent newline and support parsing different newlines (#13569) 2022-12-13 13:32:14 +01:00
BatJanandSebastiaan Janssen faa256dd92 Change prevalue order
(cherry picked from commit 8fe699f26b)
2022-12-13 13:27:14 +01:00
TiffanyandSebastiaan Janssen 90fdd8c5a8 Added h2 for the package details heading
(cherry picked from commit 96da638236)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/packages/views/repo.html
2022-12-13 13:21:54 +01:00
Rachel BreezeandSebastiaan Janssen 5d0d245f69 A11Y added missing iframe title to installer and preview controller.
(cherry picked from commit d32b93349d)
2022-12-13 13:19:29 +01:00
Michael LatoucheandSebastiaan Janssen 0b9e90821e Update datepicker.controller.js
Don't set dirty if date actually not changed

(cherry picked from commit 92ac072559)
2022-12-13 13:17:07 +01:00
Niels LyngsøandGitHub e4d1c65081 Make our default layout stylesheet handle area as flexbox, similar to backoffice styling. (#13534) 2022-12-13 09:35:34 +01:00
Niels LyngsøandGitHub f017c27db8 fix the broken responsiveness css calculation (#13535) 2022-12-13 09:34:18 +01:00
sofietoftandNikolaj 151708c4b5 Updated docs links to point to new platform (#13426)
* Updated docs links to point to new platform

* Update settingsdashboardintro.html

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2022-12-08 14:50:41 +01:00
793272bda1 V10: Umbraco Marketplace (#13511)
* v11: Umbraco Marketplace replaces packages repo (#13371)

* add lang keys for marketplace

* remove old 'repo' page and deprecate related services

* add new view for Umbraco Marketplace

* optimise margin/padding for other tabs

* mark Our Repository constants as obsolete

* improve css path to iframe slightly with more aliases and classnames

* remove style qs

* update URL of Marketplace

* add ng-controller with utitlities for future PostMessage API

* rename marketplace loaded function

* remove iframe postmessage logic for time being

* add handling of dynamic querystring params

* assume url does not change

* Added support for additional parameters for marketplace

* Update src/JsonSchema/AppSettings.cs

Fix styling issue

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Update src/Umbraco.Core/Configuration/Models/MarketplaceSettings.cs

Fix styling issue

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Update src/Umbraco.Core/Configuration/Models/MarketplaceSettings.cs

Make comment more descriptive

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Update src/Umbraco.Core/Constants-Marketplace.cs

Fix styling issue

Co-authored-by: Ronald Barendse <ronald@barend.se>

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Ronald Barendse <ronald@barend.se>

* Info panes not loading prerequisites (#13486)

* load relations immediately on init and remove call to non-existing function `appTabChange` on destroy

* load relations immediately on init and remove now not-used eventsService

* update marketplace url to its final, live url

* re-add files to prevent breaking change

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-12-07 10:44:34 +01:00
Justin NevilleandBjarke Berg f28b4c1279 Fix for issue 13017 - BeginUmbracoForm doesn't work with custom umbraco routes (#13103)
* Fix issue with custom Umbraco routes not working after submitting to a Surface controller

* Added comments

* Fixed breaking changes

* Fixed test by using correct new ctor

* Fixed initializtion of UmbracoRouteValueTransformer due to ambiguous ctor

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-12-06 12:42:06 +01:00
caed5bcb13 V11/feature/flaky test work (#13513) (#13527)
* Removed all the DeleteAllContent since I delete the doctypes in the before and after each functions which also deletes the content.

* fixed the test so it selects the specific button!

* I was dumb and forgot to remove the out commented code

* Added additional timeout so the pipeline has more time

* Removed language in settings because it was a duplicate of languages / languages

* Fixed the tests so they now check if each individual language that was created actually exists instead of checking for how many languages there are which could be flaky if another test touching the languages failed

* Bumped version

* Added a better locator for the buttons and increased timeouts

Signed-off-by: Zeegaan <nge@umbraco.dk>

Signed-off-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Andreas Zerbst <73799582+andr317c@users.noreply.github.com>
2022-12-06 11:32:23 +01:00
248a0c4f19 Allow indexing variant nodes when not all variants are published - fixes issues 11383. (#12669)
* This fixes issues 11383.
The introduction of the new Examine library caused an unintended consequence that it stopped indexing of nodes with language variants on them when one of the variants was unpublished.

These changes align ValueSetValidationStatus.Filtered to indicate that a node is intended as filtered out of a search, not that parts of its contents had been excluded from the result.

This brings it inline with how it is used in Umbraco.Examine.Lucene/UmbracoContentIndex

Unit tests changed to indicate the intent of ValueSetValidationStatus.Filtered

Change to UmbracoViewPage to make model variable nullable (because the solution wouldn't build otherwise on 2022)

* revert to use explicit type instead of var

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-12-06 08:23:54 +01:00
e992da7159 Fix concurrency issue in UmbracoMapper (#13524)
* Add logging to UmbracoMapper

* Add NullLogger to tests

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-12-05 12:25:55 +01:00
Elitsa MarinovskaandGitHub 4aa0378431 Changing the way we create the temp file for SQLite file (#13439) 2022-11-30 16:30:13 +01:00
Jan SkovgaardandGitHub 0d76ecbec8 Accessibility - Fix Packages - Modal - Empty buttons (#13114) 2022-11-30 15:55:26 +01:00
Andy ButlandandGitHub 34086386c7 Updated Forms dependency for JSON schema to the latest version. (#13505) 2022-11-30 13:46:37 +01:00
Andreas ZerbstandGitHub ccab65b12e V10/feature/fixing flaky acceptance test (#13473) 2022-11-30 12:41:16 +01:00
Niels Lyngsøandnikolajlauridsen f4c4c9008b do not set layout gaps (#13496) 2022-11-29 13:36:06 +01:00
Niels LyngsøandGitHub 877f52aec8 Make sure contexbar fits within the available space (#13467)
* Make sure contexbar fits within the available space

* Ensuring context bar moves above, no matter size of it.

* Fixing apperance of connection-fixers
2022-11-29 09:58:59 +01:00
Mole c9a97984f4 Ensure that all automatic relation types are updated (#13470) 2022-11-28 12:51:48 +01:00
c88ac85861 Add support for tags in block editors and nested content (#13412)
* feat: add tags extension points and remove hardcoded tags handling

* feat: allow tags editor in nested content and block editors

* Update src/Umbraco.Infrastructure/PropertyEditors/TagsPropertyEditor.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Update src/Umbraco.Web.BackOffice/Controllers/ContentControllerBase.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-11-28 11:20:46 +01:00
Mole e366da8c83 V11: Fix ordering by published in list of content (#13474)
* Update sort statement to use published field for invariant content

* Order by published if invariant
2022-11-25 12:04:44 +01:00
Bjarne FyrstenborgandNikolaj 3a01176ae4 Delete references using custom relation types (#13389)
undefined
2022-11-23 15:48:03 +01:00
Nikolaj dbef11b62b Cherry pick #13404 to v10 2022-11-23 12:36:56 +01:00
Kenn JacobsenandGitHub 63fa6f392c Rollback improvements (#13452)
* Rollback improvements - hide draft version, allow rolling back to last published version

* UX improvements to rollback, revert some overly complex logic in favor of better UX

* Ensure title update when changing rollback version

* Clean up

* Fix rollback playwright text
2022-11-23 10:04:21 +01:00
Kenn JacobsenandGitHub bce29f44f8 Fix preview issue for new (empty) variants (#13455)
* Fix save and preview for new (unsaved) variants

* Rework & simplify
2022-11-23 08:34:39 +01:00
Niels LyngsøandGitHub f13a9d419d remove the hidding of catelouge appearance as its not located under advance (#13456) 2022-11-22 10:54:43 +01:00
niekvanderreestandnikolajlauridsen 4ea920825d Cherry pick #13373 to v10/dev 2022-11-22 09:23:04 +01:00
dependabot[bot]andJacob Overgaard bc7e9267d8 Bump engine.io and socket.io in /src/Umbraco.Web.UI.Client
Bumps [engine.io](https://github.com/socketio/engine.io) and [socket.io](https://github.com/socketio/socket.io). These dependencies needed to be updated together.

Updates `engine.io` from 6.1.3 to 6.2.1
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/6.1.3...6.2.1)

Updates `socket.io` from 4.4.1 to 4.5.3
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/4.4.1...4.5.3)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
- dependency-name: socket.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-22 09:11:47 +01:00
Niels LyngsøandGitHub d2c8ecf9ab use custom prop for calculated width (#13451) 2022-11-21 20:08:12 +01:00
Niels LyngsøandGitHub 79b5484d23 Block Grid Editor translations and Area size keyboard navigation (#13450) 2022-11-21 20:07:18 +01:00
Niels LyngsøandGitHub a304d9b7b2 Display media trashed state on custom view for image demo block (#13448) 2022-11-21 16:23:07 +01:00
2a22cece7e block grid editor visual adjustments (#13446)
* make sure area border is on top of block views.

* rename class to avoid confusion

* change witch UI goes on top on hover

* Description informing all blocks are allowed when none is configured.

* add 'When empty'

* Sort mode

* ability to switch out property actions

* enter and exit sortmode from property actions

* gridsortblock

* rename block class to use sortblock

* Sort mode styling

* remove unused css selector

* fixing style for inline-creat button to appear above and not when hovering contextbar

* work on block grid inline editor

* use uui-button + enable installing demo blocks when its not the first dataType of this kind.

* improvements to inline editing POC

* update title of area config overlay editor

* reset columnSpan if no column span options is defined.

* Inline editing

* remove html comment

* remove code for transfer of stylesheets

* ability to hide label from directive

* inline editing using slots to render the umb-property in light dom

* remove property editor proxies when moving a block to a new area/block/context

* minor adjustments to custom views

* use individual slots for each area.

* Inline editing

* a little smaller rte min-height

* fire Custom focus/blur event for Block Grid Editor to catch for focus imitation

* disable inline editing prevalue field when custom view is set

* Fix scroll parent block into view

* initial work on sorter directive

* remove mediaBlock controller

* initial notes and structure

* further concept work

* remove consol log

* CSS for getting bigger areas

* removal of the forceLeft/forceRight code

* proven concept

* fix grid space detection. vertical/horizontal

* clean up and notes

* move into inner containers as well

* use last available index pr default

* boundary selector, for improved choise of dropping into an area

* hide last inline create button when dragging around

* remove console.log

* removal of forced placement in css

* default config and clean up

* notes

* bring back removed code

* show area ui when in dragging mode

* more specific selector

* drop allowance + clean up

* notes and clean up

* auto scroll

* turn --umb-block-grid--dragging-mode into conditional CSS Custom Property

* auto scroll

* refactoring

* fix condition mistake

* scope.config.resolveVerticalDirection

* wrap up simple setDragImage solution

* bring back vm.notifyVisualUpdate and clean up

* make draggableSelector optional, fallback to element

* implement umb-block-grid-sorter for Area PreValue editor

* remove sortableJS dependency

* remove sortableJs from dependencies

* wups, bring back the comma

* removed sortablejs from package-lock

* finished implementation of sorter for PreValue Block Areas

* fix for FireFox shadowDom issue, contains temprorary code.

* stop auto scroll

* make full thing dragable

* fix firefox issue (applying translateZ)

* comment

* make block fit in context columns

* revert element to where it came from if sync could not succeed + clean up

* ensure block does not push the amount of columns, this occourse when dragging item around.

* take horizontalPlaceAfter into account

* implement horizontalPlaceAfter in Areas Prevalue editor

* clean up dependencies

* Shift related el to first in row or last in row when there is no horizontal room

* clean up and correct calculation

* remove unused attribute

* revert to using el.getBoundingClientRect(), as the config.draggableSelector is not available for the placeholder item.

* bind model via dedicated binding to ensure it stay connected with the source model

* Update src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/prevalue/umb-block-grid-area-editor.html

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* fix eslint issues

* ensure missingColumnWidth is above 0

* Do not allow dragging something thats not found in the model.

* remove as this is not an error.

* update to Flexbox solution

* as the complex model does not change we can use single way binding

* Adjust columnSpan to context container, keep start columnSpan as the target for the calculation.

* make prevalue editor overlay medium size

* more white borders on UI

* move Catalogue appearance to Advanced

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-11-21 16:22:49 +01:00
c64850572b Block Grid Editor - make prevalue overlay medium sized (#13443)
* make sure area border is on top of block views.

* rename class to avoid confusion

* change witch UI goes on top on hover

* Description informing all blocks are allowed when none is configured.

* add 'When empty'

* Sort mode

* ability to switch out property actions

* enter and exit sortmode from property actions

* gridsortblock

* rename block class to use sortblock

* Sort mode styling

* remove unused css selector

* fixing style for inline-creat button to appear above and not when hovering contextbar

* work on block grid inline editor

* use uui-button + enable installing demo blocks when its not the first dataType of this kind.

* improvements to inline editing POC

* update title of area config overlay editor

* reset columnSpan if no column span options is defined.

* Inline editing

* remove html comment

* remove code for transfer of stylesheets

* ability to hide label from directive

* inline editing using slots to render the umb-property in light dom

* remove property editor proxies when moving a block to a new area/block/context

* minor adjustments to custom views

* use individual slots for each area.

* Inline editing

* a little smaller rte min-height

* fire Custom focus/blur event for Block Grid Editor to catch for focus imitation

* disable inline editing prevalue field when custom view is set

* Fix scroll parent block into view

* initial work on sorter directive

* remove mediaBlock controller

* initial notes and structure

* further concept work

* remove consol log

* CSS for getting bigger areas

* removal of the forceLeft/forceRight code

* proven concept

* fix grid space detection. vertical/horizontal

* clean up and notes

* move into inner containers as well

* use last available index pr default

* boundary selector, for improved choise of dropping into an area

* hide last inline create button when dragging around

* remove console.log

* removal of forced placement in css

* default config and clean up

* notes

* bring back removed code

* show area ui when in dragging mode

* more specific selector

* drop allowance + clean up

* notes and clean up

* auto scroll

* turn --umb-block-grid--dragging-mode into conditional CSS Custom Property

* auto scroll

* refactoring

* fix condition mistake

* scope.config.resolveVerticalDirection

* wrap up simple setDragImage solution

* bring back vm.notifyVisualUpdate and clean up

* make draggableSelector optional, fallback to element

* implement umb-block-grid-sorter for Area PreValue editor

* remove sortableJS dependency

* remove sortableJs from dependencies

* wups, bring back the comma

* removed sortablejs from package-lock

* finished implementation of sorter for PreValue Block Areas

* fix for FireFox shadowDom issue, contains temprorary code.

* stop auto scroll

* make full thing dragable

* fix firefox issue (applying translateZ)

* comment

* make block fit in context columns

* revert element to where it came from if sync could not succeed + clean up

* ensure block does not push the amount of columns, this occourse when dragging item around.

* take horizontalPlaceAfter into account

* implement horizontalPlaceAfter in Areas Prevalue editor

* clean up dependencies

* Shift related el to first in row or last in row when there is no horizontal room

* clean up and correct calculation

* remove unused attribute

* revert to using el.getBoundingClientRect(), as the config.draggableSelector is not available for the placeholder item.

* bind model via dedicated binding to ensure it stay connected with the source model

* Update src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/prevalue/umb-block-grid-area-editor.html

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* fix eslint issues

* ensure missingColumnWidth is above 0

* Do not allow dragging something thats not found in the model.

* remove as this is not an error.

* update to Flexbox solution

* as the complex model does not change we can use single way binding

* Adjust columnSpan to context container, keep start columnSpan as the target for the calculation.

* make prevalue editor overlay medium size

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-11-21 14:17:47 +01:00
b9d799b21d Block Grid Editor adjust while sorting (#13442)
* make sure area border is on top of block views.

* rename class to avoid confusion

* change witch UI goes on top on hover

* Description informing all blocks are allowed when none is configured.

* add 'When empty'

* Sort mode

* ability to switch out property actions

* enter and exit sortmode from property actions

* gridsortblock

* rename block class to use sortblock

* Sort mode styling

* remove unused css selector

* fixing style for inline-creat button to appear above and not when hovering contextbar

* work on block grid inline editor

* use uui-button + enable installing demo blocks when its not the first dataType of this kind.

* improvements to inline editing POC

* update title of area config overlay editor

* reset columnSpan if no column span options is defined.

* Inline editing

* remove html comment

* remove code for transfer of stylesheets

* ability to hide label from directive

* inline editing using slots to render the umb-property in light dom

* remove property editor proxies when moving a block to a new area/block/context

* minor adjustments to custom views

* use individual slots for each area.

* Inline editing

* a little smaller rte min-height

* fire Custom focus/blur event for Block Grid Editor to catch for focus imitation

* disable inline editing prevalue field when custom view is set

* Fix scroll parent block into view

* initial work on sorter directive

* remove mediaBlock controller

* initial notes and structure

* further concept work

* remove consol log

* CSS for getting bigger areas

* removal of the forceLeft/forceRight code

* proven concept

* fix grid space detection. vertical/horizontal

* clean up and notes

* move into inner containers as well

* use last available index pr default

* boundary selector, for improved choise of dropping into an area

* hide last inline create button when dragging around

* remove console.log

* removal of forced placement in css

* default config and clean up

* notes

* bring back removed code

* show area ui when in dragging mode

* more specific selector

* drop allowance + clean up

* notes and clean up

* auto scroll

* turn --umb-block-grid--dragging-mode into conditional CSS Custom Property

* auto scroll

* refactoring

* fix condition mistake

* scope.config.resolveVerticalDirection

* wrap up simple setDragImage solution

* bring back vm.notifyVisualUpdate and clean up

* make draggableSelector optional, fallback to element

* implement umb-block-grid-sorter for Area PreValue editor

* remove sortableJS dependency

* remove sortableJs from dependencies

* wups, bring back the comma

* removed sortablejs from package-lock

* finished implementation of sorter for PreValue Block Areas

* fix for FireFox shadowDom issue, contains temprorary code.

* stop auto scroll

* make full thing dragable

* fix firefox issue (applying translateZ)

* comment

* make block fit in context columns

* revert element to where it came from if sync could not succeed + clean up

* ensure block does not push the amount of columns, this occourse when dragging item around.

* take horizontalPlaceAfter into account

* implement horizontalPlaceAfter in Areas Prevalue editor

* clean up dependencies

* Shift related el to first in row or last in row when there is no horizontal room

* clean up and correct calculation

* remove unused attribute

* revert to using el.getBoundingClientRect(), as the config.draggableSelector is not available for the placeholder item.

* bind model via dedicated binding to ensure it stay connected with the source model

* Update src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/prevalue/umb-block-grid-area-editor.html

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* fix eslint issues

* ensure missingColumnWidth is above 0

* Do not allow dragging something thats not found in the model.

* remove as this is not an error.

* update to Flexbox solution

* as the complex model does not change we can use single way binding

* Adjust columnSpan to context container, keep start columnSpan as the target for the calculation.

* change let to const

* Revert "change let to const"

This reverts commit fe19f8c5ed.

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-11-21 13:22:00 +01:00
b698e4754d Block Grid Editor sorting directive (#13391)
* make sure area border is on top of block views.

* rename class to avoid confusion

* change witch UI goes on top on hover

* Description informing all blocks are allowed when none is configured.

* add 'When empty'

* Sort mode

* ability to switch out property actions

* enter and exit sortmode from property actions

* gridsortblock

* rename block class to use sortblock

* Sort mode styling

* remove unused css selector

* fixing style for inline-creat button to appear above and not when hovering contextbar

* work on block grid inline editor

* use uui-button + enable installing demo blocks when its not the first dataType of this kind.

* improvements to inline editing POC

* update title of area config overlay editor

* reset columnSpan if no column span options is defined.

* Inline editing

* remove html comment

* remove code for transfer of stylesheets

* ability to hide label from directive

* inline editing using slots to render the umb-property in light dom

* remove property editor proxies when moving a block to a new area/block/context

* minor adjustments to custom views

* use individual slots for each area.

* Inline editing

* a little smaller rte min-height

* fire Custom focus/blur event for Block Grid Editor to catch for focus imitation

* disable inline editing prevalue field when custom view is set

* Fix scroll parent block into view

* initial work on sorter directive

* remove mediaBlock controller

* initial notes and structure

* further concept work

* remove consol log

* CSS for getting bigger areas

* removal of the forceLeft/forceRight code

* proven concept

* fix grid space detection. vertical/horizontal

* clean up and notes

* move into inner containers as well

* use last available index pr default

* boundary selector, for improved choise of dropping into an area

* hide last inline create button when dragging around

* remove console.log

* removal of forced placement in css

* default config and clean up

* notes

* bring back removed code

* show area ui when in dragging mode

* more specific selector

* drop allowance + clean up

* notes and clean up

* auto scroll

* turn --umb-block-grid--dragging-mode into conditional CSS Custom Property

* auto scroll

* refactoring

* fix condition mistake

* scope.config.resolveVerticalDirection

* wrap up simple setDragImage solution

* bring back vm.notifyVisualUpdate and clean up

* make draggableSelector optional, fallback to element

* implement umb-block-grid-sorter for Area PreValue editor

* remove sortableJS dependency

* remove sortableJs from dependencies

* wups, bring back the comma

* removed sortablejs from package-lock

* finished implementation of sorter for PreValue Block Areas

* fix for FireFox shadowDom issue, contains temprorary code.

* stop auto scroll

* make full thing dragable

* fix firefox issue (applying translateZ)

* comment

* make block fit in context columns

* revert element to where it came from if sync could not succeed + clean up

* ensure block does not push the amount of columns, this occourse when dragging item around.

* take horizontalPlaceAfter into account

* implement horizontalPlaceAfter in Areas Prevalue editor

* clean up dependencies

* Shift related el to first in row or last in row when there is no horizontal room

* clean up and correct calculation

* remove unused attribute

* revert to using el.getBoundingClientRect(), as the config.draggableSelector is not available for the placeholder item.

* bind model via dedicated binding to ensure it stay connected with the source model

* Update src/Umbraco.Web.UI.Client/src/views/propertyeditors/blockgrid/prevalue/umb-block-grid-area-editor.html

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* fix eslint issues

* ensure missingColumnWidth is above 0

* Do not allow dragging something thats not found in the model.

* remove as this is not an error.

* update to Flexbox solution

* as the complex model does not change we can use single way binding

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-11-21 10:41:57 +01:00
dependabot[bot]andJacob Overgaard c2140cc042 Bump minimatch from 3.0.4 to 3.1.2 in /src/Umbraco.Web.UI.Client
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 15:20:46 +01:00
Jacob Overgaard 31f698e9b5 updated package-lock 2022-11-17 14:42:01 +01:00
dependabot[bot]andJacob Overgaard ac0101b601 Bump eventsource from 1.1.0 to 1.1.2 in /src/Umbraco.Web.UI.Client
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.2)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 14:18:14 +01:00
dependabot[bot]andJacob Overgaard 24c7fddc33 Bump minimist from 1.2.5 to 1.2.7 in /src/Umbraco.Web.UI.Client
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 14:18:10 +01:00
dependabot[bot]andJacob Overgaard 4eb37538d5 Bump async from 2.6.3 to 2.6.4 in /src/Umbraco.Web.UI.Client
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 14:18:05 +01:00
Blake WattandJacob Overgaard 7c16fa8171 update block grid panel name (#13325)
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-11-17 14:13:03 +01:00
dependabot[bot]andJacob Overgaard 4b83ca79df Bump socket.io-parser from 4.0.4 to 4.0.5 in /src/Umbraco.Web.UI.Client
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/4.0.4...4.0.5)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 14:12:57 +01:00
4aafbbf669 V10: merge v8 blobstorage file deletion fix (#13415)
* Implement fix from v8 https://github.com/umbraco/Umbraco-CMS/pull/11998

* Clean-up

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-11-17 11:17:41 +01:00
57ef0917f2 Feature: Media Picker drag and drop upload directly on property editor (#13393)
* prototype drag and drop upload

* Add upload image endpoint

* Add MediaPickerThreeController.cs

* Revert "Add upload image endpoint"

This reverts commit 4bb5865480.

* Update IIOHelper dependency

* show preview when uploading a new media item

* open uploaded media in media entry editor

* map data from uploaded media entry to support cropper

* add crop data to uploaded media item

* remove media library buttons for media entries not created in the media library

* Implement temp images save & add to media picker 3

* Implement ITemporaryImageService

* Remove save logic from MediaPicker3PropertyEditor

* Dont use a TempImageDto

* Add GetByAlias endpoint

* Add additonal xml doc

* Refactor to take array of aliases

* Add FromQuery attribute

* Formatting

* add resource to get media types by alias

* validate file size and file type based on server variables

* Update OpenApi.json
Add media picker three to BackOfficeServerVariables

* rename endpoint to upload media

* Use baseurl Method

* Dont upload in rte folder

* pass params correctly to end point

* queue files before uploading

* handle invalid files

* progress bar design adjustments

* only create data url for images

* disable edit and name buttons when uploading

* fix missing error messages for invalid files

* add temp location to media entry

* Add startNode to TemporaryImageService.cs

* Refactor get by alias

* Rename to GetAllFiltered

* use getAllFiltered method

* remove autoselect option

* fix missing alias when selecting media type

* fix file filter

* don't overwrite invalid entries from dropping new files

* add disallowed files to filter

* remove console.log

* move media uploader logic to reusable function

* fix missing tmp location

* attach media type alias to the mediaEntry

* support readonly mode

* show discard changes when files has been dropped

* add disabled prop to button group

* emit events when upload queue starts and ends

* pass node to media picker property editor

* add service to keep track of all uploads in progress

* add upload in progress to uploadTracker when the queue starts and ends

* disabled buttons when any upload is in progress

* return a subscription to align with eventsService

* Fix up cases where StartNodeId was null

* scope css

* Show filename in dialog for selecting media type

* reuse translation from media library dropzone

* Don't check for only images

* Remove composer

* Add mediaTypeAlias to TemporaryImageService

* Rename ITemporaryImageService to ITemporaryMediaService

* prefix client side only props with $ so we don't send unnecessary data to the server

* use prefixed dataURL in media entry editor

* render icon for non images

* fix auto select media type

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-11-17 11:16:01 +01:00
dff3d8a739 V10: AllowedUploadFiles appsetting not working (#13408)
* Add new Settings

* Use new settings instead of old ones

* Implement AllowedUploadedFiles value to be copied to AllowedUplayedFileExtensions

* Obsolete old settings

* Rename DisallowedUploadFileExtensions

* Implement same fix for DisallowedUploadFiles

* Use new settings for backoffice server variables

* Update the correct setting

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-11-17 09:43:57 +01:00
Niels LyngsøandGitHub 86561d2d2d Block Grid Editor: Removal of the forced placement feature (#13400)
* removal of the forceLeft/forceRight code

* removal of forced placement in css

* bring back removed code
2022-11-16 11:52:40 +01:00
b4115132cd Enable single block mode (#13216)
* Enable single block mode

* Fixes tests, and adds test for single block mode output type

* Update src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Update src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Fix breaking change

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-11-16 10:02:06 +01:00
Andy ButlandandGitHub f9e5d6308f Updated references for Forms and Deploy in JSON schema project. (#13411) 2022-11-15 15:24:52 +01:00
Niels Lyngsø fe2cab0daa remove console log 2022-11-14 12:14:25 +01:00
Niels LyngsøandGitHub 47c0bf9884 Block Grid Editor Improvements (#13282) 2022-11-11 22:15:07 +01:00
Kenn JacobsenandGitHub b5842d6a7d Move block grid single area rendering to its own dedicated view (#13359) 2022-11-08 13:34:12 +01:00
Nikolaj GeisleandGitHub 2a952c7374 Add guard statement (#13340) 2022-11-02 13:09:55 +01:00
Mole ed52298099 Fix casing in fileSystemBasePath (#13306) 2022-11-01 08:42:48 +01:00
Bjarke BergandGitHub e0b76acde5 Updated Smidge (#13331) 2022-10-31 08:47:04 +01:00
7204c039ad Allow for configuration of additional languages to install and ensure one is set as default. (#13290)
* Allow for configuration of additional languages to install and ensure one is set as default.

* Amended install default language method to handle invalid ISO codes and ensure the first specified language is always made the default.

* Removed unnecessary using.

* Apply suggestions from code review

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Clean up.

* Update src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-10-31 08:06:06 +01:00
nikolajlauridsen 851e5c6302 Merge branch 'release/10.3.2' into v10/dev
# Conflicts:
#	version.json
2022-10-27 14:27:31 +02:00
Nikolaj GeisleandSebastiaan Janssen e7fae144c2 Parse lockId as invariant (#13284)
Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit 272e922020)
2022-10-25 15:17:36 +02:00
Sebastiaan Janssen de2a927f0c Bump version to 10.3.2 2022-10-25 14:40:55 +02:00
Sebastiaan Janssen 0258f247eb Unbreak breaking change in #13066 (#13288)
(cherry picked from commit e4741b0c64)
2022-10-25 14:40:04 +02:00
patrickdemooij9andSebastiaan Janssen 8954b7f745 Use the actual save function for saving the copy (#13066)
* Use the actual save function for saving the copy

* PR feedback

(cherry picked from commit 3802097a32)
2022-10-25 14:39:39 +02:00
Sebastiaan JanssenandGitHub e4741b0c64 Unbreak breaking change in #13066 (#13288) 2022-10-25 14:18:50 +02:00
Sebastiaan Janssen e7baa03987 Merge branch 'v10/contrib' into v10/dev 2022-10-25 12:57:30 +02:00
272e922020 Parse lockId as invariant (#13284)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-25 09:18:38 +02:00
13e7534b43 Remove timeouts (#13285)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-24 14:59:56 +02:00
73bbff0a01 Fix Sqlite database locking issue (#13246)
* Add locking for creating scope

* Lock the repository instead

* Add scope in action instead of locking in service

* Fix up post-merge

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-24 13:45:11 +02:00
Daniël KnippersandJoe Glombek e2636fea2a Only attempt to find template when TemplateId is not null or default 2022-10-24 11:47:28 +01:00
facadac318 Add translation acceptance test (#13280)
* Add translation acceptance test

* Bump testhelpers version

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-10-24 07:35:01 +02:00
georgebidandGitHub 66cea99807 V10/bugfix/add user error suggestion #67 (#13259) 2022-10-22 17:17:07 +02:00
Sebastiaan Janssen 0089446381 Merge branch 'v10/dev' into v10/contrib 2022-10-22 16:30:37 +02:00
Jari LarsenandGitHub 226faca53c Umbraco logo test (#13267) 2022-10-22 13:01:18 +02:00
Jannik AnkerandGitHub 3d3fbd34ca Fixes #12127 - sets z-index on block list actions element (#13179)
* Sets z-index on block list actions element

Should solve #12127 https://github.com/umbraco/Umbraco-CMS/issues/12127

* #12127 : introduces variable for block actions z-index
2022-10-21 14:51:34 +02:00
Poornima NayarandOwain Williams d0a58392c6 Left aligned message - "This index cannot be rebuilt because it has no assigned IIndexPopulator" 2022-10-21 10:26:35 +01:00
nikolajlauridsen 86fb24ad32 Bump version 2022-10-20 15:21:25 +02:00
Mole fdbf3df057 Add PrivateAssets="all" to mangement api project reference (#13249) 2022-10-20 15:20:49 +02:00
MoleandGitHub b6af5decea Add PrivateAssets="all" to mangement api project reference (#13249) 2022-10-20 15:19:13 +02:00
a696d70815 Add default BlockGrid partial views to disk (#13227)
* Add migration that adds BlockGrid files to disk

* Add partial views to disk when creating sample

* Refactor upgrade to use IPartialViewPopulator

* Add blockgrid default rendering partial views when creating a new project from template

* Remove views from static assets

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-10-19 14:13:56 +02:00
Nikolaj d868263be4 Bump version 2022-10-19 09:23:08 +02:00
Andreas ZerbstandGitHub 071042fcb6 Merge pull request #13233 from umbraco/v10/cherry-pick/acceptance-test-stabilazation
V10: cherry pick acceptance test stabilazation from v11
2022-10-19 08:50:19 +02:00
Zeegaan 08982709b3 Revert "V11: fix failing acceptance tests (#13204)"
This reverts commit ea783bbc
2022-10-19 07:52:14 +02:00
Zeegaan cb9c165794 Add back macro locator 2022-10-19 07:51:24 +02:00
Zeegaan 61415b5c31 Add back the v10 locator that was updated in v11 2022-10-19 07:46:15 +02:00
ZeegaanandNikolaj Geisle 7ba9484705 Added proper save assert instead of checking on the route 2022-10-18 20:57:50 +02:00
Nikolaj Geisle 514497ffab Update tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/ModelsBuilder/modelsbuilder.spec.ts 2022-10-18 20:57:45 +02:00
Nikolaj Geisle 39f349fc99 Bumb playwright-testhelper version 2022-10-18 20:57:42 +02:00
Nikolaj Geisle ad67616f66 Reset maximum timeout to 30s 2022-10-18 20:57:41 +02:00
Nikolaj Geisle 8f70276cf7 Update maximum test time-out 2022-10-18 20:57:40 +02:00
Nikolaj Geisle e8456e36b2 Bumb testhelpers package 2022-10-18 20:57:40 +02:00
Nikolaj Geisle fff2b54203 Remove whitespace from response 2022-10-18 20:57:34 +02:00
Nikolaj Geisle 17de2ff98e Bumb testhelpers version 2022-10-18 20:57:34 +02:00
Nikolaj Geisle 01b24e238c Update test-helpers version 2022-10-18 20:57:33 +02:00
Nikolaj Geisle 477f4724c7 Dont remove whitespace 2022-10-18 20:57:33 +02:00
Nikolaj Geisle 3f07612306 Update playwright-testhelpers version 2022-10-18 20:57:32 +02:00
Nikolaj Geisle cf68d499ef Assert that the item is loaded before trying to click rollback 2022-10-18 20:57:29 +02:00
Nikolaj Geisle 84eecf5ee4 Close success notification 2022-10-18 20:57:25 +02:00
Nikolaj Geisle f8f9646e62 Add proper expect to download button 2022-10-18 20:57:25 +02:00
Nikolaj Geisle c071fc03ba Update testhelpers version 2022-10-18 20:57:24 +02:00
Nikolaj Geisle d5278ca9fe Dont commit playwright.config.ts 2022-10-18 20:57:24 +02:00
Nikolaj Geisle c3964c2183 Update tests to close success notifications 2022-10-18 20:57:23 +02:00
Nikolaj Geisle 58fb223a45 Close success notifications after they pop up 2022-10-18 20:57:22 +02:00
Nikolaj GeisleandZeegaan ea783bbc41 V11: fix failing acceptance tests (#13204)
* Fix macro in RTE test

* Update test-helper version

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-18 20:57:09 +02:00
MoleandGitHub 629cc631c6 V10.4: Re-enable block grid editor (#13231)
* Revert "Disable BlockGridEditor (#13229)"

This reverts commit 4e9aa8dac2.

* Re-do xml comments fix
2022-10-18 14:59:08 +02:00
nikolajlauridsen 75f628b5da Merge branch 'release/10.3' into v10/dev 2022-10-18 13:40:46 +02:00
4e9aa8dac2 Disable BlockGridEditor (#13229)
* Disable BlockGridEditor

* Fix typeloader test

* Update src/Umbraco.Core/Models/Blocks/BlockGridItem.cs

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestions from code review

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
2022-10-18 12:53:32 +02:00
Niels LyngsøandGitHub af468b6f28 Resync editors if content model changed (#13230) 2022-10-18 12:47:08 +02:00
Elitsa Marinovskaandnikolajlauridsen 5e96011140 Collect new .xml language files from different sources (#13212)
* Collecting new language files from different sources

* Apply suggestions from review

* Adding TODO for merging the language files locations to one when packages are not concerned
2022-10-18 08:23:32 +02:00
Elitsa MarinovskaandGitHub 733f0b8e09 Collect new .xml language files from different sources (#13212)
* Collecting new language files from different sources

* Apply suggestions from review

* Adding TODO for merging the language files locations to one when packages are not concerned
2022-10-18 08:22:27 +02:00
Niels LyngsøandGitHub 2993f1bb6d highlight areas in dragging-mode for modern browsers (#13224) 2022-10-18 08:21:54 +02:00
Sebastiaan Janssen 44253b22db Merge branch 'v10/dev' into v10/contrib 2022-10-17 15:30:53 +02:00
Niels LyngsøandGitHub 96bf197642 move below center, to make room (#13222) 2022-10-17 14:35:59 +02:00
8d8e4e0b24 10.3.0-RC: Change grid area input to number + change generic label (#13203)
Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
2022-10-17 14:02:25 +02:00
Niels LyngsøandGitHub 37424a63ec make Area fit within block row (#13221) 2022-10-17 13:55:22 +02:00
e22c7ea0d6 Merge BjarneF fix into 10.3 (#13220)
Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
2022-10-17 12:47:18 +02:00
41737a35d9 V10/bugfix/create simple package test (#13162)
* Fixed assert to hopefully find the package each time so it isnt flaky anymore

* Updated so it retries 5 times instead of 2

* Dont submit html-report

* Dont have output defined in npm run

* Copy over playwright trace.zip files before publishing

* Updated assert so it looks after the package in the table

* updated so we get the first fail as the trace file

* Bumped version for testhelpers

* Updated so the test checks if the package actually exists. Added a wait that checks if the created packages button is visible

* Updated package lock

* Fixed so it now calls the correct testhelper

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-13 14:49:48 +02:00
ed66fe1277 Add data-element to umb property so we can find it (#13199)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-13 10:30:27 +02:00
2fa61fe811 Add data-element to umb property so we can find it (#13199)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-13 10:29:50 +02:00
Kenn JacobsenandGitHub 0a925fd3ba Add documentation for default block grid partial views in the rendering extension methods (#13184) 2022-10-13 10:02:27 +02:00
Elitsa MarinovskaandNikolaj 0fe2c225cb Fix tags with CSV storage type (#13188)
* Fixing null check as default(NRT) is null => default(configuration?.Delimiter) is also null and we were counting on it being the same as default(char)

* Adding tests to check cases with multiple tags (or tag made of comma separated values)
2022-10-13 09:14:56 +02:00
Elitsa MarinovskaandGitHub cdc994dd8e Fix tags with CSV storage type (#13188)
* Fixing null check as default(NRT) is null => default(configuration?.Delimiter) is also null and we were counting on it being the same as default(char)

* Adding tests to check cases with multiple tags (or tag made of comma separated values)
2022-10-13 08:59:53 +02:00
Niels LyngsøandGitHub a0931d2042 area permission min-max inputs width increase (#13195) 2022-10-13 08:43:43 +02:00
Niels LyngsøandGitHub ff75fcd36e remove pointer-events from Image, to make drag n' drop work on firefox. (#13193) 2022-10-13 08:42:49 +02:00
Niels LyngsøandGitHub ab8d94b466 move clear:both; to the flexbox example (#13194) 2022-10-13 08:41:31 +02:00
Nikolaj GeisleandZeegaan 76b54c4b63 V10: 13099 fix validation error (#13170)
* Add validation error message to Viewpicker

* Add help-inline class to make validation-text red

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-13 08:27:14 +02:00
Nikolaj GeisleandZeegaan 63af4c487c Pass the node property to umb-property & umb-property-editor (#13151)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-13 08:27:11 +02:00
Zeegaan 4ee827052e Merge remote-tracking branch 'origin/release/10.3' into release/10.3 2022-10-13 08:26:34 +02:00
MoleandZeegaan 213dd7114d Add missing ForceLeft and ForceRight (#13190) 2022-10-13 08:26:23 +02:00
Mole 0b3a06ff0d V10: Fix request accessor memory leak (#13152)
* Dispose OnChange event registration when disposing the notification handler

* Ensure that the ApplicationUrl is only initialized once

Since notifications handlers are transient,_hasAppUrl and _isInit defaults to false on every request causing it to always be called.

* Make notification handler and EnsureApplicationUrl internal
2022-10-13 08:26:17 +02:00
MoleandGitHub 9f6d5e9543 Add missing ForceLeft and ForceRight (#13190) 2022-10-13 08:24:50 +02:00
MoleandGitHub 29ae87ec61 V10: Fix request accessor memory leak (#13152)
* Dispose OnChange event registration when disposing the notification handler

* Ensure that the ApplicationUrl is only initialized once

Since notifications handlers are transient,_hasAppUrl and _isInit defaults to false on every request causing it to always be called.

* Make notification handler and EnsureApplicationUrl internal
2022-10-13 08:17:02 +02:00
92df5d9501 Packages Modal - Further Fixes for Modal Trap (#13172)
* Fixes to focus trap within the modal

* Removing duplicate code

* Adding focus to previous element

* changed hardcoded color to existing less variable

Co-authored-by: Michael <michael@crossingpaths.be>
2022-10-13 01:02:23 +02:00
Jacob OvergaardandBjarke Berg 6e7ecd0a77 Fix for potential race condition in packages search (#13153)
* search on input allowing to wait for copy/paste etc

* invoke resourcePromise() with correct parameters

* return the xhrStatus allowing the caller to check if the request was aborted

* fix: send in canceler.promise to allow the timeout to work

* catch any errors and ignore aborts if they happen

* move the logic to handle cancellations outside Angulars $scope.$apply

* remove file accidentally committed

(cherry picked from commit 4a412bb432)
2022-10-12 12:40:02 +02:00
Jacob OvergaardandGitHub 4a412bb432 Fix for potential race condition in packages search (#13153)
* search on input allowing to wait for copy/paste etc

* invoke resourcePromise() with correct parameters

* return the xhrStatus allowing the caller to check if the request was aborted

* fix: send in canceler.promise to allow the timeout to work

* catch any errors and ignore aborts if they happen

* move the logic to handle cancellations outside Angulars $scope.$apply

* remove file accidentally committed
2022-10-12 12:39:11 +02:00
Nikolaj d13a55762a Re-add IsPackable to Umbraco.Tests.Integration 2022-10-12 10:30:31 +02:00
Nikolaj 3a08ab9b0b Re-add IsPackable to Umbraco.Tests.Integration 2022-10-12 10:29:46 +02:00
Kenn JacobsenandGitHub b8c73e7550 Add sync rendering extensions for block grid and async ones for block list (#13168) 2022-10-12 10:06:43 +02:00
BatJanandMichael Latouche c29679fa14 Remove old unused legacy files 2022-10-12 03:51:44 +02:00
patrickdemooij9andGitHub 3802097a32 Use the actual save function for saving the copy (#13066)
* Use the actual save function for saving the copy

* PR feedback
2022-10-12 02:59:38 +02:00
4deceb43eb V10: 13099 fix validation error (#13170)
* Add validation error message to Viewpicker

* Add help-inline class to make validation-text red

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-11 15:57:01 +02:00
Andreas ZerbstandGitHub 0d290c1ab3 Updated: added more time to waitForTimeout so the pipelines have time to load (#13164) 2022-10-11 13:53:45 +02:00
51968f3fba Pass the node property to umb-property & umb-property-editor (#13151)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-10 16:15:53 +02:00
Kenn JacobsenandZeegaan 7777ba40fd Fix broken selectable state for list view items (#13148) 2022-10-10 13:00:40 +02:00
Kenn JacobsenandGitHub 9897208838 Fix broken selectable state for list view items (#13148) 2022-10-10 12:58:50 +02:00
Ronald BarendseandGitHub 049ea6dca5 Publish E2E application logs (#13128)
* Publish E2E application logs

* Stop app after running E2E tests

* Update GenerateAppsettingsSchema task

* Enable console logging in Release mode

* Cleanup variables and enable logging in Linux docker

* Remove --yes from npx commands

* Set custom Umbraco settings (disable keep-alive, health checks, etc.)

* Update Docker image tags/versions

* Change PowerShell@2 task to pwsh and write results to artifact staging directory

* Ignore Playwright .env file
2022-10-10 09:09:59 +02:00
Bjarke Berg b5262d74eb Merge remote-tracking branch 'origin/release/10.3' into v10/dev 2022-10-07 10:03:11 +02:00
Bjarke Berg fbe5ecedf9 Add dependencies that we force an update to, even that we do not use them explicitly and they seems to be taken from the framework instead of from Nuget 2022-10-07 10:02:33 +02:00
Anders BjernerandNathan Woulfe 461989a599 Fixed accessibility issues with notifiation close buttons 2022-10-06 09:40:16 +10:00
BatJanandNathan Woulfe 21571b54ef Fixes umbraco/Umbraco-CMS.Accessibility.Issues#60 2022-10-06 09:32:05 +10:00
nikolajlauridsen c741f2fc20 Merge branch 'release/10.3' into v10/dev 2022-10-05 18:19:02 +02:00
Nikolaj 0dc577b45f Remove --no-build from dotnet pack
Should fix statix assets restore problem
2022-10-05 15:42:34 +02:00
Nikolaj e90c9e416d Bump version 2022-10-05 14:25:15 +02:00
367a4b9727 Block Grid Editor (#12826)
* Refactor block list/grid property value editors for code reuse

* Prettify block grid editor data conveter a bit

* correct appearance and colors

* validation should only kick in if value is higher than 0 and not null

* Add copyright notice to code, a little formatting and file scoped namespaces where applicable

* custom views

* custom views for blocks

* Refactor block list min/max validation and reuse for block grid

* Prettify extraction of nested content-and-settings references for block grid

* Fix bad naming

* fix casing

* Refactor block list notification handler and reuse for block grid

* context sensitive ui for Blocks

* Refactor notification handlers for block list and block grid incl. unit tests

* Formatting and review

* Bump number of expected data editors in unit test

* initial progress on column options editor

* column span options UI

* column span UI adjustments

* context aware ui adjustments

* minor border improvement

* get and pick layout stylesheet

* remove random x

* make highlight border standout more

* dedicated context bar

* UI improvements

* remove annoying indication

* copy paste

* UI improvements

* remove div.umb-block-grid__block--view from partial

* show block ui, only hide when hovering area.

* area actions

* UI Adjustments

* Block grid editor localization (#12915)

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>

* fix case of empty value

* use right index

* place border on top of column indication

* heroblock

* userFlowWhenBlockWasCreated

* shorter messages

* overal improvements

* force left/right drag feature

* stylesheet picker localization

* localizations

* space

* unnesecary removal of space

* notes on masonry

* validation form parent skipping + better snapping when drag n drop

* remove icons

* make rows go as minimal as posible

* scale and drop indications

* use item width to determin forceLeft or forceRight

* clean up

* Make clipboard filtering work with block arrays

* readonly mode

* important note

* ask to revert failed paste

* dont allow for backdrop click

* changed wording

* more area actions outside grid container

* droppable indication

* implemented minimal responsive solution.

* add additional data fields about grid clumns

* improved fallback columns width + rows height

* make root element class `umb-block-grid`

* align layout with position relatives, to align visual experience.

* use clientX not screenX

* rename area classes so they dont include the word 'block'

* more renaming

* commit flexbox layout css to repo

* fixes

* fix typo

* only show a broader inline create button if the block is full width.

* simplify css

* remove headline block hover effect

* use some font, to make it look better.

* Drag and drop correctiions/limits

* clean up

* remove log

* make assumptions about proposed distance of target

* slightly white border on validation message for areas to make it standout

* drag n drop seems good at this stage

* force left and right buttons and indication

* correct if

* revert scale handler ui

* If columnSpans is empty we fall back to full width

* Access other PreValues from a PreValue Editor

* maybe temprorary turn of distance drag n' drop condition

* setDirty

* area alias was missing in razor and needed help text

* forceleft forceright translations

* forceLeft / forceRight razor

* correct translation +
remove data- on ng-click

* force placement when moving over edge

* remove unnesecary wrapper element

* show-validation

* red text, might be hard to see, lets see.

* for safety have the border-raduis correct

* better wordings

* Use mouse position to judge if the drop is good before or after.

* fit placeholder when item is begin dragged away

* initial step for finding nearest relation when drag-hovering nothing

* Much better drag n drop experience, must be tested further to prove its not breaking some cases.

* title for scale handler

* new approach + massive drag n drop clean up

* avoid complex CSS transfering of props, instead add the prop in HTML

* adjust placeAfter when in vertical direction mode

* do not scale bigger than the available space to the right

* clean css

* fix numbers

* Fix the case of flickering when hitting an empty area.

* correct placement of code

* package lock

* Adjustment for PreValue Area allowances

* comment on fit in line feature

* fixing scale and drag n drop potential issues

* clean up

* only disallow above max

* outcomment unused code

* clean up

* drag n drop above or below container

* fix for Firefox

* Do not edit block if there is no properties in content

* angularJS form for Entries, to correct validation

* parse layout columns, used to know if block is full width of the layout

* use inherited layout columns

* add this to the example html

* flexbox fix

* highlight if empty area

* comments for undefined column spans

* bring back approvedContainer lock period.

* fix

* Do not edit something without properties

* Remove Force, as thats confusing to read.

* correct localization key

* minor corrections

* Fit within context columns

* Conceptual, inline editor for Grid.

* fix casing

* consider related position in directional conditions

* set default max row span to 1

* update columnSpanOption check for sync

* move Editor to group of Rich Text

* more shift autoScroll

* assume layout columns comes as string

* fix variable name

* force left/right indication

* Inject Areas directly in slot, to enable custom view manipulations of such.

* fix sortableJS mis dropping items

* Overwrite create label

* ability to overwrite root layout create label

* Simplify PreValue editor by hidding options that is not in effect.

* Setup new areas as half width if possible

* Grouping blockTypes

* remove flexbox stylesheet

* Chose groups for area allowance

* ensure a good default width

* improve block active state

* Better contextual sizing

* Comment clean up

* Remove The StarterKit from branch

* Unique group identification for the property editor sortable

* only show avaiable block groups in picker.

* Indication of taget area

* Fallback to root grid columns

* use root layout grid columns, so dont update when layoutColumns change

* Ability to remove block group

* clean up references when removing Group or single Block

* fix drop in same group

* Block picker use contexual create label as headline

* adjust area highlight

* Prevalue editor

* structuralOptions

* Move pre values into tabs for better overview and scope

* Let area grid columns fallback to root grid columns, and let both default to "12" instead of "initial"

* remove input close tag

* Allow in areas

* Move build-in custom views

* only show property-into-button on hover when in group-panel__header

* some height for the show buttons

* filter available block type based on allowInAreas

* remove OnlySpecifiedAllowance

* unsupported block if trouble happend

* move allow at root to allowance group

* easily drop at top or below area if outside. If more than 100px outside then see if there is a parent layout to move into.

* block group validation

* shortcut for opening Areas if areas are defined

* scale label for Areas editor

* Added Legacy name on the old grid layout

* Remove files that come with the starter kit

* Sorting: takeover container detection

* Refactor models + remove unused properties

* Endpoint for creating block grid demo element types

* CTA for getting Block Grid demo blocks

* Refactor block grid sample element creation

* Fix Constants-PropertyEditors spacing

* Fixed unit tests

* Get sample configuration

* Labels for sample blocks

* Improve drag, to swap across unallowed area/root

* improved empty threshold

* hide the after inline-create-button if block is located at right side of area/layout

* clean up

* translations

* danish translations

* move outside edge for forceRight

* Update src/Umbraco.Web.Common/Extensions/BlockGridTemplateExtensions.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Review comments

* Remove leftover TODO

* big cleanup

* Hide Sample CTA when installed

* clean up

* correct styling for wrapper + moving Block UI to z-index 3 for visiblity on top of other block

* slightly adjusting inline-create-buttons to avoid collisions

* correct localization for force left/right buttons

* gitignorer update

* Clean up nesting of classes in BlockGridConfiguration

* change gitignorer to include App_Plugin folder

* move default layout stylesheet

* remove specific App_plugin folder

* package-lock

* update sample custom views paths

* add custom views for sample

* Adding sample custom views

* Move sample partial Views and custom views

* Update views to not use ModelsBuilder

* Move sample custom views to wwwroot

* Updated Sample CTA text

* Use localize directory

* Ensure groupKey for items without such to work.

Co-authored-by: kjac <kja@umbraco.dk>
Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-10-05 13:50:26 +02:00
efb994ecf7 Adds a parameter to BeginUmbracoForm to allow the disabling of the creation of an antiforgery token. (#13037)
* Addes a parameter to BeginUmbracoForm to allow the disabling of the creation of an antiforgery token.

* Updated project references for Forms and Deploy in the JsonSchema project.

* Revert "Updated project references for Forms and Deploy in the JsonSchema project."

This reverts commit a749b45ab8.

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-05 12:56:42 +02:00
a745250d39 Removing can connect to database check so that Umbraco errors out on … (#13118)
* Removing can connect to database check so that Umbraco errors out on startup rather than trying to re-install when unable to connect to database.

* Revert breaking change

* Support installs of missing databases if the provider CanForceCreateDatabase. Else not

Co-authored-by: Austin Gilbert <AGilbert@rbaconsulting.com>
2022-10-05 12:44:18 +02:00
Sebastiaan Janssen b5f1ad5396 Merge branch 'v10/dev' into v10/contrib 2022-10-05 12:32:13 +02:00
Ronald BarendseandGitHub bc21c64617 v10: Cleanup project files (#13111)
* Backport project cleanup from #12907

* Remove empty Directory.Build.props

* Fix GenerateAppsettingsSchema target

* Re-add empty Directory.Build.props to prevent inheritance

* Add NRT to-do comment

* Explicitly generate HTTPS development certificate for E2E test
2022-10-05 12:11:51 +02:00
Bjarne FyrstenborgandGitHub 43b964c6c0 Adjustment of telemetry data slider (#13092)
* Set specific width of container to avoid slider flickering when browser add scrollbar due the telemetry data description

* Round value to nearest integer when slider use smooth behaviour
2022-10-05 11:54:17 +02:00
0feb947048 V10/bugfix/fix acceptance test (#13106)
* Fixed test for tab 'Drags and drops a property in a tab'

* Fixed test for macro 'Create macro'

* Fixed test for dataTypes 'Tests Approved Colors', 'Tests Textbox Maxlength', 'Test Url Picker'

* Fixed: Added more waitForTimeout on the test Tests Approved Colors.

* Fixed test for packages 'Create a simple package' test

* Removed unnecessary waitForTimeout

* Changed waitForTimeout to waiting until an element isVisible

* bumped test-helper packed to 1.0.2

* Removed duplicate isSuccessNotificationVisible

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-10-05 08:26:02 +02:00
ae6bee7b0b V10: Dont delete member on failed autolink (#12996)
* Disapprove member instead of delete if failed autolink

* Update to not disable the member when external login fails, but move the logic to protected method, to make it easy to extend.

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-10-05 08:19:22 +02:00
Andreas ZerbstandGitHub 99c7f966bd Merge pull request #13095 from umbraco/v10/feature/export-test-artifact
V10: Export test artifacts
2022-10-04 14:24:08 +02:00
cd748cd7c8 New backoffice: models builder dashboard controller (#13050)
* Add OutOfDateType model

* Add ModelsBuilderDashboardControllerBase

* Add BuildModelsController.cs

* Add StatusModelsBuilderDashboardController

* Change to return created and not OK

* Remove unused usings

* Add GetModelsBuilderDashboardController

* Add OpenApi attributes

* Fix formatting

* Fix up dependency injection for ModelsBuilderSettings

* Fix up naming and routing

* Fix up OpenApi attributes

* Remove ability to send raw HTML in dashboard

* Remove obsolete property

* Dont include dashboard in the name

* Async controllers

* Return ActionResults

* Fix up OpenApi contract

* Fix missing usings

* Update src/Umbraco.Cms.ManagementApi/Controllers/ModelsBuilderDashboard/ModelsBuilderControllerBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* use VersionedApiBackOfficeRouteAttribute for routing

* Fix up open api spec

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-10-04 13:11:30 +02:00
72fd393272 New backoffice: New Api controllers (#12983)
* Create migrate Language controller to Umbraco.Cms:ManagementApi

* Add proper language mapping

* Update mapping to handle if language name is null

* Uncomment code

* Add new language view model

* Add LanguageViewModelMapping

* Add mapper registration

* Fix up AddMappers extension method

* Implement mapping IEnumerable of languages

* Change action signatures to ViewModel instead of model

* Seperate logic from controller into service

* Move LanguageService.cs

* Register service

* Fix up mapping

* Add null check to mapping instead of controller

* Map to ILanguage instead of implementation

* Fix up null check

* Implement ProblemDetailsBuilder.cs

* Rename duplicate method

* Use builder in actions

* Implement new Paged models

* Create language controller base

* Use pagedModel for GetAllLanguages

* Create GetAllLanguagesPaged method

* Split language controller into single APIs

* Fix up controllers with API versions

* Map Total property

* Fix up route and naming for GetLanguageController.cs

* Fix up naming for language controllers

* New folder structure

* Add culture controllers

* Map CultureInfos to paged CultureViewModel

* Remove wierd include in csproj

* Refactor controller to return pagedViewModel instead of dictionary

* Fix up mapping to map single and enumerable

* Register mapping

* Add apiversion to controller

* Add inheritdoc

* Create DictionaryControllerBase.cs

* Add delete controller

* Only use HttpDelete for deletes

* Check also if language exists in service

* Split Save action into Create & Update actions

* Update Http attributes on Create and update controllers

* Proper routing for delete controller

* Add api version

* Make action async

* Implement CreateDictionaryController

* Create DictionaryViewModel.cs

* Use viewmodel instead of values

* Create get by int DictionaryController

* Add view models

* Rename controller

* Rename DictionaryViewModel to DictionaryItemViewModel

* use created instead of ID

* Apply DataContract/Datamember to view model

* change to guid instead of Guid

* Use proper responses instead of return models when creating/updating

* Implement new IDictionaryService

* Implement new MoveController

* Use new service in mapper

* Remove unused method

* Add DictionaryViewModelMapDefinition

* Create MoveOrCopyViewModel

* Proper Http action

* Create UpdateDictionary controller

* Map IDictionaryItem to DictionaryViewModel

* Add JsonPatching

* Add UpdateDictionaryController.cs

* Map DictionaryTranslationsDisplays properly

* ParentId should be nullable

* Add new DictionaryTranslationViewModel.cs

* Remove translationViewModel

* Add Id and Key to DictionaryTranslationDisplay.cs

* Implement IDictionaryFactory.cs

* Create DictionaryViewModels and do not use IEntity

* Map to new view models instead of displays

* Register the factiories in the service container

* Remove newtonsoft

* Add serializing to and from PatchDocs

* Use JsonPatchViewModel instead of object type

* Add JsonPatch.Net to csproj

* Implement JsonPatchService.cs

* Register JsonPatchService

* Make model non-nullable

* Update controllers to use new attributes

* Rename MoveViewModel.cs

* Remove NameIsDirty as that is legacy from how we used to handle updating

* Add GetAllDictionaryController

* Add todo to DictionaryControllerBase

* Add ExportDictionaryController

* Add ImportDictionaryController

* Remove unused umbraco mapper

* Add upload dictionary controller

* Create Dictionary import view models

* Update UploadDictionaryController with view models

* Remove unused using

* Implement pagedviewmodel for GetAllDictionaryController.cs

* Add dictionary overview viewmodels

* Add mapping for DictionaryOverViewModel

* Update Dictionary controller to use new viewmodel

* Fix up attributes for UploadDictionaryController

* Make actions async

* Make controller bases abstract

* Fix after merge

* New backoffice: Analytics controller (#12957)

* Add AnalyticsControllerBase

* Add AnalyticsViewModel

* Add GetAnalyticsController

* Update ViewModel to use System.Text.Json

* Add SetAnalyticsController

* Add AnalyticsLevelViewModel

* Add GetAllAnalyticsController

* Add viewmodel factory

* Register factory for DI

* Use factory for creation of ViewModel

* Fix up AnalyticsLevelViewModel.cs

* Use analyticsLevelViewModel

* Add Enum validation to controller

* Add OpenApi attributes

* Add routing to GetAllAnalyticsController

* Rename IPagedViewModelFactory

* use new renamed PagedViewModelFactory

* Make actions async

* Make controller base abstract

* Fix up after merge

Co-authored-by: Zeegaan <nge@umbraco.dk>

* New backoffice: Help controller (#12958)

* Add HelpControllerBase

* Add HelpPageViewModel

* Add GetHelpController

* Add viewmodel factory

* Register factory for DI

* Use PagedViewModelFactory for controller

* Update baseurl to be nullable

* Rename IPagedViewModelFactory

* Use new renamed IPagedViewModelFactory

* Dont use httpclient as field

Co-authored-by: Zeegaan <nge@umbraco.dk>

* New backoffice: Relation controller (#12961)

* Add relation controller base

* Add commen about auth

* Add GetRelationController

* Use mapping to viewmodel

* Add RelationViewModel

* Add RelationViewModelsMapDefinition.cs

* Add viewmodel factory

* Register factory for DI

* Rename IPagedViewModelFactory

* Add RelationViewModelFactory

* Remove unused service

* Add GetByChildRelationController

* Add relationViewModelFactory to DI

* Add MappingBuilderExtensions

* Add relationViewModelsMapDefinition to DI

* Use PagedViewModel for child relations

* Add CreateMultiple

* Update GetRelationController to use factory instead of direct mapping

* Update GetByChildRelationController to use relationViewModelFactory

* Fix up after merge

Co-authored-by: Zeegaan <nge@umbraco.dk>

* New backoffice: Tracked references controller (#12966)

* Add TrackedReferencesControllerBase.cs

* Add GetTrackedReferencesController

* Add relation model

* Add ITrackedReferencesRepository.cs

* Rename relation to RelationModel

* Add RelationMapDefinition.cs

* Add TrackedReferencesSkipTakeRepository

* Rename RelationModelMapDefinition

* Add new services to DI

* Rename RelationModel to RelationItemModel

* Implement TrackedReferencesSkipTakeService

* Formatting

* Add RelationItemViewModel.cs

* Add mapdefition

* Update TrackedReferencesController to use new PagedViewModel

* Add service to DI

* imlement proper routing

* Add async to GetTrackedReferencesController.cs

* Rename action to get

* Add DescendantTrackedReferencesController

* make filterMustBeIsDependency nullable

* Use count instead of capacity

* Rename controller

* Add MultipleTrackedReferencesController.cs

* Refactor TrackedReferencesService to not return pagedViewModel

* Remove TODO untill consensus on convention

* Formatting

* Delete old duplicate controller

* Fix up naming

* Fix up naming and fixed todo

* Fix up mapdefinition registrations

* Rename controllers

* Fix naming

* Fix nullable tree

* Fix up relation controller & action names

* Fix naming

* Fix up multiple to not be post

* Apply suggestions from code review

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Remove [ApiVersion] from each individual controller and added to base instead

* Added missing semi-colon

* Update all "non-async async" endpoints to return Task.FromResult

* Fixed up LanguageViewModels namespace

* Return proper status code

* Update xml documentation

* Rename GetAllCultureController

* Change return type attribute to proper Model

* Change return type attribute to correct model

* Add clarifying comment

* Change return type attribute to proper model

* Rename ById to by key

* Update DictionaryOverviewViewModel to use Key instead of ID

* Implement factory method to create viewModel instead of using services in mapper

* Fix up DictionaryItemViewModel to use Parent GUID instead of ID

* Update return type attribute to correct model

* Update key to actual GUID instead of string

* Update route to not include "delete"

* Remove redundant IActionResult specification

* Update responseType attribute to correct models

* Update OpenApiTag for DictionaryControllerBase

* Update ResponseType attribute to correct models

* update variable name to not be "XD"

* Update ResponseType attribute to correct model

* Update route to not include "update" as it is redundant

* Update produces responsetype attributes to correct models

* Use IJsonSerializer abstraction instead of JsonConvert directly

* Remove unused field

* Change ResponseType attribute to correct model

* change TrackedReferencesSkipTakeService to return pagedModels directly

* Remove duplicate DI

* change to better variable names

* Move RelationItemModel to core

* Remove empty folder

* Remove ITrackedReferencesSkipTakeService and add it to TrackedReferencesService

* remove TrackedReferencesSkipTakeRepository and add to TrackedReferencesRepository.cs

* Fix up TrackedReferencesService to not use SkipTake repository

* Remove AddRepositories from ManagementApiComposer

* Transition to ManagementApiBaseController

* Fixes ResponseType attribute to correct model

* Add loading files to service instead of having logic in controller

* Add todo comment

* Fix up routing for delete language

* Use problem details builder

* Add SystemTextJsonSerializer

* Add SystemTextJsonSerializer

* Remove unused usings

* Remove obsolete MoveDictionaryController

* Remove CreateDate and UpdateDate from DictionaryViewModel

* Change response type to correct model

* Remove PagedViewModelFactory.cs

* Add obsolete message

* Fix installer view models

A setter is required for the modelbinder to be able to do its work

* Update src/Umbraco.Cms.ManagementApi/Controllers/Analytics/SetAnalyticsController.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update ResponseType to correct Model

* Update comment

* Add FileUploadService

* Add DictionaryFactory.cs to handle creation of viewmodel

* Remove unused DI

* Rename actions & controllers to reflect eachother

* Update OpenApi.json

* Add dictionary to openapi

* Update in proper alphabetical order

* Add trackedReferences to openapi

* Fix open api doc

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-04 11:34:55 +02:00
31cb328c3b Use less memory when generating a GuidUdi (#13090)
* Use less memory when generating a GuidUdi

* PR feedback

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2022-10-04 01:49:59 +02:00
Sebastiaan Janssen 71276b7b4d Merge branch 'v10/dev' into v10/contrib 2022-10-03 13:43:27 +02:00
5115af0a31 Revert "Removing X-XSS-Protection healthcheck" (#13096)
This reverts commit 696475ebf2.

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-10-03 08:37:09 +02:00
Zeegaan 6eb57302fb Give proper variable name 2022-10-03 07:38:49 +02:00
Zeegaan 9e82bc5a46 Remove unused pipelines variable 2022-10-03 07:37:47 +02:00
Zeegaan 2a506320f1 Remove echo from build 2022-10-03 07:36:40 +02:00
Zeegaan 212c036052 Refix user test 2022-10-03 07:35:56 +02:00
Karl ButlerandMichael Latouche bdbf9122c9 Fixes umbraco/Umbraco-CMS.Accessibility.Issues #63 and #61 2022-10-03 02:53:48 +02:00
Patrick de MooijandMichael Latouche 97ac1ae629 Added nullability attribute to IsNullOrWhitespace 2022-10-03 00:05:18 +02:00
Bjarne FyrstenborgandMichael Latouche aa9a7e415e Don't use legacy icon for action delete 2022-10-02 23:18:02 +02:00
bakersbakebreadandMichael Latouche d6a1b69ead Refactor event handler away from keyup to ng-change 2022-10-02 22:09:17 +02:00
Zeegaan f0fe5261f2 Add echoing 2022-09-30 13:38:14 +02:00
Zeegaan cde1a27ff4 Add proper failing test 2022-09-30 13:37:38 +02:00
Zeegaan 74a2dd88c3 Add failing test 2022-09-30 12:03:05 +02:00
Zeegaan 89c5ef9582 Update yml to use powershell to check folder 2022-09-30 12:01:54 +02:00
8c61e9e00b Update acceptance test readme & scripts (#13078)
* Update readme to reflect the change to playwright

* Update test scripts

* update README

* update pipelines to run new script

* update package.json scripts

* dont include demo test in package.json

* Add creation of blueprint test

* Implement create test script

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-30 11:45:26 +02:00
patrickdemooij9andGitHub ae5a8496bb Use char instead of string for DetectJson (#13019)
* Use char instead of string for DetectJson

* Use faster method

* Change DetectIsJon method
2022-09-30 01:39:54 +02:00
Bjarne FyrstenborgandGitHub 826dbe7d62 Fix comment of view property in ConfigurationFieldAttribute (#13077)
* Fix comment of view property in `ConfigurationFieldAttribute`

* Update description of key property as well
2022-09-29 11:07:56 +02:00
89f5151ddf Implement playwright acceptance tests instead of cypress (#13069)
* fix up dependencies in package.json

* Change configs to playwright

* update types

* remove cypress

* add playwright

* Fix up imports

* Move up test files

* Fix up scripts

* Update user import

* Remove allowEditInvariantFromNonDefault=True.spec.ts

* Update docker container

* Run playwright on pipelines

* Install playwright

* change urls

* change to run playwright

* Update reporter

* create .env file when installing

* update pipelines

* Remove @in yml

* Update Yaml script to use New-Item

* Pipe object to Value

* Update yaml to use "" not {}

* Update localhost to proper port

* Push package-lock.json

* include dotenv in package.json

* Add back umbraco.config.ts

* Dont change launchSettings.json

* Fix up pipelines

* Change working directory

* Add logging

* Actually name the file

* Remove .env from path

* Add working directory

* Add working directory to script

* check env content

* Update more working dir

* Try making newline in YAML

* add quotes

* Try multiline infront of script

* Move top statement

* use https

* Update to localhost 44331

* ignore https in config

* Change linux to https

* add timeouts for tests

* Fix up url for linux

* Update docker to use port 44331 -> 5000

* increase timeout

* Update yaml

* Remove Cypress references and fix URL/port mapping

* Update umbraco-linux.docker

* Generate ASP.NET HTTPS development certificate

* Enable HTTPS development certificate in Docker

* Dont run failing tests

* Update HTTPS development certificate generation

* Copy nuget.config to correct location in Docker file

* do not run flaky test

* update outputdir

* Remove flaky tests

* Update to dot reporter

* Update to json-models-builders package

* Check if results folder exists

* Remove logging

* Use bash to find folder

* Dont use junit to report

* only publish if folder exists

* Add 5 retries for CI

* search correct folder

* Remove unused json file

* Use line reporter

* Remove umbraco.config.ts

* Remove more flaky test

* Add waits so we dont bombard SQLite

* Add page as parameter

* add page as parameter

* Remove flaky macro test

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-09-29 10:49:33 +02:00
Justin NevilleandMichael Latouche 3d88ed7ab2 Fix issue 13023 - Cannot read properties of undefined (reading 'allowedActions') 2022-09-29 01:51:33 +02:00
Justin NevilleandMichael Latouche 48269143d5 Redirect to a return URL if one is present on the querystring when logging into the back office 2022-09-29 01:09:41 +02:00
Austin GilbertandMichael Latouche 696475ebf2 Removing X-XSS-Protection healthcheck 2022-09-28 23:55:41 +02:00
Jeavon LeopoldandMichael Latouche 17101da620 Bump Smidge up to v4.1.1 2022-09-28 22:43:51 +02:00
Bjarne FyrstenborgandMichael Latouche 0e25d06698 Use pattern matching to check if items is not JArray 2022-09-28 21:54:54 +02:00
134b193c74 New backoffice - trees design (#12963)
* Refactor: Add default versioned back office route attribute

* Tree controller bases and first draft implementations for document, media and doctype

* Move tree item view models to appropriate location

* Fix missing parent

* Refactor user entity access for testability

* A bit of clean-up + handle user start nodes for items endpoint

* Implement foldersOnly for folder tree

* Items endpoint for document type tree

* Strongly typed action results

* Content + media recycle bin

* Correct return type for swagger

* Member type tree

* Rename user start node handling to make a little more sense

* Revert to faked admin start nodes in document tree

* Media type tree

* Data type tree

* Relation type tree

* Remove unused dependency from member type tree

* Correct documentation for member type tree endpoint response types

* Use icon constants

* Add templates tree

* Member group tree

* Document blueprint tree

* Partial views, scripts and stylesheets trees

* Static files tree

* Clarify "folders only" state

* Comments and improved readability

* Rename TreeControllerBase and TreeItemViewModel

* Move recycle bin controller base to its own namespace

* Moved tree base controllers to their own namespace

* Common base class for tree view models

* Remove ProblemDetails response type declaration from all actions

* Add OpenApiTag

* Various review comments

* Dictionary item tree

* Renamed all tree controllers to follow action/feature naming convention

* Handle client culture state for document tree

* Support "ignore user start nodes" for content and media + refactor how tree states work to make things more explicit

* Fix or postpone a few TODOs

* Make entity service able to paginate trashed children

* Handle sorting explicitly

* Re-apply VersionedApiBackOfficeRoute to install and upgrade controllers after merge

* Use PagedViewModel instead of PagedResult for all trees

* Explain the usage of UmbracoObjectTypes.Unknown

* Introduce and apply GetMany pattern for dictionary items

* Add a note about relation type caching

* Fix broken test build + add unit tests for new localization service methods

* Use new management API controller base

* Entity repository should build document entities for document blueprints when getting paged entities (same as it does when getting specific entities)

* Use Media type for Media recycle bin

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Move shared relation service to concrete implementations

* Use inclusive language

* Add 401 response type documentation to applicable trees

* Refactor entity load for folder tree controller base + ensure that folders are only included in the first result page

* Add (in-memory) pagination to dictionary tree

* Make file system controller honor paging parameters

* Support pagination in relation type tree

* Clarify method name a bit for detecting tree root path requests

* Update Open API schema to match new trees

* Move from page number and page size to skip/take (with temporary workaround for lack of property skip/take pagination in current DB implementation)

* Update OpenAPI schema to match skip/take

* Update OpenAPI schema

* Don't return paginated view models from "items" endpoints

* Update OpenApi schema

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-09-28 13:37:59 +02:00
Nikolaj GeisleandGitHub 3752f51625 Make Searchers endpoint return ActionResult (#13068) 2022-09-28 13:00:27 +02:00
Ronald Barendse 7890a265ab Internalize Umbraco.Cms.ManagementApi references 2022-09-27 23:43:07 +02:00
Ronald Barendse b0ea7bc076 Add BuildProjectReferences=false to dotnet pack 2022-09-27 17:23:56 +02:00
Ronald Barendse 418db7d325 Update build script 2022-09-27 17:07:24 +02:00
a0e51e3b91 New backoffice: examine management controller (#12981)
* Add ExamineManagementControllerBase

* Add ExamineIndexModelFactory

* Add IndexesExamineManagementController

* Add proper attributes

* Implement ExamineIndexViewModel.cs

* formatting

* Add comment about it working in .NET 7

* Add SearchersExamineManagementController.cs

* Update comments about why it might throw errors

* Add SearchResultViewModel

* Add SearchExamineManagementController

* Add ExamineSearcherValidationService

* Rename ExamineSearcherValidationService.cs to ExamineSearcherFinderService.cs

* Rename interface aswell

* Add SearchExamineManagementController

* Refactor ExamineSearcherFinderService

* Add HasIndexRebuiltExamineManagementController.cs

* Fix up formatting

* Async actions

* Add RebuildIndexExamineManagementController.cs

* Rename IExamineIndexModelFactory to IExamineIndexViewModelFactory

* Refactor HasIndexRebuilt endpoint to Index endpoint

* Remove unused usings

* Fix up DetailsExplanation

* Create dedicated SearchersViewModel

* Rename action

* Rename RebuildIndex to Rebuild

* Dont have changes in ExamineIndexModel

* Make values strongly typed instead of generic lists of strings

* Rename to non-plural

* Rename to non-plural

* Rename controller

* Introduce ITemporaryIndexingService

* Introduce ITemporaryIndexingService

* Add SearcherName to view model

* Move to new ExamineManagementControllerBase.cs

* Refactor ExamineManagerService

* Use init instead of setters

* Make properties explicitly on models

* Add DI

* Apply suggestions from code review

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Rename to IndexExamineManagementController

* Return ViewModel instead of exception

* Make view models non-nullable

* Add examine management extension point

* Rename to IndexingRebuilderService

* Move rebuild logic to service

* Fix up usages in IIndexingRebuilderService

* Fix up DI

* Fix OpenApi contract

* Implement CanRebuild on IIndexingRebuilderService.cs

Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
2022-09-27 11:30:59 +02:00
Justin NevilleandMichael Latouche 90cabb5e2b Fix issue toggling boolean between true/false after Save without refreshing 2022-09-27 02:01:16 +02:00
Busra SengulandGitHub 24b338a7a3 Fixes #12972 for validating legacy member passwords (#12973)
* Fixes #12972 for validating legacy member passwords

* Removed unused variable

* removed unused variable
2022-09-27 00:37:59 +02:00
MoleandGitHub 476692c4a9 Merge pull request #13061 from umbraco/merge/10.2.1
Merge/10.2.1
2022-09-26 12:54:51 +02:00
Nikolaj e97354dff9 Merge branch 'release/10.2.1' into merge/10.2.1
# Conflicts:
#	version.json
2022-09-26 12:53:19 +02:00
Mads RasmussenandNikolaj 25a20cf741 Add null check for variants in Grid Layout (#13060)
This fixes a regression from 10.2.0 where the `variants` property was removed.
2022-09-26 12:33:20 +02:00
Mads RasmussenandGitHub a342e4747f Add null check for variants in Grid Layout (#13060)
This fixes a regression from 10.2.0 where the `variants` property was removed.
2022-09-26 12:21:08 +02:00
MoleandGitHub 7493e5e1fd Add spellcheck false to password inputs (#13059) 2022-09-26 11:25:59 +02:00
Kenn JacobsenandGitHub e1d438701b Make sure swagger tags and operations are sorted alphabetically (#13055) 2022-09-24 09:50:32 +02:00
4b39cfe913 Bug fix for datepicker with offset time (#12847)
* https://github.com/umbraco/Umbraco-CMS/issues/12844

* remove "X" from ng-attr

Doing the test I killed the ng-if attr. But forgot it was there doing the commit

Co-authored-by: Lucas Bach Bisgaard <lom@novicell.dk>
2022-09-23 14:36:02 +02:00
c903c8a1a0 New Backoffice: Published cache controller (#13034)
* Add published cache controller (endpoints for the Published Status dashboard)

* Update OpenAPI contract for published cache endpoints

* Fix OpenApi spec

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-23 14:03:16 +02:00
Kenn JacobsenandGitHub 12a341f67d New endpoint for web profiling dashboard (#13038)
* Endpoint for web profiling dashboard

* Add profiling API contract
2022-09-22 13:41:26 +02:00
9a9bd6e480 Missing methods from IMemberService (#13022)
* Add back methods to interface

* Add default implementations to avoid breaking changes

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-22 10:51:48 +02:00
SeanandNikolaj b7f4f95f4b pass in parameters needed to member service (#13020) 2022-09-22 10:51:16 +02:00
Jacob OvergaardandNikolaj 4b25beea8b improve pip classList add/remove with no intermediary variable 2022-09-22 10:43:28 +02:00
Jacob OvergaardandNikolaj 3f6fc6f761 add an extra check to ensure the pips exist before adding a class to them 2022-09-22 10:43:12 +02:00
Mads RasmussenandGitHub b9f58a7bc4 Merge pull request #13044 from umbraco/bugfix/ab22651-slider-pips
Fix regression of active pips handling with noUiSlider
2022-09-22 10:22:50 +02:00
Kenn JacobsenandGitHub 986635c8a0 UmbracoPath has been removed from the official schema store, remove temporary workaround from our schema generator as well (#13043) 2022-09-22 10:18:40 +02:00
Andy ButlandandZeegaan 68f9a1e68c Updated project references for Forms and Deploy in the JsonSchema project. (#13047) 2022-09-22 07:53:37 +02:00
Andy ButlandandGitHub 4e6e0d6e14 Updated project references for Forms and Deploy in the JsonSchema project. (#13047) 2022-09-22 07:50:45 +02:00
Erik-Jan WestendorpandGitHub a95f4504eb Translate "User permissions for languages" feature to español (#12975)
* Translate 'selectLanguages' to Español

* Translate 'languagesHelp' to español

* Translate 'allowAccessToAllLanguages' to spanish
2022-09-22 01:22:34 +02:00
Erik-Jan WestendorpandGitHub 2f84d3071a Translate "User permissions for languages" feature to dutch (#12971)
* Translate 'sectionsHelp' to Dutch

* Translate 'selectLanguages' to Dutch

* Transkate 'allowAccessToAllLanguages' to Dutch
2022-09-22 01:10:17 +02:00
Sebastiaan Janssen 4effe1d462 Bump version to 10.2.1 2022-09-21 16:21:57 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 0142ade713 Ensure consistent margin on headings in tree root (#12992)
(cherry picked from commit 88bfef9e0d)
2022-09-21 16:18:55 +02:00
Bjarne FyrstenborgandGitHub 88bfef9e0d Ensure consistent margin on headings in tree root (#12992) 2022-09-21 16:10:40 +02:00
Mads RasmussenandJacob Overgaard 3139ad99e0 Only contain style instead of full layout (#13033) 2022-09-21 15:58:51 +02:00
Jacob Overgaard 348f3e71ea improve pip classList add/remove with no intermediary variable 2022-09-21 15:37:57 +02:00
Jacob Overgaard 65d065fb54 add an extra check to ensure the pips exist before adding a class to them 2022-09-21 14:59:54 +02:00
Sebastiaan Janssen cbfeba0807 Fix CodeQL duplicate "permissions" node and reformat 2022-09-20 16:03:57 +02:00
Mads RasmussenandJacob Overgaard 9827e18186 Only contain style instead of full layout (#13033) 2022-09-20 13:54:54 +02:00
Mads RasmussenandGitHub 92cde25a3e Only contain style instead of full layout (#13033) 2022-09-20 13:54:06 +02:00
Kenn JacobsenandGitHub a390ad1c3c UmbracoPath should no longer be configurable (#13032)
* UmbracoPath should no longer be configurable

* Remove UmbracoPath configuration from all tests
2022-09-20 13:19:18 +02:00
d872d6228f New backoffice/add system text json configuration attribute (#12998)
* Add SystemTextJsonConfigurationAttribute

* Fix up formatting

* Rename classes for clearer purpose

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-20 12:40:50 +02:00
Sebastiaan Janssen 732373b694 Merge branch 'v10/dev' into v10/contrib 2022-09-20 10:51:14 +02:00
954d3ecc86 v10: add Umbraco UI Library to the backoffice (#13031)
Co-authored-by: Warren Buckley <warren@umbraco.com>
2022-09-20 09:58:59 +02:00
48954bb36a New Backoffice - Exposing hardcoded Open API contract (#12953)
* Only expose swagger ui when in development

* Only expose swagger ui when in development + Test confirming the contract is respected + contract

* Rollback test code

* Fix up formatting

* Add reference to managementapi in integration tests.

* Revert "Add reference to managementapi in integration tests."

This reverts commit 67e2bf8277.

* Fix integration tests

* Add reference to management api in integration tests

* Fix up schema

* Fixed tests

* Fix test.. do not execute that composer twice

* Revert "Updated dependencies and fixed new NRT issues"

This reverts commit b2b2903a6e.

* Added debug info to test, to debug on azure pipeline

* Try and fix OpenApi test

* Only run test in release

* Try fixing OpenApi.json

Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
2022-09-20 09:50:34 +02:00
Sebastiaan Janssen b72a2c7fdc Merge branch 'v10/dev' into v10/contrib 2022-09-20 09:11:54 +02:00
Sebastiaan Janssen 8d5fb41ab7 Revert "Updated dependencies and fixed new NRT issues"
This reverts commit b2b2903a6e.
2022-09-20 09:08:28 +02:00
Sebastiaan Janssen 85e31bd12d Merge branch 'v10/dev' into v10/contrib
# Conflicts:
#	src/Umbraco.Core/EmbeddedResources/Lang/en.xml
#	src/Umbraco.Core/EmbeddedResources/Lang/en_us.xml
2022-09-19 16:48:36 +02:00
Bjarke BergandSebastiaan Janssen b2b2903a6e Updated dependencies and fixed new NRT issues
(cherry picked from commit 803c044b60)
2022-09-19 16:21:50 +02:00
Jacob OvergaardandSebastiaan Janssen 1fe4c5169c V10: Fix to allow dragged images in the rich text editor to be correctly uploaded (#13016)
* update string extensions IsFullPath to support more filepaths with new built-in Path.IsPathFullyQualified

* resolve TODO to switch to Path.IsPathFullyQualified supported from .NET Standard 2.1

* Use content root instead of web root for uploaded images

* Un-break a breaking change

* handle special parsing of AngularJS json response

* change htmlId selector to support html id's with numbers

* remove bad test case

* test IsFullPath without tricky UNC paths that are not useful

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
(cherry picked from commit d18dc92137)
2022-09-19 16:21:20 +02:00
Jacob OvergaardandSebastiaan Janssen 963d0018c2 update npm packages
@microsoft/signalr: 6.0.9
ace editor: 1.10.1
clipboard: 2.0.11
jquery: 3.6.1
jquery-ui: 1.13.2
moment.js: 2.29.4
nouislider: 15.6.1
underscore: 13.13.4
wicg-inert: 3.1.2

dev updates: karma, jasmine, less and postcss

(cherry picked from commit ad1c945bb1)
2022-09-19 16:20:55 +02:00
Kenn JacobsenandSebastiaan Janssen 07b7ef200a Add custom PrependBasePathFileProvider to handle media files with special characters (#12936)
(cherry picked from commit e9883ea063)
2022-09-19 16:20:44 +02:00
MoleandSebastiaan Janssen 22576edd70 Backoffice api: Refactor controllers (#12934)
* Refactor install controller

* Removed unused InstallationTypeTarget

* Add ApiVersion to controllers

* Refactor upgrade controller

* Add missing RequireRuntimeLevelAttribute

(cherry picked from commit a356cf4f40)
2022-09-19 16:20:23 +02:00
Nikolaj GeisleandSebastiaan Janssen 352da6c529 V10: Update examine dependency (#12982)
* Update Examine.Lucene to newest version

* Update other projects

(cherry picked from commit 09e2b04f91)
2022-09-19 16:19:44 +02:00
nikolajlauridsenandSebastiaan Janssen 79c67338e7 Ensure new projects use the correct apssettings key for AllowEditInvariantFromNonDefault
(cherry picked from commit ae516b28db)
2022-09-19 16:19:23 +02:00
NikolajandSebastiaan Janssen 788f8c6ab3 Undo breaking change
(cherry picked from commit 5bb38b39c9)
2022-09-19 16:19:02 +02:00
Nikolaj GeisleandSebastiaan Janssen 0c84b1a051 Extend error message with possible solution (#12962)
Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit 82934838cc)
2022-09-19 16:18:52 +02:00
MoleandSebastiaan Janssen 48c981d31f Hotfix: Move allow edit invariant from non default setting to content settings (#12960)
* Use ContentSettings instead of SecuritySettings for AllowEditInvariantFromNonDefault

* Make it backwards compatible

(cherry picked from commit 3846c75cc6)
2022-09-19 16:18:41 +02:00
Sebastiaan Janssen aa7a7c4691 Fix tree root font being larger than it used to be
(cherry picked from commit 2ad6633d47)
2022-09-19 16:18:32 +02:00
Bjarke BergandSebastiaan Janssen 0a77775bb1 Fixed InstallAuthorizeAttribute and simplified other things
(cherry picked from commit da24ae9180)
2022-09-19 16:18:19 +02:00
NikolajandSebastiaan Janssen 3ab57ce691 Bump version
(cherry picked from commit d038f860bd)
2022-09-19 16:18:07 +02:00
Nikolaj GeisleandSebastiaan Janssen 7d0be19199 Add PagedViewModel (#12955)
Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit 9a2ead4381)
2022-09-19 16:17:47 +02:00
Bjarke BergandSebastiaan Janssen 5500f87223 Limit what API does when not in used in Install level
(cherry picked from commit 7b00c0d3e9)
2022-09-19 16:17:39 +02:00
Nikolaj GeisleandSebastiaan Janssen 7852220827 Use staticserviceprovider to provide service (#12939)
Co-authored-by: Zeegaan <nge@umbraco.dk>
(cherry picked from commit 89d1d7cd9c)
2022-09-19 16:16:45 +02:00
MoleandSebastiaan Janssen 669f8ff5ba Backoffice Api: Server Controller (#12932)
* Add initial implementation using 1 controller pr. action

* Add OpenApiTag attribute

Otherwise the endpoints won't be grouped correctly

* Use correct response type

* Move ApiVersion to endpoint controllers

* Add ServerController suffix to endpoint controllers

(cherry picked from commit 9cf7e965a9)
2022-09-19 16:16:32 +02:00
Jacob OvergaardandSebastiaan Janssen 126a2593ee remove styling from installer (#12923)
This styling is now being imported from components/umb-range-slider.less and is no longer needed here

Previously fixed in 52672d2c2b

Ref https://github.com/umbraco/Umbraco-CMS/pull/12807/files/52672d2c2ba046f1da431388ec95b21b30965f08#r957799952

(cherry picked from commit 87ced87ddd)
2022-09-19 16:16:22 +02:00
Nikolaj GeisleandSebastiaan Janssen 6b967a9693 Add virtual SetUpTestConfiguration method (#12928)
(cherry picked from commit 2cef243056)
2022-09-19 16:16:12 +02:00
Kenn JacobsenandSebastiaan Janssen 147c60f04b Performance improvement: Reusable data editors (#12921)
* Introduce opt-in option for reusable data editors

* Verified RTE as reusable

* Make attribute property naming more explicit + update comments

* Test file upload and image cropper

* Add unit tests

(cherry picked from commit 44122c6509)
2022-09-19 16:16:03 +02:00
Sebastiaan Janssen 6302630d39 Revert "Break word for limited width content"
This reverts commit 448836ee2d.

(cherry picked from commit 07fba1eb84)
(cherry picked from commit 5fc6fa58c0)
2022-09-19 16:15:52 +02:00
Mayur DandSebastiaan Janssen 31dc7fa458 Fix #12770 (#12865)
* change "umbraco" to "Umbraco" in translation files.

* Replace "<i>" and "<b>" tag with "<em>" and "<strong>"

(cherry picked from commit fa8bb3f1da)
(cherry picked from commit de0294d163)
2022-09-19 16:15:43 +02:00
Sebastiaan Janssen 48bd4a5f27 Grammar (do -> does) and some extra text
(cherry picked from commit 9bd6500bc7)
2022-09-19 16:15:32 +02:00
Sebastiaan Janssen 87c06f5f98 Back to 10.2.0-ish 2022-09-19 16:14:16 +02:00
Jacob Overgaard 8de26c6098 Revert "Merge remote-tracking branch 'origin/v11/dev' into v11/dev"
This reverts commit 40df989c9f, reversing
changes made to 803c044b60.
2022-09-19 12:41:26 +02:00
Bjarke Berg 40df989c9f Merge remote-tracking branch 'origin/v11/dev' into v11/dev 2022-09-19 12:36:52 +02:00
Bjarke Berg 803c044b60 Updated dependencies and fixed new NRT issues 2022-09-19 12:36:45 +02:00
Kenn JacobsenandGitHub ef15da3f6e Bypass model validation for rendering models (#12999)
undefined
2022-09-19 11:03:16 +02:00
Bjarke Berg c1010e5239 Merge remote-tracking branch 'origin/v10/dev' into v11/dev 2022-09-19 10:51:18 +02:00
d18dc92137 V10: Fix to allow dragged images in the rich text editor to be correctly uploaded (#13016)
* update string extensions IsFullPath to support more filepaths with new built-in Path.IsPathFullyQualified

* resolve TODO to switch to Path.IsPathFullyQualified supported from .NET Standard 2.1

* Use content root instead of web root for uploaded images

* Un-break a breaking change

* handle special parsing of AngularJS json response

* change htmlId selector to support html id's with numbers

* remove bad test case

* test IsFullPath without tricky UNC paths that are not useful

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-09-19 10:29:12 +02:00
0b1295d05b Missing methods from IMemberService (#13022)
* Add back methods to interface

* Add default implementations to avoid breaking changes

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-19 10:26:10 +02:00
Mike MaseyandMichael Latouche 6f9bf59e04 fix: focus state for search and help icons 2022-09-18 15:03:19 +02:00
SeanandGitHub 6967fadf3d pass in parameters needed to member service (#13020) 2022-09-17 12:00:06 +01:00
MoleandGitHub 6298fb338e Merge pull request #13014 from umbraco/v10/feature/september-dep-updates
v10: Update JS dependencies
2022-09-16 15:06:13 +02:00
Jacob Overgaard ad1c945bb1 update npm packages
@microsoft/signalr: 6.0.9
ace editor: 1.10.1
clipboard: 2.0.11
jquery: 3.6.1
jquery-ui: 1.13.2
moment.js: 2.29.4
nouislider: 15.6.1
underscore: 13.13.4
wicg-inert: 3.1.2

dev updates: karma, jasmine, less and postcss
2022-09-16 14:04:23 +02:00
Bjarne FyrstenborgandGitHub eddf0ad61e Only show table when any filtered result (#12993)
* Only show table when any filtered result

* Show table when any filtered dictionary items
2022-09-16 02:45:10 +02:00
patrickdemooij9andGitHub 6d27454ed2 Added nullable helper for IfNullOrWhiteSpace (#12979)
* Added nullable helper for IfNullOrWhiteSpace

* Remove for str as that one could be an empty string
2022-09-16 01:14:23 +02:00
Erik-Jan WestendorpandGitHub b84ccea96f Add label-key to prevent cleanup button (#12990)
* Add label-key

* Translate 'historyCleanupEnableCleanup' to Dutch

* Add 'historyCleanupEnableCleanup' to en_us.xml
2022-09-14 13:36:36 +02:00
Kenn JacobsenandGitHub e9883ea063 Add custom PrependBasePathFileProvider to handle media files with special characters (#12936) 2022-09-13 09:11:46 +02:00
MoleandGitHub a356cf4f40 Backoffice api: Refactor controllers (#12934)
* Refactor install controller

* Removed unused InstallationTypeTarget

* Add ApiVersion to controllers

* Refactor upgrade controller

* Add missing RequireRuntimeLevelAttribute
2022-09-13 08:04:45 +02:00
Nikolaj GeisleandGitHub 09e2b04f91 V10: Update examine dependency (#12982)
* Update Examine.Lucene to newest version

* Update other projects
2022-09-12 18:48:30 +02:00
Bjarke Berg 74c45ee60d Merge remote-tracking branch 'origin/v10/dev' into v11/dev
# Conflicts:
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs
#	src/Umbraco.Core/Models/Mapping/DictionaryMapDefinition.cs
#	src/Umbraco.Web.BackOffice/Install/InstallApiController.cs
#	version.json
2022-09-12 16:47:20 +02:00
Anders BjernerandGitHub 902f126e6b Added support for virtual backoffice icons (#12833) 2022-09-09 12:50:21 +02:00
CyberReiterandGitHub 4df012e8e9 Skip move logic if the parent is staying the same (#12937)
* v10/feature/skip-move-logic: add logic to skip move logic when parentId would be the same as before

* v10/feature/skip-move-logic: remove unnecessary checks

* remove check for mediaservice as there is already one in place

* remove unnecessary using

* added parent checks for dictionary items

* changing behaviour for contenttypes, datatypes and mediatypes to show errors on move
2022-09-09 03:06:50 +02:00
Matthew CareandMichael Latouche 1bd0a1f86d Set the first app to active if no active apps
Add support for a block list item which only contains settings
2022-09-09 02:13:30 +02:00
ChadandGitHub fdc1b02b4f Fix Nucache rebuilding more type caches than necessary (#12785) 2022-09-08 13:17:54 +02:00
nikolajlauridsen d5be2fb89c Merge branch 'release/10.2.0' into v10/dev
# Conflicts:
#	version.json
2022-09-08 10:34:53 +02:00
Sebastiaan Janssen 5f42cf0cf7 Revert "Replace uppercase chars to make behaviour consistent"
This reverts commit 68cf801689.
2022-09-08 09:47:00 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 68ff7b234d Replace uppercase chars to make behaviour consistent
(cherry picked from commit 68cf801689)

# Conflicts:
#	src/Umbraco.Core/Extensions/RequestHandlerSettingsExtension.cs
2022-09-08 09:44:53 +02:00
nikolajlauridsen ae516b28db Ensure new projects use the correct apssettings key for AllowEditInvariantFromNonDefault 2022-09-08 08:46:01 +02:00
Mole 4683c4a073 Hotfix: Move allow edit invariant from non default setting to content settings (#12960)
* Use ContentSettings instead of SecuritySettings for AllowEditInvariantFromNonDefault

* Make it backwards compatible
2022-09-07 14:47:20 +02:00
Nikolaj 4acabfae79 Merge remote-tracking branch 'origin/release/10.2.0' into release/10.2.0 2022-09-07 14:45:15 +02:00
Nikolaj 5bb38b39c9 Undo breaking change 2022-09-07 14:44:47 +02:00
82934838cc Extend error message with possible solution (#12962)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-07 14:43:26 +02:00
MoleandGitHub 3846c75cc6 Hotfix: Move allow edit invariant from non default setting to content settings (#12960)
* Use ContentSettings instead of SecuritySettings for AllowEditInvariantFromNonDefault

* Make it backwards compatible
2022-09-07 14:38:54 +02:00
Sebastiaan Janssen 2ad6633d47 Fix tree root font being larger than it used to be 2022-09-07 14:08:33 +02:00
Bjarke Berg da24ae9180 Fixed InstallAuthorizeAttribute and simplified other things 2022-09-07 11:37:58 +02:00
Nikolaj d038f860bd Bump version 2022-09-07 09:20:08 +02:00
Nikolaj a83bb2f767 Bump version to non-rc 2022-09-07 09:19:22 +02:00
Bjarke BergandNikolaj e09dc75e4f Limit what API does when not in used in Install level 2022-09-07 09:18:46 +02:00
Nikolaj d8fafcfeeb Merge remote-tracking branch 'origin/release/10.1.1' into v10/dev
# Conflicts:
#	version.json
2022-09-07 09:17:07 +02:00
Erik-Jan WestendorpandGitHub a0d673262c Translate content apps to spanish (#12950)
* Add apps area to Spanish language file

* Translate apps
2022-09-06 16:10:09 +02:00
9a2ead4381 Add PagedViewModel (#12955)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-06 14:07:47 +02:00
Bjarke Berg 7b00c0d3e9 Limit what API does when not in used in Install level 2022-09-05 21:12:41 +02:00
Bjarke Berg 67dbc6af26 Bump Version 2022-09-05 21:05:59 +02:00
Mayur DandGitHub 1f5d58b1a9 Fix: Media Picker creates duplicated folders (#12918) (#12948)
* fix: Media Picker creates duplicated folders (#12918)

* Fix: Media section multiple content creation (#12918)
2022-09-05 02:17:46 +02:00
AlexandMichael Latouche df3777f976 Update add-issues-to-review-project.yml
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2022-09-05 01:45:07 +02:00
Erik-Jan WestendorpandMichael Latouche 7bb5fbf268 Translate languages area 2022-09-04 04:33:08 +02:00
Bjarne FyrstenborgandGitHub 8f4d8d60b0 Use SVG logo in installer/upgrader (#12922)
* Use SVG logo in upgrader

* Adjust logo in app header and boot failed as well

* Remove width and height from CSS

* Update sizes

* Set image size

* Disable draggable of logo
2022-09-02 15:28:39 +02:00
89d1d7cd9c Use staticserviceprovider to provide service (#12939)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-09-02 14:20:02 +02:00
Sebastiaan JanssenandGitHub 17d72f9436 Update 01_bug_report.yml 2022-09-02 09:33:09 +02:00
MoleandGitHub 9cf7e965a9 Backoffice Api: Server Controller (#12932)
* Add initial implementation using 1 controller pr. action

* Add OpenApiTag attribute

Otherwise the endpoints won't be grouped correctly

* Use correct response type

* Move ApiVersion to endpoint controllers

* Add ServerController suffix to endpoint controllers
2022-09-01 14:01:49 +02:00
Jacob Overgaard dc709c20ce remove styling from installer (#12923)
This styling is now being imported from components/umb-range-slider.less and is no longer needed here

Previously fixed in 52672d2c2b

Ref https://github.com/umbraco/Umbraco-CMS/pull/12807/files/52672d2c2ba046f1da431388ec95b21b30965f08#r957799952
2022-08-31 13:32:40 +02:00
Jacob OvergaardandGitHub 87ced87ddd remove styling from installer (#12923)
This styling is now being imported from components/umb-range-slider.less and is no longer needed here

Previously fixed in 52672d2c2b

Ref https://github.com/umbraco/Umbraco-CMS/pull/12807/files/52672d2c2ba046f1da431388ec95b21b30965f08#r957799952
2022-08-31 13:30:40 +02:00
Nikolaj GeisleandGitHub 2cef243056 Add virtual SetUpTestConfiguration method (#12928) 2022-08-31 13:24:16 +02:00
Kenn JacobsenandGitHub 44122c6509 Performance improvement: Reusable data editors (#12921)
* Introduce opt-in option for reusable data editors

* Verified RTE as reusable

* Make attribute property naming more explicit + update comments

* Test file upload and image cropper

* Add unit tests
2022-08-31 11:03:34 +02:00
Erik-Jan WestendorpandMichael Latouche 5f4f16957f Translate 'settingsGroup' treeHeader to Spanish 2022-08-30 19:09:56 +02:00
neilnaveenandMichael Latouche fcd1c22bf8 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-08-30 18:52:08 +02:00
Sebastiaan Janssen 5fc6fa58c0 Revert "Break word for limited width content"
This reverts commit 448836ee2d.

(cherry picked from commit 07fba1eb84)
2022-08-30 13:23:44 +02:00
Sebastiaan Janssen 07fba1eb84 Revert "Break word for limited width content"
This reverts commit 448836ee2d.
2022-08-30 13:23:15 +02:00
Mayur DandSebastiaan Janssen de0294d163 Fix #12770 (#12865)
* change "umbraco" to "Umbraco" in translation files.

* Replace "<i>" and "<b>" tag with "<em>" and "<strong>"

(cherry picked from commit fa8bb3f1da)
2022-08-29 13:26:20 +02:00
Sebastiaan Janssen 9bd6500bc7 Grammar (do -> does) and some extra text 2022-08-29 13:23:49 +02:00
MoleandGitHub 748fb7d1f7 Implement new backoffice installer (#12790)
* Add new BackOfficeApi project

* Add swagger

* Add and route new install controller

* Add new install steps

* Add Setup endpoint

* Add missing RequiresExecution methods

* Fix nullability of databasemodel

* Move user information to separate model

* Remove ping method

* Add view models install data

* Move mapping folder

* Move ViewModels

* Add settings endpoint

* Remove unused binderprovider

* Postfix RequiresExecution with async

* Update NewDatabaseUpgradeStep to not depend on install step

* Add installstep collection

* Move registration into backoffice project

* Add InstallService

* Use service in controller

* Add upgrade to install service and use in controller

* Correctly check is database is configured

* Reorganize

* Reorganize into new core and infrastructure

* Rename steps

* Rename BackofficeApi to MangementApi

* Make install step an interface instead of abstract class

* Rename InstallStep to create CreateUserStep

* Move restart runtime and sign in user into install steps

* Move install service into new core project

* Map controllers in composer

* Restrict access to installcontroller based on runtime level

* Use FireAndForget when logging install

* Use actionresult instead of iactionresult

* Set new projects as not packable

* Link to backoffice in 201 response when installed

* Register installations

* Add custom backoffice routing template token

* Move umbraco path trimming out of application convention

* Make it easier to route to backoffice api

* Make swagger version aware and move behind backoffice path

* Obsolete old install classes

* Move maps into single file

This is all mappint to/from viewmodels in some manner

* Remove usage of InstallSetupResult

* Move new projects to the src folder

* Remove InstallationType from IInstallStep

This upgrade steps should implement their own IUpgradeStep interface

* Remove upgrade from service and controller

This should be its own service and controller

* Add xml docs

* Remove internals visible to

* Disable package validation for new projects

Quite the gotcha here, if the projects are brand new, there is no nuget packages to compare with, this causes the build to fail.

* Add ValidateDatabase endpoint

* Remove project references to new backoffice

We don't actually want to depend on this yet, it's just needed for testing/development

* Obsolete installationtype

* Add DatabaseSettingsFactory tests

* Add InstallServiceTests

* Fix InstallServiceTests

* Test RequireRuntimeLevelAttribute

* Implement new backoffice upgrader (#12818)

* Add UpgradeSettingsModel and viewmodel

* Add upgrade/settings endpoint

* Implement upgrade steps

* Add upgrade step collection

* Add UpgradeService

* Add authorize endpoint to UpgradeController

* Fix interface

* Add upgrade service tests

* Remove runtime check in databaseinstallstep

* Move RequireRuntimeLevel to controller

* Add a readme to the new backoffice part

* BackOffice not Backoffice

* Add conditional project references

* Fixes based on review

* Fix up

* Move running of steps into its own method in UpgradeService

* Make services transient

* More fixup

* Log exceptions when running steps
2022-08-29 09:50:48 +02:00
Bjarke Berg aaa0b38701 Merge remote-tracking branch 'origin/release/10.2.0' into v10/dev 2022-08-29 08:26:58 +02:00
Bjarne FyrstenborgandMichael Latouche 68cf801689 Replace uppercase chars to make behaviour consistent 2022-08-27 02:23:26 +02:00
a105b3b770 v10: make block editors supports stateful label expressions (#12909)
* mark ncNodeName as stateful allowing it to update the node name asynchronously and implement several checks for caching and fallthroughs

* ensure that the blocklist block component watches and updates stuff on the blockObject

* add $interpolate to the blockList Property Editor to interpolate the label with the saved state

* replace static label with the blockHtmlCompile directive to ensure labels are updated dynamically

* add failsafe in case block is not instantiated

* replace manual udi separation with the parse function from the udiParser service

* simplify watching, to avoid overwritting data object.

* virtual block label rendering

* destroy label scope

* add extra information for label doc

* revert previously used functions and add deprecation notices to them

* remove getBlockLabel, as it's not being used or publicly available.

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-08-26 15:09:34 +02:00
Ronald Barendse 6dab24265a Fix duplicate Directory.Build.props import 2022-08-26 09:19:55 +02:00
Ronald Barendse 143fbef3d7 Use .NET 7.x in CodeQL build 2022-08-26 09:18:17 +02:00
Anders BjernerandMichael Latouche 47f77b60a6 Added support for disabling tabs in <umbTabsNav /> elements 2022-08-26 03:26:23 +02:00
Erik-Jan WestendorpandGitHub b55f50c34a Translate TreeHeaders to Spanish (#12902)
* Translate 'logViewer' to Spanish

* Translate 'relationTypes' to Spanish
2022-08-26 02:30:34 +02:00
Kenn JacobsenandBjarke Berg 785c4440f3 Fix memory leaks (#12900)
* Fix leak for PublicAccessEntry

* Fix memory leak for PropertyTypeCollection

* Don't clone the lazy property group ID when caching property types, it is explicitly assigned at runtime

(cherry picked from commit 10b8f63052)
2022-08-25 15:31:36 +02:00
Kenn JacobsenandGitHub 10b8f63052 Fix memory leaks (#12900)
* Fix leak for PublicAccessEntry

* Fix memory leak for PropertyTypeCollection

* Don't clone the lazy property group ID when caching property types, it is explicitly assigned at runtime
2022-08-25 15:30:56 +02:00
Bjarke BergandGitHub 8f6e28e0ad Fixed issue with saving member groups, that was not persisted, if only the member groups was changed. (#12905) 2022-08-25 12:31:10 +02:00
Andreas ZerbstandGitHub 4478f27a83 Merge pull request #12889 from umbraco/v10/feature/new-media-tests
Added new media tests
2022-08-25 09:10:43 +02:00
Zeegaan a5237def31 Update umbraco-cypress-testhelpers version 2022-08-25 08:19:36 +02:00
Daniël KnippersandMichael Latouche 62423143bd Update appsettings-schema: remove {Member,User}Password from Umbraco:CMS
They are located in Umbraco:CMS:Security and are read from that location.
Setting any values in Umbraco:CMS does not actually work but
intellisense shows up so the user thinks it will work.
2022-08-25 01:19:43 +02:00
Mikael LindemannandGitHub 0f3feb1773 #12802 Fix partial view model type replacements (#12831) 2022-08-25 00:47:43 +02:00
bfbc2abca8 V10/bugfix/variant permissions segments (#12890)
* Remove null check from MapperContext.SetCulture and .SetSegment

We need to be able to set these to null, since null = invariant / default segment

* show segment label on property

* Add ContentVariation to ContentPropertyDisplay

* Add ContentVariation to DocumentTypeDisplay

* Change variations to be on ContentTypeBasic.cs

* don't cache value

* show correct label and unlock text for culture and segment variations

* make lock overlay take up less space

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-08-24 16:19:38 +02:00
439878883a V10/bugfix/variant permissions segments (#12890)
* Remove null check from MapperContext.SetCulture and .SetSegment

We need to be able to set these to null, since null = invariant / default segment

* show segment label on property

* Add ContentVariation to ContentPropertyDisplay

* Add ContentVariation to DocumentTypeDisplay

* Change variations to be on ContentTypeBasic.cs

* don't cache value

* show correct label and unlock text for culture and segment variations

* make lock overlay take up less space

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-08-24 16:18:40 +02:00
2431a21de1 V10/bugfix/variant permissions segments (#12890)
* Remove null check from MapperContext.SetCulture and .SetSegment

We need to be able to set these to null, since null = invariant / default segment

* show segment label on property

* Add ContentVariation to ContentPropertyDisplay

* Add ContentVariation to DocumentTypeDisplay

* Change variations to be on ContentTypeBasic.cs

* don't cache value

* show correct label and unlock text for culture and segment variations

* make lock overlay take up less space

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-08-24 16:17:56 +02:00
Zeegaan f8e3a77237 Update to version 71 2022-08-24 14:04:34 +02:00
Bjarke Berg 026ece2132 Merge remote-tracking branch 'origin/v10/dev' into release/10.2.0 2022-08-24 13:59:03 +02:00
Mads RasmussenandBjarke Berg b4f2de79b8 Bugfix: Variant permission languages needs a clear cache to work fully for current user (#12875)
* emit event when user group is saved

* clear current user cache when languages and user groups are saved

(cherry picked from commit 128dd42b47)
2022-08-24 13:53:28 +02:00
Mads RasmussenandGitHub 128dd42b47 Bugfix: Variant permission languages needs a clear cache to work fully for current user (#12875)
* emit event when user group is saved

* clear current user cache when languages and user groups are saved
2022-08-24 13:52:39 +02:00
Zeegaan bd40575c32 Added new media tests 2022-08-24 12:29:23 +02:00
Sebastiaan Janssen 38f144fa08 Merge branch 'v10/dev' into v10/contrib 2022-08-23 16:44:12 +02:00
Mole e7d6b9ef7a Add ClaimsPrincipalFactory and ensure that claims are flowed from the MemberIdentityUser (#12877) 2022-08-23 14:17:44 +02:00
Warren BuckleyandGitHub 523aa6c12e V10 Fixup GitHub CodeSpaces / VSCode Remote Container (#12882)
* Remove SQL Server part of the CodeSpace - we have SQLite to use

* Update to use .NET 6 and simplified docker stuff

https://github.com/microsoft/vscode-dev-containers/

* Need to set the SQLite Connection string env variable

* Path to SLN has changed to the root of the repo

* Fix up launch and VSCode tasks
2022-08-23 14:12:45 +02:00
MoleandGitHub f3a1c89066 Add ClaimsPrincipalFactory and ensure that claims are flowed from the MemberIdentityUser (#12877) 2022-08-23 14:12:05 +02:00
1b5225f4cd V11/feature/update to dotnet 7 (#12712)
* Update projects to .NET 7

* Fix nullability errors

* Fix up pipelines to run 7.0

* Update langversion to preview

* Revert "Fix up pipelines to run 7.0"

This reverts commit d0fa8d01b8.

* Fix up pipelines again, this time without indentation changes

* Include preview versions

* Versions not Version

* Fix ModelTypeTests

* Fix MemberPasswordHasherTests

Microsoft wants to use SHA512 instead of SHA256, so our old hashes will return SuccessRehashNeeded now

* Use dotnet cli instead of nuget restore

* Update src/Umbraco.Web.UI/Umbraco.Web.UI.csproj

* Update dependencies

* Fix nullability issues

* Fix unit test

* Fix nullability in ChangingPasswordModel

OldPassword can be null, if we're changing the password with password reset enabled. Additionally, we might as well use the new required keyword instead of supressing null.

* Use required keyword instead of supressing null

* Fix up pipelines again

* fix up spelling-error

* Use dotnet cli instead of nuget restore

* Fix up another NuGet command

* Use dotnet version 7 before building

* Include preview versions

* Remove condition

* Use dotnet 7 before running powershell script

* Update templates to .net 7

* Download version 7 before running linux container

* Move use dotnet 7 even earlier in E2E process

* Remove dotnet 7

* Reintroduce .NET 7 task

* Update linux docker container and remove dotnet 7 from yml

* Fix up dockerfile with ARG

* Fix up docker file with nightly builds of dotnet 7

* Reintroduce dotnet 7 so windows can use it

* Use aspnet 7 in docker

Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-08-23 11:31:05 +02:00
b6e0e2df56 Content modal heading fix (#12797) (#12880)
* Fixes to modal and group headings

* updated modal headings for h1 and h2

* Updated line-height

Changed line-height: 0 to line-height: 1.3 and added margin: 0

Co-authored-by: Tiffany Prosser <tiffany.prosser1@gmail.com>
2022-08-23 11:06:29 +02:00
7e7658314c Content modal heading fix (#12797) (#12880)
* Fixes to modal and group headings

* updated modal headings for h1 and h2

* Updated line-height

Changed line-height: 0 to line-height: 1.3 and added margin: 0

Co-authored-by: Tiffany Prosser <tiffany.prosser1@gmail.com>
2022-08-23 10:51:45 +02:00
nikolajlauridsen ea2ecab238 Add RC to version 2022-08-23 09:52:42 +02:00
Mayur DandGitHub fa8bb3f1da Fix #12770 (#12865)
* change "umbraco" to "Umbraco" in translation files.

* Replace "<i>" and "<b>" tag with "<em>" and "<strong>"
2022-08-23 00:31:49 +02:00
Bjarke BergandGitHub d96c9a77cf Better exception message when using ALTER TABLE and SQLite (#12848)
* Added NotSupportedException when using Alter Table and SQLite. This is considered better than the underlying sql error.

* use Environment.NewLine
2022-08-22 15:48:17 +02:00
MoleandGitHub f8e20a9db9 V10: Fix foreign key constraints when using external login provider for members (#12872)
* Move role saving out of UpdateMemberProperties

* Add missing delete clauses

* Fix token for users too

* Fix deleting user
2022-08-22 15:18:12 +02:00
Bjarke BergandGitHub d63e7277cb Merge pull request #12871 from umbraco/v10/bugfix/fix-assertion-in-tabs-acceptance-tests
Fix assertion in tabs acceptance tests
2022-08-22 10:16:59 +02:00
Zeegaan 73a56d2fe5 Fix up assertions 2022-08-22 09:45:55 +02:00
Kenn JacobsenandGitHub 264a1565ca Make the error message friendlier when attempting to use unsupported sorting in listviews (#12846)
* Make the error message friendlier when attempting to use unsupported sorting in listviews

* Revert automatic code formatting

* Review changes
2022-08-22 09:29:24 +02:00
Bjarke Berg 610059919c Merge remote-tracking branch 'origin/v10/dev' into v10/dev 2022-08-22 08:14:20 +02:00
Bjarke Berg 72d3e6f17e Fix version of nightly builds 2022-08-22 08:14:11 +02:00
Ronald BarendseandGitHub 1ac68f8e4c Merge pull request #12863 from umbraco/feature/codeqlv2
Upgrade CodeQL from v1 to v2
2022-08-19 15:16:04 +02:00
Bjarne FyrstenborgandGitHub 753cf35d6b Use umb-icon component in tracked references to support custom SVG icons (#12766) 2022-08-19 15:07:55 +02:00
Bjarne FyrstenborgandGitHub 1024b26cec Fix umb-range-slider merging overlapping tooltips (#12777)
* Formatting CSS using Less syntax

* Fix merging overlapping tooltips from noUiSlider v15.5.0+
2022-08-19 15:03:56 +02:00
Jacob Overgaard 173c231859 upgrade setup-dotnet to v2 2022-08-19 14:36:19 +02:00
Jacob Overgaard c7813aa354 upgrade codeql tasks to v2 2022-08-19 14:35:43 +02:00
Jacob Overgaard c4c27ec72b add GITHUB_TOKEN restrictive permissions 2022-08-19 14:35:21 +02:00
Jacob OvergaardandGitHub 65c828390c CodeQL should not scan compiled assets (#12861)
* add the Umbraco.Cms.StaticAssets folder to ignored paths for the codeql scanner

* exclude only the 'wwwroot' folder since other assets could be valid to scan
2022-08-19 11:10:45 +02:00
patrickdemooij9andGitHub 56e282946f Added copy functionality for data types (#11867)
* Added copy functionality for data types

* Fix errors

* Add logic to default interface

* PR Feedback

* PR feedback

* Fix error
2022-08-19 10:19:36 +02:00
Tiffany ProsserandGitHub f33b724c8e Content modal heading fix (#12797)
* Fixes to modal and group headings

* updated modal headings for h1 and h2

* Updated line-height

Changed line-height: 0 to line-height: 1.3 and added margin: 0
2022-08-19 01:56:56 +02:00
Bjarke Berg 100ebf5c7f Update version and disable package validation for now 2022-08-18 14:53:52 +02:00
Bjarke Berg 4f4bdba214 Revert "Revert breaking changes"
This reverts commit ac4fb6acf1.
2022-08-18 14:40:11 +02:00
Bjarke Berg e9f9b8aee1 merge v10 to v11 2022-08-18 14:38:49 +02:00
Bjarke Berg ac4fb6acf1 Revert breaking changes 2022-08-18 12:41:06 +02:00
Sebastiaan Janssen 26d83381f2 Merge branch 'v10/contrib' into v10/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/installer/steps/user.html
#	src/Umbraco.Web.UI.Client/src/less/installer.less
2022-08-18 11:23:08 +02:00
Sebastiaan Janssen ee3ad8bdfb Revert "Issue 12709: fixed issue with reloading of dashboard tabs. (#12730)"
This reverts commit 21e5de462d.
2022-08-18 10:23:09 +02:00
Tobias MønsterandGitHub c8522b9b81 Makes active pip text darker to contrast with non-active pips (#12807)
* Makes active pip text darker to contrast with non-active pips

* Adds active class to slider component and updates functionality to accommodate multiple pips

* Update umbrangeslider.directive.js

* Adds click handler,accommodates decimal values and moves styles to single file
2022-08-18 09:06:04 +02:00
Bjarke BergandGitHub e956efa7f9 Merge pull request #12856 from umbraco/v10/bugfix/external_login_token_table
V10: Fix external login token table
2022-08-17 16:53:17 +02:00
Nikolaj 838f4199c8 Only recreate token if it has changed. 2022-08-17 14:36:09 +02:00
MoleandGitHub 5c09af11dc Clean solution file (#12830)
* Remove docs folder

* Re-add docfx files

I think it makes sense to have these in the solution, however it's a build concern really, not a documentation in the sense that you'll learn anything from it.

* Remove build.ps1 scripts - it's not a thing in v10

* Add version.json to the solution file
2022-08-17 13:08:07 +02:00
Nikolaj e2f5c93528 Ensure that LoginTokens gets marked as dirty
Might want to experiment with only removing/updating if the value is different
2022-08-16 15:47:01 +02:00
Kenn JacobsenandGitHub 61f8007c6b Only expose server vars for password policy rules and max file size for authenticated users (#12839)
* Only expose server vars for password policy rules and max file size for authenticated users

* Fix min password length for reset password flow
2022-08-16 10:10:51 +02:00
Kenn JacobsenandGitHub de73ba7256 Fix JS error when clicking a reset password link twice (#12845) 2022-08-16 09:29:52 +02:00
Warren BuckleyandGitHub 2f5759dba2 Display package version in Installed Packages (#12784)
* Adds the package version from Package Manifest - (JSON or ManifestFilter C#)

Used to see what version of a package installed & make package devs aware that they can set this, as we use this in the package telemetry service

* Prefix with word Version for cases where 'Unknown' is displayed
2022-08-15 11:29:41 +02:00
Andy ButlandandGitHub 98c9124735 Refactored logic for calculating the first run time for a recurring hosted service. (#12828)
* Refactors the logic for calculating the first run time for a recurring task for easier re-use by similar hostservices.

* Renamed method to match wider usage.
2022-08-12 10:14:15 +01:00
Johannes LantzandGitHub f43912722b Added dictionary filter by name (#12765)
* Added dictionary filter by name

* Added en translation for no filter dictionaries

* Removed inital table sort of dicionary items
2022-08-12 01:12:13 +02:00
c7501bd47b Fix broken rollback feature (#12808)
Co-authored-by: kjac <kja@umbraco.dk>
2022-08-10 08:45:05 +02:00
Bjarke BergandGitHub 00ffe7a6b3 Only expose the filename when uploading content types (#12813) 2022-08-09 16:27:46 +02:00
Lucas Bach BisgaardandMichael Latouche 1b3ccf8521 Add attr directive that lock the focus inside the modal 2022-08-07 23:29:08 +02:00
Bjarke Berg 274e7c5302 Use user key as alias instead of username 2022-08-05 10:48:45 +02:00
Warren BuckleyandGitHub faf4320eb5 Add new UmbracoBuiilder extension methods to discover and set an IUmbracoTreeSearcherFields (#12751) 2022-08-04 11:21:36 +02:00
Bjarke BergandGitHub 99dfeddf97 Replaced usage of new Random().Next(..) with RandomNumberGenerator.GetInt32 (#12759) 2022-08-04 10:26:51 +02:00
Mads RasmussenandGitHub 8802b58849 Merge pull request #12605 from umbraco/v10/feature/variant-permissions
Feature: Variant Permissions (Readonly access)
2022-08-03 14:15:49 +02:00
Nikolaj e1affc5e6c Fix version 2022-08-03 13:48:20 +02:00
Nikolaj 1697f0b680 Merge branch 'release/10.1.0' into v10/dev
# Conflicts:
#	version.json
2022-08-03 13:45:48 +02:00
Bjarke Berg c52e8c5e81 Changed so new projects by default has AllowEditInvariantFromNonDefault as true 2022-08-03 12:54:37 +02:00
Mads Rasmussen 6061fda8b4 disable "Remove All" property action for users with readonly access 2022-08-03 12:23:06 +02:00
Mads Rasmussen 31279b96cf Merge branch 'v10/dev' into v10/feature/variant-permissions 2022-08-03 11:22:35 +02:00
MoleandGitHub 3972538fd5 Fix docfx generation (#12775)
* Fix some XML docs

* Re add unused using in SqlSyntaxProviderBase to magically fix docfx

I have no idea why this works, but it does

* Fix nullref exception
2022-08-03 11:00:30 +02:00
Nikolaj 0c8e22d29d Revert "edit pipelines for release"
This reverts commit 920e952e6a.
2022-08-03 10:45:11 +02:00
Nikolaj 866ed01b58 Bump version 2022-08-03 10:14:12 +02:00
Ambert van UnenandMichael Latouche 961e0a4f7b Added translation 2022-08-03 00:19:45 +02:00
Ronald Barendse 8077f45f0f Keep CopyRazorGenerateFilesToPublishDirectory and update comments 2022-08-02 17:19:09 +02:00
Ronald Barendse c5654f0311 Keep CopyRazorGenerateFilesToPublishDirectory and update comments 2022-08-02 16:50:52 +02:00
Ronald BarendseandGitHub eae7d7919c Merge pull request #12769 from umbraco/v10/feature/packagevalidation
Enable package validation
2022-08-02 14:10:45 +02:00
Bjarke Berg 47c1f7b22b Added CompatibilitySuppressions.xml to Examine.Lucene project 2022-08-02 13:39:21 +02:00
Bjarke Berg 4f4c06a242 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/packagevalidation 2022-08-02 13:11:57 +02:00
Bjarke Berg c1dc95ef92 Merge remote-tracking branch 'origin/release/10.1.0' into v10/dev 2022-08-02 13:10:56 +02:00
Bjarke Berg 6ce91eff4e Unbreak breaking changes 2022-08-02 13:10:20 +02:00
Bjarke Berg e5cbd15a7e Do not allow update translations on languages you do not have access to. 2022-08-02 12:50:18 +02:00
Bjarke BergandSebastiaan Janssen 636ee831a4 Force the allowed avatar image types. We do not want to use the Umbraco:Cms:Content:Imaging:ImageFileTypes as this could very well be different for content.
(cherry picked from commit 6ce9ea4950)
2022-08-02 12:41:27 +02:00
Jacob OvergaardandGitHub 75a4044f12 V10: Show more telemetry info on the installer (#12739)
* remove absolute-center class from installer and replace with css grid

* replace tooltips for telemetry with columns and a direct view of what eact telemetry level means

* ensure that inputs will out entire columns and that buttons are aligned as the rest of the system with the CTA on the right side

* update buttons on the database screen to match the user screen

* set min-width on installer for views with only text content

* add border to preconfigured database field

* remove extra headline from telemetry data info text

* change telemetry info text to 'small'

* remove opacity for database settings

* update wording of intro text to the installer

* add unordered list to the detailed telemetry description

* add helper text to indicate that telemetry can be changed later

* change wording from 'analytics' to 'telemetry data'

* add smooth-steps-tap to noUiSlider for telemetry data

* add short text explaining what telemetry is to the installer
2022-08-02 12:32:57 +02:00
Ronald Barendse 30210f5de5 Enable package validation 2022-08-02 12:02:46 +02:00
Mads Rasmussen 30c37ea0f4 Set a dictionary item translation to read-only if the user doesn't have permission to update the language 2022-08-02 11:17:18 +02:00
Bjarke BergandSebastiaan Janssen 6ce9ea4950 Force the allowed avatar image types. We do not want to use the Umbraco:Cms:Content:Imaging:ImageFileTypes as this could very well be different for content. 2022-08-02 11:16:42 +02:00
Bjarke Berg c73cb30c58 Added allowedLanguagesIds to UserDetail 2022-08-01 14:57:25 +02:00
Nikolaj GeisleandGitHub 19b2dee76a change "All sections" to "No sections" (#12708) 2022-07-27 09:31:38 +02:00
Mykyta ZakharovandGitHub 21e5de462d Issue 12709: fixed issue with reloading of dashboard tabs. (#12730)
* Issue 12709: fixed issue with reloading of dashboard tabs.

* Issue-12709: fixed issue with coreBuild.
2022-07-27 00:49:51 +02:00
Jacob OvergaardandSebastiaan Janssen abee27a99f fix: ensure the input field to edit tabs is only shown when active
This fix prevents Firefox (and possibly others) from preventing the click event, which now bubbles up as it should.
2022-07-26 14:35:44 +02:00
Matthew CareandGitHub 9ae0d0507a Adjust label styles to allow wrapping (#12610)
* Prevent asterix having its own line

With certain label lengths the * would end up on its own line
Adjusting width of group builder labels / descriptions to be in line with the width of the content labels
Adjusting the margins / padding which looked out of place

* Single line html

Change html to be on one line due to white-space css properties requiring such

* Label on top

Fix the width of labels when the label is on top

* Add spacing

Add spacing to control groups to account for the removed padding from labels

* Labels on tablet

Fix label width on tablet screen size
2022-07-26 14:01:21 +02:00
Sebastiaan Janssen b9393c655f Merge branch 'v10/dev' into v10/contrib 2022-07-26 10:26:02 +02:00
MigaroezandNathan Woulfe 63ad03f78e #12576 Responsive CSS fixes for packages on very small screens 2022-07-26 17:45:45 +10:00
Sebastiaan JanssenandNikolaj Geisle 3baae5ab53 Check if content has an identity before attempting to get it's ancestors (#12733)
* Check if content has an identity before attempting to get it's ancestors

* Check if we even need to go to the parent

* Fail earlier

* Update src/Umbraco.Web.BackOffice/Controllers/ContentController.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-07-26 09:24:21 +02:00
e17a190925 Check if content has an identity before attempting to get it's ancestors (#12733)
* Check if content has an identity before attempting to get it's ancestors

* Check if we even need to go to the parent

* Fail earlier

* Update src/Umbraco.Web.BackOffice/Controllers/ContentController.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-07-25 18:02:40 +02:00
Nikolaj GeisleandGitHub aabb6c2665 Merge pull request #12731 from umbraco/v10/bugfix/restore-quickinstall
v10: restore one-click install
2022-07-25 12:31:49 +02:00
f0ba9c469e Fix previous conversion of SearchAll to async ignoring the SortOrder value from SearchableTree (#12595)
* Fix previous conversion of SearchAll to async ignoring the SortOrder value from SearchableTree

* small refactoring

Co-authored-by: Paul Woodland <paul.woodland@pwnewmedia.com>
Co-authored-by: Michael <michael@crossingpaths.be>
2022-07-25 12:07:56 +02:00
Jacob Overgaard 197ec2ab1b fix: restore quickinstall view in the installer with options to customize the database or skip entirely 2022-07-25 11:33:52 +02:00
b3237c498b Fix StripHtmlTagsMethod by adding Regex (#12607)
* #umbraco12400 fixing StripHtmlTagsMethod by adding Regex

* changing logic by removing .FirstChild calls

* fixing line endings

* final fix

* removing unused using

Co-authored-by: Michael Reiter <michale.reiter@cyber-solutions.at>
Co-authored-by: Michael Reiter <michael.reiter@metro-external.digital>
2022-07-24 00:53:04 +02:00
MigaroezandMichael Latouche b531fccd36 #12617 Add contentForm Dirty reset on successful save for members and media 2022-07-22 01:12:11 +02:00
4b557464c6 Fixed Group Headings in Content (#12702)
* Added secure to the UMB-XSRF-V cookie when global https is true.

* Issue 12551 search bug

Previous optimisation incorrectly filtered the index fields needed to return published results

* Update MemberRepository.cs (#12641)

Ensuring that MemberManager.ConfirmEmailAsync persists, same changes in pull request #12640 but for v9

* Fixed Group Headings in Content

Co-authored-by: Corey Philipp <CPhilipp@dewpoint.com>
Co-authored-by: Matthew Care <matty_care@hotmail.co.uk>
Co-authored-by: gilbertaoe <gilbertaoe@hotmail.com>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2022-07-21 03:07:09 +02:00
cecf24aa87 Fixed Missing H1 tag (#12695)
* Added secure to the UMB-XSRF-V cookie when global https is true.

* Issue 12551 search bug

Previous optimisation incorrectly filtered the index fields needed to return published results

* Update MemberRepository.cs (#12641)

Ensuring that MemberManager.ConfirmEmailAsync persists, same changes in pull request #12640 but for v9

* Initial Commit

Amended tree root to be h1 (previously was h5) and amended contextual modal header to be h2 (previously was h1)

Co-authored-by: Corey Philipp <CPhilipp@dewpoint.com>
Co-authored-by: Matthew Care <matty_care@hotmail.co.uk>
Co-authored-by: gilbertaoe <gilbertaoe@hotmail.com>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2022-07-21 01:46:55 +02:00
Nikolaj Geisle 9fa3b4e2ef Merge branch 'release/10.1.0' into v10/dev
# Conflicts:
#	version.json
2022-07-20 11:10:25 +02:00
Nikolaj Geisle 338bc2c19c Bumb version 2022-07-20 09:36:26 +02:00
Matt BrailsfordandNikolaj Geisle 08a7a26743 Allow dashboards to also be the "last accessed item" (#12689)
* Allow dashboards to also be the "last accessed item"

* Use tripple =
2022-07-20 09:20:41 +02:00
Ronald BarendseandNikolaj Geisle 2d217d505d Fix integration tests 2022-07-20 08:33:24 +02:00
Ronald BarendseandNikolaj Geisle d2806501d9 Fix integration test ACE Editor mock 2022-07-20 08:33:24 +02:00
Ronald BarendseandNikolaj Geisle fabb49feaf Remove template from warning message 2022-07-20 08:33:24 +02:00
Ronald BarendseandNikolaj Geisle 234552bcab Disable editing partial views and macro files 2022-07-20 08:33:23 +02:00
Ronald BarendseandNikolaj Geisle 40eae24a55 Show editor in read-only mode when using runtime mode production 2022-07-20 08:33:17 +02:00
Ronald BarendseandNikolaj Geisle 930b21f273 Fix editing template and show warning message when using runtime mode production 2022-07-20 08:33:16 +02:00
Ronald BarendseandNikolaj Geisle 9e1e9641a9 Skip saving template file when using runtime mode Production 2022-07-20 08:33:16 +02:00
Ronald BarendseandNikolaj Geisle df5d657380 Swap registration and resolving of IRuntimeModeValidator items to collection builder 2022-07-20 08:33:15 +02:00
Ronald BarendseandNikolaj Geisle e1c80ecd20 Add RuntimeModeValidators() extension method 2022-07-20 08:33:15 +02:00
Ronald BarendseandNikolaj Geisle f11d717522 Add RuntimeModeValidatorCollection and builder 2022-07-20 08:33:14 +02:00
Nikolaj Geisle c4aa718763 Revert "Update templates to .net 7"
This reverts commit 580f8acb5b.
2022-07-19 14:23:19 +02:00
Nikolaj Geisle 580f8acb5b Update templates to .net 7 2022-07-19 14:15:16 +02:00
29e8fd786d Tweaks the composition dialog in the content type editor (#12698)
* Tweaks the composition dialog in the content type editor

- removes the search field if no content types is available
- change the styling on the info text regarding missing content types
- moves the search field closer to the content type list

* fixes filter - needed vm binding, probably due to introducing ng-if and related scope trickery
tweaked css on checkbox list icon to improve alignment

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-07-19 11:35:52 +10:00
c2c87a0d72 Don't allocate new object array instances when indexing (#12710)
* Don't allocate new object array instances when indexing

There's no reason to allocate new object[] array instances for each ValueSet created for the "y" or "n" values going into the index. This just creates a single object[] for each "y" or "n" value which will save on a ton of allocations when re indexing a bunch of content.

There's an easy way to make further allocation reductions too (prob a separate PR) since there is no reason to create new object[] allocations for: CreatorId, WriterId, Level, TemplateId, Culture. Each of these can be returned from a concurrent dictionary since these values are finite and there won't be too many of each so we can just keep an internal dictionary of these object[] instances.

* fixes mistake

* Updates NoValue and YesValue field declarations - was blowing up

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-07-19 10:58:21 +10:00
Sebastiaan JanssenandGitHub 41eb412403 Create issues-first-response.yml 2022-07-18 09:48:13 +02:00
vsilvarandGitHub b27c03f001 Fixed ContentLastChanceFinder not being called for nodes without template (#12002)
This commit also ensure that the domain and culture is set before the ContentLastChanceFinder executes
2022-07-18 08:47:45 +10:00
patrickdemooij9andGitHub 8b97b04d1f Fetch all dictionary items if parentId is null (#12414)
* Fetch all if parentId is null

* PR feedback resolved

* Remove space that sneaked into the commit

* merge with PR changes
2022-07-17 23:52:18 +02:00
Ambert van UnenandMichael Latouche 50a268c70d Update textstring.cshtml 2022-07-17 01:54:18 +02:00
Chriztian SteinmeierandNathan Woulfe 8444bbce4f Update description for maxPropertyWidth
- Consistent casing for first word of descriptions
- css => CSS
- Use "override" instead of "overwrite"
2022-07-16 09:21:56 +10:00
Søren KottalandGitHub f426af1a50 Removes bottom margin from template select box in content node info (#12699) 2022-07-16 09:20:02 +10:00
Nikolaj GeisleandGitHub 78af85941f Merge pull request #12697 from umbraco/v10/feature/runtimemode-production-templates
Disable editing templates when using runtime mode Production
2022-07-15 15:06:25 +02:00
Ronald Barendse f4085efc17 Fix integration tests 2022-07-15 14:17:45 +02:00
Sebastiaan JanssenandGitHub 3e00845429 Create opened-issue-first-comment.yml 2022-07-15 12:49:49 +02:00
Ronald Barendse ae6ee5c3ad Fix integration test ACE Editor mock 2022-07-15 11:07:24 +02:00
Ronald Barendse ddfc2fa902 Remove template from warning message 2022-07-15 10:45:29 +02:00
Ronald Barendse e581fdc90a Disable editing partial views and macro files 2022-07-15 10:34:11 +02:00
Nikolaj GeisleandGitHub f0412bc38f Merge pull request #12693 from umbraco/v10/feature/runtimemodevalidatorcollection
Add RuntimeModeValidator collection builder
2022-07-15 09:40:12 +02:00
Ronald Barendse 97010c2de5 Show editor in read-only mode when using runtime mode production 2022-07-14 23:41:17 +02:00
Ronald Barendse 802f2baaa0 Fix editing template and show warning message when using runtime mode production 2022-07-14 22:48:43 +02:00
Ronald Barendse db90b16cb1 Skip saving template file when using runtime mode Production 2022-07-14 22:41:20 +02:00
Ronald Barendse 1fc64cd4ce Swap registration and resolving of IRuntimeModeValidator items to collection builder 2022-07-14 16:49:49 +02:00
Ronald Barendse 9cec603d46 Add RuntimeModeValidators() extension method 2022-07-14 16:48:52 +02:00
Ronald Barendse 93225a2c34 Add RuntimeModeValidatorCollection and builder 2022-07-14 16:48:01 +02:00
Nikolaj Geisle e92ceae7ee Bumb version 2022-07-14 11:31:24 +02:00
Nikolaj GeisleandGitHub 871bb94a41 Merge pull request #12690 from umbraco/v10/hotfix/remove-docs-dependency-from-nuget-step
edit pipelines for release
2022-07-14 10:16:05 +02:00
Nikolaj Geisle 920e952e6a edit pipelines for release 2022-07-14 10:13:55 +02:00
Bjarne FyrstenborgandGitHub dcb54c1f6e Inherit from OEmbedProviderBase in OEmbed providers (#12379)
* Use OEmbedProviderBase

* Use QueryHelpers.AddQueryString in .NET Core

* Nullable value

* Cleanup usings

* Ensure invariant string

* No need to URL encode when using QueryHelpers.AddQueryString()

* Include WebUtilities

* Cleanup usings

* Revert "Include WebUtilities"

This reverts commit 3cffb740ce.

* Revert "No need to URL encode when using QueryHelpers.AddQueryString()"

This reverts commit 70ca5306ac.

* Revert "Ensure invariant string"

This reverts commit 318ab23f6f.

* Revert "Nullable value"

This reverts commit c39911de06.

* Revert to StringBuilder

* Cleanup usings

* Add more descriptions of providers
2022-07-14 02:18:19 +02:00
sofietoftandGitHub f2ba4b1d4c Removed mention of Umbraco.tv from the Members Dashboard (#12429)
* Removed mention of Umbraco.tv from the Members Dashboard

* Add new key to en.xml

* Update membersdashboardvideos.html

* Update label used in members dashboard.
2022-07-14 00:21:10 +02:00
Matt BrailsfordandGitHub 7d4a9caf6a Allow dashboards to also be the "last accessed item" (#12689)
* Allow dashboards to also be the "last accessed item"

* Use tripple =
2022-07-13 23:08:44 +02:00
Nikolaj Geisle bd2dd3e442 bumb version 2022-07-13 15:36:56 +02:00
Nikolaj Geisle 7f020861c2 Add ActivatorUtilitiesConstructor to ctor 2022-07-13 14:19:41 +02:00
Nikolaj Geisle 66cd2145ad Reinstate old ctor and obsolete 2022-07-13 13:33:42 +02:00
Nikolaj GeisleandSebastiaan Janssen c6f1534148 Change delete action back to move 2022-07-13 13:11:30 +02:00
Nikolaj Geisle 3e464933fc delete unused static leftover from merge 2022-07-13 11:14:51 +02:00
Nikolaj Geisle b8ef3836a1 Fix formatting 2022-07-13 11:14:31 +02:00
Matthew CareandNikolaj Geisle ce568343ab Issue 12551 search bug
Previous optimisation incorrectly filtered the index fields needed to return published results
2022-07-13 11:13:35 +02:00
Nikolaj GeisleandSebastiaan Janssen af7d9db32b Add missing null-check 2022-07-13 10:14:21 +02:00
Sebastiaan Janssen f69f672b2c Merge branch 'v10/contrib' into v10/dev 2022-07-12 14:53:12 +02:00
Sebastiaan Janssen 324f4c7168 Remove accidental merge problem 2022-07-12 14:52:46 +02:00
Sebastiaan Janssen e516e3472c Merge branch 'v10/contrib' into v10/dev 2022-07-12 14:50:50 +02:00
Johan RunstenandGitHub 3778f0da7a Bump ImageSharp to latest version (#12651) 2022-07-12 14:45:40 +02:00
Nikolaj GeisleandGitHub 110d8067ad Merge pull request #12682 from umbraco/v10/contrib
Merge `v10/contrib` into `v10/dev`
2022-07-12 08:23:45 +02:00
Sebastiaan Janssen 7611ba7f73 Remove undefined param 2022-07-11 15:50:58 +02:00
Sebastiaan Janssen 885ec99cc4 Fix breaking change in MenuItemList 2022-07-11 15:43:57 +02:00
Sebastiaan Janssen 942c4b336d Fix formatting/style in DictionaryController 2022-07-11 15:43:57 +02:00
611badfce2 Revert incorrect change in Property.PublishValues (#12680)
* Revert incorrect change in Property.PublishValues

Fix incorrect change made for nullability support which changes the result of the updated expression to `false` instead of `true` when both inputs are `null`.
That is, `null?.InvariantEquals(null) ?? false` becomes `false` but in the previous version it was `true` since the `InvariantEquals` extension method simply calls `string.Equals(v1, v2)` which will return `true` when both inputs are `null`. Due to the `?` operator the `InvariantEquals` method is not called anymore and `?? false` turns the expression to `false`.

* Update PropertyValidationService.cs

Reverts incorrect update for nullability that changes a value of `true` into `false` when both operands are `null`.

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-07-11 15:41:10 +02:00
Sebastiaan Janssen e626fca243 Merge branch 'v10/dev' into v10/contrib
# Conflicts:
#	src/Umbraco.Core/Actions/ActionAssignDomain.cs
#	src/Umbraco.Core/Actions/ActionCopy.cs
#	src/Umbraco.Core/Actions/ActionCreateBlueprintFromContent.cs
#	src/Umbraco.Core/Actions/ActionDelete.cs
#	src/Umbraco.Core/Actions/ActionMove.cs
#	src/Umbraco.Core/Actions/ActionNew.cs
#	src/Umbraco.Core/Actions/ActionNotify.cs
#	src/Umbraco.Core/Actions/ActionProtect.cs
#	src/Umbraco.Core/Actions/ActionRestore.cs
#	src/Umbraco.Core/Actions/ActionRights.cs
#	src/Umbraco.Core/Actions/ActionRollback.cs
#	src/Umbraco.Core/Actions/ActionSort.cs
#	src/Umbraco.Core/Actions/ActionToPublish.cs
#	src/Umbraco.Core/Actions/ActionUnpublish.cs
#	src/Umbraco.Core/Actions/ActionUpdate.cs
#	src/Umbraco.Core/Constants-Telemetry.cs
#	src/Umbraco.Core/DependencyInjection/ServiceCollectionExtensions.cs
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.CollectionBuilders.cs
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs
#	src/Umbraco.Core/Models/Trees/ActionMenuItem.cs
#	src/Umbraco.Core/Models/Trees/CreateChildEntity.cs
#	src/Umbraco.Core/Models/Trees/ExportMember.cs
#	src/Umbraco.Core/Models/Trees/MenuItem.cs
#	src/Umbraco.Core/Models/Trees/RefreshNode.cs
#	src/Umbraco.Core/Persistence/Repositories/IRedirectUrlRepository.cs
#	src/Umbraco.Core/PropertyEditors/NestedContentConfiguration.cs
#	src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs
#	src/Umbraco.Core/Services/IFileService.cs
#	src/Umbraco.Core/Services/IRedirectUrlService.cs
#	src/Umbraco.Core/Services/RedirectUrlService.cs
#	src/Umbraco.Core/Trees/MenuItemList.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs
#	src/Umbraco.Infrastructure/Telemetry/Providers/SystemInformationTelemetryProvider.cs
#	src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Controllers/DictionaryController.cs
#	src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentBlueprintTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/FileSystemTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MacrosTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MemberGroupTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MemberTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MemberTypeAndGroupTreeControllerBase.cs
#	src/Umbraco.Web.BackOffice/Trees/RelationTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/TemplatesTreeController.cs
#	src/Umbraco.Web.UI.Client/src/less/navs.less
#	templates/UmbracoProject/.gitignore
#	tests/Umbraco.Tests.Integration/Umbraco.Core/Telemetry/TelemetryServiceTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/UserDataServiceTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Telemetry/SystemInformationTelemetryProviderTests.cs
2022-07-11 15:04:46 +02:00
Nikolaj Geisle 38c42c2479 Update media picker to support readonly 2022-07-11 14:02:20 +02:00
Nikolaj Geisle 5bbb546780 Fix up UserGroup to map new property properly 2022-07-11 13:38:30 +02:00
Nikolaj Geisle bba403cf3e add hasAccessToAllLanguagus to AppendByGroup method 2022-07-11 10:44:25 +02:00
Nikolaj Geisle 0967505178 Fix up GetActions mapping 2022-07-11 10:37:25 +02:00
Nikolaj Geisle a7f04924a0 Fix up frontend to send hasAccessToAllLanguages 2022-07-11 09:37:00 +02:00
Nikolaj Geisle fccae2604f Fix unit test 2022-07-11 09:26:28 +02:00
Nikolaj Geisle 5ff31cf966 Add hasAccessToAllLanguages to user groups and map 2022-07-11 09:15:26 +02:00
Arul PrabakaranandGitHub 7c2a2996a2 Fixes alignment issue for "Saved searches" dropdown in log viewer (#12665)
* Umbraco avatar component updated to fit the image

* Fixed: Broken saved search dropdown in log viewer
2022-07-08 15:39:55 +01:00
Mads Rasmussen d3dc2bae69 remove forgotten parenthesis 2022-07-08 09:07:14 +02:00
Mads Rasmussen 87d552bebb Set form to dirty when updating user group permissions 2022-07-07 11:00:16 +02:00
Mads Rasmussen 4a1bccc58c always set readonly attr if a property can not be updated 2022-07-07 10:22:15 +02:00
Mads RasmussenandGitHub a63840a34e Merge pull request #12664 from umbraco/v10/feature/variant-permissions-unlock-dialog
show unlock dialog on all variants as long as there is more than one …
2022-07-07 10:12:36 +02:00
Mads Rasmussen 11a670bbe4 add toggle to allow access to all languages 2022-07-07 09:36:34 +02:00
Niels Lyngsø 6fcb02c602 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions-unlock-dialog
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/components/umb-property-editor.less

plus some extra
2022-07-06 16:16:36 +02:00
Niels Lyngsø 51c537c2c2 show property actions 2022-07-06 15:44:27 +02:00
Ronald BarendseandGitHub 4fc7f775ba Merge pull request #12663 from umbraco/v10/bugfix/fix-automoq
V10: Fix AutoMoq for unit tests
2022-07-06 15:32:48 +02:00
Zeegaan 7d6d826a4a Catch exception of UserGroup2Language database call 2022-07-06 15:24:41 +02:00
Zeegaan b2f87f66fd Fix up User repository 2022-07-06 15:08:37 +02:00
Niels Lyngsø 0daffd737e unlock overlay styling 2022-07-06 15:05:45 +02:00
Niels Lyngsø 957042d117 show unlock dialog on all variants as long as there is more than one created variant 2022-07-06 15:05:31 +02:00
nikolajlauridsen 9c5006e5c8 Remove body from obsolete constructor 2022-07-06 14:53:57 +02:00
nikolajlauridsen 6d80904280 Make InstallHelper moq greedy 2022-07-06 14:52:00 +02:00
Zeegaan 7e5fc48a67 Add new hasAccessToAllLanguages migration 2022-07-06 14:26:10 +02:00
Zeegaan 49dd2b44e3 Add hasAccessToAllLanguages column to usergroup table 2022-07-06 14:11:19 +02:00
Zeegaan 91974a69f5 Update IReadOnlyUserGroup.cs 2022-07-06 13:49:42 +02:00
Zeegaan ce6307c79a Fix up DatabaseDataCreator.cs to not give sensitive data group permission to all languages 2022-07-06 13:46:54 +02:00
Zeegaan 9e849b1635 Add HasAccessToAllLanguages property to User Groups 2022-07-06 13:45:05 +02:00
Zeegaan 93654de9c2 Update GetLanguagePermissions to pull out proper backofficeUser if possible 2022-07-06 13:33:12 +02:00
Zeegaan 35845b25e5 Obsolete ctor 2022-07-06 13:17:19 +02:00
Zeegaan 696182bf6e Update GetLanguagePermissions method 2022-07-06 13:02:33 +02:00
Zeegaan aa870a2302 Remove duplicate Contains() check 2022-07-06 12:58:00 +02:00
Zeegaan ed44c76fa0 Obsolete trycreate method 2022-07-06 12:56:29 +02:00
Zeegaan ffcda46654 insert using new namespace 2022-07-06 12:54:41 +02:00
f56ebbd7a1 Apply suggestions from code review
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-07-06 12:54:08 +02:00
Zeegaan 5770e48cc4 Make hardcoded string into const 2022-07-06 12:52:27 +02:00
Zeegaan 50e06ca596 Rename CultureImpactService.cs to CultureImpactFactory.cs 2022-07-06 12:50:52 +02:00
Zeegaan 99486339d9 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions 2022-07-06 12:48:52 +02:00
Zeegaan 49cc2bce79 Move extension method to actual interface with default implementation 2022-07-06 12:47:58 +02:00
Mads Rasmussen c1abcaabc1 add preview layer to prevent interaction with high z-index elements 2022-07-06 12:28:10 +02:00
0fe894c4f6 Fix up system information test (#12660)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-07-06 11:33:33 +02:00
cb4ec89bcf Allow only unpublish in schedule publish overlay if user has permission (#11827)
* Allow only unpublish in schedule publish overlay if user has permission

* Adjust logic to newer JS syntax

* Fix update configuration

* Delete updated property names

* Style unpublish date as disabled

* Fix css selector for new button element

* Make buttons and datepickers more consistent in invariant and variant versions of schedule overlay

* Fill half width like in invariant version of schedule overlay

* Use native includes instead

* return early from getPermissionsForContent

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-07-06 09:34:24 +10:00
Arul PrabakaranandNathan Woulfe 05d095914e Umbraco avatar component updated to fit the image 2022-07-06 08:46:12 +10:00
Ronald BarendseandGitHub b0b6081bea Read BootFailed.html file from WebRootFileProvider (#12634) 2022-07-05 15:24:53 +02:00
be38fb41ad V10: Use FireAndForget when logging install (#12658)
* Use FireAndForget when logging install

* Obsolete constructor

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-07-05 15:17:45 +02:00
22577163ba Remove context from IScopeProvider.cs (#12657)
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-07-05 12:42:52 +02:00
Zeegaan c94ee7c1ec Fix up wierd formatting 2022-07-05 12:40:33 +02:00
Zeegaan ac6666e627 Fix breaking changes 2022-07-05 11:27:49 +02:00
Zeegaan fa1be5c55d Fix wrong resolve of merge-conflict 2022-07-05 08:48:07 +02:00
Zeegaan a3bcc99ed0 Fix up so manifestParser can deserialize new property "supportsReadOnly" 2022-07-05 08:41:55 +02:00
Zeegaan a572044f9e Map allowedactions 2022-07-04 15:07:59 +02:00
Zeegaan 1993424264 Merge branch 'v10/dev' into v10/feature/variant-permissions 2022-07-04 14:43:09 +02:00
f2a98309b4 Support localization for content search (backoffice) (#12618)
* Support localization for content search

* Formatting

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Review changes

* Review changes

Co-authored-by: kjac <kjn@impact.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-07-04 13:45:33 +02:00
Bjarke BergandGitHub af3e9bf892 Merge pull request #12645 from umbraco/v10/bugfix/language-cultureName-is-null
languageCultureName null makes umbraco explode
2022-07-04 10:23:20 +02:00
Zeegaan 56ef2d56eb Merge branch 'v10/dev' into v10/bugfix/language-cultureName-is-null 2022-07-04 08:43:08 +02:00
173c1c8c8f Add Current Server Role to system information (#12630)
* Add Current Server Rule to system information

* Update Unit Tests, Mock IServerRoleAccessor

* Add CurrentServerRole to UnitTest

* adds trailing commas

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-07-04 09:54:27 +10:00
5bb81558f8 set isInfoTab to true if active tab is info tab (#12632)
* set isInfoTab to true if active tab is info tab

* replace underscore functions with good old boring javascript

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-07-04 09:26:19 +10:00
dca4d0f167 Add runtime mode (BackofficeDevelopment, Development and Production) (#12631)
* Add runtime mode setting

* Only enable Razor runtime compilation in development modes

* Only enable ModelsBuilder generation in development modes

* Fix disabling ModelsBuilder controllers

* Add IRuntimeModeValidationService and IRuntimeModeValidator

* Add JITOptimizerValidator

* Add UmbracoApplicationUrlValidator

* Add UseHttpsValidator

* Add RuntimeMinificationValidator

* Add ModelsBuilderModeValidator

* Remove .NET 6 preview 1 fix for Razor runtime compilation

* Only allow InMemoryAuto in backoffice development mode

* Make runtime mode validators public, so they can be easily removed if required

* Add comment to highlight removing RazorCompileOnBuild, RazorCompileOnPublish and CopyRazorGenerateFilesToPublishDirectory when using ModelsMode InMemoryAuto

* Add documentation

* Update src/Umbraco.Web.Common/ModelsBuilder/NoopModelsBuilderDashboardProvider.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-07-01 08:48:05 +02:00
Ronald Barendse 7d545a7dfc Fix test after Sqlite casing change 2022-06-30 22:52:59 +02:00
Bjarke Berg 8de95acec6 Fixed casing 2022-06-30 15:30:42 +02:00
Zeegaan 30c5068f83 Get cultureName from culture info if null 2022-06-30 15:28:06 +02:00
Matthew CareandMichael Latouche 448836ee2d Break word for limited width content
Add break word to avoid overflowing content / account for label values which are often used to store random data
2022-06-30 14:13:46 +02:00
Bjarke BergandGitHub be1fddb9be Added configuration to allow RTL cultures to opt-in to reverse the url hierarchy (#12635)
* Added configuration to allow RTL cultures to opt-in to reverse the url hierarchy.

https://github.com/umbraco/Umbraco-CMS/issues/12621

* Fixed bug.. There is difference between array.Reverse (Linq) and list.Reverse (native)

* formatting
2022-06-30 14:08:13 +02:00
gilbertaoeandMichael Latouche ccf0d3f443 Update MemberRepository.cs
Ensuring that MemberManager.ConfirmEmailAsync persists.
2022-06-30 13:47:16 +02:00
Zeegaan 5eb5cb7e2b Fix up after merge 2022-06-30 09:57:45 +02:00
Zeegaan 35549ca218 Merge branch 'release/10.0.1' into v10/dev
# Conflicts:
#	src/Umbraco.Core/Actions/ActionAssignDomain.cs
#	src/Umbraco.Core/Configuration/Models/ModelsBuilderSettings.cs
#	src/Umbraco.Core/Models/RelationItem.cs
#	src/Umbraco.Core/Scoping/ICoreScope.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs
#	src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
#	src/Umbraco.Infrastructure/Logging/MessageTemplates.cs
#	src/Umbraco.Infrastructure/Persistence/DbProviderFactoryCreator.cs
#	src/Umbraco.Infrastructure/Runtime/FileSystemMainDomLock.cs
#	src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs
#	src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs
#	src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
#	tests/Umbraco.Tests.Integration/TestServerTest/UmbracoTestServerTestBase.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/ScopedNotificationPublisherTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Scoping/ScopeUnitTests.cs
#	version.json
2022-06-30 09:48:24 +02:00
Zeegaan fd0c4fda54 bumb version 2022-06-30 08:34:58 +02:00
Bjarke BergandGitHub 62eeb42004 Changed const to return "Microsoft.Data.Sqlite" instead of "Microsoft.Data.SQLite" and made our checks case insensitive where possible. Sadly DbProviderFactories is still case sensative so for that we support both strings. (#12639)
https://github.com/umbraco/Umbraco-CMS/issues/12604
2022-06-29 16:49:47 +02:00
Erik-Jan WestendorpandGitHub ce9f92909b Remove Obsolete AddOEmbedProvider extension method (#12624)
* Remove unused using

* Remove Obsolete AddOEmbedProvider Method

* Revert and update obsolete message
2022-06-29 16:41:00 +10:00
MoleandGitHub 3cfeac94a4 V10: Fix error when opening recycle bin (#12619)
* Make object type parameter nullable in configuration editor

* Add delete from recycle bin test

* Clean up after test
2022-06-27 14:41:59 +02:00
Kevin JumpandZeegaan fb35c47c70 Also read the plugin files using the content provider. (#12552) 2022-06-27 13:34:09 +02:00
Kevin JumpandGitHub 5988a4c87d Also read the plugin files using the content provider. (#12552) 2022-06-27 13:29:27 +02:00
Erik-Jan WestendorpandNathan Woulfe ea264c79ef Translate 'Referenced by the following items' 2022-06-27 17:48:31 +10:00
Bjarke BergandZeegaan b232ff98a0 Fix formatting after merge and fix nullability 2022-06-27 08:31:34 +02:00
Bjarne FyrstenborgandNathan Woulfe b60c2ca5d3 Update aria-invalid based on valid length 2022-06-27 09:50:36 +10:00
091cb9e428 add a gap between icon and label of media menu (#12571)
* add a gap between icon and label of media menu

* replace inline style with class

* icon alignment

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-06-27 09:18:52 +10:00
c840ceecff Allow action links to wrap (#12611)
* Allow action links to wrap

Preventing wrapping means that buttons can overflow their container.

* slightly wider context menu to reduce runty labels

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-06-27 09:03:07 +10:00
Zeegaan f3591d2e7a Create acceptance tests for variant permissions 2022-06-24 13:23:56 +02:00
Zeegaan 551eeda625 Add cascading to UserGroup2LanguageDto.cs 2022-06-23 15:43:27 +02:00
Nikolaj 20f9cfe2ac Fix ReportSiteTask post merge 2022-06-23 15:25:25 +02:00
Mole 46d71838f2 Only send telemetry if we're on runtimelevel run (#12600) 2022-06-23 15:23:41 +02:00
Olivier BossaerandBjarke Berg 24222fa4d2 Unescape returnPath.
(cherry picked from commit 88af609c81)
2022-06-23 12:51:30 +02:00
Bjarke BergandGitHub 3106e4ee1f Merge pull request #12585 from olibos/v10/olibos/fix/12575-external-login-form-action
Unescape returnPath.
2022-06-23 12:49:58 +02:00
Zeegaan ac5f2270ac Set SupportsReadOnly in all our PropertyEditors 2022-06-22 15:45:13 +02:00
Zeegaan fbfe93b2e0 Fix bug related to invariant content 2022-06-22 15:21:12 +02:00
Zeegaan dfbd23fd03 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions 2022-06-22 15:08:51 +02:00
Zeegaan d4f1d3f680 Add SupportReadOnlyMode to editor 2022-06-22 15:08:44 +02:00
Mads Rasmussen 16ae85f2db only render property editor readonly mode if the property editor supports it 2022-06-22 14:53:42 +02:00
Zeegaan 8fe2f7e036 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions 2022-06-22 11:32:10 +02:00
Zeegaan c552008870 Add supportsReadOnlyMode to ContentPropertyDisplay.cs 2022-06-22 11:31:58 +02:00
Mads Rasmussen 1b19704d37 copy allowed actions in block list editor 2022-06-22 11:19:30 +02:00
Mads Rasmussen 37a4662e3c use readonly border in media picker 2022-06-22 11:19:02 +02:00
Mads Rasmussen 92fcc425e8 make readonly border lighter 2022-06-22 11:18:40 +02:00
MoleandGitHub 42e2254e30 Only send telemetry if we're on runtimelevel run (#12600) 2022-06-22 08:25:18 +02:00
MoleandGitHub 4a6a318f2c Add create content with same name test (#12557) 2022-06-21 14:53:56 +02:00
Mole 389380d8fa V10: Fix sending content notification (#12597)
* Add mappers to map between ContentItemDisplay and ContentItemDisplayWithSchedule

* Ensure SendingContentNotification is always sent

* Add custom setup hook for UmbracoTestServerTestBase

* Add test showing bug/fix

* Test schedule being mapped correctly

* Obsolete the old constructor

* Removed TODO
2022-06-21 13:57:26 +02:00
Nikolaj Geisle 7789f86b72 Add SupportsReadOnlyMode to package manifest 2022-06-21 12:30:41 +02:00
MoleandGitHub 045a487190 V10: Fix sending content notification (#12597)
* Add mappers to map between ContentItemDisplay and ContentItemDisplayWithSchedule

* Ensure SendingContentNotification is always sent

* Add custom setup hook for UmbracoTestServerTestBase

* Add test showing bug/fix

* Test schedule being mapped correctly

* Obsolete the old constructor

* Removed TODO
2022-06-21 11:44:28 +02:00
Nikolaj Geisle 7770f65faa Move tests 2022-06-21 11:06:18 +02:00
Nikolaj Geisle 9d912ea98a Add integration tests 2022-06-21 11:04:57 +02:00
Nikolaj Geisle 5049e7071b Fix redirect after logout bug https://github.com/umbraco/Umbraco-CMS/issues/12592 2022-06-21 09:20:47 +02:00
Nikolaj Geisle 1ab472472c Fix redirect after logout bug https://github.com/umbraco/Umbraco-CMS/issues/12592 2022-06-21 08:50:00 +02:00
Nikolaj Geisle c283cc498f Start work on integration tests 2022-06-21 08:45:33 +02:00
Nikolaj Geisle 8ab5aa1a41 Fix formatting 2022-06-21 08:45:24 +02:00
Nikolaj Geisle 4cd7aae611 Fix up after merge 2022-06-21 08:20:25 +02:00
Nikolaj Geisle 5b1e344092 Merge branch 'v10/dev' into v10/feature/variant-permissions
# Conflicts:
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Models/CultureImpactTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Editors/UserEditorAuthorizationHelperTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs
2022-06-21 08:18:39 +02:00
7aeb400fce V10: fix build warnings in test projects (#12509)
* Run code cleanup

* Dotnet format benchmarks project

* Fix up Test.Common

* Run dotnet format + manual cleanup

* Run code cleanup for unit tests

* Run dotnet format

* Fix up errors

* Manual cleanup of Unit test project

* Update tests/Umbraco.Tests.Benchmarks/HexStringBenchmarks.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update tests/Umbraco.Tests.Integration/Testing/TestDbMeta.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update tests/Umbraco.Tests.Benchmarks/TypeFinderBenchmarks.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update tests/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update tests/Umbraco.Tests.Integration/Umbraco.Core/Events/EventAggregatorTests.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fix according to review

* Fix after merge

* Fix errors

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-06-21 08:09:38 +02:00
Zeegaan 6c893a1bd1 Implement extension method for IReadOnlyUserGroup that checks access to a language 2022-06-20 14:52:04 +02:00
Zeegaan bc2eb5a784 Fix up after merge 2022-06-20 14:12:33 +02:00
Zeegaan 0288e3d6a9 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/variant-permissions
# Conflicts:
#	src/Umbraco.Core/Configuration/Models/SecuritySettings.cs
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs
#	src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs
#	src/Umbraco.Core/Models/ContentEditing/UserGroupBasic.cs
#	src/Umbraco.Core/Models/ContentEditing/UserGroupSave.cs
#	src/Umbraco.Core/Models/ContentRepositoryExtensions.cs
#	src/Umbraco.Core/Models/CultureImpact.cs
#	src/Umbraco.Core/Models/Mapping/ContentVariantMapper.cs
#	src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs
#	src/Umbraco.Core/Models/Membership/IReadOnlyUserGroup.cs
#	src/Umbraco.Core/Models/Membership/IUserGroup.cs
#	src/Umbraco.Core/Models/Membership/ReadOnlyUserGroup.cs
#	src/Umbraco.Core/Models/Membership/UserGroup.cs
#	src/Umbraco.Core/Models/Membership/UserGroupExtensions.cs
#	src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs
#	src/Umbraco.Core/Services/ContentService.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Persistence/Dtos/UserGroupDto.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/UserFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/UserGroupFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Filters/ContentSaveValidationAttribute.cs
#	src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
#	src/Umbraco.Web.UI.Client/src/common/services/editor.service.js
2022-06-20 13:59:18 +02:00
29961d40a3 V10: fix build warnings nucache (#12500)
* Run code cleanup

* Finish dotnet format and manual cleanup

* Fix according to review

Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-06-20 09:21:08 +02:00
8ffede0441 V10: merge release branch 20220620 (#12590)
* Add Umbraco specific global usings

* Enable implicit usings

* v10: Wait for updated ConnectionStrings during install (#12536)

* Do not change/reload configuration

* Wait for updated connection string options

* recase assigndomain (#12448)

* Add depth property to ICoreScope (#12540)

* Remove ambient scope stack from httpcontext.items. (#12539)

This change makes it easier to use service calls in parallel whilst
a httpcontext is available.

* v10: Prefer SQLite primitive types to flexible types (#12541)

* Prefer SQLite primitive types to flexible types.

* SQLite - column mappings use TEXT for decimals

Thanks @mattbrailsford for sense check.

* Fix issue where languages files are not found in subdir of package dir (#12543)

* Make FindContent return type nullable (#12545)

* Updated nuget dependencies (07-06-2022) (#12525)

* Updated nuget dependencies

* Move Nerdbank.GitVersioning update to Directory.Build.props

* Updated more dependencies

* Improve FlagOutOfDateModels property behaviour.

(cherry picked from commit 54077725c3)

* Fix logic error WRT models builder flag out of date models. (#12548)

(cherry picked from commit 6b0149803a)

* Fixed issue with expected null value. (#12550)

Fixes https://github.com/umbraco/Umbraco-CMS/issues/12526

* Updated Examine to 3.0.0

* Fixes relation issue, when moving a root item to recycle bin, the "Relate Parent Media Folder On Delete"/"Relate Parent Document On Delete" cannot get the parent node type, because it is a fake root.

* Fix possible null error

* Bump version to 10.0.0 final

* Fix attempting to write lock files to LocalTempPath before it exists (#12563)

* Re fix usage statements

Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Paul Johnson <pmj@umbraco.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-06-20 09:20:47 +02:00
e762fa91bc V10: fix build warnings in Web.BackOffice (#12479)
* Run code cleanup

* Start manual run

* Finish dotnet format + manual cleanup

* Fix up after merge

* Fix substrings changed to [..]

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-06-20 08:37:17 +02:00
7688c61621 V10: fix build warnings Examine.Lucene (#12501)
* Run Code cleanup

* Dotnet format and manual pass

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-06-20 08:19:19 +02:00
df5993bca8 V10: Fix build warnings umbraco.persistence (#12502)
* Run code cleanup

* Run dotnet format

* Manual cleanup

* Fix [..] to substring

* Fix after merge

* Update src/Umbraco.Cms.Persistence.SqlServer/Services/SqlServerBulkSqlInsertProvider.cs

Co-authored-by: Paul Johnson <pmj@umbraco.com>

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Paul Johnson <pmj@umbraco.com>
2022-06-20 08:07:08 +02:00
d42a695e8a Added dictionary import/export (#12378)
* Added dictionary import/export

* Added umb tree to dictionary import & level for displaying preview dictionary import

* Indented dictionaries for import, added new text for choosing where to import dictionary items

* Removed console.log for dictionary/import.controller.js

Co-authored-by: Michael <michael@crossingpaths.be>
2022-06-17 09:21:01 +01:00
DanielToxicandMichael Latouche 2f4feb925a Localization: Add missing 'Create a new Document Type' translation (Swedish)
Add 'Create a new Document Type' key in button area (Swedish translation file)
2022-06-17 10:13:56 +02:00
Mehrdad Aghababaei BabakiandMichael Latouche a9b5558eb1 remove lightbox from dom on destroy 2022-06-17 10:08:16 +02:00
Matt BrailsfordandGitHub 23e94ffdad Add TOC to Contributing page (#12587) 2022-06-17 17:23:43 +10:00
Olivier Bossaer 88af609c81 Unescape returnPath. 2022-06-16 15:15:04 +02:00
Paul JohnsonandGitHub e3f4b86f1c Fix attempting to write lock files to LocalTempPath before it exists (#12563) 2022-06-10 09:03:59 +01:00
Bjarke Berg 116d5735fb Bump version to 10.0.0 final 2022-06-09 10:12:47 +02:00
Bjarke Berg d7b015d8c9 Fix possible null error 2022-06-09 09:53:28 +02:00
Bjarke Berg 2ab1518862 Fixes relation issue, when moving a root item to recycle bin, the "Relate Parent Media Folder On Delete"/"Relate Parent Document On Delete" cannot get the parent node type, because it is a fake root. 2022-06-09 09:51:37 +02:00
Bjarke Berg 2cc229ef9a Updated Examine to 3.0.0 2022-06-08 21:24:19 +02:00
Bjarke BergandGitHub 7e8c3cb20d Fixed issue with expected null value. (#12550)
Fixes https://github.com/umbraco/Umbraco-CMS/issues/12526
2022-06-08 11:05:53 +02:00
Paul Johnson cf25d29f90 Fix logic error WRT models builder flag out of date models. (#12548)
(cherry picked from commit 6b0149803a)
2022-06-08 08:29:02 +01:00
Paul Johnson ce8f5f4724 Improve FlagOutOfDateModels property behaviour.
(cherry picked from commit 54077725c3)
2022-06-08 08:27:04 +01:00
Bjarke BergandGitHub 9ad790f36b Updated nuget dependencies (07-06-2022) (#12525)
* Updated nuget dependencies

* Move Nerdbank.GitVersioning update to Directory.Build.props

* Updated more dependencies
2022-06-08 08:19:43 +02:00
60a5b19dc9 V10: Fix build warnings in core (#12438)
* Run code cleanup

* Start manual cleanup after dotnet format

* Finish up manual pass

* Fix up missed warnings

* Fix after merge

* Update src/Umbraco.Core/Cache/ContentTypeCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/DataTypeCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/DeepCloneAppCache.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/DomainCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/FastDictionaryAppCacheBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/MacroCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/MediaCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/MemberCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Cache/MemberGroupCacheRefresher.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Composing/OrderedCollectionBuilderBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Configuration/Models/RequestHandlerSettings.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Composing/WeightedCollectionBuilderBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/ContentApps/ContentAppFactoryCollectionBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/ContentTypeRefreshedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/ContentTypeSavedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/ContentTypeSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/DictionaryCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/DataTypeCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/ContentUnpublishingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/DictionaryItemDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/DictionaryItemSavedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/DictionaryItemSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/DomainCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/LanguageCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MacroCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaEmptiedRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaEmptyingRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaMovedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaMovedToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaMovedToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaMovingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaMovingToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTreeChangeNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTreeChangeNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTypeChangedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTypeDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTypeMovedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTypeMovingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTypeMovingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MediaTypeRefreshedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberGroupCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberGroupDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberGroupSavedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberGroupSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeChangedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeDeletedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeMovedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeMovedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeMovingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeMovingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeRefreshedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MemberTypeSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/StringExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/UriExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MovedToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MovedToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MovingToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/MovingToRecycleBinNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PartialViewDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Extensions/UriExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/IO/PhysicalFileSystem.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/IO/PhysicalFileSystem.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/IO/ShadowWrapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Logging/DisposableTimer.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Install/InstallSteps/UpgradeStep.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Mapping/MapDefinitionCollectionBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Media/EmbedProviders/EmbedProvidersCollectionBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PartialViewSavedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Models/ContentEditing/ContentVariationDisplay.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PartialViewSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessEntryDeletedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessEntryDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessEntryDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessEntrySavedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessEntrySavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/PublicAccessEntrySavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/RelationTypeCacheRefresherNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/RelationTypeDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/RelationTypeSavedNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/RelationTypeSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/StatefulNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/StylesheetDeletingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Notifications/StylesheetSavingNotification.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Models/DeepCloneHelper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Models/File.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Models/PropertyGroupExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Core/Models/PropertyGroupExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fix based on review

* Fix after merge

Signed-off-by: Zeegaan <nge@umbraco.dk>

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Zeegaan <nge@umbraco.dk>
2022-06-07 15:28:38 +02:00
MoleandGitHub fffbbbeb5f Make FindContent return type nullable (#12545) 2022-06-07 14:45:42 +02:00
Paul JohnsonandGitHub a8b68202f3 Fix issue where languages files are not found in subdir of package dir (#12543) 2022-06-07 13:15:26 +02:00
Paul JohnsonandGitHub d7ce136107 v10: Prefer SQLite primitive types to flexible types (#12541)
* Prefer SQLite primitive types to flexible types.

* SQLite - column mappings use TEXT for decimals

Thanks @mattbrailsford for sense check.
2022-06-07 12:41:46 +02:00
Paul JohnsonandGitHub fde1b6685a Remove ambient scope stack from httpcontext.items. (#12539)
This change makes it easier to use service calls in parallel whilst
a httpcontext is available.
2022-06-07 11:35:36 +02:00
Paul JohnsonandGitHub ea9d27c038 Add depth property to ICoreScope (#12540) 2022-06-07 11:25:05 +02:00
b4fbad14c7 V11: cleanup obsoletes (#12481)
* Remove IExternalLoginService.cs

* Remove UmbracoApplicationComponentsInstallingNotification.cs

* Remove UmbracoApplicationMainDomAcquiredNotification.cs

* Merge IContentTypeWithHistoryCleanup with IContentType.cs

* Remove obsolete ctors from notifications

* Remove obsolete methods

* Remove obsolete method from RequestHandlerSettings.cs

* Fix UmbracoBuilder.Repositories.cs

* RemoveRemove obsolete constants

* Remove obsolete method from IRuntimeMinifier

* Remove SetLastLogin from IMemberRepository

* Revert "RemoveRemove obsolete constants"

This reverts commit cddb8ad1cf.

* Remove obsoleted Constants-Conventions.cs

* Remove obsolete ctors

* Make ContentData properties immutable

* remove obsolete static property from TestOptionAttributeBase

* Merge IMacroWithAliasService into IMacroService

* Remove IUserComposer

* remove obsolete AddOEmbedProvider method

* remove obsolete static EmbedProvidersCollectionBuilder

* remove obsolete HasFlagAll<T> method

* Remove obsolete LocalizedTextService property from BaseHttpHeaderCheck

* Remove obsolete GetDefaultFIleContent method from ViewHelper

* Remove more obsolete ctors and methods

* Remove obsolete ctor from RelationType

* Remove more obsolete methods

* Remove IExternalLoginRepository

* merge IMacroWithAliasRepository with IMacroRepository

* Remove obsolete methods from ExternalLoginRepository

* Remove obsolete method from IUserRepository

* Remove obsolete SetLastLogin, as it was NoOp

* Remove wierd SetLastLogin method from UserService

* Remove GetLogLevel from ILogViewer

* Remove more obsolete methods and ctors

* Remove more obsoletes

* Use other method in BackOfficeServerVariables.cs since GetAllTypes is now removed

* Remove obsolete ctor

* Remove ConfigureIISServerOptions

* Remove more obsolete methods

* Merge ITwoFactorLoginService2 with ITwoFactorLoginService

* Re-introduce GetCustomGenericProperties in MemberTabsAndPropertiesMapper.cs

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-06-07 11:16:30 +02:00
Ronald BarendseandGitHub b6e93116dc Merge pull request #12516 from umbraco/v10/feature/global-usings
v10: Add global usings
2022-06-07 11:04:47 +02:00
Nikolaj GeisleandNikolaj 559a85812f recase assigndomain (#12448) 2022-06-07 09:01:57 +02:00
Nikolaj GeisleandGitHub 86e16302bf recase assigndomain (#12448) 2022-06-07 08:59:45 +02:00
Ronald BarendseandGitHub 4dcb017afe v10: Wait for updated ConnectionStrings during install (#12536)
* Do not change/reload configuration

* Wait for updated connection string options
2022-06-07 08:44:03 +02:00
Bjarke Berg 3754824ac9 Merge remote-tracking branch 'origin/release/10.0.0' into v10/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Expressions/Create/Expressions/CreateTableExpression.cs
#	src/Umbraco.Infrastructure/Migrations/MigrationExpressionBase.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TrackedReferencesRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TwoFactorLoginRepository.cs
#	src/Umbraco.Infrastructure/Routing/RedirectTrackingHandler.cs
#	src/Umbraco.Infrastructure/Scoping/IScopeProvider.cs
#	src/Umbraco.Infrastructure/Scoping/LegacyIScope.cs
#	src/Umbraco.Infrastructure/Scoping/ScopeContextualBase.cs
#	version.json
2022-06-03 07:12:56 +02:00
Bjarke BergandGitHub 9aa6ec9d79 Merge pull request #12532 from umbraco/v10/feature/merge_v9.5.1_into_v10
Merge v9.5.1 into v10
2022-06-03 06:27:32 +02:00
Bjarke Berg 0beaf19063 Fixed query after tests on sqlite 2022-06-02 21:57:59 +02:00
Bjarke Berg 3d8f81025b Fixed NRT issues 2022-06-02 20:54:07 +02:00
Bjarke Berg d086b21332 Merge remote-tracking branch 'origin/v9/9.5' into v10/feature/merge_v9.5.1_into_v10
# Conflicts:
#	src/Directory.Build.props
#	src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TrackedReferencesRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TwoFactorLoginRepository.cs
#	src/Umbraco.Infrastructure/Routing/RedirectTrackingHandler.cs
#	src/Umbraco.PublishedCache.NuCache/ContentCache.cs
#	src/Umbraco.PublishedCache.NuCache/DomainCacheExtensions.cs
#	templates/UmbracoPackage/.template.config/template.json
#	templates/UmbracoProject/.template.config/template.json
2022-06-02 20:45:24 +02:00
Bjarne FyrstenborgandGitHub 4238e2a4f3 Simplify code in UmbracoViewPage (#12528) 2022-06-02 15:47:47 +02:00
Bjarke BergandNikolaj 07f685679b Changes to Basic Auth to support external logins (#12434)
* Fixed issues with basic auth middleware to support Umbraco Cloud usecase

* Fix redirects to return url, now allows website urls

* Strip potential domain part of returnPath

* Fix default value in appsettings schema

* Reintroduce check of basic auth enabled.

* Fix wrong negation introduced in #12349

* Fixed issues with redirects

* Also check external login cookie, while authenticating backoffice
2022-06-02 12:24:26 +02:00
Bjarke BergandGitHub faf06be618 Changes to Basic Auth to support external logins (#12434)
* Fixed issues with basic auth middleware to support Umbraco Cloud usecase

* Fix redirects to return url, now allows website urls

* Strip potential domain part of returnPath

* Fix default value in appsettings schema

* Reintroduce check of basic auth enabled.

* Fix wrong negation introduced in #12349

* Fixed issues with redirects

* Also check external login cookie, while authenticating backoffice
2022-06-02 12:19:22 +02:00
f4e333c178 V10: fix build warnings infrastructure (#12369)
* Run code cleanup

* Run dotnet format

* Start manual fixes

* Manual fixing of warnings

* Fix nullability in columnalias

* Fix tests

* Fix up after merge

* Start updating after review

* Update editorconfig to contain new static & const rules

* Fix up editorconfig to not contain duplicate rules

* Fix up static member names

* Fix up according to review

* Update src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.DistributedCache.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/ExamineUmbracoIndexingHandler.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Extensions/InstanceIdentifiableExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/HostedServices/RecurringHostedServiceBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Macros/MacroTagParser.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Macros/MacroTagParser.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Macros/MacroTagParser.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Migrations/Expressions/Alter/Table/IAlterTableColumnOptionBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Migrations/Upgrade/V_10_0_0/AddMemberPropertiesAsColumns.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Dtos/ExternalLoginDto.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/AccessMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/AuditEntryMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/MediaMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/MemberMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/NPocoMapperCollectionBuilder.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Querying/ExpressionVisitorBase.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fix [..] to substring

* Fix after merge with 10/dev

* Fox ContentValueSetValidator.cs

* Update LoggerConfigExtensions

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-06-02 08:18:31 +02:00
Bjarke BergandGitHub cce0a7d816 Obsolete stuff not used anymore and remove from appsettings schema (#12520) 2022-06-01 19:35:10 +02:00
Paul JohnsonandGitHub edc9e9623d v10: fix migrations fluent create table builder sqlite (#12518)
* Fix create table builder setup for migrations with SQLite.
2022-06-01 17:04:46 +01:00
Paul JohnsonandGitHub 2da8bfba7d Fix unable to authorize upgrade from versions < 9.3.0 (#12519)
(cherry picked from commit 9746889635)
2022-06-01 16:53:34 +01:00
Paul JohnsonandGitHub 406576ddfa Fix unable to authorize upgrade from versions < 9.3.0 (#12494) 2022-06-01 17:26:27 +02:00
Ronald Barendse 8d5590471c Merge branch 'release/10.0.0' into v10/feature/global-usings 2022-06-01 16:05:22 +02:00
Paul JohnsonandGitHub bee19f5404 Move HostBuilderExtensions to Microsoft.Extensions.DependencyInjection (#12515) 2022-06-01 15:01:00 +01:00
Ronald Barendse 87dbc8b287 Enable implicit usings 2022-06-01 15:50:37 +02:00
Ronald Barendse 588525e99f Add Umbraco specific global usings 2022-06-01 14:46:01 +02:00
Lasse FredslundandGitHub 57babbe441 Changed manic to marvelous (#12514) 2022-06-01 14:28:39 +02:00
c08f7f211c Query optimization in TrackedReferencesRepository (#12488)
* Rewrote query

https://github.com/umbraco/Umbraco-CMS/issues/12308

* Reuse new query

* Updated the other queries in TrackedReferencesRepository

* Fix GetPagedRelationsForItem to not include self

* Update src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-05-31 15:55:29 +02:00
MoleandGitHub 156fe5976c Send content type notifications on copy (#12463) 2022-05-31 14:26:34 +02:00
ac61f85e70 Fixes issue with redirects not being generated when an invariant cont… (#12453)
* Fixes issue with redirects not being generated when an invariant content has variant ancestors. In this case we wanna create redirects for all languages

https://github.com/umbraco/Umbraco-CMS/issues/12452

* Handle Url routing of invariant items with variant parents, when no culture is given

* Cleanup

* Update src/Umbraco.Core/Routing/UrlProvider.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Refactor styling and added else if

Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-05-31 13:19:01 +02:00
7f76893399 v10: Breaking Change Fixes (#12486)
* Add Execute with obsoleted IScopeProvider parameter

* Add ScopeContextualBase Get method that accepts an obsolete IScopeProvider

* Make LegacyIScope have all props/methods defined upon it as otherwise it causes method missing errors

* Added new keyword to hidden properties / methods

* Drop Context prop from Infrastructure.IScopeProvider

Co-authored-by: Paul Johnson <pmj@umbraco.com>
2022-05-30 16:05:30 +01:00
Paul Johnson 025658e611 Fix compiler warning for hidden inherited member on legacyscopeprovider 2022-05-30 15:20:52 +01:00
Matt BrailsfordandPaul Johnson 6d3e4aaa78 Make ActionDelete.ActionAlias public again
(cherry picked from commit d0a752248e)
2022-05-26 14:13:58 +01:00
Matt BrailsfordandMichael Latouche d0a752248e Make ActionDelete.ActionAlias public again 2022-05-26 13:16:12 +02:00
Paul Johnson be2194a8b1 Bump version to 10.0.0-rc5 2022-05-26 08:28:53 +01:00
Matt BrailsfordandPaul Johnson cf461b2504 Don't use default params for AddUnique extension methods (breaks v9) (#12485)
(cherry picked from commit f3c4c677f3)
2022-05-26 08:28:17 +01:00
Matt BrailsfordandPaul Johnson adcc9a0e1f Don't use default params for AddUnique extension methods (breaks v9) (#12485)
(cherry picked from commit f3c4c677f3)
2022-05-26 08:27:40 +01:00
Matt BrailsfordandGitHub f3c4c677f3 Don't use default params for AddUnique extension methods (breaks v9) (#12485) 2022-05-26 08:25:02 +01:00
JeavonandGitHub 8609314314 Update template gitignore for static assets now in Razor Class Library (#12424)
* Update template gitignore

Remove the rules for umbraco static assets as these are now served from a Razor Class Libray

* Update .gitignore

Adjust path of appsettings-schema.json
2022-05-26 15:39:21 +10:00
nikolajlauridsen c5e1f5c67d Merge branch 'release/10.0.0' into v10/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
2022-05-25 12:51:08 +02:00
Paul Johnson 8c7905a354 merge release/10.0.0 into v10/dev
commit 9ff06eec6e
Author: Ronald Barendse <ronald@barend.se>
Date:   Wed May 25 11:16:39 2022 +0200

    v10: Instantly reload ConnectionStrings after saving configuration (#12475)

    * Do not replace DataDirectory placeholder when setting connection string

    * Ensure ConnectionStrings options are updated when configuration is reloaded

    * Use CurrentValue to get default Umbraco connection string

commit fcee6dc06a
Author: Paul Johnson <pmj@umbraco.com>
Date:   Wed May 25 10:08:43 2022 +0100

    Fix legacy scope provider no longer implementing ICoreScopeProvider (#12480)

commit 88f3628d0a
Author: Paul Johnson <pmj@umbraco.com>
Date:   Wed May 25 09:49:33 2022 +0100

    Fix options monitor setup for connectionstrings (#12472)

commit 4eeb03e7fb
Author: Johan Runsten <jrunestone@users.noreply.github.com>
Date:   Wed May 25 10:13:25 2022 +0200

    Fixed null check typo in CacheInstructionService. Fixes #12473. (#12474)

    * Fixed null check typo. Fixes #12473.

    * Removed unneccessary null forgiving operator

    Co-authored-by: Johan Runsten <johan.runsten@toxic.se>

commit d810d66e9a
Author: Asbjørn Riis-Knudsen <ar@jf-data.com>
Date:   Tue May 24 17:41:10 2022 +0200

    Fix #12454 by having Coalesce handle null values (#12456)

    * Fix #12454 by having Coalesce handle null values

    * Allow null values in Html.Coalesce #12454

commit 963d4c5051
Author: Paul Johnson <pmj@umbraco.com>
Date:   Tue May 24 13:55:39 2022 +0100

    Ensure unique buildnumber for devops UI
2022-05-25 10:48:45 +01:00
Ronald BarendseandGitHub 9ff06eec6e v10: Instantly reload ConnectionStrings after saving configuration (#12475)
* Do not replace DataDirectory placeholder when setting connection string

* Ensure ConnectionStrings options are updated when configuration is reloaded

* Use CurrentValue to get default Umbraco connection string
2022-05-25 10:16:39 +01:00
Paul JohnsonandGitHub fcee6dc06a Fix legacy scope provider no longer implementing ICoreScopeProvider (#12480) 2022-05-25 10:08:43 +01:00
Paul JohnsonandGitHub 88f3628d0a Fix options monitor setup for connectionstrings (#12472) 2022-05-25 09:49:33 +01:00
4eeb03e7fb Fixed null check typo in CacheInstructionService. Fixes #12473. (#12474)
* Fixed null check typo. Fixes #12473.

* Removed unneccessary null forgiving operator

Co-authored-by: Johan Runsten <johan.runsten@toxic.se>
2022-05-25 10:14:26 +02:00
83e555a8ed Fixed null check typo in CacheInstructionService. Fixes #12473. (#12474)
* Fixed null check typo. Fixes #12473.

* Removed unneccessary null forgiving operator

Co-authored-by: Johan Runsten <johan.runsten@toxic.se>
2022-05-25 10:13:25 +02:00
019385411a added option to disable automatic expand of single nc item (#12261)
* added option to disable automatic expand of single nc item

* remove max item conditional

remove max item 1 conditional to set current node

* changed description of slider property

removed description of first item conditional

* Update NestedContentConfiguration.cs

change copy to more accurately describe the feature

Co-authored-by: Wilmar <wilmar.de.hoogd@thevalley.nl>
2022-05-25 02:31:52 +02:00
Asbjørn Riis-KnudsenandBjarke Berg d810d66e9a Fix #12454 by having Coalesce handle null values (#12456)
* Fix #12454 by having Coalesce handle null values

* Allow null values in Html.Coalesce #12454
2022-05-24 18:20:48 +02:00
Asbjørn Riis-KnudsenandGitHub d6b60cfc88 Fix #12454 by having Coalesce handle null values (#12456)
* Fix #12454 by having Coalesce handle null values

* Allow null values in Html.Coalesce #12454
2022-05-24 17:41:10 +02:00
Paul Johnson 963d4c5051 Ensure unique buildnumber for devops UI 2022-05-24 14:18:50 +01:00
Nikolaj 2f498be587 Bump version to 9.5.1 2022-05-24 14:57:26 +02:00
Bjarke Berg e6479207f1 Merge remote-tracking branch 'origin/release/10.0.0' into v10/dev 2022-05-24 14:11:18 +02:00
Bjarke Berg 175828ec43 Fixed issue in https://github.com/umbraco/Umbraco-CMS/issues/12384 (#12420)
We need to use invariant culture when doing ToString of user ints
2022-05-24 14:09:53 +02:00
Bjarke BergandGitHub ad6ef2688d Changed back Attempt<int?> to Attempt<int> (#12468) 2022-05-24 13:36:31 +02:00
7437feed10 Add TypeForwards file with type forwarding (#12467)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-05-24 12:37:48 +02:00
Paul JohnsonandGitHub 41a003e20e Ensure legacy scope returned when using legacy scope provider (#12465)
* Separate legacy scope provider interface and explicitly implement.

* Don't rely on legacy scope provider for existing tests.

* Assert correct type returned when using legacy scope provider.
2022-05-24 12:26:28 +02:00
Bjarke BergandGitHub e12c2eca1b Move msbuild target to correct location (#12462)
* Move target to correct location

* Clean up

* Remove duplicate
2022-05-24 10:57:29 +02:00
Paul Johnson d824516d80 Merge release/10.0.0 into v10/dev 2022-05-24 08:55:54 +01:00
Paul Johnson c16f2e2752 Fix timeoutInMinutes added to incorrect job. 2022-05-24 08:54:24 +01:00
971f0d7984 Feature: Configure Data Type conversion (#12374)
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2022-05-24 09:01:32 +02:00
Erik-Jan WestendorpandNathan Woulfe 3b68703333 Translate 'Configure Two Factor' (Dutch) 2022-05-24 08:08:08 +10:00
Bjarne FyrstenborgandGitHub 71156fb59b Adjust Danish translation for 2FA (#12459)
* Adjust Danish translation for 2FA

* Remove break
2022-05-24 08:04:33 +10:00
Bjarke Berg ab4909e6b9 Merge remote-tracking branch 'origin/release/10.0.0' into v10/dev
# Conflicts:
#	version.json
2022-05-23 16:56:39 +02:00
Bjarke BergandGitHub 56d9bf9847 Reintroduce MSBuild target that includes App_Plugins content when publishing (#12455)
* Reintroduced the IncludeAppPluginsContent target

* Bump version
2022-05-23 16:53:10 +02:00
nikolajlauridsen 9d14140bf1 Merge remote-tracking branch 'origin/release/10.0.0' into v10/dev
# Conflicts:
#	version.json
2022-05-23 11:58:23 +02:00
Nikolaj Geisle 882de44e38 Revert "Remove IExternalLoginService.cs"
This reverts commit 8b2557817b.
2022-05-23 10:33:32 +02:00
Nikolaj Geisle 7a1e134978 Revert "Remove UmbracoApplicationComponentsInstallingNotification.cs"
This reverts commit f6d39cd7e1.
2022-05-23 10:33:29 +02:00
Nikolaj Geisle 77c5b288b0 Revert "Remove UmbracoApplicationMainDomAcquiredNotification.cs"
This reverts commit 43add037e6.
2022-05-23 10:33:16 +02:00
Nikolaj Geisle 9719f8ac56 Revert "Merge IContentTypeWithHistoryCleanup with IContentType.cs"
This reverts commit 94eb49cdb6.
2022-05-23 10:33:02 +02:00
Nikolaj Geisle 94eb49cdb6 Merge IContentTypeWithHistoryCleanup with IContentType.cs 2022-05-23 10:30:03 +02:00
Nikolaj Geisle 43add037e6 Remove UmbracoApplicationMainDomAcquiredNotification.cs 2022-05-23 10:27:29 +02:00
Nikolaj Geisle f6d39cd7e1 Remove UmbracoApplicationComponentsInstallingNotification.cs 2022-05-23 10:27:18 +02:00
Nikolaj Geisle 8b2557817b Remove IExternalLoginService.cs 2022-05-23 10:26:54 +02:00
Erik-Jan WestendorpandNathan Woulfe 77dce77df4 Add Two Factor Auth translation (Dutch) 2022-05-23 18:10:12 +10:00
Paul Johnson e366fe8806 Merge release/10.0.0 into v10/dev
commit ff6d064b29
Author: Paul Johnson <pmj@umbraco.com>
Date:   Mon May 23 08:43:52 2022 +0100

    Allow for slow integration test runs

commit e6320a12ba
Author: Andy Butland <abutland73@gmail.com>
Date:   Sat May 21 08:10:52 2022 +0200

    Fixed null check in external login.

    (cherry picked from commit 9981907532)

commit 0f6630861e
Author: Paul Johnson <pmj@umbraco.com>
Date:   Mon May 23 07:25:04 2022 +0100

    static assets nupkg fixes (#12440)

    * Remove duplicate jsonschema build

    * Don't attempt to --no-build for dotnet pack (fixes static assets)

    * Bump version to 10.0.0-rc3

    * Improve restoreKeys

    * update Umbraco.GitVersioning.Extensions to 0.1.1

    (cherry picked from commit 0ef34ab9c5)

    * tag e2e container with current commit

    * cache cypress binaries

# Conflicts:
#	version.json
2022-05-23 08:56:50 +01:00
Paul Johnson ff6d064b29 Allow for slow integration test runs 2022-05-23 08:43:52 +01:00
Andy ButlandandBjarke Berg e6320a12ba Fixed null check in external login.
(cherry picked from commit 9981907532)
2022-05-23 08:27:41 +02:00
Paul JohnsonandGitHub 0f6630861e static assets nupkg fixes (#12440)
* Remove duplicate jsonschema build

* Don't attempt to --no-build for dotnet pack (fixes static assets)

* Bump version to 10.0.0-rc3

* Improve restoreKeys

* update Umbraco.GitVersioning.Extensions to 0.1.1

(cherry picked from commit 0ef34ab9c5)

* tag e2e container with current commit

* cache cypress binaries
2022-05-23 08:25:04 +02:00
Bjarke BergandGitHub 8d2fb538fd Fixed issue in https://github.com/umbraco/Umbraco-CMS/issues/12384 (#12420)
We need to use invariant culture when doing ToString of user ints
2022-05-23 08:19:59 +02:00
Andy ButlandandGitHub bf8f0e8e05 Merge pull request #12443 from umbraco/v10/bugfix/fix-external-login
Fixed null check in external login.
2022-05-21 08:13:37 +02:00
Andy Butland 9981907532 Fixed null check in external login. 2022-05-21 08:10:52 +02:00
Andy ButlandandGitHub f22aa2ed2d Merge pull request #12442 from umbraco/v10/feature/fix-vs-builds-umbraco-gitversioning
Fix visual studio build wrt Umbraco.GitVersioning.Extensions
2022-05-21 07:47:04 +02:00
Paul Johnson 0ef34ab9c5 update Umbraco.GitVersioning.Extensions to 0.1.1 2022-05-21 00:09:23 +01:00
Nikolaj a491d26c3f Fix bad merge 2022-05-20 10:26:23 +02:00
Nikolaj ed83784691 Merge branch 'release/10.0.0' into v10/dev
# Conflicts:
#	src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
#	version.json
2022-05-20 10:20:51 +02:00
Nikolaj 9bafabf906 Disable include symbols 2022-05-20 10:12:45 +02:00
9a4daa451a v10: Set telemetry level in installer (#12365)
* Add slider to user view

* fix typo 'constentLevels'

* Add TelemetryLevel to UserModel

* Extend NewInstallStep to include descriptions of each TelemetryLevel

* Add nouislider as dependency for installer view

* Add telemetry levels

Add raw nouislider to select a telemetry level + set chosen level onChange to the user model + show detailed description of each level as a tooltip

* Copy over basic styling of nouislider

* Save consent level in installer

* Fix detailed key to not contain <br>

* Fix MetricsConsentService to log correctly when we set analyticsLevel in installer

* Fix breaking change and obsolete messages

* reinstate saved value of the subscription field if you traverse the steps

* calculate the initial slider level based on the saved value of the model

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-05-19 15:49:08 +02:00
Paul Johnson f7bf6d5959 Prevent codeql build failures 2022-05-19 10:47:31 +01:00
Paul Johnson cfc8dcf2cb Bump version to 10.1.0-alpha.1 2022-05-19 10:26:37 +01:00
Paul Johnson 01d2d0326c Merge release/10.0.0 into v10/dev
commit e0aa430d4c
Author: Paul Johnson <pmj@umbraco.com>
Date:   Thu May 19 10:00:57 2022 +0100

    Fix typo in pipeline yaml

commit 2ec450f2d6
Author: Paul Johnson <pmj@umbraco.com>
Date:   Thu May 19 09:14:47 2022 +0100

    Fix yaml conditions

commit c2d548039a
Author: Paul Johnson <pmj@umbraco.com>
Date:   Thu May 19 09:02:50 2022 +0100

    Azure pipeline refactor (#12428)

    * Skip symbols for Umbraco.Templates

    * Resolve some test issues

    + Fixed whitespace dependant tests to pass regardless of build OS vs
    run OS.

    + Snap dictionary tests were failing when Configuration was release

    + Removed hardcoded baseUrl from one of the acceptance tests

    * Move docfx setup to ./build and fix

    * Update UI docs title

    * Added dockerfile that can be used when running the acceptance tests.

    * Take explicit dependency on System.Security.Cryptography.Pkcs

    * Refactor ci/cd pipeline

commit ee8359af75
Author: Mole <nikolajlauridsen@protonmail.ch>
Date:   Thu May 19 09:57:21 2022 +0200

    V10: Reintroduce appsettings-schema.json (#12416)

    * Reintroduce language files tests (#12367)

    * Reintroducing language files tests

    * Fix casing

    * Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

    Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

    * Change Umbraco.Cms and Umbraco.Templates nuspecs to csproj

    * Remove Umbraco.Templates from VerifyNuGet step

    * Remove duplicate and unnecessary properties

    * Generate json schema on build

    * Add targets file

    * Gitignore auto generated appsettings schema

    * Fix build not copying file

    * Use the new path in appsettings

    * Update copy message

    * Build json schema as release

    * Update json schema options

    Otherwise just running the project will put the file in the wrong place

    * Generate schema if it doesn't exist in Web.Ui

    * Update json schema options

    Otherwise just running the project will put the file in the wrong place

    Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
    Co-authored-by: Ronald Barendse <ronald@barend.se>

commit dd617ede80
Author: Ronald Barendse <ronald@barend.se>
Date:   Thu May 19 09:51:11 2022 +0200

    v10: Change Umbraco.Cms and Umbraco.Templates nuspecs to csproj (#12413)

    * Reintroduce language files tests (#12367)

    * Reintroducing language files tests

    * Fix casing

    * Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

    Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

    * Change Umbraco.Cms and Umbraco.Templates nuspecs to csproj

    * Remove Umbraco.Templates from VerifyNuGet step

    * Remove duplicate and unnecessary properties

    Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
    Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

commit b83216876f
Author: Ronald Barendse <ronald@barend.se>
Date:   Thu May 19 08:36:04 2022 +0200

    v10: Project template database/connection string improvements (#12407)

    * Add new connection-string-provider-name parameter

    * Use template value forms to correctly encode JSON values

    * Add new development-database-type parameter

    * Update package template and fix App_Plugins directory rename

    * Remove conflicting short parameter name

    * Lowercase framework parameter to align with MS templates

    * Cleanup default template settings

    * Write unattended install parameters when either connection string or development database is set

    * Include RootNamespace in UmbracoPackage template

    * Update Umbraco specific gitignore rules

    * Revert "Lowercase framework parameter to align with MS templates"

    This reverts commit 22de389272.

    * Add exclude-gitignore parameter

    * Update template schemas

    * Add minimal-gitignore parameter

commit e40049dcf1
Author: Mole <nikolajlauridsen@protonmail.ch>
Date:   Wed May 18 15:22:51 2022 +0200

    Fix domain for invariant content nodes (#12405)

    Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

commit a3692b887a
Author: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Date:   Mon May 9 11:42:10 2022 +0200

    Use SnippetCollection to when working with snippets  (#12355)

    * Introducing a new Snippet type

    * Adding a SnippetCollection and SnippetCollectionBuilder

    * Using snippetCollection to get the snippets instead of fileService

    * Fixed fetching the correct content

    * Make ISnippet non-discoverable

    * Split the SnippetCollection into PartialViewSnippetCollection and PartialViewMacroSnippetCollection

    * Update CodeFileController to use the 2 snippet collections

    * Display the names with Empty.cshtml on top

    * Remove merging embedded snippets with custom snippets from ~\Umbraco.Web.UI\umbraco\PartialViewMacros\Templates folder for the Partial View Collection

    * Fix naming

    * Fix another naming

    * Cleanup + Use base items

    Co-authored-by: Bjarke Berg <mail@bergmania.dk>
    (cherry picked from commit 9326cc5fc6)

commit 4f48a4937b
Author: patrickdemooij9 <patrickdemooij98@hotmail.com>
Date:   Fri Oct 8 11:18:00 2021 +0200

    Cherry picked from 4c08b44684

commit 4fdbfee597
Author: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
Date:   Wed May 11 00:51:37 2022 +0200

    Show nicer overlay when clicking block card for deleted element type (#12140)

    * Show nicer overlay when clicking block card for deleted element type

    * Cleanup

    * Remove stop-scrolling container

    * Use flex-start instead on start

    * Remove legacy flexbox fallback

    * Remove unnecessary hack

    * Use standard gap property instead

    * Localization of message

    * Fix translation

    * End sentence with a dot

    (cherry picked from commit ebb1dc21a9)

commit 3856bf8288
Author: Henk Jan Pluim <henkjan.pluim@greenchoice.nl>
Date:   Mon Apr 25 10:02:06 2022 +0200

    #fix 12254 return emptyresult

    (cherry picked from commit 7993d19c1b)

commit 7087c3d9f6
Author: Ronald Barendse <ronald@barend.se>
Date:   Tue May 17 12:59:01 2022 +0200

    v10: Use ForceCreateDatabase during unattended install and extend GetUmbracoConnectionString extension methods (#12397)

    * Add extension methods to get the Umbraco connection string/provider name from configuration

    * Added tests for configuration extension methods.

    * Fix issue with InstallMissingDatabase and ForceCreateDatabase

    * Fix comments

    * Revert casing change in GenerateConnectionString

    * Re-add AddOptions (without config binding) to fix test

    * Update src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs

    Co-authored-by: Ronald Barendse <ronald@barend.se>

    * Update src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs

    * Update src/Umbraco.Infrastructure/Runtime/RuntimeState.cs

    * Whitespace and documentation updates

    * Add DatabaseProviderMetadataExtensions

    * Filter before ordering

    * Replace DataDirectory placeholder when setting connection string

    Co-authored-by: Andy Butland <abutland73@gmail.com>
    Co-authored-by: Bjarke Berg <mail@bergmania.dk>
    (cherry picked from commit 8e6e262c7f)

commit e90bf26577
Author: Ronald Barendse <ronald@barend.se>
Date:   Tue May 17 07:33:54 2022 +0200

    v10: Support System.Data.SqlClient provider name (#12408)

    * Add support for System.Data.SqlClient provider name

    * Only update connection string when required

    (cherry picked from commit e82bcb1b76)

commit fd0637c96d
Author: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Date:   Mon May 16 14:23:59 2022 +0200

    Reintroduce language files tests (#12367)

    * Reintroducing language files tests

    * Fix casing

    * Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

    Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
    (cherry picked from commit 2ed71a64ec)
2022-05-19 10:25:44 +01:00
Paul Johnson e0aa430d4c Fix typo in pipeline yaml 2022-05-19 10:00:57 +01:00
Paul Johnson 2ec450f2d6 Fix yaml conditions 2022-05-19 09:14:47 +01:00
Paul JohnsonandGitHub c2d548039a Azure pipeline refactor (#12428)
* Skip symbols for Umbraco.Templates

* Resolve some test issues

+ Fixed whitespace dependant tests to pass regardless of build OS vs
run OS.

+ Snap dictionary tests were failing when Configuration was release

+ Removed hardcoded baseUrl from one of the acceptance tests

* Move docfx setup to ./build and fix

* Update UI docs title

* Added dockerfile that can be used when running the acceptance tests.

* Take explicit dependency on System.Security.Cryptography.Pkcs

* Refactor ci/cd pipeline
2022-05-19 10:02:50 +02:00
ee8359af75 V10: Reintroduce appsettings-schema.json (#12416)
* Reintroduce language files tests (#12367)

* Reintroducing language files tests

* Fix casing

* Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Change Umbraco.Cms and Umbraco.Templates nuspecs to csproj

* Remove Umbraco.Templates from VerifyNuGet step

* Remove duplicate and unnecessary properties

* Generate json schema on build

* Add targets file

* Gitignore auto generated appsettings schema

* Fix build not copying file

* Use the new path in appsettings

* Update copy message

* Build json schema as release

* Update json schema options

Otherwise just running the project will put the file in the wrong place

* Generate schema if it doesn't exist in Web.Ui

* Update json schema options

Otherwise just running the project will put the file in the wrong place

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-05-19 09:57:21 +02:00
dd617ede80 v10: Change Umbraco.Cms and Umbraco.Templates nuspecs to csproj (#12413)
* Reintroduce language files tests (#12367)

* Reintroducing language files tests

* Fix casing

* Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Change Umbraco.Cms and Umbraco.Templates nuspecs to csproj

* Remove Umbraco.Templates from VerifyNuGet step

* Remove duplicate and unnecessary properties

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-05-19 09:51:11 +02:00
Ronald BarendseandNikolaj b83216876f v10: Project template database/connection string improvements (#12407)
* Add new connection-string-provider-name parameter

* Use template value forms to correctly encode JSON values

* Add new development-database-type parameter

* Update package template and fix App_Plugins directory rename

* Remove conflicting short parameter name

* Lowercase framework parameter to align with MS templates

* Cleanup default template settings

* Write unattended install parameters when either connection string or development database is set

* Include RootNamespace in UmbracoPackage template

* Update Umbraco specific gitignore rules

* Revert "Lowercase framework parameter to align with MS templates"

This reverts commit 22de389272.

* Add exclude-gitignore parameter

* Update template schemas

* Add minimal-gitignore parameter
2022-05-19 08:37:06 +02:00
Ronald BarendseandGitHub 8d8592092f v10: Project template database/connection string improvements (#12407)
* Add new connection-string-provider-name parameter

* Use template value forms to correctly encode JSON values

* Add new development-database-type parameter

* Update package template and fix App_Plugins directory rename

* Remove conflicting short parameter name

* Lowercase framework parameter to align with MS templates

* Cleanup default template settings

* Write unattended install parameters when either connection string or development database is set

* Include RootNamespace in UmbracoPackage template

* Update Umbraco specific gitignore rules

* Revert "Lowercase framework parameter to align with MS templates"

This reverts commit 22de389272.

* Add exclude-gitignore parameter

* Update template schemas

* Add minimal-gitignore parameter
2022-05-19 08:36:04 +02:00
MoleandElitsa Marinovska e40049dcf1 Fix domain for invariant content nodes (#12405)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-05-18 15:32:13 +02:00
8d0bdb7ef6 Fix domain for invariant content nodes (#12405)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-05-18 15:22:51 +02:00
Mole 2126696559 Fix domain for invariant content nodes (#12404) 2022-05-18 14:41:00 +02:00
Elitsa MarinovskaandSebastiaan Janssen a3692b887a Use SnippetCollection to when working with snippets (#12355)
* Introducing a new Snippet type

* Adding a SnippetCollection and SnippetCollectionBuilder

* Using snippetCollection to get the snippets instead of fileService

* Fixed fetching the correct content

* Make ISnippet non-discoverable

* Split the SnippetCollection into PartialViewSnippetCollection and PartialViewMacroSnippetCollection

* Update CodeFileController to use the 2 snippet collections

* Display the names with Empty.cshtml on top

* Remove merging embedded snippets with custom snippets from ~\Umbraco.Web.UI\umbraco\PartialViewMacros\Templates folder for the Partial View Collection

* Fix naming

* Fix another naming

* Cleanup + Use base items

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
(cherry picked from commit 9326cc5fc6)
2022-05-18 09:56:42 +02:00
patrickdemooij9andSebastiaan Janssen 4f48a4937b Cherry picked from 4c08b44684 2022-05-18 09:50:44 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 4fdbfee597 Show nicer overlay when clicking block card for deleted element type (#12140)
* Show nicer overlay when clicking block card for deleted element type

* Cleanup

* Remove stop-scrolling container

* Use flex-start instead on start

* Remove legacy flexbox fallback

* Remove unnecessary hack

* Use standard gap property instead

* Localization of message

* Fix translation

* End sentence with a dot

(cherry picked from commit ebb1dc21a9)
2022-05-18 09:18:51 +02:00
Henk Jan PluimandSebastiaan Janssen 3856bf8288 #fix 12254 return emptyresult
(cherry picked from commit 7993d19c1b)
2022-05-18 09:15:56 +02:00
Bjarne FyrstenborgandGitHub 1db10f3ace Support custom SVG icon in property actions (#12062)
* Support SVG icon in umb-property-actions

* Update icons for existing property actions

* Make backwards compatible

* Update existing property actions to not use legacy icons as we now specify full icon name, but we need this for backward compatibility

* Change from named function to local function

* Add property actions to multi url picker

* Inject overlayService and set isDisabled in watch

* Add function to clear
2022-05-18 09:12:56 +10:00
Bjarne FyrstenborgandGitHub 9fce9e05c7 Menu action icons (#12418)
* Fix icon for export member

* Add missing start summary tag

* Formatting
2022-05-18 08:50:30 +10:00
Sebastiaan Janssen 1422aa196a Add new issues to a project board 2022-05-17 19:30:42 +02:00
900a623e74 Updated the installer screen, and the no NoNodes.cshtml (#12399)
* Updated the installer screen, and the no NoNodes.cshtml with link to the new learning base for Umbraco

* Added ref to the link

Co-authored-by: Dennis Aaen <dennis@umbraco.com>
2022-05-17 14:39:03 +02:00
Sebastiaan Janssen 230d3e53ad Fix action name 2022-05-17 14:27:00 +02:00
Sebastiaan Janssen 082d853056 Add up-for-grabs workflow - improve log messages in pr-first-response 2022-05-17 14:24:07 +02:00
Ronald BarendseandBjarke Berg 7087c3d9f6 v10: Use ForceCreateDatabase during unattended install and extend GetUmbracoConnectionString extension methods (#12397)
* Add extension methods to get the Umbraco connection string/provider name from configuration

* Added tests for configuration extension methods.

* Fix issue with InstallMissingDatabase and ForceCreateDatabase

* Fix comments

* Revert casing change in GenerateConnectionString

* Re-add AddOptions (without config binding) to fix test

* Update src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Update src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs

* Update src/Umbraco.Infrastructure/Runtime/RuntimeState.cs

* Whitespace and documentation updates

* Add DatabaseProviderMetadataExtensions

* Filter before ordering

* Replace DataDirectory placeholder when setting connection string

Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
(cherry picked from commit 8e6e262c7f)
2022-05-17 12:59:16 +02:00
8e6e262c7f v10: Use ForceCreateDatabase during unattended install and extend GetUmbracoConnectionString extension methods (#12397)
* Add extension methods to get the Umbraco connection string/provider name from configuration

* Added tests for configuration extension methods.

* Fix issue with InstallMissingDatabase and ForceCreateDatabase

* Fix comments

* Revert casing change in GenerateConnectionString

* Re-add AddOptions (without config binding) to fix test

* Update src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Update src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs

* Update src/Umbraco.Infrastructure/Runtime/RuntimeState.cs

* Whitespace and documentation updates

* Add DatabaseProviderMetadataExtensions

* Filter before ordering

* Replace DataDirectory placeholder when setting connection string

Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-05-17 12:59:01 +02:00
Sebastiaan JanssenandGitHub bbffac22b4 Update BUILD.md 2022-05-17 11:39:58 +02:00
Sebastiaan JanssenandGitHub 4d41fd77c9 Update BUILD.md 2022-05-17 11:38:02 +02:00
Ronald BarendseandBjarke Berg e90bf26577 v10: Support System.Data.SqlClient provider name (#12408)
* Add support for System.Data.SqlClient provider name

* Only update connection string when required

(cherry picked from commit e82bcb1b76)
2022-05-17 08:31:05 +02:00
Elitsa MarinovskaandBjarke Berg fd0637c96d Reintroduce language files tests (#12367)
* Reintroducing language files tests

* Fix casing

* Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
(cherry picked from commit 2ed71a64ec)
2022-05-17 08:30:51 +02:00
Rasmus ØstergårdandGitHub 9442e0f5ca Translate document type description (#12409) 2022-05-17 15:36:42 +10:00
Ronald BarendseandGitHub e82bcb1b76 v10: Support System.Data.SqlClient provider name (#12408)
* Add support for System.Data.SqlClient provider name

* Only update connection string when required
2022-05-17 07:33:54 +02:00
Bjarne FyrstenborgandGitHub d051f850eb Support SVG icon in action menu (#12403)
* Support custom SVG icon in menu item with legacy support

* Update menu icons

* Update action icons

* Adjust icons in menu actions with legacy fallback

* Don't use legacy icon

* Update comments
2022-05-17 07:50:19 +10:00
2ed71a64ec Reintroduce language files tests (#12367)
* Reintroducing language files tests

* Fix casing

* Update tests/Umbraco.Tests.UnitTests/Umbraco.Core/EmbeddedResources/LanguageXmlTests.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-05-16 14:23:59 +02:00
Nikolaj Geisle 4d68820879 Handle if securitySettings is set 2022-05-16 14:08:21 +02:00
Nikolaj Geisle 544dcffa18 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions 2022-05-16 14:00:22 +02:00
Nikolaj Geisle 27421cef2a Handle invariant permissions 2022-05-16 14:00:13 +02:00
Mads Rasmussen 279dd0cf0c Merge branch 'v10/feature/variant-permissions' of https://github.com/umbraco/Umbraco-CMS into v10/feature/variant-permissions 2022-05-16 13:44:26 +02:00
Mads Rasmussen 9e51ad9cbf check for permissions in block list editor 2022-05-16 13:44:19 +02:00
Nikolaj Geisle 2ad73d4c47 Fix proper mapping instead of duplicated code 2022-05-16 13:23:54 +02:00
Sebastiaan JanssenandGitHub 048193e3a5 Update BUILD.md 2022-05-16 13:12:08 +02:00
Nikolaj Geisle 62525518c2 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions 2022-05-16 13:10:10 +02:00
Nikolaj Geisle cc450bef8a Fix invariant-variant returning all actions 2022-05-16 13:10:03 +02:00
Sebastiaan JanssenandGitHub 898c5cc397 Update BUILD.md 2022-05-16 13:08:33 +02:00
Mads Rasmussen 3f0b90b18d remove delete row button when block list editor is readonly 2022-05-16 13:05:46 +02:00
Mads Rasmussen c0f674d333 localize unlock invariant property help text 2022-05-16 12:32:40 +02:00
Mads Rasmussen 6c4159751c add translation for shared 2022-05-16 11:39:14 +02:00
Mads Rasmussen 23b8dd843c add more white space underneath language label 2022-05-16 11:35:07 +02:00
Mads Rasmussen ec60ad8629 remove padding from property unlock container 2022-05-16 11:32:33 +02:00
Mads Rasmussen 121933a9ed only use preview mode if the user can also unlock the property editor 2022-05-16 11:29:33 +02:00
Mads Rasmussen 3b8c5dd084 Add check for editing invariant properties based on the appsetting config 2022-05-16 11:07:09 +02:00
Mads Rasmussen 587fa5c0d6 Merge branch 'v10/feature/variant-permissions' into v10/feature/editable-invariant-properties-ui 2022-05-16 10:54:10 +02:00
Nikolaj Geisle 14ce40be4c Fix BackOfficeServerVariables.cs 2022-05-16 10:50:40 +02:00
Mads Rasmussen d9f1b2e8aa Merge branch 'v10/feature/variant-permissions' into v10/feature/editable-invariant-properties-ui 2022-05-16 10:25:23 +02:00
Nikolaj Geisle 6de8a81aa0 Fix invariant content 2022-05-16 09:56:18 +02:00
failureflawlessandMichael Latouche 2c34751fd4 Updated docs and VSCode build task
as we discovered some changes we needed in the docs
2022-05-13 11:35:52 +02:00
Mads Rasmussen 2ad51a4520 update to variable 2022-05-12 21:56:35 +02:00
Mads Rasmussen 5494b48756 allow unlocking invariant properties if a user has update permissions for the language 2022-05-12 21:54:04 +02:00
Mads Rasmussen ce8a635c2c always show shared badge on invariant properties on variant nodes 2022-05-12 18:49:54 +02:00
Mads Rasmussen e02516193a Merge branch 'v10/feature/variant-permissions' into v10/feature/editable-invariant-properties-ui 2022-05-12 18:33:02 +02:00
Mads Rasmussen ec91d8c22b check for publish permission when publishing with decendants 2022-05-12 18:07:35 +02:00
Mads Rasmussen 87811bd3b3 check for unpublish permission 2022-05-12 18:07:00 +02:00
Mads Rasmussen dae338b4e8 check for schedule permission 2022-05-12 18:06:41 +02:00
Mads Rasmussen 7405cbe6ef check for send to publish permission 2022-05-12 18:05:38 +02:00
Mads Rasmussen c26a0a46b0 dont allow publish if the user doesn't have publish permissions 2022-05-12 18:02:15 +02:00
Mads Rasmussen 84108bbea2 dont allow save if the user doesn't have save permissions 2022-05-12 18:01:17 +02:00
3f0ff6a752 Publish invariant properties (#12386)
* Publish invariants from non default

* Add culture impact service

* Use the new culture impact service instead of newing up culture impacts

* Only publish invariant properties on non-defaults with invariant culture

Essentially we want to be able to fall back to the default culture for the variant properties if a document type is made invariant, not whatever culture was published last.

* Move creation logic into the service

* Make creation method names consistent

* Fix tests

We compare the cultures directly, so they have to be the same object instance unfortunately

* Add test for the new setting

* Add new config to server variables

* Fix test setup

* Apply suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-05-12 12:41:51 +02:00
Joe GlombekandGitHub 953e6f2e34 Rework and update the contributing guide (#12165) 2022-05-12 12:19:44 +02:00
Mads Rasmussen 6ddce4b151 use correct magic letter for update permission 2022-05-11 20:30:08 +02:00
Mads Rasmussen c9c00760b5 match tag editor readonly styling with input 2022-05-11 20:25:34 +02:00
Mads Rasmussen 5e4ecf2462 set node name to readonly when the user has no update permissions 2022-05-11 20:22:47 +02:00
Mads Rasmussen 4a63433257 simplify check for readonly 2022-05-11 20:21:49 +02:00
Mads Rasmussen de8a5bc855 style readonly inputs different than disabled inputs 2022-05-11 19:36:39 +02:00
Mads Rasmussen 95a41afea9 list view: check for readonly based on variant permissions 2022-05-11 19:26:54 +02:00
Mads Rasmussen 16288cf939 content: check for readonly properties based on variant permissions 2022-05-11 19:26:24 +02:00
Nikolaj Geisle 1810b7a744 Change allowedactions 2022-05-11 13:34:35 +02:00
Nikolaj Geisle e839e09680 Finish default granular permissions for languages 2022-05-11 12:55:42 +02:00
Nikolaj Geisle e270f90296 Add granular permission to variants 2022-05-11 12:31:51 +02:00
Nikolaj Geisle b6277fbfd7 Revert "Start work on allowing nodes for users per language"
This reverts commit e78794c00e.
2022-05-11 10:01:27 +02:00
Nikolaj Geisle 004267a86f Fix test 2022-05-11 09:49:13 +02:00
Bjarne FyrstenborgandGitHub ebb1dc21a9 Show nicer overlay when clicking block card for deleted element type (#12140)
* Show nicer overlay when clicking block card for deleted element type

* Cleanup

* Remove stop-scrolling container

* Use flex-start instead on start

* Remove legacy flexbox fallback

* Remove unnecessary hack

* Use standard gap property instead

* Localization of message

* Fix translation

* End sentence with a dot
2022-05-11 08:51:37 +10:00
Ronald BarendseandGitHub af4e3ca1a6 NRT amends for WithCollectionBuilder to improve API (#12387)
* Remove WithCollectionBuilder nullability to improve API

* Fix TryGetValue nullable out type
2022-05-10 19:29:55 +02:00
Mads Rasmussen 20c3799e5b add overlay to allow editing invariant properties from all languages 2022-05-10 16:12:58 +02:00
Nikolaj Geisle e78794c00e Start work on allowing nodes for users per language 2022-05-10 15:57:13 +02:00
Nikolaj Geisle 0d16de1b64 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/variant-permissions 2022-05-10 15:34:46 +02:00
Nikolaj Geisle eda9328f99 Dissallow users to save languages they do not have access to 2022-05-10 14:57:58 +02:00
Mads Rasmussen 23bb172be0 add icon for languages 2022-05-10 13:10:23 +02:00
Mads Rasmussen 08dedf57c5 change help text to limit 2022-05-10 12:45:36 +02:00
Mads Rasmussen 855f83ee1f Merge branch 'v10/feature/variant-permissions' of https://github.com/umbraco/Umbraco-CMS into v10/feature/variant-permissions 2022-05-10 12:40:15 +02:00
Mads Rasmussen 4dd4f190e3 Move languages underneath sections 2022-05-10 12:40:03 +02:00
Nikolaj Geisle 3bbfc427fc Fix breaking change in mapping 2022-05-10 12:37:52 +02:00
Nikolaj Geisle 52f17cd25f Remove defaulting to return all languages 2022-05-10 12:33:09 +02:00
Nikolaj Geisle 1638cfcf40 Merge remote-tracking branch 'origin/v10/feature/variant-permissions' into v10/feature/variant-permissions 2022-05-10 12:30:33 +02:00
Nikolaj Geisle 16d74d016c Fix PerformGetAll 2022-05-10 12:30:25 +02:00
Mads Rasmussen 58a915d2f7 wire up remove language 2022-05-10 12:16:32 +02:00
Mads Rasmussen 2e100e60c4 read from languages - save to allowedLanguages 2022-05-10 11:39:39 +02:00
Nikolaj Geisle 5c2b0121ba Create new table in database for usergroup languages 2022-05-10 11:03:31 +02:00
Bjarke Berg 1e3b806bd8 Merge remote-tracking branch 'origin/v10/10.0' into v10/dev
# Conflicts:
#	src/Umbraco.Core/Deploy/IValueConnector.cs
2022-05-10 09:56:17 +02:00
Andy ButlandandBjarke Berg 62fb7a6f19 Fixed issue with null reference when obtaining a lock using a detached scope.
(cherry picked from commit 02cd139770)
2022-05-10 09:51:18 +02:00
Andy ButlandandBjarke Berg 5810c2d35b Further NRT updates for Deploy (#12375)
* Nullability modifications to grid cell values and connector.

* Nullable updates to IDataTypeConfigurationConnector.

* Apply suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
(cherry picked from commit 109d2f191e)
2022-05-10 09:51:01 +02:00
Andy ButlandandBjarke Berg ea77c9a4fc Further NRT amends (#12363)
* Amended nullability of base Deploy classes.

* Ensured ContentItemDisplay.Variants is non-nullable.

* Set IArtifactSignature.Dependencies to be non-nullable.

* Update template collection retrieval to be non-nullable.

* IMediaService.GetRootMedia to be non-nullable.

* Non-nullable collection for IMemberService.GetMembersByMemberType.

* Non-nullable collection for member role retrieval.

* Non-nullable collection for root dictionary items.

* Non-nullable collection for child dictionary items.

* Applied suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Remove extra dot

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit 63b77b7743)
2022-05-10 09:50:50 +02:00
Andy ButlandandBjarke Berg fbdf704567 Further amends to NRT definitions (#12356)
* Ensured all GetContainers methods in IDataTypeService return non-nullable collections.

* Further amends to ensure services return non-nullable collections.

* Aligned nullability of IMediaService.GetMediaFileContentStream(string

* Removed return of nullable streams from IFileService.

* Fixed nullability mismatch.

(cherry picked from commit 735086a747)
2022-05-10 09:50:41 +02:00
Andy ButlandandBjarke Berg b1ece9b202 NRT amends necessary for Deploy (#12357)
* Allowed null item retrievel in IDeployContext.

* Allowed null item retrievel in IImageSourceParser.

* Allowed null item retrievel in IMacroParser.

* Set null syntax for other Deploy interfaces.

(cherry picked from commit a42ff2c267)
2022-05-10 09:50:35 +02:00
Mads Rasmussen b75752e9a6 post array of language id's when saving 2022-05-09 15:38:40 +02:00
Mads Rasmussen a0eeb6da26 save to allowedLanguages 2022-05-09 14:31:02 +02:00
Mads Rasmussen 98de8499e0 read from allowedLanguages 2022-05-09 14:30:46 +02:00
Nikolaj Geisle a5df4f169b Fix test error 2022-05-09 13:35:23 +02:00
9326cc5fc6 Use SnippetCollection to when working with snippets (#12355)
* Introducing a new Snippet type

* Adding a SnippetCollection and SnippetCollectionBuilder

* Using snippetCollection to get the snippets instead of fileService

* Fixed fetching the correct content

* Make ISnippet non-discoverable

* Split the SnippetCollection into PartialViewSnippetCollection and PartialViewMacroSnippetCollection

* Update CodeFileController to use the 2 snippet collections

* Display the names with Empty.cshtml on top

* Remove merging embedded snippets with custom snippets from ~\Umbraco.Web.UI\umbraco\PartialViewMacros\Templates folder for the Partial View Collection

* Fix naming

* Fix another naming

* Cleanup + Use base items

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-05-09 11:42:10 +02:00
Mads Rasmussen f095797c2e Merge branch 'v10/feature/readonly-property-editors' into v10/feature/variant-permissions 2022-05-09 11:20:28 +02:00
Bjarke Berg 22d11d23df Merge remote-tracking branch 'origin/v10/dev' into v10/contrib 2022-05-09 11:12:02 +02:00
Bjarke Berg f5d7b5c2c7 Merge remote-tracking branch 'origin/v10/10.0' into v10/dev
# Conflicts:
#	src/Umbraco.Web.Common/Hosting/UmbracoHostBuilderDecorator.cs
2022-05-09 11:09:46 +02:00
Mads Rasmussen 4ba094ff75 Merge branch 'v10/dev' into v10/feature/variant-permissions 2022-05-09 11:08:04 +02:00
Paul Johnson 4ab7f40ce5 Disable connection pooling for initial SQLite database create. 2022-05-09 09:52:16 +01:00
c576bbea03 v10: Fix build warnings in Web.Common (#12349)
* Run code cleanup

* Run dotnet format

* Start manual cleanup in Web.Common

* Finish up manual cleanup

* Fix tests

* Fix up InMemoryModelFactory.cs

* Inject proper macroRenderer

* Update src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fix based on review

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-05-09 09:39:46 +02:00
Andy Butland 02cd139770 Fixed issue with null reference when obtaining a lock using a detached scope. 2022-05-07 12:06:33 +02:00
109d2f191e Further NRT updates for Deploy (#12375)
* Nullability modifications to grid cell values and connector.

* Nullable updates to IDataTypeConfigurationConnector.

* Apply suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-05-06 18:04:26 +02:00
4f3d680f06 V10: Build warnings in Web.Website (#12332)
* add new rule to globalconfig

* Fix warnings in Web.Website

* Fix more warnings in Web.Website

* Fix more build warnings in Web.Website

* Fix more warnings in Web.Website

* Fix tests

* Fix proper constructor call

* Fix not being able to run project

* Fix Obsolete method

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-05-06 15:06:39 +02:00
Bjarke BergandGitHub b648177a40 Use static global id in pipelines (#12370) 2022-05-06 15:05:08 +02:00
Paul JohnsonandGitHub e4ff14e17d Ensure correct instance returned from UmbracoHostBuilderDecorator (#12373) 2022-05-06 11:15:34 +01:00
Paul Johnson e4ed87fb9a Ensure correct instance returned from UmbracoHostBuilderDecorator 2022-05-06 10:38:30 +01:00
Paul Johnson e4450d650a Include default favicon for new projects
Bonus - ensures wwwroot exists for first boot.
2022-05-06 10:06:48 +01:00
63b77b7743 Further NRT amends (#12363)
* Amended nullability of base Deploy classes.

* Ensured ContentItemDisplay.Variants is non-nullable.

* Set IArtifactSignature.Dependencies to be non-nullable.

* Update template collection retrieval to be non-nullable.

* IMediaService.GetRootMedia to be non-nullable.

* Non-nullable collection for IMemberService.GetMembersByMemberType.

* Non-nullable collection for member role retrieval.

* Non-nullable collection for root dictionary items.

* Non-nullable collection for child dictionary items.

* Applied suggestions from code review

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

* Remove extra dot

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-05-06 10:13:58 +02:00
Paul Johnson 948992cc75 Include default favicon for new projects
Bonus - ensures wwwroot exists for first boot.
2022-05-06 08:36:05 +01:00
Henk Jan PluimandMichael Latouche 7993d19c1b #fix 12254 return emptyresult 2022-05-05 15:16:45 +02:00
Andy ButlandandGitHub 5be156bb22 Ensured container collections retrieved from content type services return empty rather than nullable. (#12360)
* Ensured container collections retrieved from content type services return empty rather than nullable.

* Reverted change to ILocalLinkParser.

* Reverted change to ILocalLinkParser (2).

* Update GetByParentOrChildId in IRelationService to return non-nullable result.

* Added obsoleted constructor due to change in MemberTypeService.

* Updated nullability of Compare method parameters in IServiceConnector.

* Adjusted nullability of method on IValueConnector.

* Removed nullability of ArtifactDeployState.
2022-05-05 12:56:44 +02:00
Jacob OvergaardandGitHub e96c75dc85 update nouislider to 15.6.0 (#12353) 2022-05-05 09:51:57 +02:00
Andy ButlandandGitHub 735086a747 Further amends to NRT definitions (#12356)
* Ensured all GetContainers methods in IDataTypeService return non-nullable collections.

* Further amends to ensure services return non-nullable collections.

* Aligned nullability of IMediaService.GetMediaFileContentStream(string

* Removed return of nullable streams from IFileService.

* Fixed nullability mismatch.
2022-05-04 19:05:10 +02:00
Andy ButlandandGitHub a42ff2c267 NRT amends necessary for Deploy (#12357)
* Allowed null item retrievel in IDeployContext.

* Allowed null item retrievel in IImageSourceParser.

* Allowed null item retrievel in IMacroParser.

* Set null syntax for other Deploy interfaces.
2022-05-04 19:01:54 +02:00
Mads Rasmussen b220c0e2cf add readonly mode for grid property editor 2022-05-04 16:40:58 +02:00
Mads Rasmussen 3c6fa43fa8 add readonly mode for block list property editor 2022-05-04 15:29:58 +02:00
Bjarke Berg a676322fee Merge remote-tracking branch 'origin/v10/10.0' into v10/contrib 2022-05-04 14:27:35 +02:00
Mads Rasmussen c09acf4a1b fix temp readonly check 2022-05-04 13:53:01 +02:00
Mads Rasmussen f4da7262d5 add readonly mode for list view property editor 2022-05-04 13:52:46 +02:00
Mads Rasmussen a9c6d98c85 add readonly mode for rich text editor property editor 2022-05-04 12:38:27 +02:00
Paul Johnson 09b210d5de Hack fix - SQLite deadlock issue for login after session timeout. 2022-05-04 10:13:27 +01:00
Bjarke Berg 6752f4b2c6 Fixed issue with missing auto complete 2022-05-04 10:10:14 +02:00
Nikolaj 1c39c27e22 Bump version to non-rc 2022-05-04 09:21:31 +02:00
Bjarke BergandGitHub 5636d4baf7 Fixed namespace that was original an incorrect merge from v8 to v9 (#12347) 2022-05-04 08:10:27 +02:00
Ronald BarendseandGitHub 14d3cd7163 v10: Fix LESS math (#12346)
* Fix LESS math parens-division

* Fix LESS math strict
2022-05-04 05:56:29 +02:00
Bjarke Berg 49cec5c66c Merge remote-tracking branch 'origin/v10/10.0' into v10/dev 2022-05-03 21:36:45 +02:00
Bjarke Berg 84c1799049 Merge remote-tracking branch 'origin/v10/contrib' into v10/dev 2022-05-03 21:36:30 +02:00
ChadandGitHub ae54cb9947 v10: Improve redirect content finder scalability (#12341)
* Async support for content finders. Improve log performance.

* Improve redirect contentfinder scalablilty with async calls to the database
2022-05-03 21:35:33 +02:00
ChadandGitHub 0561d4b5a1 Async support for content finders. Improve log performance. (#12340) 2022-05-03 21:29:15 +02:00
Bjarke Berg daac1a4bac Merge remote-tracking branch 'origin/v10/contrib' into v10/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
2022-05-03 21:17:10 +02:00
ChadandGitHub 9f4ff0a398 async tree search (#12344) 2022-05-03 21:13:27 +02:00
Bjarke Berg 48065c4570 Clean up 2022-05-03 19:38:39 +02:00
Ronald BarendseandGitHub 23072a500c v10: Fix Block List settings exception and optimize PVCs (#12342)
* Don't use MapModelType to get model type

* Optimize block list item activation (cache constructors)

* Fix exceptions in NestedContentSingleValueConverter (zero content types or multiple stored items)

* Add IPublishedModelFactory.GetModelType method to remove work-around
2022-05-03 19:23:15 +02:00
Mads Rasmussen 382d91c461 add readonly mode for markdown property editor 2022-05-03 17:36:38 +02:00
bc49fa5b3f Move default item excludes to root package (#12339)
* Moved DefaultItemExcludes to Umbraco.CMS package

* Use exact path to build props

Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-05-03 17:15:38 +02:00
Mads Rasmussen f2780d5478 add readonly mode for image cropper 2022-05-03 16:14:58 +02:00
Mads Rasmussen 5609142317 remove unused listeners 2022-05-03 15:24:47 +02:00
Mads Rasmussen 231deb182e add readonly mode for dropdown property editor 2022-05-03 15:23:35 +02:00
Mads Rasmussen e1187135b4 add readonly mode for nested content property editor 2022-05-03 15:11:50 +02:00
Mads Rasmussen 49ef5401e9 add readonly mode for tags property editor 2022-05-03 14:06:24 +02:00
Mads Rasmussen 44a3a7dd97 add readonly mode to media picker property editor 2022-05-03 13:40:01 +02:00
957a9b8016 Bugfix: Read snippets from embedded resources.. (#12334)
* update new location of anime.js

* set new location of 'diff' and update to new global Diff vs JsDiff

* Embedded snippets

* Do not copy an empty folder

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-05-03 13:29:31 +02:00
Ronald Barendse 5d04d7af76 Ignore App_Code and App_Plugins again to ease testing/branch switching 2022-05-03 13:28:08 +02:00
Mads Rasmussen 11ba194049 Update fileupload.html 2022-05-03 12:59:48 +02:00
Mads Rasmussen 285aee8315 add readonly mode for file upload property editor 2022-05-03 12:59:13 +02:00
699626a650 Bugfix: Reintroduces DefaultItemExcludes in Umbraco.Cms.StaticAssets (#12335)
* DefaultItemExcludes from Umbraco.Cms.StaticAssets

* Update src/Umbraco.Cms.StaticAssets/Umbraco.Cms.StaticAssets.csproj

Co-authored-by: Ronald Barendse <ronald@barend.se>

Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-05-03 12:35:52 +02:00
Jacob OvergaardandGitHub 250f99be3e v10: Update locations of npm dependencies (#12333)
* update new location of anime.js

* set new location of 'diff' and update to new global Diff vs JsDiff
2022-05-03 11:49:01 +02:00
Ronald Barendse 4a635198f6 Ignore Umbraco.Cms.StaticAssets build output and use proper directory/case matching 2022-05-03 11:11:23 +02:00
Bjarke Berg c380891c83 Removes SqlCE from template 2022-05-03 09:24:29 +02:00
dependabot[bot]andNathan Woulfe beeaa35320 Bump async from 2.6.3 to 2.6.4 in /src/Umbraco.Web.UI.Client
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 09:19:59 +10:00
Bjarne FyrstenborgandGitHub 0b48a2c8b7 Limit link picker to content tree in content section (#12311)
* Remove unused injected mediaHelper

* Limit tree to content tree alias in content section
2022-05-03 09:17:58 +10:00
RussellandNathan Woulfe 8baa66b8f3 Fix for Issue 12262
Fixes issue https://github.com/umbraco/Umbraco-CMS/issues/12262
2022-05-03 09:14:50 +10:00
Mads Rasmussen e87b45574b add readonly mode for date picker property editor 2022-05-02 21:43:10 +02:00
Mads Rasmussen 3d9828fa5b add readonly mode for slider property editor 2022-05-02 21:32:52 +02:00
Mads Rasmussen 5b002f0888 add readonly mode til content picker / multinode tree picker property editor 2022-05-02 19:57:49 +02:00
Bjarke BergandGitHub 13f6d4791c Move umbraco views to static assets and make that an RCL + Embedded language files (#12324)
* RCL for static assets to replace the nuspec

* Fix build

* Fix unit tests

* clean up in build.ps1

* Removed test (lang files will be removed later anyway)

* Fixed namespaces.. + Ensure we set web root path if missing (e.g. wwwroot folder do not exist) + Added StaticWebAssetBasePath

* fixed namespace

* cleanup

* Set root variable

* Added static assets

* Experimenting with StaticWebAssetBasePath

* Embedded lang files into Umbraco.Core

* Removed legacy test. New test can be implemented instead

* Fixed tests

* clean up

* Fix merge issue
2022-05-02 19:38:33 +02:00
f00bfc408e v10: Make language name editable (#12243)
* Update language models to get and set manual name

* Save custom language name in controller

* Rewrite AngularJS language edit view and controller

* Cleanup language overview

* Remove icon from language overview

* Make styling of control group the same as properties

* Ensure both ISO code and culture name are set in language model

* Use new language model constructor

* Update tests to use new language constructor

* Update culture name in dictionary package export

* Use language name in dictionary

* Fix language nullability issues

* Cleanup GetAllCultures and added null checks

* Re-add obsolete constructors

* Make language name required and update Cypress test

* Fix routing/saveNewLanguages Cypress test

* Make language name optional (improved backwards compatibility)

Co-authored-by: Ronald Barendse <ronald@panoramastudios.nl>
2022-05-02 15:42:19 +02:00
Bjarke BergandGitHub 11f9bcbea2 Update examine to version 3 (#12307)
* Updating to Examine 3 beta. Currently not building due to missing support for updating values in the OnTransformingIndexValues event

* Updated to beta 6  - It builds, but we need to fix tests

* Fixed issue with values being passed into nested lists.

* Fixed issue in test

* Updated to examine beta.9

* Fixed breaking changes
2022-05-02 14:11:46 +02:00
Bjarke Berg 4bc5d31dfe Merged IMemberSignInManagerExternalLogins into IMemberSignInManager 2022-05-02 12:32:25 +02:00
Andy ButlandandGitHub 46373ebfb0 Allowed IfNullOrWhiteSpace to take null input. (#12328) 2022-05-02 12:21:57 +02:00
140029c38c v10: npm updates for april (#12288)
* Upgraded MailKit

* Upgraded Microsoft.* packages

* Upgrades various nuget packages to latest version

* Upgrades various nuget packages related to test

* update package-lock.json to new npm format

* bump all angular dependencies to latest 1.8.3

* bump jquery to 3.6.0

* remove dubious 'npm' dependency and set engines versions to avoid warnings

* bump signalr dependency from v3 to v6

* bump 'underscore' from 1.12.1 to 1.13.1

* bump 'diff' from 3.5.0 to 5.0.0

* bump 'clipboard' from 2.0.4 to 2.0.10

* bump 'flatpickr' from 4.6.9 to 4.6.13

* bump 'moment' from 2.22.2 to 2.29.3

* bump 'spectrum-colorpicker2' from 2.0.8 to 2.0.9

* bump 'underscore' from 1.13.1 to 1.13.2

* update 'less' 'autoprefixer' 'cssnano' and accompanying gulp tasks to latest

* bump all gulp dependencies

except gulp-imagemin since we do not yet support esmodules in the backoffice client

* remove 'fs' since the package is marked as malicious and do not seem to be used

* update AcceptanceTests lockfile to latest npm + dependency updates

* bump '@babel/core' from 7.17.5 to 7.17.9

* bump karma dependencies to latest

* bump 'animejs' from 2.2.0 to 3.2.1

* bump 'jasmine-core' from 3.5.0 to 4.1.0

* remove deduped 'caniuse-lite'

* bump wicg-inert from ^3.0.2 to 3.1.1

* bump 'nouislider' from 15.5.0 to 15.5.1

* add slight delay for confirmation overlay

* ignore postinstall task for acceptance tests since env file is generated manually

* upgrade cypress to 9.5.4

* add wait step to content.ts tests

* Revert "ignore postinstall task for acceptance tests since env file is generated manually"

This reverts commit 61acebfda2.

* increate wait amount of content rollback tests

* Revert "upgrade cypress to 9.5.4"

This reverts commit 2febf139a4.

* Revert "update AcceptanceTests lockfile to latest npm + dependency updates"

This reverts commit b45d20b3cd.

* update lockfile version

* update umbraco-cypress-testhelpers to latest

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-05-02 12:21:41 +02:00
Bjarke Berg 58cbeac39d Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	src/Directory.Build.props
#	templates/UmbracoPackage/.template.config/template.json
#	templates/UmbracoProject/.template.config/template.json
2022-05-02 11:42:00 +02:00
Mads Rasmussen b40fcd3fe3 add readonly mode to multi url picker property editor 2022-05-02 11:18:10 +02:00
2c3953ae19 Returning all packages from PackagingService so they show in the backoffice (#12322)
* Add pr first response workflow

* Returning all packages from PackagingService so they show in the backoffice

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Paul Johnson <pmj@umbraco.com>
2022-05-02 10:58:53 +02:00
Ronald BarendseandGitHub 09731a9168 v10: Remove LegacyDistinctBy (#12326)
* Obsolete LegacyDistinctBy

* Remove usage of LegacyDistinctBy

* Remove LegacyDistinctBy
2022-05-02 10:57:38 +02:00
Mads Rasmussen b459ee4053 add disabled state to umb-multiple-textbox property editor add button when readonly 2022-05-02 10:54:42 +02:00
nikolajlauridsen bb9fc9b4d8 Merge branch 'v9/9.5' into v9/dev 2022-05-02 10:00:13 +02:00
nikolajlauridsen eba7e41fd4 Bump version to rc3 2022-05-02 09:43:16 +02:00
8148e4aee0 V9: make hardcoded text localized (#12325)
* use localize keys instead of hard coded text

* Update text

* Remove duplicate -

* Add italics to bottom text

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-05-02 09:38:22 +02:00
Andy ButlandandGitHub 96d33201aa Few more NRT tweaks (#12323)
* Amended GetAll() on IDataTypeService to return an empty collection rather than null.

* Added a ClearSessionValue method to ISessionManager (given you can no longer set a value to null).

* Allow for null values in a StatefulNotification.

* Removed obsoletion of synchronous messages on TreeControllerBase.

* Fixed further CS8620 warnings in core project.

* Further fix to nullable warning.

* Aligned nullablility of retreiving tree nodes and menus, synchronously or asynchronously (such that we no longer can get null values, always empty collection objects).
2022-05-01 08:18:09 +02:00
Bjarke Berg d47ae6868b Added nullable to templates 2022-04-29 15:10:29 +02:00
f23b57db65 V10: fix more nullable references (#12321)
* Add Nullable and WarningsAsErrors to Build.props

* Remove Nullable from cs proj, add ImplicitUsings to build.props

* Fix errors in core

* Fix in JsonSchema

* Fix infrastructure

* Add non-ambiguous using

* Fix Web/Lucene

* Fix backoffice

* Fix up new build errors from merge

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-04-29 15:02:36 +02:00
Jacob OvergaardandGitHub 35acaa2b13 Regression: User cannot change password using the user pane (#12320)
* add support for UserService to change password

* for 'users' section use UserService to change password

* user infinite editor should now use the changepassword dialog as seen in the 'users' section

* add some autocomplete and name changes to change-password form to support autofill and password managers

* Revert "for 'users' section use UserService to change password"

This reverts commit 68c5972777.

* Revert "add support for UserService to change password"

This reverts commit a64b756ad3.

* use the currentUserResource to change password

* only return true on success since notifications are handled in the resource
2022-04-29 14:41:17 +02:00
Sebastiaan Janssen 0134199035 Merge branch 'v10/dev' into v10/contrib 2022-04-29 13:56:50 +02:00
Bjarke BergandGitHub 285c7e75a2 https://github.com/umbraco/Umbraco-CMS/issues/12276 (#12295)
Skip surrogate pairs (e.g. emojis) when making clean stings.
2022-04-29 13:46:19 +02:00
Ronald BarendseandGitHub 1a82e0854a v10: Update to ImageSharp v2 (#12185)
* Update to ImageSharp 2.1.0 and ImageSharp.Web 2.0.0-alpha.0.23

* Rename CachedNameLength to CacheHashLength and add CacheFolderDepth setting

* Replace PhysicalFileSystemProvider with WebRootImageProvider

* Support EXIF-orientation in image dimention extractor

* Remove virtual methods on FileProviderImageProvider

* Simplify FileInfoImageResolver

* Update to SixLabors.ImageSharp.Web 2.0.0-alpha.0.25 and remove custom providers

* Make CropWebProcessor EXIF orientation-aware

* Improve width/height sanitization

* Also use 'v' as cache buster value

* Add WebP to supported image file types

* Update to SixLabors.ImageSharp.Web 2.0.0-alpha.0.27 and fix test

* Fix rounding error and add test cases

* Update to newest and stable releases

* Move ImageSharpImageUrlGenerator to Umbraco.Web.Common

* Use IConfigureOptions to configure ImageSharp options

* Implement IEquatable on ImageUrlGenerationOptions classes

* Fix empty/null values in image URL generation and corresponding tests

* Use IsSupportedImageFormat extension method

* Remove unneeded reflection
2022-04-29 13:16:24 +02:00
6b5bc7cebd Updated for v10 - Get lang files via FileProviders (and support Razor Class Libraries) (#12313)
* Update localized to get the physical paths on .net 6

* Update src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.LocalizedText.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Minor amends for variable naming and to resolve warnings on use of explicit types.

Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Andy Butland <abutland73@gmail.com>
2022-04-29 12:58:44 +02:00
Mads Rasmussen 6a7b6a48ec add readonly mode to legacy media picker 2022-04-29 12:49:32 +02:00
cf2b9a0f21 V10: Move core services to core project (#12314)
* Move AuditService to core project

* Move two factor login service to core

* Move ServerRegistrationService to core

* Move BasicAuthService to Core project

* Move IdKeyMap to core project

* Added CacheInstructionService to the infrastructure namespace

* Move DataTypeService to core namespace

* Update CacheInstructionService.cs to use CoreScopeProvider

* Move core editors to core

* Move more Property editors and configuration

* Remove obsoleted constructors in internal classes

* Update PropertyEditors to use new ctors

* Fix propertyEditors to use new ctors

* Use the right property editor constructors

* add DI in the property method

* Update grid to use new ctor

* Fix non-assignment of variable

* Apply suggestions from code review

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fix suggestions from code review

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Kevin Jump <kevin@thejumps.co.uk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-04-29 11:52:58 +02:00
Mads Rasmussen 444db1fc4e add readonly mode for radiobutton property editor 2022-04-29 11:04:08 +02:00
Mads Rasmussen c5ea4511cd add readonly mode to umb-radiobutton component 2022-04-29 10:45:11 +02:00
Mads Rasmussen 829618c381 add readonly mode for boolean property editor 2022-04-29 10:24:14 +02:00
Mads Rasmussen 9e21352c0d add readonly mode for checkboxlist property editor 2022-04-29 10:23:43 +02:00
Mads Rasmussen 96e2034d55 add readonly mode for umb-checkbox component 2022-04-29 10:23:15 +02:00
Jacob Overgaard 58f327f0e5 Add translations for new language picker 2022-04-29 09:45:55 +02:00
Jacob Overgaard 28dedaa74e Set languages header 2022-04-29 09:45:45 +02:00
Jacob Overgaard 32a3fb9f60 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/variant-permissions 2022-04-29 09:27:08 +02:00
Bjarke BergandGitHub 41662c4cff Use static id for acceptance tests (#12318) 2022-04-29 09:26:03 +02:00
Jacob Overgaard 80a180238a add frontend controls for language picker in user groups 2022-04-29 09:10:12 +02:00
Jacob Overgaard f831af207b add basic structure for languages and allowedLanguages 2022-04-29 09:09:40 +02:00
Andy ButlandandGitHub b187c89113 Updates to null reference types (#12317)
* Amended IFileSystem OpenFile to return Stream.Null rather than a nullable stream.

* Updated IUmbracoMapper to map enumerables without null elements given non-null inputs.

* Amended EntityRepositoryBase to not return null collections.

* Made IPublishedElement.Properties a non-nullable collection.
2022-04-29 08:19:34 +02:00
Mads Rasmussen b4131cbaea temp check for read only mode 2022-04-28 16:14:29 +02:00
Mads Rasmussen 10b231f3f9 add readonly mode to member picker property editor 2022-04-28 16:13:58 +02:00
Mads Rasmussen 5c0178213c add readonly mode for user picker 2022-04-28 16:04:55 +02:00
Mads Rasmussen 4ebc3a411a add readonly mode to member group picker 2022-04-28 15:49:00 +02:00
Mads Rasmussen 781cac38d3 add disabled state to umb-node-preview-add buttton 2022-04-28 15:48:14 +02:00
Mads Rasmussen 21eceb4ec9 add readonly mode for multiple textbox property editor 2022-04-28 15:17:45 +02:00
Mads Rasmussen 1257c232a9 add readonly mode to eye dropper property editor 2022-04-28 14:49:53 +02:00
Mads Rasmussen b5e187040d add readonly mode to color picker component 2022-04-28 14:49:17 +02:00
Mads Rasmussen 749aa8f68d show not-allowed cursor for readonly color picker 2022-04-28 13:20:59 +02:00
Mads Rasmussen 8923d1a7f5 add readonly mode for color picker property editor 2022-04-28 13:20:11 +02:00
Mads Rasmussen 50b17ed262 add readonly mode for color swatches component 2022-04-28 13:19:48 +02:00
Mads Rasmussen 2235dd8e8a add readonly mode for umb-toggle component 2022-04-28 13:09:28 +02:00
Paul JohnsonandGitHub 5e2f26ac9b Undo some easy to resolve (no longer netstd2.0 TFM) breaking changes (#12316)
* Undo some easy to resolve (no longer netstd2.0 TFM) breaking changes

* Restore missing ctor to PublishedSnapshotServiceEventHandler
2022-04-28 11:55:22 +01:00
Mads Rasmussen 232ada71a8 add readonly to email property editor 2022-04-28 12:44:31 +02:00
Mads Rasmussen 8d9977e016 add readonly to decimal property editor 2022-04-28 12:42:52 +02:00
Mads Rasmussen fae802ac5f add readonly to integer property editor 2022-04-28 12:41:55 +02:00
Mads Rasmussen 19b5157739 add readonly to textarea 2022-04-28 12:40:36 +02:00
Mads Rasmussen 607f0ea67f add readonly state to textbox 2022-04-28 12:39:12 +02:00
Mads Rasmussen 41ba4592ce set readonly state in a property editor when the readonly attr is set on the component 2022-04-28 12:38:35 +02:00
95aa143db0 v10 make migration from v9 less painful WRT IScope (#12293)
* Restore IEventDispatcher

* Fix breaking changes WRT IScopeProvider and IScope

* Update internal usage.

* Update src/Umbraco.Core/Services/UserService.cs

* Better obsolete message

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-04-26 10:22:37 +01:00
Bjarke Berg ef128f9fab Merge remote-tracking branch 'origin/v9/dev' into v10/dev 2022-04-26 11:19:26 +02:00
Andy ButlandandNikolaj a51c3f4cdb Updated references to latest versions of Forms and Deploy in JSONSchema project. (#12305) 2022-04-26 11:18:22 +02:00
Andy ButlandandGitHub c9b8ebc6f8 Updated references to latest versions of Forms and Deploy in JSONSchema project. (#12305) 2022-04-26 11:15:11 +02:00
Sebastiaan Janssen cdc2b6aaaa Merge branch 'v10/dev' into v10/contrib 2022-04-26 10:35:36 +02:00
Sebastiaan Janssen 77ebc22b5b Merge branch 'v9/dev' into v10/dev 2022-04-26 10:35:09 +02:00
Sebastiaan Janssen c1d8052ad6 Merge branch 'v9/dev' into v10/contrib 2022-04-26 10:34:35 +02:00
Sebastiaan Janssen d5371a15f5 Fix PR first response to work for outside contributors too 2022-04-26 10:28:00 +02:00
8dfcdeea23 V9/feature/log telemetry level changing (#12299)
* Add logging to SetConsentLevel

* Obsolete old ctor and change logging to email

* Fixed a few issues with MetricsConsentService logging

* Fixed null check

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-04-26 08:55:11 +02:00
7483a706ac V9/feature/log telemetry level changing (#12299)
* Add logging to SetConsentLevel

* Obsolete old ctor and change logging to email

* Fixed a few issues with MetricsConsentService logging

* Fixed null check

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-04-26 08:50:50 +02:00
Jacob Overgaard 23c85dea7a add languagepicker infinite editor 2022-04-26 08:50:45 +02:00
Paul JohnsonandGitHub 551f523079 V10 - Reduce usage of temp AspNetCoreHostingEnvironment (#12270)
* Move MapPathWebRoot & MapPathContentRoot to extension methods.

* Set AspNetCoreHostingEnvironment ApplicationId without service provider.

* Drop some usages of TempHostingEnvironment

* Logging setup cleanup - AppDomainId has no value (it is always "1")

Creating new AppDomains isn't possible in .Net core.
Attempting to do so results in a platform exception.

A dotnet core process has a single AppDomain instance whose Id property
is always the integer 1.

* Setup logging without IHostingEnvironment

* Mark IUmbracoBuilder.BuilderHostingEnvironment obsolete
And remove internal usages.

* Typeloader no longer uses umbraco-types.list

* Added UmbracoHost - setup serilog two-stage init.

* Add ApplicationIdEnricher

* Defensive tweaks for those not using UmbracoHost

* Drop UmbracoHost static class

* Setup runtime logger without host builder extensions.

* Prevent RefreshingRazorViewEngine related explosions

* Filescoped namespaces for new classes.

* Apply suggestions from code review
2022-04-25 16:27:53 +02:00
Paul Johnson 6fa79deed0 Merge branch 'v10/dev' into v10/contrib 2022-04-25 12:44:19 +01:00
f9840ed4b1 Updates the background image in the installer (#12291)
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-04-25 10:26:42 +02:00
nikolajlauridsen f025b72d6b Bump version to rc2 2022-04-25 09:44:33 +02:00
Paul JohnsonandGitHub 2df6c937fd Fix flakey write lock test. (#12294)
And reduce logging noise.
2022-04-25 09:33:03 +02:00
Bjarke Berg c0c9c50e21 Merge remote-tracking branch 'origin/v10/dev' into v10/contrib 2022-04-22 15:03:37 +02:00
Bjarke Berg 34f6ed21d6 Merge remote-tracking branch 'origin/v9/dev' into v10/dev 2022-04-22 15:01:11 +02:00
Bjarke Berg 7474eaa0d8 Merge remote-tracking branch 'origin/v9/9.5' into v9/dev 2022-04-22 14:59:56 +02:00
Jacob OvergaardandGitHub ef0e3d649f Allow admins to disable 2fa for other users without code (#12290)
* add functionality to allow admins to disable 2fa for other users

* add new translations
2022-04-22 14:59:08 +02:00
Bjarke Berg c441a26dc7 Merge remote-tracking branch 'origin/v9/dev' into v10/dev 2022-04-22 14:28:56 +02:00
Bjarke Berg d1fcacb442 Merge remote-tracking branch 'origin/v9/9.5' into v9/dev 2022-04-22 14:28:07 +02:00
Nikolaj GeisleandGitHub a5b41b3133 Merge pull request #12221 from umbraco/v10/feature/nullable-reference-types-in-Umbraco.Web.Backoffice
v10: Nullable reference types in Umbraco.web.backoffice
2022-04-22 13:57:52 +02:00
Nikolaj Geisle 83419a30ea Fix build errors after merging 2022-04-22 12:37:20 +02:00
Nikolaj Geisle 70a75d8c9b Merge remote-tracking branch 'origin/v10/dev' into v10/feature/nullable-reference-types-in-Umbraco.Web.Backoffice
# Conflicts:
#	src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs
#	src/Umbraco.Core/Models/Member.cs
#	src/Umbraco.Core/Models/Membership/User.cs
#	src/Umbraco.Core/Services/MemberService.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs
#	src/Umbraco.Infrastructure/Security/MemberUserStore.cs
2022-04-22 12:32:57 +02:00
Nikolaj cd00bcb1e1 Filter out providers with no setup view 2022-04-22 11:06:14 +02:00
Nikolaj Geisle 001f7035f3 Fix nullability of username 2022-04-22 09:52:07 +02:00
Nikolaj GeisleandGitHub fd8750f99a Try fixing flaky language test (#12281) 2022-04-22 09:26:12 +02:00
Bjarke BergandGitHub 379d2e3e4e Dependency updates (#12283)
* Upgraded MailKit

* Upgraded Microsoft.* packages

* Upgrades various nuget packages to latest version

* Upgrades various nuget packages related to test
2022-04-22 09:24:30 +02:00
Nikolaj GeisleandGitHub 8e4fd36442 Merge pull request #12206 from KevinJump/v9/localizedtext-via-fileprovider
Get lang files via FileProviders (and support Razor Class Libraries)
2022-04-22 08:14:46 +02:00
Mole 64c451bf91 Fix member properties always being sensitive (#12282) 2022-04-21 19:27:20 +02:00
7df4f84247 V10: Migrate member properties to columns on the member table (#12205)
* Add new columns to the member table

* Add missing IsApproved column

* Add joins with nested query

* Add query for selecting new column values from existing members

* Update the member data from the same query

* Make escapes work for sqlite

* Use GetFieldNameForUpdate instead of GetFieldName

* Left join on memberDto

* Remove the now unused property types and data

* Don't create member columns as properties anymore

* Store old properties in fields on member

Also switch the dates to nullable since they can be null

* Map columns when mapping from DTO to Member object

* Display columns in the member content app

* Fix null exception when creating new user

* Hide value if user doesn't have access to sensitive data

* Remove hardcoded member properties

* Obsolete old member alias constants

* Map and persist member properties

* Correctly update LastLogin when member logs in

* Map IsApproved and IsLockedOut when saving member in backoffice

* Update the query mappers for members

* Fix member service tracks dirty changes test

* Remove no longer existing property types from member type builder

* Fix null error in UpdateMemberProperties

* Fix builder tests

* Fix SetupMemberTestData in MemberControllerUnitTests

* Let LastLoginDate be null and handle check in controller

There's no reason to default a perfectly nullable property to default(DateTime)

* Add translation key for is approved and use that instead of constant

* Obsolete old label constants

* Fix whitespace post merge

* Fix up test comments

* Apply suggestions from code review

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Fix member properties always being sensitive

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2022-04-21 14:47:27 +02:00
Sebastiaan Janssen 39423d039d Merge branch 'v10/dev' into v10/contrib
# Conflicts:
#	.github/workflows/pr-first-response.yml
2022-04-21 14:38:31 +02:00
Sebastiaan Janssen 6d0a0fff9c Merge branch 'v9/dev' into v10/dev 2022-04-21 14:37:28 +02:00
Sebastiaan Janssen 5f168b59d5 Merge branch 'v9/contrib' into v9/dev 2022-04-21 14:37:02 +02:00
Sebastiaan JanssenandGitHub 16a02e0827 Update pr-first-response.yml 2022-04-21 14:36:19 +02:00
MoleandGitHub 9b864ddbeb Fix member properties always being sensitive (#12282) 2022-04-21 13:51:24 +02:00
Nikolaj Geisle b67810cc69 Fix new warnings 2022-04-21 11:20:12 +02:00
Nikolaj Geisle 060e0181a7 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/nullable-reference-types-in-Umbraco.Web.Backoffice
# Conflicts:
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Collections.cs
#	src/Umbraco.Core/Extensions/PublishedContentExtensions.cs
#	src/Umbraco.Core/Telemetry/Models/TelemetryReportData.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MultiUrlPickerValueConverter.cs
#	src/Umbraco.PublishedCache.NuCache/ContentStore.cs
#	src/Umbraco.Web.BackOffice/Trees/MemberTypeTreeController.cs
#	src/Umbraco.Web.Common/ModelsBuilder/InMemoryModelFactory.cs
#	src/Umbraco.Web.Common/Security/MemberManager.cs
#	src/Umbraco.Web.Website/Routing/ControllerActionSearcher.cs
#	src/Umbraco.Web.Website/Routing/IControllerActionSearcher.cs
#	src/Umbraco.Web.Website/Routing/UmbracoRouteValueTransformer.cs
2022-04-21 10:26:51 +02:00
Nikolaj GeisleandGitHub c13f01b402 Update src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.LocalizedText.cs 2022-04-21 09:10:33 +02:00
Nikolaj Geisle c72a4ff188 Fix coordinates.HasValues check 2022-04-21 08:32:59 +02:00
Bjarke BergandGitHub 536440b729 Merge pull request #12277 from umbraco/v10/feature/merge-v9dev_20_04_2022
Merge v9dev into v10 20-04-2022
2022-04-21 08:02:28 +02:00
Bjarke Berg 2f1cb4b20a Fix build/tests + cleanup duplicate dependencies 2022-04-20 15:54:09 +02:00
Bjarke Berg b19dab5f3a Fix merge issues 2022-04-20 15:42:27 +02:00
Sebastiaan Janssen 78786e942f Add pr first response workflow 2022-04-20 12:43:59 +02:00
Bjarke Berg 23a49161d6 Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	build/build.ps1
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/dotnetcli.host.json
#	build/templates/UmbracoProject/.template.config/ide.host.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Umbraco.Core/Constants-System.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
#	umbraco-netcore-only.sln
2022-04-20 11:09:28 +02:00
Bjarke BergandNikolaj c77bf2c270 Added notification when requires user 2fa, so implementors can use this to send emails etc. 2022-04-20 11:01:12 +02:00
Bjarke Berg 7becf76a02 Added notification when requires user 2fa, so implementors can use this to send emails etc. 2022-04-20 10:56:15 +02:00
Nikolaj Geisle 0d600d6677 Dont return nullable lists 2022-04-20 08:42:06 +02:00
Nikolaj Geisle 927d687192 Fix bad null check 2022-04-20 08:38:14 +02:00
VWA Software internetandNikolaj f45d4a84f7 Include the PluginController Area when searching for matching surface… (#12218) 2022-04-20 08:25:46 +02:00
VWA Software internetandSebastiaan Janssen 7e6e9c7431 Include the PluginController Area when searching for matching surface… (#12218) 2022-04-19 17:58:59 +02:00
Nikolaj ce6a3d6751 Fix TelemetryServiceTests 2022-04-19 15:19:25 +02:00
c07ffb68fc v9: Implement telemetry levels (#12267)
* Add initial classes

* Add TelemetryProviders

* Add new NodeCountService.cs and NodeTelemetryProvider

* Add data contract attribute to UsageInformation

Otherwise it wont serialize correctly

* Implement more providers

* Fix builders and propertyEditorTelemetry

* Add MediaTelemetryProvider

* Add MediaTelemetryProvider

* Fix doubling of media telemetry

* Move contentCount from NodeCountTelemetryProvider and move to ContentTelemetryProvider

* Revert ContentTelemetryProvider changes

* Add detailed information to TelemetryService

* Add integration tests

* Add more tests and todos for tests

* Fix stylecop warnings

* Use yield return instead of instantiating local list

* Implement Macro test

* Inject interface instead of implementation in TelemetryService

* Fix TelemetryServiceTests.cs

* Implement media tests

* Implement propertyTypeTests

* Implement constants instead of hardcoded strings

* Add SystemInformationTelemetryProvider

* Use SystemInformationTableDataProvider in UserDataService

* Implement more properties

* Add UsageInformation

* Replace UserDataService with SystemInformationTelemetryProvider

* Undo changes to UserDataService and obsolete it

* Remove ISystemInformationTableDataProvider

* Register SystemInformationTelemetryProvider as telemetry provider

* Use constants for telemetry names

* Make UserDataServiceTests test SystemInformationTelemetryProvider instead

* Update UserDataServiceTests to cover new data

* Add unit tests

* Add integration test testing expected data is returned

* Implement Analytics dashboard

* Improve assertion message

* Add text and styling to analyticspage

* Rename consent to analytic

* implement save button for consent level

* Implement save button

* Fix system information test

* Add TelemetryResource

* Move telemetry providers to infrastructure

* Add database provider to system information

* Set startvalue for slider

* Fix unit tests

* Implement MetricsConsentService using KeyValueService

* Return void hen setting the telemetry level

* fix startposition when not reloading

* Add a couple tests

* Update src/Umbraco.Core/Services/MetricsConsentService.cs

* Rename ConsentLevel.cs

* Use direct Enum instead of parsing

* rename consent resource

* add lazy database

* refactor slider

* Implement ng-if and propers pips

* Make classes internal

* Fix slider not loading when navigating to tab

* Add telemetry level check to TelemetryService.cs

* Add Consent for analytics text

* Fix build errors for unit tests

* Fix TelemetryServiceTests

* revert package-lock.json

* Fix integration test

* Update slider

* Update TelemetryService.cs

* Apply suggestions from code review

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2022-04-19 15:06:10 +02:00
VWA Software internetandGitHub eb0ddbd729 Include the PluginController Area when searching for matching surface… (#12218) 2022-04-19 14:04:11 +02:00
Sebastiaan Janssen 2d31913837 Merge branch 'v9/dev' into v9/contrib 2022-04-19 13:16:20 +02:00
bef052ad3a V9/tmp nucache lock (#12149)
* wrapping SetAllFastSortedLocked in try catch

* Potential issue mitigation by retrieving all data from the database at once instead of one at a time while populating the NuCache file.

* Moved content retrieval to within the try-catch block.

* using InGroupsOf() to retrieve content without loading absolutely everything into memory.

* added "old" method signatures to prevent breaking change in ContentStore

* Revert code style cleanups for clarity

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2022-04-19 13:01:38 +02:00
Nikolaj GeisleandGitHub 89f996902b Merge pull request #12207 from umbraco/v9/bugfix/member-last-login-date
Fix member last login date not being set
2022-04-19 10:31:16 +02:00
Bjarke Berg c7c3a68691 fixes breaking changes by reintroducing old ctor 2022-04-19 08:55:13 +02:00
852305b7d1 Simplified setup of 2FA for users (#12142)
* Added functionality to enable 2FA for users..

* Do not use the obsolete ctor in tests

* cleanup

* Cleanup

* Convert User view from overlay to infinite editor

* Add support for having additional editors on top of the user (2fa) which overlay does not support
* Add controllerAs syntax in the template
* Remove unused dependencies

* Adjustments to 2fa login view

* organize elements
* add translations
* add a11y helpers
* add autocompletion = one-time-code
* change to controllerAs syntax

* add callback to cancel 2fa and fix error where submit button was not reset when all other validations were

* add a cancel/go back button to the 2fa view

* replace header with something less obstrusive

* move logout button to the footer in the new editor view

* change 'edit profile' to an umb-box and move ng-if for password fields out to reduce amount of checks

* Add umb-box to external login provider section

* add umb-box to user history section

* bug: fix bug where notificationsService would not allow new notifications if removeAll had been called

* add styling and a11y to configureTwoFactor view

- also ensure that the view reloads when changes happen in the custom user view to enable 2fa
- ensure that view updates when disabling 2fa
- add extra button to show options (disable) for each 2fa provider

* add notification when 2fa is disabled

* add data-element to support the intro tour

also changed a minor selector in the cypress test

* correct usage of umb-box with umb-box-content

* do not use the .form class twice to prevent double box-shadow

* make tranlastion for 2fa placeholder shorter

* ensure that field with 2fa provider is always visible when more than 1 provider

* move error state of 2fa field to token field

* update translation of multiple 2fa providers

* move CTA buttons to right side to follow general UI practices

* rename options to disable

* add disabled state

* add helper folders to gitignore so you can work with plugins and custom code without committing it accidentally

* move the disable functionality to its own infinite editor view

* use properties from umb-control-group correctly

* add 'track by' to repeater

* make use of umb-control-group

* remove unused functions

* clean up translations

* add Danish translations

* copy translations to english

* Only return enabled 2fa providers as expected

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2022-04-19 08:33:03 +02:00
68353f9d06 Fixes RedirectToUmbracoPageResult to handle redirects to pages with domains defined on them (#12259)
* Fixes RedirectToUmbracoPageResult to handle redirects to pages with domains defined on them.

* Renamed variable to match with updated service type.

* Apply suggestions from code review

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Fixed usage of IUrlHelper.

Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-04-19 08:13:24 +02:00
Sebastiaan JanssenandGitHub f7615a93d5 Ignore the views folder apart from required files (#12260)
* Ignore the views folder apart from required files

* Only ship the views that we know we want
2022-04-18 02:17:05 +02:00
Sebastiaan Janssen 184397a327 Adds PR first response action 2022-04-15 19:14:23 +02:00
Sebastiaan Janssen 6519b88dfc Fix wrong picker, related to changes in #12122 2022-04-14 14:15:25 +02:00
Sebastiaan JanssenandGitHub 48dbe959f6 Merge pull request #12249 from umbraco/v9/feature/merge-v9-contrib 2022-04-14 11:44:24 +02:00
Sebastiaan Janssen 70a48596ba The {umbracoApplicationUrl} magic string does nothing here 2022-04-14 10:39:30 +02:00
Sebastiaan Janssen faa561da2b Fixes error on first running the Web.UI because of an invalid config 2022-04-14 10:06:01 +02:00
Ronald BarendseandGitHub df01eabcf1 Merge pull request #12045 from umbraco/v9/feature/projecttemplate-cleanup
Clean up and improve project templates
2022-04-12 16:29:24 +02:00
Ronald Barendse 8969bd23bb Fix UseHttpsRedirect spacing 2022-04-12 16:27:55 +02:00
Sebastiaan Janssen 75613cf061 Revert "Block List Settings throws exception if Models builder mode is set to "Nothing" (#11725)"
This reverts commit 62b289e179.
2022-04-12 13:45:15 +02:00
Sebastiaan Janssen 4e71d6f2f6 Merge branch 'v9/dev' into v9/contrib
# Conflicts:
#	src/Umbraco.Infrastructure/HostedServices/RecurringHostedServiceBase.cs
2022-04-12 13:41:34 +02:00
Ronald Barendse c0b0a47612 Merge branch 'v9/dev' into v9/feature/projecttemplate-cleanup 2022-04-12 11:16:16 +02:00
Ronald BarendseandSebastiaan Janssen 20666218d2 Move templates to root 2022-04-12 11:00:59 +02:00
Sebastiaan JanssenandGitHub 5bac054311 Add discord badge 2022-04-07 16:36:30 +02:00
patrickdemooij9andSebastiaan Janssen 597d28b399 Remove statuscodepages middleware 2022-04-07 11:03:07 +02:00
Paul JohnsonandGitHub 80c90f23d1 Fix issue - changing a document type broke the nucache data structure (#12209)
(cherry picked from commit 15df448274)
2022-04-06 08:42:10 +01:00
7d8a07e703 Fix KeepAlive Config so that value from appsettings.json is used (#12224)
* Fix KeepAlive Config so that value from appsettings.json is used if present

* update comment to reflect get-set on KeepAlivePingUrl

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2022-04-06 09:35:53 +10:00
Nikolaj Geisle 8865c5d486 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/nullable-reference-types-in-Umbraco.Web.Backoffice 2022-04-05 11:25:52 +02:00
Paul Johnson d036c6a118 Fix tests when running filtered set (SQL Server)
Without InstallDefaultDataSettings DatabaseSchemaCreator makes use of
static service locator which isn't wired up in time.
2022-04-05 10:18:04 +01:00
Nathan WoulfeandMichael Latouche 6423529dd0 ensure proper cleanup to avoid lingering scopes causing memory leaks 2022-04-05 11:14:54 +02:00
Nikolaj Geisle 76c525b611 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/nullable-reference-types-in-Umbraco.Web.Backoffice 2022-04-05 11:11:44 +02:00
Paul Johnson c34479c2bb Fix tests when running filtered set.
Without InstallDefaultDataSettings DatabaseSchemaCreator makes use of
static service locator which isn't wired up in time.
2022-04-05 10:04:39 +01:00
Nikolaj Geisle b6402c4cc8 Fix build errors after merge 2022-04-05 09:46:47 +02:00
Nikolaj Geisle a6128bfe8e Merge branch 'v10/dev' into v10/feature/nullable-reference-types-in-Umbraco.Web.Backoffice
# Conflicts:
#	src/Umbraco.Core/Cache/MacroCacheRefresher.cs
#	src/Umbraco.Core/Services/MacroService.cs
#	src/Umbraco.Core/StaticApplicationLogging.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TrackedReferencesRepository.cs
#	src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Infrastructure/Security/UmbracoPasswordHasher.cs
#	src/Umbraco.Web.BackOffice/Controllers/ImagesController.cs
2022-04-05 08:51:08 +02:00
Nathan WoulfeandMichael Latouche 45e7c10cb8 busfy => busy 2022-04-05 01:35:25 +02:00
Johannes LantzandGitHub 057b304a5a Added "move" action for dictionaries (#12193)
* Added "move" action for dictionaries

* Replaced DictionaryMove with MoveOrCopy for PostMove

* Removed int parse for dictionary postmove id & parentId, changed paramtype for move in dictionary.resource

* Added localizedText for new dictionary validationProblems &  adjusted nullcheck for move.ParentId

* Fixed logic for move dictionary parent
2022-04-04 17:14:03 +02:00
Nikolaj Geisle acf60ce84c Update csproj to nullable 2022-04-04 15:02:53 +02:00
Nikolaj Geisle 7994f5c326 Add nullability to Web.Website, Sqlite & SqlServer 2022-04-04 14:47:54 +02:00
Nikolaj Geisle 4710951185 fix build errors 2022-04-04 12:45:06 +02:00
Nikolaj Geisle 57190fc676 Fix BackOfficeServerVariables 2022-04-04 09:50:32 +02:00
Nikolaj Geisle 0a7e698883 Fix non-nullable array to nullable 2022-04-04 09:21:52 +02:00
Bjarne FyrstenborgandNathan Woulfe 534ca928b4 Use icon component for icons 2022-04-04 08:47:58 +10:00
dependabot[bot]andNathan Woulfe ddddaeb113 Bump minimist from 1.2.5 to 1.2.6 in /tests/Umbraco.Tests.AcceptanceTest
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 08:46:29 +10:00
Nikolaj Geisle c6e7e139e9 Fix up build errors 2022-04-01 14:49:39 +02:00
Nikolaj Geisle 70a00901b4 Finish up Web.Backoffice 2022-04-01 14:35:18 +02:00
nikolajlauridsen 146f938051 Do a full save on first member login 2022-04-01 13:30:32 +02:00
Paul JohnsonandGitHub d12602ec90 v10 - SQLite database creation enhancements (#12166)
* Resolve issues creating database file for new install on app services.

* Prevent accidental create of SQLite database when testing connections

* Fix e2e tests against sqlite db
2022-04-01 11:15:04 +02:00
Nikolaj Geisle 1a6f0e4d7b Start work on controllers 2022-04-01 11:09:51 +02:00
Kevin Jump e64f051f8b Make the user defined languages also use the FileProvider. 2022-04-01 09:55:28 +01:00
ReiterandMichael Latouche 6eebd96605 add null check to multiurlpickervalueconverter IsValue() function umbraco#12186 2022-04-01 04:20:02 +02:00
Kevin Jump a7ed20918b Move SupplemenataryLocalizedTextSources to Backoffice and use File provider. 2022-03-31 22:36:34 +01:00
Corné HoskamandMichael Latouche c218c068bd Update nl.xml 2022-03-31 17:38:47 +02:00
Nikolaj Geisle 0fc310cc4e start work on controllers 2022-03-31 15:57:23 +02:00
Nikolaj Geisle 0993f7b073 Add so only controllers are left 2022-03-31 14:39:44 +02:00
Nikolaj Geisle e3a21823b4 Add nullability to filters 2022-03-31 14:39:02 +02:00
Nikolaj Geisle 4571ecb0e3 More work on nullable reference types 2022-03-31 14:35:23 +02:00
Nikolaj Geisle 2460c82e02 Fix trees 2022-03-31 12:52:26 +02:00
Bjarke Berg fe1c2f5d4f Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.Configuration.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
#	src/Umbraco.Infrastructure/HostedServices/HealthCheckNotifier.cs
#	src/Umbraco.Infrastructure/HostedServices/RecurringHostedServiceBase.cs
#	src/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTask.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TrackedReferencesRepository.cs
#	src/Umbraco.Web.Common/Middleware/UmbracoRequestMiddleware.cs
#	tests/Umbraco.Tests.Integration.SqlCe/Umbraco.Infrastructure/Persistence/DatabaseBuilderTests.cs
#	tests/Umbraco.Tests.Integration/Testing/BaseTestDatabase.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Migrations/AdvancedMigrationTests.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SchemaValidationTest.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SqlServerTableByTableTest.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs
2022-03-31 12:51:55 +02:00
Bjarke Berg ad51832b5d Merge remote-tracking branch 'origin/v9/9.4' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
2022-03-31 11:54:33 +02:00
Bjarke BergandGitHub 93badabcb1 Added extra (unnessasary) WHERE-clause to help sql server generate a smarter query plan (#12198) 2022-03-31 11:52:02 +02:00
Marc GoodsonandGitHub db12594332 Making an update for appearances sake (#12199)
* Update spelling of appearance

in 'Editor appearance' key was incorrectly apperance

* Update spelling of appearance

in 'headlineEditorAppearance' key was incorrectly apperance
2022-03-30 18:48:31 +02:00
Nikolaj Geisle 57ed0b7b4d start work on the backoffice project 2022-03-30 15:58:46 +02:00
Nikolaj Geisle 05a08bef63 Add nullability to nucache & lucene projects 2022-03-30 13:34:56 +02:00
Ji Pattison-SmithandMichael Latouche 9203cffd27 Pass culture code into GetAtRoot method in Siblings extensions to ensure the passed culture code is respected 2022-03-30 03:32:25 +02:00
Nikolaj Geisle b52c4e50cf Add nullability to web.common 2022-03-29 13:44:21 +02:00
Bjarke Berg 181a7cb27d Bump versions to 9.4.2 2022-03-29 09:33:37 +02:00
Andy ButlandandBjarke Berg 0418be4318 Corrected the base URL to use when retrieving and setting public access details. (#12178)
* Corrected the base URL to use when retrieving and setting public access details.

* Fixed original issue from a merge conflict.. Now using the correct v9+ resource

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-03-29 09:19:59 +02:00
1ff6a953bb Corrected the base URL to use when retrieving and setting public access details. (#12178)
* Corrected the base URL to use when retrieving and setting public access details.

* Fixed original issue from a merge conflict.. Now using the correct v9+ resource

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-03-29 09:05:40 +02:00
7d18914ae6 v9: fix cannot map mvc route to client side request (#12088)
* Implement UmbracoRequestOptions and check in UmbracoRequestMiddleware.cs

* Fix breaking change

* Add suggestion from Marc

* Amend names

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-03-29 08:32:02 +02:00
ReiterandMichael Latouche 76c1bce7d7 only show groups user has access to 2022-03-28 01:03:00 +02:00
Corné HoskamandGitHub b594936463 Update UmbracoProject.csproj (#12164)
* Update UmbracoProject.csproj

Changing the comment would make the intent of the comment more clear, as you cannot use InMemoryAuto on compiled Razor views, but you're still allowed to keep it as false if you're using a different ModelsBuilder mode.

* Update UmbracoProject.csproj

Hoping this kicks off the PR checks...
2022-03-28 07:32:23 +10:00
02e76c8227 Configuration to control the creation of default data (#12122)
* Added configuration and checks for creation of default Umbraco data.

* Fixed configuration binding issues.

* Updated comments.

* Added DefaultDataCreationSettings to the JSON schema.

* Removed option to not install default relation types as Umbraco relies on (and will recreate) them if they aren't there.

* Renamed configuration class used for install of default data and converted to named optios.

* Fix to failing unit tests.

* Fixes for integration tests.

* Apply suggestions from code review

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Further fix from code review.

* Updated naming as per PR review suggestions.

* Update src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2022-03-25 08:58:07 +01:00
Ronald Barendse c511f19cc8 Merge branch 'v9/feature/move-templates-to-root' into v9/feature/projecttemplate-cleanup 2022-03-24 13:57:38 +01:00
Ronald Barendse f5d0abc28b Move templates to root 2022-03-24 13:48:43 +01:00
Nikolaj Geisle 86ae730b1e fix string.Empty back to null 2022-03-24 12:59:40 +01:00
Ronald BarendseandPaul Johnson 037580b305 Fix obsolete constructor in RecurringHostedServiceBase (#12172)
* Use NullLogger in obsoleted constructor

* Create missing logger during execution instead

(cherry picked from commit d0823d4236)
2022-03-24 10:37:52 +00:00
Ronald BarendseandGitHub d0823d4236 Fix obsolete constructor in RecurringHostedServiceBase (#12172)
* Use NullLogger in obsoleted constructor

* Create missing logger during execution instead
2022-03-24 10:34:29 +00:00
PhyxionNLandMichael Latouche 538fb173c2 Fixes #11169
Should also be ported to v10.
2022-03-24 02:49:59 +01:00
Mole c1552cf7fc Bump versions 2022-03-23 11:36:34 +01:00
535008ebc1 Fix custom block view (#12104)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-03-23 10:42:24 +01:00
Mole 4fffb9f7a7 Bump versions to non-rc 2022-03-23 09:48:21 +01:00
Mole 4e519d4c96 Merge branch 'v9/9.4' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Security/LegacyPasswordSecurity.cs
#	src/Umbraco.Web.UI.Client/src/common/directives/components/references/umbtrackedreferences.component.js
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Security/UmbracoPasswordHasherTests.cs
2022-03-23 09:44:53 +01:00
78cfb29908 Item tracking fixes (#12146)
* Cleanup; Fix lang keys

* Documentation

* Typos

* Distinct the results

* Changed GetPagedRelationsForItems to GetPagedRelationsForItem as we would only expect a single id to be passed when calling this + fix more docs

* Changed to the correct reference

* Unused code

* Only load references when info tab is clicked

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-03-23 09:33:36 +01:00
Nikolaj Geisle 20f0ceeda6 Merge pull request #12161 from umbraco/v9/bugfix/amend_breaking_change_in_RecurringHostedServiceBase
Amend breaking change in RecurringHostedServiceBase
2022-03-23 09:15:27 +01:00
Nikolaj GeisleandGitHub cde05c1197 Merge pull request #12161 from umbraco/v9/bugfix/amend_breaking_change_in_RecurringHostedServiceBase
Amend breaking change in RecurringHostedServiceBase
2022-03-23 09:05:30 +01:00
Nikolaj Geisle 7114c564da Amend unintentional change 2022-03-23 08:27:48 +01:00
Nikolaj Geisle 496e281f2a Add back service name 2022-03-22 15:34:27 +01:00
Nikolaj Geisle 10ae512731 Use ILoggerFactory instead of StaticApplicationLogging 2022-03-22 15:12:51 +01:00
Nikolaj Geisle 3f7f2797a6 Add CreateLogger method so we still can get types using the legacy ctor 2022-03-22 14:52:39 +01:00
c6bfc61909 Update src/Umbraco.Infrastructure/HostedServices/RecurringHostedServiceBase.cs
Co-authored-by: Paul Johnson <pmj@umbraco.com>
2022-03-22 14:21:53 +01:00
fd701068ae Update src/Umbraco.Infrastructure/HostedServices/RecurringHostedServiceBase.cs
Co-authored-by: Paul Johnson <pmj@umbraco.com>
2022-03-22 14:18:12 +01:00
Nikolaj Geisle cca29bf723 Don't commit test classes. 2022-03-22 14:16:46 +01:00
Nikolaj Geisle b55ee70fe8 Switched from service location to StaticAplicationLogging 2022-03-22 14:14:54 +01:00
Nikolaj Geisle 5a613bacf0 Amend breaking change v2 2022-03-22 14:09:47 +01:00
Nikolaj Geisle fe1df8d4ea Amend breaking change 2022-03-22 13:47:58 +01:00
Nikolaj GeisleandNikolaj Geisle 0d836875c7 Merge pull request #12153 from vsilvar/v9/bugfix/12022_recurring_hosted_service_scope_leak
Fixes RecurringHostServices leaking the execution context / ambient scope
2022-03-22 13:03:14 +01:00
Nikolaj GeisleandGitHub bd8084ac99 Merge pull request #12153 from vsilvar/v9/bugfix/12022_recurring_hosted_service_scope_leak
Fixes RecurringHostServices leaking the execution context / ambient scope
2022-03-22 12:58:38 +01:00
Sebastiaan Janssen 04c292f167 Merge pull request #12155 from umbraco/v9/bugfix/10066
Same fix as #12154 - fixes #10066

(cherry picked from commit a302b10f66)
2022-03-22 10:09:36 +01:00
Nikolaj GeisleandGitHub a302b10f66 Merge pull request #12155 from umbraco/v9/bugfix/10066
Same fix as #12154 - fixes #10066
2022-03-22 08:34:27 +01:00
Nikolaj GeisleandGitHub b97d016c13 Merge pull request #12156 from umbraco/v9/bugfix/youtube-link
Use an umbra.co link for the TV replacement channel
2022-03-22 08:19:58 +01:00
Sebastiaan Janssen 0aa4d1956a Also update Umbraco TV link + text in the help panel 2022-03-21 16:14:48 +01:00
Vitor Rodrigues 267df80161 Ensure exceptions are caught for all recurring hosted services 2022-03-21 16:03:16 +01:00
Sebastiaan Janssen cde312b6d4 Use an umbra.co link for the TV replacement channel so we can change it in the future if we need to 2022-03-21 15:47:51 +01:00
59eee2e5dd Implemented PR suggestions - is instead of equality operator
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-03-21 15:34:32 +01:00
b3b4059ec8 Implemented PR suggestions - code simplification
Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-03-21 15:34:04 +01:00
Sebastiaan Janssen f3c5c0976d Same fix as #12154 - fixes #10066 2022-03-21 14:59:23 +01:00
Nikolaj GeisleandNikolaj Geisle a9daab5a15 Merge pull request #12139 from umbraco/v9/bugfix/track-media-items-picked-as-macro-params
Fix media tracking of items added via macro parameters in RTE and Grid
2022-03-21 08:34:36 +01:00
Nikolaj GeisleandGitHub 6f7a9cbd7b Merge pull request #12139 from umbraco/v9/bugfix/track-media-items-picked-as-macro-params
Fix media tracking of items added via macro parameters in RTE and Grid
2022-03-21 08:24:19 +01:00
Vitor Rodrigues 18c2a18ec8 Fixes RecurringHostServices leaking the execution context / ambient scope (#12022)
As timers flow the execution context by default this resulted in the Ambient context scope being shared
2022-03-20 13:12:45 +01:00
Marc GoodsonandMichael Latouche defe9d432b Add a basic oEmbedProvider for LottieFiles animations 2022-03-19 03:19:34 +01:00
Nikolaj Geisle a02ef3c101 Try to make test non-flaky 2022-03-18 14:52:57 +01:00
Nikolaj GeisleandGitHub 93432a2658 Apply suggestions from code review 2022-03-18 14:26:25 +01:00
Nikolaj Geisle 8e78de4dc5 Abstract ParameterValueEditors 2022-03-18 14:24:04 +01:00
Sebastiaan Janssen 4469191c99 Updating some more obsolete Code of Conduct usages 2022-03-18 13:40:03 +01:00
Sebastiaan Janssen ead813989d Code of conduct has been moved to an organization-wide repository 2022-03-18 13:36:40 +01:00
Nikolaj Geisle 0f3aa320be Fix caching & contentPicker in parameter 2022-03-18 12:54:19 +01:00
3044f8df04 Item tracking fixes (#12146)
* Cleanup; Fix lang keys

* Documentation

* Typos

* Distinct the results

* Changed GetPagedRelationsForItems to GetPagedRelationsForItem as we would only expect a single id to be passed when calling this + fix more docs

* Changed to the correct reference

* Unused code

* Only load references when info tab is clicked

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-03-18 11:21:49 +01:00
Bjarke Berg 608a65147f Fixes 2022-03-18 08:02:44 +01:00
c7e45ae13a Encode path (#12132)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-03-17 14:53:53 +01:00
30a30731ec Encode path (#12132)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-03-17 14:52:15 +01:00
Nikolaj Geisle b5e4f3b982 fix missing change 2022-03-17 11:16:12 +01:00
Nikolaj Geisle 181b984a28 Fix cypress test 2022-03-17 10:25:59 +01:00
Nikolaj Geisle f78b62fcb6 Fix all build errors 2022-03-17 09:44:45 +01:00
Nikolaj Geisle 34471e35ce Fix some of the build errors after merge 2022-03-17 09:14:12 +01:00
Elitsa Marinovska c08921d3e6 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/track-media-items-picked-as-macro-params 2022-03-16 15:11:58 +01:00
Nikolaj Geisle 214bcceffc Merge v10/dev into infrastructure 2022-03-16 14:39:28 +01:00
Elitsa Marinovska 5bebf98339 Test + fix 2022-03-16 14:19:25 +01:00
Elitsa Marinovska 5d08caae8c Cleanup 2022-03-16 14:18:24 +01:00
Elitsa Marinovska 22b7771305 Changing the way we implement the new Macro service and repository 2022-03-16 14:15:46 +01:00
Nikolaj Geisle 4ebd20bb66 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/nullable-reference-types-in-Umbraco-Core
# Conflicts:
#	build/build.ps1
#	src/Umbraco.Core/Configuration/ConfigConnectionString.cs
#	src/Umbraco.Core/Configuration/Models/ConnectionStrings.cs
#	src/Umbraco.Core/Install/InstallSteps/TelemetryIdentifierStep.cs
#	src/Umbraco.Core/Models/ContentType.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
#	tests/Umbraco.Tests.AcceptanceTest/package.json
2022-03-16 13:00:38 +01:00
Elitsa Marinovska cf9f4f39e4 Adds/Fixes xdoc comments 2022-03-16 10:30:02 +01:00
patrickdemooij9andMichael Latouche 886d7f1a25 Add allowedChildren call to Outgoing Editor events 2022-03-15 23:49:22 +01:00
8c9410a307 v9/bugfix/remove_useless_tolists: removed useless tolist()'s (#12123)
Co-authored-by: Reiter <michaelreiter2000@gmail.com>
2022-03-14 08:46:35 +10:00
3961c4c233 v10 SQLite support + distributed locking abstractions (#11922)
* Created Persistence.SQLite project skeleton.

* SQLite database initialization

* Various changes and hacks to make things work.

* WIP integration tests

* Fix thread safety tests

* Fix tests that relied on tie breaker sorting.

Spent a fair amount of time looking for a less lazy fix but gave up.

* Convert right join to left join ContentTypeRepository.PerformGetByQuery
SQLite doesn't support right join

* Fix test Can_Generate_Delete_SubQuery_Statement

Worth noting that NPoco.DatabaseTypes.SQLiteDatabaseType doesn't override
EscapeSqlIdentifier so NPoco will escape with [].

SQLite docs say > "A keyword enclosed in square brackets is an identifier.
This is not standard SQL.
This quoting mechanism is used by MS Access and SQL Server and is
included in SQLite for compatibility."

Also could have updated SqliteSyntaxProvider to match npoco but
decided against it.

* Fixes for paginated custom order by

* Fix tests broken by lack of unique indexes.

* Fix SqlServerTableByTableTest tests.

These tests didn't actually do anything as the tables already exist so schema creator just returned.

Did however point out that the default implementation for DoesTableExist just returns false so added a default naive implementation.

* Fix ValidateLoginSession - SelectTop must come later

* dry up database cleanup

* Fix up db migration tests.
We can't drop pk in sqlite without recreating table.
Test looks to be testing that add column works as intended which we can test.

* Prevent schema creation errors.

* SQLite ignore lock tests, WAL back on.

* Fix package schema tests

* Fix NPocoFetchTests - case sensitivity not under test

* Fix AdvancedMigrationTests (where possible)

Migrations probably need a good look later.
Maybe nuke old migrations and only support moving to v10 from v9.

If we do that can do some cleanup.

* Cleanup test database configuration

* Run integration tests against SQLite on build agent.

* Drop MS.Data.SQLite
System.Data.SQLite was quicker to roll out due to more CLR type mapping

* YAML

* Skip Umbraco.Tests.Integration.SqlCe

* Drop SqlServerTableByTable tests.

Until this week they did nothing anyway as they with NewSchemaPerTest
so the tests all passed as CreateTable was no op (already exists).

Also all of the tables are created in an empty database by SchemaValidationTest.cs
DatabaseSchemaCreation_Produces_DatabaseSchemaResult_With_Zero_Errors

* Might aswell run against macOS also.

* Copy azure pipelines task header layout

* Delete SQLCe projects

* Remove SQL CE specific code.

* Remove SQL CE NuSpec, template params, build script setup

* Delete umbraco-netcore-only.sln

* Add SkipTests solution configuration and use for codeql

* Remove reference to deleted nuspec file.

* Refactor ConnectionStrings WRT DataDirectory placeholder & ProviderName.

At this point you can try out SQLite support by setting the following
in appsettings.json and then completing the install process.

"ConnectionStrings": {
  "umbracoDbDSN": "Data Source=|DataDirectory|/umbraco.sqlite",
  "umbracoDbDSN_ProviderName": "System.Data.SQLite"
},

Not currently possible via installer UI without provider name pre-set in
configuration.

* Switch to Microsoft.Data.Sqlite

Some gross hacks but will be good to find out if this works
with apple silicon.

* Enable selection of SQLite via installer UI (also quick install)

* Remove SqlServerDbProviderFactoryCreator to cleanup a TODO

* Move SQL Server support to its own class library

* Add persistence dependencies to Umbraco.CMS metapackage

* Bugfix packages delete query

Created invalid query for SQLite.

* Try out cypress tests Linux + SQLite

* Prevent cypress test artifact upload failure on attempt 2+

* LocalDb bugfixes

* Drop redundant enum

* Move SqlClient constant

* Misc whitespace

* Remove IsSqlCe extension (TODO: drop non 9->10 migrations later).

* Umbraco.Persistence.* -> Umbraco.Cms.Persistence.*

* Display quick install defaults and per provider default database name.

* Misc remove old comment

* little re-arrange

* Remove almost all usages of IsSqlite extension.

* visual adjustments

* Custom Database Configuration is last step and should then say Install.

* use text instead of disabled inputs

* move legend, rename to Install

* Update SqlMainDomLock to work without distributed locks.

* Added IDistributedLockingMechanism interface and in memory impl.

* Drop locking from ISqlSyntaxProvider & wire up scope to abstraction.

* Added SqlServerDistributedLockingMechanism

* Move distributed locking interfaces and exceptions to Core + xmldocs.

* Fix tests, Misc cleanup, Add SQL distributed locking integration tests

* Provide mechanism to specify DistributedLockingMechanism in config
(even if added by composer)

* Nomplementation -> NoImplementation

* Fix misleading comment

* Integration tests use SqlServerDistributedLockingMechanism when possible

* Handle up-gradable locks SqlServerDistributedLockingMechanism.
TODO: InMemoryDistributedLockingMechanism.

Note: Nuked SqlServerDistributedLockingMechanismTests, will still sleep
at night.
Is covered by Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.LockTests

* Make tests pass for InMemoryDistributedLockingMechanism, pretty hacky.

* Tweak constraints on WithCollectionBuilder so i can drop bad constructor

* Added SqliteDistributedLockingMechanism

* Dropped InMemoryDistributedMechanism + magic

InMemoryDistributedMechanism was pretty rubbish and now we have
a decent implementation for SQLite as we no longer block readers
see 8d1f42b.

Also drop the CollectionBuilder setup, instead do the same as we do
for syntax providers etc, it's more automagical so we never require an
explicit selection although we are allowing for it.

However keeping the optional IUmbracoBuilder constructor param for
CollectionBuilders as it's extremely useful.

* Fix quick install "" database name.

* Hide Database Configuration section when a connection string is pre-set.

Doesn't seem worth it to extract db name from connection string.

* Ensure wal test 2+

* Fix logging inconsistencies.

* Ensure in transaction when obtaining locks + no-op the SQLite read lock.

There's no point in running the query just to make a single test pass.

* Fix installer database display names

* Allow SQLite shared cache without losing deferred transactions

* Opt into shared cache for new SQLite databases + fix filename

* Fix misc inconsistency in .gitignore

* Prefer our interceptor interface

* Restore DEBUG_DATABASES code OnConnectionOpened in case it's used.

* Back to private cache.

* Added retry strategy for SQLite + refactor out SQL server specific stuff

* Fix SQL server tests.

* Misc - Orphaned comment, incorrect casing.

* InMemory SQLite test database & turn shared cache back on everywhere.

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2022-03-11 17:14:20 +01:00
Paul JohnsonandGitHub ff2865c1dc Further enhancements for legacy password support. (#12124)
* Further enhancements for legacy password support.

For users - try new style passwords first and fallback on failure seeing
as a valid modern password is the norm, rehash is only one time.

For both users and members also deals with the fact that for
useLegacyEncoding we could store any old thing in passwordConfig
e.g. it's possible to get Umbraco8 to store "HMACSHA384" alongside
the hash even though it's really HMACSHA1 with password used as key
(try it out by tweaking machine key settings and setting
useLegacyEncoding=true).

Has behavioral breaking changes in LegacyPasswordSecurity as the
code now expects consumers to to respect IsSupportedHashAlgorithm
rather than ignoring it.

* Less rushed removals
2022-03-11 10:41:04 +00:00
Bjarke BergandGitHub a30d24130f Merge pull request #12126 from umbraco/v10/feature/merge_v9.4rc_to_v10
Merge v9.4rc to v10
2022-03-11 11:06:02 +01:00
Bjarke Berg 78b85a44db Merge remote-tracking branch 'origin/v9/dev' into v10/dev 2022-03-10 22:10:00 +01:00
Elitsa Marinovska 92480b8446 Changes in the editors so we can track the items 2022-03-10 16:29:56 +01:00
Elitsa Marinovska c22b9dbb76 Adding a new parser to get the media references in a macro 2022-03-10 16:28:33 +01:00
Elitsa Marinovska cbb19b1d93 Implementations of the new interfaces 2022-03-10 16:27:31 +01:00
Elitsa Marinovska 2aa79c7494 Adding repository caching of macro definition by alias 2022-03-10 16:26:16 +01:00
Elitsa Marinovska 17266dacb1 New service and repo to get macros by alias 2022-03-10 16:25:47 +01:00
Paul JohnsonandBjarke Berg 1ab0bb9254 fix additional legacy password formats (#12120)
* Added failing test to demo issue.

* Handle old machine key default.
2022-03-10 15:00:16 +01:00
Paul JohnsonandGitHub cc05428640 fix additional legacy password formats (#12120)
* Added failing test to demo issue.

* Handle old machine key default.
2022-03-10 14:59:19 +01:00
Bjarke Berg 981e66a673 Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	src/Umbraco.Core/Telemetry/TelemetryService.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
#	src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ScheduledPublishingTests.cs
2022-03-10 14:36:30 +01:00
Bjarne FyrstenborgandGitHub cade6cb684 Add missing copy member type menu action (#12089) 2022-03-09 17:18:28 +01:00
vsilvarandSebastiaan Janssen 3c40c20d27 Made sure Umbraco files aren't included twice
This fixes CS8785 RazorSourceGenerator failures due to repeated files in .Net 6
2022-03-09 17:10:53 +01:00
Sebastiaan Janssen 097645eadd Merge branch 'v9/dev' into v9/contrib 2022-03-09 16:52:37 +01:00
Andrey KarandashovandGitHub 62b289e179 Block List Settings throws exception if Models builder mode is set to "Nothing" (#11725) 2022-03-09 16:47:54 +01:00
Ronald Barendse 8d82f86c29 Re-use DefaultItemExcludes from StaticAssets 2022-03-09 15:40:24 +01:00
Nikolaj GeisleandGitHub 1ac77680e0 Merge pull request #12114 from umbraco/v9/feature/move-created-packages
Move created packages out of webroot
2022-03-09 15:20:05 +01:00
Bjarke Berg 8746d4c13d Small typos fixed.. 2022-03-09 14:59:55 +01:00
Nikolaj fbb80c4a94 Merge remote-tracking branch 'origin/v9/9.4' into v9/dev 2022-03-09 14:50:47 +01:00
Ronald Barendse 7e8f23e514 Properly clean existing package files 2022-03-09 11:38:52 +01:00
Ronald Barendse 3afad96aa7 Move created packages out of webroot 2022-03-09 11:06:30 +01:00
a98b52a46b Possible NullReferenceException in MultiUrlPickerValueConverter (#12109)
* Fixed a bug in the MultiUrlPickerValueConverter file, where an invalid value being set will result in a NullReferenceException

* Change to checking for whitespace values before de-serializing

Co-authored-by: Paul Woodland <paul.woodland@pwnewmedia.com>
2022-03-09 08:51:49 +00:00
Andy ButlandandNikolaj 5d9e2b0bb8 Updates JSON schema to reference latest Forms and Deploy. (#12106) 2022-03-09 09:19:34 +01:00
Bjarke BergandGitHub c20f45dcfc Fixed issue with pageindex (0-indexed) vs pagenumber (1 indexed) (#12113) 2022-03-09 08:53:18 +01:00
Andy ButlandandGitHub 215bf69cb0 Updates JSON schema to reference latest Forms and Deploy. (#12106) 2022-03-08 16:33:43 +01:00
MoleandGitHub fff3e5e9d4 Fix saving content not updating the page (#12108)
* Fix relation type tests

* Fix saving content not updating the UI

We have to map to display after we've saved content or we'll be missing information generated when saving content such as ID

* Dont map to display to get isBlueprint
2022-03-08 11:33:22 +01:00
413a278373 V9: Fix missing EditedCultures and Name in content saving notifications (#12070)
* Map dirty culture to EditedCultures before saving

And set the name of the content when setting default culture variant name

* Update src/Umbraco.Web.BackOffice/Controllers/ContentController.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: nikolajlauridsen <nel@umbraco.dk>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-03-08 09:23:44 +01:00
Bjarke Berg 5d6fc6005c Unbreak breaking change 2022-03-08 07:45:53 +01:00
d9d5dc5626 Item tracking improvements (#11919)
* Adding TrackedReferencesController

* Adding/changing views

* Adding/Editing js files

* RelationService changes

* RelationRepository changes

* Adding missing translations

* Adding/Modifying tests

* Beginning of #9125 migration

* Introducing a new component + refactoring based on that

* Abstracting + refactoring

* Work on content unpublishing

* Work on media.delete

* Various small changes

* Beginning of #9119 migration

* Changes on content.delete

* Various fixes

* Adding new keys used in the listview bulk actions

* Adding methods to get the items used in relations from array of ids

* Adding the checkLinkedItems function to the trackedReferencesResource

* Passing the selected items from a listview to unpublish and delete

* Adding umb-tracked-references-listview

* Adding umb-tracked-references-listview-table with language column

* Fixes for tracked references

* Changes in listview unpublish dialog

* Changes in listview delete dialog

* Removing Variants logic as it is not currently supported

* Visual fixes

* Closing dialogs on click

* Fix wording

* Fix breaking changes

* Change to a single title "Items in use" instead of 2 different for Content and Media

* No need for obsoleting because we can change new controllers

* Return ActionResult from actions

* V9:  Prevent delete or unpublish of items that have references (#12047)

* Introducing config settings that prevent delete or unpublish of items referenced by other items

* Disable deletion of content items and show a new warning

* Disable deletion of media items and show a new warning

* Disable deletion of list view items

* Disable unpublish and bulk unpublish

* Add a new warning

* V9: Displaying descendants in use as part of item tracking (#12039)

* Replace HasReferencesInDescendants with GetPagedDescendantsInReferences

* Display descendants in use on parent's info tab

* Add getPagedDescendantsInReferences to trackedReferencesResource

* Add lang keys for Descendants in use

* Refactoring controller actions

* Don't call check descendants usage when it is a new item

* rename busfy to busy

* always show references

* rearrange for scrollbar to appear at the edge of the dialog

* use the word referenced instead of used

* change fallback texts

* Added "IsDependency" to relation types

* refactor of umb-tracked-references

* rename checkLinkedItems to getPagedReferencedItems

* rename check to load, to be consistent with the rest.

* Refactored backend . Needs frontend fixes

* Cleanup

* Use filters

* Front-end refactor to match refactored end-points

* Fixed bug + warning

* Fixed query (more then 2100 descensdants) and optimized it (using nested select instead of inner join).

* remove comment

* hideNoneDependencies including varying text for the configuration

* Hack for SqlCE :(

* some final adjustments for item tracking ui

* Unbreak change

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-03-07 22:46:16 +01:00
Bjarke Berg 2ff2ae3f0a Unbreak a change.. 2022-03-07 22:14:21 +01:00
Bjarke Berg cfacf4e150 Rollback unnecessary breaking change 2022-03-07 22:07:50 +01:00
Sebastiaan Janssen d8551e4640 Merge branch 'v9/dev' into v9/contrib 2022-03-07 11:41:25 +01:00
Owain WilliamsandGitHub 373138d70f Make GridPropertyEditor dirty if a control is removed
This is the same fix that @inetzo made for a PR I checked earlier today except the fix was for U8.  Since I didn't notice it was U8 until I had merged, I thought I'd fix it here but credit should go to @inetzo 

#12097
2022-03-05 17:24:19 +00:00
Callum WhyteandMichael Latouche 10d252819d Adding null check to IsCulturePublished on IContent 2022-03-05 03:05:31 +01:00
Paul JohnsonandGitHub ca5c85e656 v9 fix misc issues external member login (#12093)
* Add missing override for SetTokenAsync

* Fix mismatch between expected scheme prefix and exception message

* Store tokens on member update
2022-03-03 17:18:39 +00:00
a6aaf4b0b1 Introduced new "large" overlay size (#11945)
* Introduced new "large" overlay size (1/2)

* Introduced new "large" overlay size (2/2)

* #H5IS

Co-authored-by: Owain <owilliams@spindogs.com>
2022-03-03 12:53:58 +00:00
Matt BrailsfordandGitHub 44e8808079 Check form and querystring when validating ufprt in ValidateUmbracoFormRouteStringAttribute (#11957)
* Check form and querystring when validating ufprt

Checks to see if the request has form data before validating the `ufprt` parameter, and if it doesn't assumes it must be on the querystring

* Create GetUfprt extension method

* Use GetUfprt extension

* Update UmbracoRouteValueTransformer to use GetUfrpt()

* Added missing using statement

* Check for StringValues.Empty
2022-03-03 10:42:14 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59b0224eff Bump karma from 6.3.14 to 6.3.16 in /src/Umbraco.Web.UI.Client (#12090)
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.14 to 6.3.16.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.16)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 15:06:45 +01:00
Nikolaj GeisleandGitHub 65723ea9ec Merge pull request #12087 from umbraco/v9/bugfix/history-cleanup-make-contenttype-dirty
V9: Fix history cleanup not making content type dirty
2022-03-02 12:23:24 +01:00
Nikolaj GeisleandGitHub 50a239a016 Merge pull request #12081 from umbraco/v9/bugfix/fix-invariant-redirect-tracking
Fix invariant redirect tracking
2022-03-02 12:20:15 +01:00
nikolajlauridsen 5ef013ca62 Ensure ContentType is only marked as dirty when it's actually changed 2022-03-02 10:49:06 +01:00
ff477c3930 Update src/Umbraco.Infrastructure/Routing/RedirectTrackingHandler.cs
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2022-03-02 10:26:23 +01:00
nikolajlauridsen 1cdc6f0fd2 Make HistoryCleanup register as dirty in ContentType 2022-03-02 10:15:50 +01:00
nikolajlauridsen 49e0e6c1c9 Implement BeingDirtyBase on HistoryCleanup 2022-03-02 10:11:48 +01:00
nikolajlauridsen 7e9def9df4 Add tests 2022-03-02 10:11:33 +01:00
009b36b49e Send key from frontend to postsave (#12080)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-03-02 09:12:07 +01:00
44ddf7acef Add extra check (#12075)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2022-03-02 08:47:35 +01:00
Chad CurrieandMichael Latouche 6b3a589aa0 Check Debug logs are enabled for hot path 2022-03-02 02:06:52 +01:00
nikolajlauridsen 95f1ed33ec Make empty string invariant culture in DefaultUrlProvider 2022-03-01 14:14:48 +01:00
nikolajlauridsen 993c582bd9 Handle empty string as invariant when generating cache key 2022-03-01 13:51:21 +01:00
Bjarne FyrstenborgandNathan Woulfe a72698e1a9 Transition of lazy loaded image 2022-03-01 17:16:32 +10:00
Nikolaj Geisle 029aecccb5 update package-lock.json 2022-03-01 08:11:56 +01:00
Martin BentancourandGitHub c905fdd9b5 Validate that imageUrl param is a relative path (#11606)
* Validate that imageUrl param is a relative path

To prevent open redirects, the imagePath should point to a relative path (i.e. not point to a different domain).

* LocalRedirectResult instead of RedirectResult

Uri.Relative does not prevent paths like //google.com/test.jpg
Checking for both relative and local seems to cover all the cases.
2022-02-28 23:59:18 +01:00
34bfd3a8f3 Fixes issue with OrderByDescending generating invalid SQL (#11673)
* Fixes issue with OrderByDescending generating invalid SQL

* Update OrderByDexcending with single field for consistecy

Co-authored-by: Michael <michael@crossingpaths.be>
2022-02-28 23:06:59 +01:00
nikolajlauridsen dfbb182a94 Handle invariant culture in RedirectTrackingHandler
GetRouteById and RedirectUrlService expects the culture to be null if it's invariant, however, Cultures in IPublished content uses empty string for invariant culture
2022-02-28 17:29:11 +01:00
Corné HoskamandGitHub aba4f02bad (umbraCollab) Check media Parent for permissions when setting correct MediaType (#11858) 2022-02-28 16:29:23 +01:00
Erik-Jan WestendorpandGitHub 86b7ea0145 v10: Get all ServerRegistrations (#12072) 2022-02-28 15:54:19 +01:00
Nikolaj Geisle 91a0e670bb update cypress package 2022-02-28 15:43:51 +01:00
patrickdemooij9andGitHub a27da0fced Content app for dictionary items (#11553) 2022-02-28 15:01:18 +01:00
Nikolaj Geisle 3a2c53412c Fix last errors 2022-02-28 14:37:15 +01:00
Nikolaj Geisle d845bd68bc Fix more errors 2022-02-28 14:13:21 +01:00
0c7ef06031 V9: Fix missing site identifier (#12040)
* Add SiteIdentifierService

* Use SiteIdentifierService in TelemetryService

* Use SiteIdentifierService when installing

* Remove timeout

* Use TryGetOrCreateSiteIdentifier in TelemetryService

* Add site identifier to dashboard url

* Fix and add tests

* Don't accept empty guid as valid site identifier

* Fix dashboard controller

* Fix site id query parameter

* Use Optionsmonitor onchange

Co-authored-by: nikolajlauridsen <nel@umbraco.dk>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-02-28 13:59:39 +01:00
MehmetandGitHub e6d6dce3a8 Fix mssing image caption in RTE (#11807) 2022-02-28 13:17:17 +01:00
Nikolaj Geisle 915e68e72e Fix last build errors 2022-02-28 13:14:02 +01:00
Blake IrwinandGitHub 24d2dcf363 Fix JsonConfigManipulator causing upgrades to fail when appsettings.json files are not present (#11222) 2022-02-28 10:52:03 +01:00
Scott BradyandGitHub 25ea5cdb1b Prevent non-backoffice auth schemes being overridden (#11630) 2022-02-28 10:40:51 +01:00
Bjarne FyrstenborgandGitHub cf3d697bc5 Update RemoveTreeController to use TController (#11795) 2022-02-28 09:36:35 +01:00
Warren BuckleyandGitHub bd6334ecdc Dependancy Update: Switch to Serilog.Expressions away from deprecated Serilog.Filters.Expressions (#12000)
* Uninstall Serilog.Filters.Expressions as it is deprecated by the Serilog team

NOTE: This package brought in a dependenacy on a package called SuperPower from Datalust

* Install replacement package Serilog.Expressions

* Update implementation of Serilog.Expressions

* Add new test cases to verify expressions still working

Currently Serilog.Expressions only supports short names such as @x @l @m and @mt as opposed @Exception @Level @Message and @MessageTemplate

* Use Serilog.Expressions NamedFilters extension point, to plug the missing Has() function in expressions that was not ported across by the library

* Update to dev build of Serilog.Expressions to verify new method we can override works

* Update to release build of Serilog.Expressions 3.3.0 now its been pushed to Nuget
2022-02-28 08:48:10 +01:00
Nikolaj Geisle d1cf640f2a more build errors in Core 2022-02-27 21:20:50 +01:00
Bjarne FyrstenborgandGitHub 6fd45f653c Media entry editor listview children (#12061) 2022-02-27 17:46:40 +01:00
Bjarne FyrstenborgandSebastiaan Janssen d97d0040c2 Remove unused variable 2022-02-27 16:57:57 +01:00
Bjarne FyrstenborgandSebastiaan Janssen aa62417916 Update mapping so we know if it is blueprint on first save before content has been created 2022-02-27 16:57:57 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 62e3286c71 Vary localization based on content or blueprint 2022-02-27 16:57:57 +01:00
dependabot[bot]andSebastiaan Janssen d433991b61 Bump karma from 4.4.1 to 6.3.14 in /src/Umbraco.Web.UI.Client
Bumps [karma](https://github.com/karma-runner/karma) from 4.4.1 to 6.3.14.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v4.4.1...v6.3.14)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-27 12:29:42 +01:00
dependabot[bot]andSebastiaan Janssen bc24efa812 Bump url-parse from 1.5.7 to 1.5.10 in /src/Umbraco.Web.UI.Client
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-27 11:58:35 +01:00
Bjarne FyrstenborgandGitHub 6d52a2f3da Babel adjustments (#12044) 2022-02-27 11:56:10 +01:00
ChadandGitHub 66961d18dc Prevent DatabaseServerMessenger handle leak (#12013) 2022-02-27 11:43:35 +01:00
patrickdemooij9andGitHub fa0027d4f1 Added property way of seeing composition (#11811) 2022-02-27 10:09:35 +01:00
Blake IrwinandGitHub a24b099831 V9: Fix Umbraco:CMS:Global:SqlWriteLockTimeOut setting value ignored (#11492) 2022-02-27 09:52:07 +01:00
Bjarne FyrstenborgandGitHub 6860d0b27d Filter block cards and show empty message (#11729) 2022-02-27 09:36:43 +01:00
AndyBootandGitHub dad1c190fc Settings Dashboard Umbraco.tv References (#12034) 2022-02-27 09:31:22 +01:00
Arkadiusz BielandSebastiaan Janssen 36faff6917 add null check for case when index is not implementing LuceneDirectoryIndexOptions 2022-02-27 09:19:23 +01:00
ChadandGitHub 7ddddb7500 Support async in TreeController (#12016) 2022-02-27 09:16:33 +01:00
Jason ElkinandGitHub b56f0f7062 Make views compatible with Nullable Reference Types (#11370) 2022-02-27 09:10:08 +01:00
Bartlomiej KomendarczukandMichael Latouche 9121879e1a 11921: Update CultureName after language change 2022-02-26 03:53:52 +01:00
Bjarne FyrstenborgandGitHub 69132faffa Set current selected master template in tree (#12042)
* Set current selected master template in tree

* Adjust styling for tree icon

* Code adjustment
2022-02-26 02:48:02 +01:00
Paul JohnsonandGitHub 83204edbd4 V10/feature/filesystem maindomlock (#12049)
* Filesystem based MainDomLock & extract interface for MainDomKey generation (#12037)

* Extract MainDomKey generation to its own class to ease customization.

Also add discriminator config value to GlobalSettings for advanced users.
Prevents a mandatory custom implementation, should be good enough for
the vast majority of use cases.

* Prevent duplicate runs of ScheduledPublishing during slot swap.

* Add filesystem based MainDomLock

(cherry picked from commit 860c8e8ae2)

# Conflicts:
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs

* Remove obsolete constructors from ScheduledPublishing & SqlMainDomLock

* FileSystemMainDomLock promoted to default fallback for all platforms.

* Various fixes & improvements
2022-02-25 12:06:30 +00:00
Paul JohnsonandGitHub 4a6c409a1f Explicitly close release signal file. (#12057) 2022-02-25 10:56:45 +00:00
Paul JohnsonandGitHub 4351ce6ee4 Further changes requested during review of #12049 (#12053) 2022-02-25 08:22:37 +00:00
vsilvarandMichael Latouche 1b56a260b8 Allow configuring TinyMCE scripting sanitization 2022-02-25 01:38:54 +01:00
Nikolaj Geisle e7b31a22be Fix scope 2022-02-24 15:44:49 +01:00
Paul JohnsonandGitHub de4b3af28f Resolve various points related to deficiencies in FileSystemMainDomLock (#12052)
* Resolve various points related to deficiencies in FileSystemMainDomLock

See GH #12049

* Increasing backoff time for retry when deleting lock release signal file
However reducing max tries, really hoping this never actually happens
and if it does, failing to boot ASAP seems reasonable.
2022-02-24 14:38:33 +00:00
Nikolaj Geisle 2009f7585b Fix last build errors 2022-02-24 15:28:41 +01:00
Bjarke BergandGitHub 321d5b49bd Fix docfx namespace (#12048)
* Temp hack for building docs on pr

* Fix namespace

* revert hack to build docs on pr
2022-02-24 12:40:06 +01:00
Ronald Barendse ee3f7520b3 Conditionally update Umbraco version in templates 2022-02-24 11:41:31 +01:00
Ronald Barendse 5a3578eca9 Fix updating default Umbraco version in templates 2022-02-24 11:37:22 +01:00
Bjarke BergandGitHub 366d7c0fce Update docfx dependency (#12046)
* Update docfx

* temp commit to test out azure pipeline

* Rollback temp fix
2022-02-24 11:30:20 +01:00
Nikolaj Geisle e32ddcd26f Remove SQLCE from sln file 2022-02-24 11:23:32 +01:00
Paul JohnsonandGitHub 860c8e8ae2 Filesystem based MainDomLock & extract interface for MainDomKey generation (#12037)
* Extract MainDomKey generation to its own class to ease customization.

Also add discriminator config value to GlobalSettings for advanced users.
Prevents a mandatory custom implementation, should be good enough for
the vast majority of use cases.

* Prevent duplicate runs of ScheduledPublishing during slot swap.

* Add filesystem based MainDomLock
2022-02-24 10:17:34 +00:00
Ronald Barendse 05d606d6a7 Fix artifact build and ensure the version of future templates are also updated 2022-02-24 10:42:59 +01:00
Ronald Barendse 2dc9ccda6d Disable packaging of JsonSchema and test projects 2022-02-24 10:24:27 +01:00
Nikolaj Geisle 3bf2778803 More work on nullable reference types 2022-02-24 10:22:20 +01:00
Ronald Barendse 9187186c62 Generate lowercase telemetry ID 2022-02-24 10:21:15 +01:00
Nikolaj Geisle ed13237177 Fixing more errors with nullable reference types 2022-02-24 09:24:56 +01:00
Ronald Barendse 5813a8aadf Clean up and improve project templates 2022-02-23 23:20:13 +01:00
Patrick de MooijandNathan Woulfe 15bedfbc76 11777: Remove sorting because we need the correct order 2022-02-24 07:46:58 +10:00
Ronald Barendse 4c037774de Move templates to root 2022-02-23 22:45:35 +01:00
Chad CurrieandNathan Woulfe fe0ec420eb Add using statements for IDisposables 2022-02-24 06:46:11 +10:00
Sebastiaan Janssen 860792ff3f Revert "UmbEditorHeaders hide-icon on "true"" #11661
This reverts commit ff6a8d781d.
2022-02-23 14:38:47 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 169d07b0cc Grant access to get all content types so content templates can be moved to content section 2022-02-23 14:13:07 +01:00
dependabot[bot]andSebastiaan Janssen 8c5a5af41b Bump follow-redirects in /src/Umbraco.Web.UI.Client
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-23 10:17:39 +01:00
Sebastiaan JanssenandGitHub 411fb0c120 Update CODE_OF_CONDUCT.md 2022-02-23 09:56:21 +01:00
Sebastiaan JanssenandGitHub 27c60277f2 Update CODE_OF_CONDUCT.md 2022-02-23 09:25:40 +01:00
Nikolaj Geisle a8cf6ee127 More work on nullable references 2022-02-22 13:35:32 +01:00
Nikolaj GeisleandGitHub dafd7f298d Merge pull request #12024 from umbraco/v9/feature/add_user_group_tests
Add user group tests
2022-02-22 10:48:40 +01:00
Paul JohnsonandGitHub e67da0b198 Ignore certificate errors for KeepAlive task. (#12019) 2022-02-22 09:49:56 +01:00
4f0a837e20 V9: Fix login timeout (#12029)
* Turn SlidingExpiration off and only renew cookie of not RemainingSeconds request

Also adds the TicketExpiresClaim before validating the the security stamp, otherwise the claim won't be merged and "dissappear", leading to the user being instantly logged out

Also only EnsureValidSessionId if not RemainingSeconds request, otherwise the session will always be valid, since the remaining seconds request renews it.

* Don't ignore SessionIdClaimType and Cookiepath when merging claims

Besides what the comment used to state these claims are only issued when logging in, leading you to be logged out once the claims are merged, furthermore when we check the session ID we verify that you session has not expired.

* Manually specify Issued and Expires when renewing token

If we don't we lose 30 minutes of our ExpireTimeSpan every time the principal refreshes

* Re-add ignored claims

And use MergeAllClaims on refreshing principal instead.

* EnsureValidSessionId before updating IssuedUtc

* Fix comment

* Update src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs

Co-authored-by: nikolajlauridsen <nel@umbraco.dk>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-02-22 08:29:27 +01:00
Nikolaj Geisle 315e8d6fe6 Merge branch 'v10/feature/nullable-reference-types-in-Umbraco-Core' into v10/feature/nullable-reference-types-in-Umbraco-Infrastructure 2022-02-21 12:51:49 +01:00
Nikolaj Geisle 57f32100cb Fix errors 2022-02-21 12:49:17 +01:00
dependabot[bot]andSebastiaan Janssen 864fd2a45a Bump url-parse from 1.5.3 to 1.5.7 in /src/Umbraco.Web.UI.Client
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 11:32:51 +01:00
Daniël KnippersandSebastiaan Janssen 8877c9c73d Fix Empty Recycle Bin view not found on Linux 2022-02-21 11:32:02 +01:00
Nikolaj Geisle f69d264d8d Add more nullability 2022-02-21 10:12:51 +01:00
Bjarke Berg cb44dc70f3 Rollback issues with signatures 2022-02-21 10:06:57 +01:00
Sebastiaan Janssen ab870347ed Merge branch 'v9/dev' into v9/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/pages/login.less
2022-02-21 10:06:08 +01:00
Robert FosterandGitHub 06f2408ebc Fix for #11977 - Content Name auto-numbering correction (#11996) 2022-02-21 10:20:08 +10:00
Mark DrakeandNathan Woulfe a53d28310f new stick top position for rte toolbar if tabs are present, issue #11870 2022-02-21 10:19:10 +10:00
LantzifyandNathan Woulfe 9568d0cd6d Added name & color description for umbAvatar 2022-02-21 10:02:41 +10:00
Anders BjernerandNathan Woulfe aba5edce02 Fixed issue in umbeditorheader.directive.js examples 2022-02-21 08:25:04 +10:00
Nikolaj Geisle b442a60403 Start work on nullable-reference types in Infrastructure project 2022-02-18 14:32:51 +01:00
Paul Johnson 791e4f92a1 Quick fix for PrefixLocalCallsWithThis 2022-02-18 11:41:27 +00:00
Nikolaj Geisle 566648de3f Add user group tests 2022-02-18 09:26:47 +01:00
Mole a13e66d559 Merge branch 'v9/9.3' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
2022-02-17 15:09:55 +01:00
Bjarke BergandGitHub 3a269ed329 Fix issue with migration from 8 and added support for 8.18 migration (#12020)
* Fixed issue with migration from 8, because the external login table is changed in 9.3, but added in 9.0. we need to use the legacy models when running 9.0 migrations

* Support migration from 8.18 (final state)
2022-02-17 15:06:25 +01:00
Ronald BarendseandMole 7f762df952 Fix DataValueEditor incorrectly serializing JSON value (#12015)
* Remove JSON serialization

* Skip JSON serialization of strings
2022-02-17 13:34:48 +01:00
Ronald BarendseandGitHub 27a3431e76 Fix DataValueEditor incorrectly serializing JSON value (#12015)
* Remove JSON serialization

* Skip JSON serialization of strings
2022-02-17 13:33:45 +01:00
Mole 7cc495dc65 Bump version to 9.3.1 2022-02-17 13:20:53 +01:00
Bjarke BergandMole b581a45e05 Fix for rooted UNC paths (#11982) 2022-02-17 13:17:53 +01:00
Bjarke BergandGitHub 76fc3f8201 Fix for rooted UNC paths (#11982) 2022-02-17 10:59:35 +00:00
555b4fadf1 Lookup plugin lang / icons folders in a case insensitive way (#11985)
* Use lowercase lang folder name for packages lang files

Use lowercase lang folder name for packages lang files to be consistent with Umbraco's casing

* Case insensitive `lang` folder lookup

* Comment grammar

* Setup lower case appl_plugin icons folder path

* Update Constants-SystemDirectories.cs

* Check both casings for the AppPluginIcons path

* Fixed spelling mistake + avoid multiple Exists checks

* Add IsCaseSensitiveFileSystem to IHostingEnvironment

* Add IsCaseSensitiveFileSystem to AspNetCoreHostingEnvironment

* Undo last changes

* Undo last changed

* Add FileSystemUtility

* Only perform second iconPath if OS is case sensitive

* Undo changes

* Undo changes

* Remove filesystem utils file

* Added HostingEnvironmentExtensions.cs

* Use IsCaseSensitiveFileSystem extension method

* Use the Umbraco.Extensions namespace

* Simplify IsCaseSensitiveFileSystem

* Better naming

* Use PluginIcons

* Remove unused using statement

* Delete HostingEnvironmentExtensions.cs

* Update IconService.cs

* Comment clarity

* Update src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs

Co-authored-by: Paul Johnson <pmj+github@ologn.co.uk>

Co-authored-by: Paul Johnson <pmj+github@ologn.co.uk>
Co-authored-by: Michael Latouche <michael@crossingpaths.be>
2022-02-17 00:04:41 +01:00
Nikolaj Geisle cb3e7706a8 Dont change cs proj to Warning as errors 2022-02-16 16:04:25 +01:00
Nikolaj Geisle 6be2cd45db Use nullability on the rest of core 2022-02-16 16:03:53 +01:00
Søren KottalandMichael Latouche 79817f5463 Makes group name wider to fit long group names 2022-02-16 02:20:21 +01:00
LantzifyandNathan Woulfe ff6a8d781d UmbEditorHeaders hide-icon on "true" 2022-02-16 09:43:43 +10:00
Bjarne FyrstenborgandGitHub 789a908a31 Adjust z-index of notifications (#11634)
* Store notification z-index in variable

* Only show unordered list if any notifications

* Move notificaion layers to same parent as overlays so layers can be controlled via z-index
2022-02-16 09:27:13 +10:00
Søren KottalandNathan Woulfe 336f2c2d5b Makes the template column i NC config expandable 2022-02-16 09:17:59 +10:00
JeavonandNathan Woulfe 8b6c844a55 Exclude the Umbraco Log files from UmbracoProject template gitignore 2022-02-16 07:57:06 +10:00
f1c83fbd80 Only select ItemIdFieldName in PublishedContentQuery.Search to improve performance (#11950)
* Fix code styling

* Only select ItemIdFieldName and fix exception when variation context is null

* Save hashset instead of making on on each request (indirectly)

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-02-15 16:46:20 +01:00
Nikolaj Geisle 093d336cc7 Fix more nullability errors 2022-02-15 15:48:41 +01:00
Nikolaj Geisle 13b9816ba8 Remove outcommented WarningAsError 2022-02-15 14:42:01 +01:00
Nikolaj Geisle 945b115067 Fix more nullability errors 2022-02-15 14:41:06 +01:00
Bjarke Berg 0f4020dc7b Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs
#	src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs
#	src/Umbraco.Examine/Umbraco.Examine.csproj
#	src/Umbraco.Tests/Umbraco.Tests.csproj
#	src/Umbraco.Web.UI.Client/src/assets/img/application/umbraco_logo_large_blue.svg
#	src/Umbraco.Web.UI.Client/src/assets/img/application/umbraco_logomark_white.svg
#	src/Umbraco.Web.UI.Client/src/common/directives/components/application/umbappheader.directive.js
#	src/Umbraco.Web.UI.Client/src/less/components/application/umb-app-header.less
#	src/Umbraco.Web.UI.Client/src/views/components/application/umb-app-header.html
#	src/Umbraco.Web.UI.Client/src/views/content/content.protect.controller.js
#	src/Umbraco.Web.UI.Client/src/views/packages/views/install-local.controller.js
#	src/Umbraco.Web.UI.Client/src/views/packages/views/install-local.html
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
2022-02-15 14:10:17 +01:00
62fa1695df Add config to hide backoffice logo (#11999)
* Added config to hide backoffice logo

* rename to hideBackofficeLogo

* hide on mobile

* add hideBackofficeLogo

* implement hideBackofficeLogo + toggle on click

* Updated c# syntax

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2022-02-15 10:48:52 +01:00
Nikolaj Geisle 793f8f0de2 Fix error after merge 2022-02-15 09:40:01 +01:00
Nikolaj Geisle 224341a533 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/nullable-reference-types-in-Umbraco-Core
# Conflicts:
#	src/Umbraco.Core/Configuration/Models/SecuritySettings.cs
#	src/Umbraco.Core/Events/DeleteEventArgs.cs
#	src/Umbraco.Core/Events/IEventDispatcher.cs
#	src/Umbraco.Core/Events/PassThroughEventDispatcher.cs
#	src/Umbraco.Core/Events/QueuingEventDispatcherBase.cs
#	src/Umbraco.Core/IO/MediaFileManager.cs
#	src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs
#	src/Umbraco.Core/PropertyEditors/DataValueEditor.cs
#	src/Umbraco.Core/Routing/DefaultUrlProvider.cs
2022-02-15 09:29:58 +01:00
Nikolaj Geisle e5dab9d044 uncomment code again 2022-02-15 08:48:18 +01:00
Andy ButlandandGitHub de2668a621 Added section for promoted packages in the back-office. (#11947)
* Added section for promoted packages in the back-office.

* Updates from PR review.
2022-02-14 17:41:12 +01:00
Paul Johnson 548870d59d Fix whitespace in sln
(cherry picked from commit a34e278a40)
2022-02-14 14:47:07 +00:00
Paul Johnson a34e278a40 Fix whitespace in sln 2022-02-14 14:46:37 +00:00
Paul Johnson d4dca18cbe Change web projects TargetFrameworkMoniker to 4.5.2 to stop VS 2022 err
(cherry picked from commit 461043bd82)
2022-02-14 14:44:40 +00:00
Paul Johnson 461043bd82 Change web projects TargetFrameworkMoniker to 4.5.2 to stop VS 2022 err 2022-02-14 14:43:33 +00:00
Nikolaj Geisle ff58531aa5 Fix more acceptance tests 2022-02-14 15:00:22 +01:00
Nikolaj Geisle 8991256306 Fix some of the cypress tests 2022-02-14 12:57:59 +01:00
Sebastiaan JanssenandNathan Woulfe 7f9b143e1a Fix items found in PVS-Studio analysis 2022-02-14 08:08:42 +10:00
Bjarke Berg a228f4e941 Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Core/DependencyInjection/UmbracoBuilder.cs
#	src/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTask.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTaskTests.cs
2022-02-13 13:39:13 +01:00
Bjarke BergandGitHub 8b190e05c2 Merge pull request #11983 from umbraco/v10/feature/fix-for-UmbracoTestServerTestBase
Fix issue running UmbracoTestServerTestBase tests with debugger attached
2022-02-13 13:32:56 +01:00
Paul Johnson a1e562cab6 Switch ConfigureServices back to protected.
Downstream users may wish to subclass and add their application specific
services.
2022-02-12 11:57:28 +00:00
Paul Johnson fcd4ad17bb Make webhost setup less confusing. 2022-02-12 11:41:59 +00:00
Paul Johnson 1764440b35 Switch a lot of warnings to suggestions until we are able to resolve. (#11974)
* Switch a lot of warnings to suggestions until we are able to resolve.

* Make stylecop respect more csharp_style rules

e.g. csharp_using_directive_placement

* Added cheatsheet

* Drop sorting requirements for using directives.

(cherry picked from commit 91c4c77676)
2022-02-11 21:27:53 +00:00
Paul Johnson c1fddd98be Additional refactoring I have been meaning to get around to for a while. 2022-02-11 20:39:57 +00:00
Paul Johnson 76cda7fd0c Fix issue running UmbracoTestServerTestBase tests with debugger attached
Ensure ConfigureWebServer called before ConfigureServices for tests that
make use of WebApplicationFactory.

Still not apparent why tests would pass if debugger isn't attached?
2022-02-11 16:52:57 +00:00
Paul JohnsonandGitHub 91c4c77676 Switch a lot of warnings to suggestions until we are able to resolve. (#11974)
* Switch a lot of warnings to suggestions until we are able to resolve.

* Make stylecop respect more csharp_style rules

e.g. csharp_using_directive_placement

* Added cheatsheet

* Drop sorting requirements for using directives.
2022-02-11 16:24:53 +00:00
Nikolaj Geisle 58f6226942 Fix Unit & Integration tests 2022-02-11 14:27:04 +01:00
Erik-Jan WestendorpandNathan Woulfe d1f1817744 Translate "Create dictionary item" to Dutch 2022-02-11 08:43:34 +10:00
Paul JohnsonandGitHub 8393a5ba04 Merge pull request #11952 from mattbrailsford/patch-7
Don't hold static UmbracoContext reference
2022-02-10 18:10:01 +00:00
Paul JohnsonandGitHub cf410ab91e Attempt to make app local icu setup less problematic. (#11961)
* Attempt to make app local icu setup less problematic.

Prevents issues for windows build agent -> linux app server.

On Windows version is split at first '.' e.g. 68.2.0.9 ->  icuuc68.dll
https://github.com/dotnet/runtime/blob/205f70e/src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Windows.cs

On Linux we are looking for libicuuc.so.68.2.0.9
https://github.com/dotnet/runtime/blob/205f70e/src/libraries/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs

On macos we don't have a native library in a shiny nuget package so hope
folks are building on their macs or setting the rid until we have a
better solution.

* Combine elements
2022-02-10 12:03:35 +00:00
Nikolaj Geisle 83baba696c Fixed build errors after turning nullability errors off 2022-02-10 10:32:45 +01:00
df6c8a4ecc refactor setTitle in MediaPicker.Controller.js (#11428)
* refactor setTitle in MediaPicker.Controller.js

* adding vm.activeTab

Co-authored-by: inada <inada@2p.com.sa>
2022-02-10 09:20:18 +10:00
Bjarne FyrstenborgandNathan Woulfe be6e0879e4 Align tags vertically in content type property component 2022-02-10 08:52:39 +10:00
Bjarne FyrstenborgandNathan Woulfe 731b06a987 Use pointer cursor pointer for keyboard shortcuts overview 2022-02-10 08:04:38 +10:00
Mark DrakeandGitHub 6f89bf2a45 fixes umbraco logo appearance on backoffice login page, issue #11830 (#11900)
* fixes umbraco logo appearance on backoffice login page, issue #11830

* gives umbraco logo minimum width of 30px, issue #11830
2022-02-10 08:00:57 +10:00
Callum WhyteandGitHub 4eda091fdb Lookup backoffice section name in route locationTitle (#11816)
* Lookup backoffice section name in route locationTitle

* Getting original title from $rootScope
2022-02-10 07:56:59 +10:00
nikolajlauridsen b63aa4b19c Merge remote-tracking branch 'origin/v9/9.3' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
2022-02-09 13:31:49 +01:00
Nikolaj Geisle b75eae01f3 Add nullability to core project 2022-02-09 13:24:35 +01:00
nikolajlauridsen eea02137ae Bump version to non-rc 2022-02-09 10:26:31 +01:00
Bjarke BergandGitHub 3d28552a77 Add settings to bypass 2fa for external logins (#11959)
* Added settings for bypassing 2fa for external logins

* Fixed issue with saving roles using member ID before the member had an ID.

* Added missing extension method

* Removed test classes from git

* rollback csproj
2022-02-09 10:19:39 +01:00
MoleandGitHub 927ee44efe Merge pull request #11953 from umbraco/v9/feature/migrate-umbraco-logo
Cherry pick Apply the Umbraco logo to BackOffice (#11949) to V9
2022-02-08 11:52:18 +01:00
Matt BrailsfordandGitHub 8c780573f4 Don't hold static UmbracoContext reference
Fixes #11951 by changing `UmbracoContext` to be an expression rather than being a static setter thus ensuring the current umbraco context is always returned, rather than a cached version from initial execution
2022-02-08 09:41:35 +00:00
Niels Lyngsøandnikolajlauridsen b89cd86d85 Apply the Umbraco logo to BackOffice (#11949)
* adding logo as text in replacement of umbraco_logo_white, this will enable existing configuration to continue to work and minimise the breaking change of this PR.

* adjust logo position to fit with logged-in logomark. Allowing for the logo and customised logo to be very wide.

* adding logomark in topbar of backoffice

* login box style

* correction of shadow

* Logo modal, to display more information about the product including linking to the website

* rename to modal

* stop hidden when mouse is out

* Version line without Umbraco

* focus link and use blur as the indication for closing.

* correcting to rgba

* focus and click outside needs a little help to work well

* use @zindexUmbOverlay to ensure right depth going forward.

* adding large logo svg

* append ;

* tidy logo svg file
2022-02-08 10:40:14 +01:00
Niels LyngsøandGitHub 0b0182f550 Apply the Umbraco logo to BackOffice (#11949)
* adding logo as text in replacement of umbraco_logo_white, this will enable existing configuration to continue to work and minimise the breaking change of this PR.

* adjust logo position to fit with logged-in logomark. Allowing for the logo and customised logo to be very wide.

* adding logomark in topbar of backoffice

* login box style

* correction of shadow

* Logo modal, to display more information about the product including linking to the website

* rename to modal

* stop hidden when mouse is out

* Version line without Umbraco

* focus link and use blur as the indication for closing.

* correcting to rgba

* focus and click outside needs a little help to work well

* use @zindexUmbOverlay to ensure right depth going forward.

* adding large logo svg

* append ;

* tidy logo svg file
2022-02-08 10:35:06 +01:00
Bjarke BergandGitHub 23803a44b7 Fixed minor issues and added xml docs (#11943) 2022-02-07 14:32:58 +01:00
Bjarke BergandGitHub 25c52d507a Merge pull request #11944 from umbraco/v9/hotfix/remove-element-from-blocklist
V9: Fix removing element from BlockList
2022-02-07 14:13:38 +01:00
Mole d7fef7cd0c Check blockObject.content for null 2022-02-07 12:09:13 +01:00
Bjarke BergandGitHub 58b75c58aa Fixes issue with miniprofiler losing the information when doing a redirect, e.g. in a successful surfacecontroller call. (#11939)
Now we store the profiler in a cookie on local redirects and pick it up on next request and add it as a child to that profiler
2022-02-07 09:21:26 +01:00
Bjarke Berg 158f4d29f6 Bump version to 9.4.0-rc 2022-02-04 13:02:19 +01:00
Bjarke BergandGitHub 139c5791a5 Merge pull request #11926 from umbraco/v9/bugfix/replicas-write-to-server-table
Don't write to server table if not using ElectedServerRoleAccessor
2022-02-01 14:53:37 +01:00
Bjarke BergandGitHub 27ef97bf34 Merge pull request #11924 from umbraco/v9/feature/override-sitename-from-config
Allow setting the site name from appsettings
2022-02-01 14:38:39 +01:00
Bjarke BergandGitHub d6f968eee4 Merge pull request #11874 from umbraco/v9/feature/play-nice-with-ServiceBasedControllerActivator
Prevent issues for those who wish use ServiceBasedControllerActivator.
2022-02-01 14:34:37 +01:00
Sebastiaan Janssen a6ce7bcdf6 Merge branch 'v8/dev' into v8/8.18 2022-02-01 11:36:26 +01:00
Sebastiaan Janssen 0200434227 Merge branch 'v8/contrib' into v8/dev 2022-02-01 11:09:02 +01:00
Kenn JacobsenandGitHub 9a5bcf290d Retain mculture when clicking results from global search (#7192) 2022-02-01 01:50:22 +01:00
Sebastiaan Janssen ec183e481c Bump version to 8.18.0-rc 2022-01-31 15:47:51 +01:00
Sebastiaan Janssen 924a819baa Upgrade ClientDependency to 1.9.10 2022-01-31 15:39:34 +01:00
3af6645ad8 Fix URL with culture (#11886)
* Ignore casing when comparing default culture

* Ignore casing in GetAssignedWithCulture

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-01-31 15:02:25 +01:00
Mole 824bc2ac28 Fix word salad in comment 2022-01-31 14:58:45 +01:00
Mole febdac5713 Fix tests 2022-01-31 14:46:25 +01:00
Mole 22dd3a214c Stop TouchServerTask is registered role accessor is not elected 2022-01-31 14:39:29 +01:00
Sebastiaan Janssen 4382868f82 Upgrade Examine to v1.2.2 2022-01-31 14:18:55 +01:00
Sebastiaan Janssen 5c019a1557 Merge branch 'v8/contrib' into v8/dev 2022-01-31 14:15:03 +01:00
Mole bdcb5d859e Get site name from appsettings if possible 2022-01-31 10:12:02 +01:00
Paul Johnson 1810cec80a Simplify registration for ambiguous ctor
ActivatorUtilitiesConstructor respected.
2022-01-31 08:39:33 +00:00
Bjarne FyrstenborgandGitHub 472cc716c4 Accept zip as extension in local package installer (#11109)
* Update ngf-pattern and accept

* Restructure less

* Remove ng-invalid again
2022-01-31 02:40:15 +01:00
andreymkarandashovandMichael Latouche 3167c8b213 encode group name to avoid the issue 2022-01-31 01:35:03 +01:00
Arul PrabakaranandGitHub 2abf455abf Updated border radius of .umb-notifications__notification to match button radius (#11745) 2022-01-31 09:08:51 +10:00
Bjarne FyrstenborgandGitHub f2450fb539 Constant icon blueprint (#11812)
* Add constant for blueprint icon

* Use constant for folder icon

* Create empty array of IEntitySlim as the GetAll() method returns IEnumerable<IEntitySlim>

* Use constant
2022-01-31 08:34:37 +10:00
c0dfb33916 Fix importing DocType if parent folder already exists (#11885)
* Don't try to create parent folder if it already exists

* Fix typo

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-28 12:30:44 +01:00
Lennard FonteijnandMichael Latouche 477697a70c Removed if-check to allow empty values from blocks 2022-01-28 03:43:53 +01:00
Bjarke BergandGitHub 5de36f5669 Merge pull request #11916 from umbraco/v9/feature/merge_v8_27012022
V9/feature/merge v8 27012022
2022-01-27 17:38:32 +01:00
a71529a058 V9/feature/merge v8 27012022 (#11915)
* Add allowlist for HelpPage

* Use current request for emails (#11775)

* Use current request for emails

* Fix tests

* Bump version to 8.17.2

* Use Umbraco Path instead of constant

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-01-27 17:37:32 +01:00
Bjarke Berg deff17e622 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/ConfigsExtensions.cs
#	src/Umbraco.Core/Constants-AppSettings.cs
#	src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/HelpController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
2022-01-27 17:35:47 +01:00
Bjarke Berg 8c822c59ac Merge remote-tracking branch 'origin/v8/8.17' into v8/dev
# Conflicts:
#	src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
2022-01-27 16:04:50 +01:00
Bjarke Berg c79380191b Use Umbraco Path instead of constant 2022-01-27 15:57:22 +01:00
Bjarke Berg a779803763 Bump version to 8.17.2 2022-01-27 13:18:21 +01:00
MoleandBjarke Berg 1b98f8985e Use current request for emails (#11775)
* Use current request for emails

* Fix tests
2022-01-27 12:59:45 +01:00
Bjarke BergandGitHub 7971f36b78 Add check for PluginControllerAttribute and compare area name (#11911)
* Add check for PluginControllerAttribute and compare area name

* Added null check
2022-01-27 10:32:56 +01:00
Mole c73d0bf6a6 Update logging message in HelpController 2022-01-27 09:53:16 +01:00
MoleandGitHub de6824dfa0 Merge pull request #11909 from umbraco/v9/feature/allowlist-for-help-page
V9: Add allowlist for HelpPage
2022-01-26 13:25:45 +01:00
MoleandGitHub 56d54d441f Merge pull request #11907 from umbraco/v8/feature/allowlist-for-help-page
V8: Add allowlist for HelpPage
2022-01-26 13:07:40 +01:00
Bjarke Berg d4c43b69f7 Updated to use IOptionsMonitor 2022-01-26 12:40:14 +01:00
Ronald BarendseandGitHub 4d4aff4c67 Apply changes from #11805 and #11806 to v9 (#11904)
* Apply changes from #11805 and #11806 to v9

* Update documentation and cleanup code styling
2022-01-26 12:22:05 +01:00
Mole 3261a6f71d Fix up for V9 2022-01-26 12:12:59 +01:00
Mole 2f17d766be Cherry pick Add allowlist for HelpPage 2022-01-26 11:43:59 +01:00
Mole 9dbe2d211c Add allowlist for HelpPage 2022-01-26 10:57:49 +01:00
Mole 72533d29c8 Specify namespace for CharITem 2022-01-26 10:20:12 +01:00
Mole 2ddb3e13e5 Fix breaking changes 2022-01-26 10:05:01 +01:00
Mole 3ade2b6de3 Add RC to version 2022-01-26 08:43:43 +01:00
Mole 6ad08a3b29 Merge branch 'v9/dev' into v9/9.3 2022-01-26 08:33:56 +01:00
Bjarke Berg 930bdac45e Merge remote-tracking branch 'origin/v9/feature/add-html-sanitizer-abstraction' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Security/IHtmlSanitizer.cs
#	src/Umbraco.Core/Security/NoopHtmlSanitizer.cs
2022-01-26 08:02:04 +01:00
Bjarke Berg 160d9fb96b Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Composing/CompositionExtensions/Services.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
2022-01-26 07:58:04 +01:00
MoleandGitHub d70a207d60 V8: Add ability to implement your own HtmlSanitizer (#11897)
* Add IHtmlSanitizer

* Use IHtmlSanitizer in RTE value editor

* Add docstrings to IHtmlSanitizer

* Rename NoOp to Noop

To match the rest of the classes

* Fix tests
2022-01-26 07:51:25 +01:00
Ronald BarendseandBjarke Berg 76593aa7ca Add IsRestarting property to Umbraco application notifications (#11883)
* Add IsRestarting property to Umbraco application notifications

* Add IUmbracoApplicationLifetimeNotification and update constructors

* Only subscribe to events on initial startup

* Cleanup CoreRuntime

* Do not reset StaticApplicationLogging instance after stopping/during restart
2022-01-25 06:39:49 +01:00
Ronald BarendseandGitHub ca56e0971f Add IsRestarting property to Umbraco application notifications (#11883)
* Add IsRestarting property to Umbraco application notifications

* Add IUmbracoApplicationLifetimeNotification and update constructors

* Only subscribe to events on initial startup

* Cleanup CoreRuntime

* Do not reset StaticApplicationLogging instance after stopping/during restart
2022-01-25 06:38:20 +01:00
Mole 39f7102312 Use IHtmlSanitizer in RichTextValueEditor 2022-01-24 09:30:23 +01:00
Mole 249774c815 Rename NoOp to Noop
To match the rest of the classes
2022-01-24 09:24:40 +01:00
Mole 01c1e68cf0 Fix up namespaces 2022-01-24 09:19:06 +01:00
Mole e2d0a0f699 Add docstrings to IHtmlSanitizer 2022-01-24 09:18:31 +01:00
Mole 8b773c90c2 Add IHtmlSanitizer 2022-01-24 08:56:53 +01:00
Bjarke BergandGitHub 87407442ad Merge pull request #11859 from umbraco/v10/feature/scope-provider-cleanup
v10 scope provider cleanup
2022-01-23 16:15:33 +01:00
Bjarke Berg 775bdff03b Fix after merge. 2022-01-23 15:26:17 +01:00
Bjarke Berg ae6920a4a2 Merge remote-tracking branch 'origin/v10/dev' into v10/feature/scope-provider-cleanup
# Conflicts:
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
2022-01-23 14:16:44 +01:00
Bjarke Berg e92abf7d51 Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	.github/workflows/codeql-analysis.yml
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs
2022-01-23 13:46:10 +01:00
Bjarke Berg 4b92a47e93 Merge remote-tracking branch 'origin/v9/9.3' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
2022-01-23 13:44:33 +01:00
Bjarke Berg f49b661c26 Merge remote-tracking branch 'origin/v9/9.2' into v9/9.3
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
2022-01-23 13:43:34 +01:00
Bjarke Berg b7d8b7923d Merge remote-tracking branch 'origin/v9/9.2' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
2022-01-23 13:34:39 +01:00
Bjarke Berg 4843b28184 added contains check for acceptance tests 2022-01-21 19:30:38 +01:00
Bjarke BergandGitHub eb126a77b6 Merge pull request #11893 from umbraco/v9/merge-v9-contrib-into-v9-dev
Merge v9 contrib into v9 dev
2022-01-21 13:18:35 +01:00
12abd883a9 Member 2FA (#11889)
* Bugfix - Take ufprt from form data if the request has form content type, otherwise fallback to use the query

* External linking for members

* Changed migration to reuse old table

* removed unnecessary web.config files

* Cleanup

* Extracted class to own file

* Clean up

* Rollback changes to Umbraco.Web.UI.csproj

* Fixed migration for SqlCE

* Added 2fa for members

* Change notification handler to be on deleted

* Update src/Umbraco.Infrastructure/Security/MemberUserStore.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* updated snippets

* Fixed issue with errors not shown on member linking

* fixed issue with errors

* clean up

* Fix issue where external logins could not be used to upgrade Umbraco, because the externalLogin table was expected to look different. (Like after the migration)

* Fixed issue in Ignore legacy column now using result column.

* Updated 2fa for members + publish notification when 2fa is requested.

* Changed so only Members out of box supports 2fa

* Cleanup

* rollback of csproj file, that should not have been changed

* Removed confirmed flag from db. It was not used.

Handle case where a user is signed up for 2fa, but the provider do not exist anymore. Then it is just ignored until it shows up again

Reintroduced ProviderName on interface, to ensure the class can be renamed safely

* Bugfix

* Registering DeleteTwoFactorLoginsOnMemberDeletedHandler

* Rollback nuget packages added by mistake

* Update src/Umbraco.Infrastructure/Services/Implement/TwoFactorLoginService.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TwoFactorLoginRepository.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Added providername to snippet

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-01-21 13:10:34 +01:00
Bjarke Berg 52a3e285a9 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Composing/CompositionExtensions/Services.cs
#	src/Umbraco.Core/Constants-AppSettings.cs
#	src/Umbraco.Core/Dashboards/ContentDashboardSettings.cs
#	src/Umbraco.Core/Dashboards/IContentDashboardSettings.cs
#	src/Umbraco.Core/Manifest/ManifestParser.cs
#	src/Umbraco.Core/Manifest/PackageManifest.cs
#	src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Core/Models/PropertyTagsExtensions.cs
#	src/Umbraco.Core/PropertyEditors/ComplexPropertyEditorContentEventHandler.cs
#	src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs
#	src/Umbraco.Core/PropertyEditors/DataValueEditor.cs
#	src/Umbraco.Core/PropertyEditors/ValueConverters/ImageCropperValue.cs
#	src/Umbraco.Core/Serialization/JsonToStringConverter.cs
#	src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
#	src/Umbraco.Core/Telemetry/ITelemetryService.cs
#	src/Umbraco.Core/Telemetry/Models/PackageTelemetry.cs
#	src/Umbraco.Core/Telemetry/Models/TelemetryReportData.cs
#	src/Umbraco.Core/Telemetry/TelemetryService.cs
#	src/Umbraco.Tests/Manifest/ManifestParserTests.cs
#	src/Umbraco.Tests/PropertyEditors/BlockEditorComponentTests.cs
#	src/Umbraco.Tests/PropertyEditors/ImageCropperTest.cs
#	src/Umbraco.Tests/PropertyEditors/NestedContentPropertyComponentTests.cs
#	src/Umbraco.Tests/Web/Controllers/AuthenticationControllerTests.cs
#	src/Umbraco.Tests/Web/Controllers/UsersControllerTests.cs
#	src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js
#	src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/BatchedDatabaseServerMessenger.cs
#	src/Umbraco.Web/Cache/DistributedCacheBinder.cs
#	src/Umbraco.Web/Compose/BlockEditorComponent.cs
#	src/Umbraco.Web/Compose/NestedContentPropertyComponent.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/Editors/DashboardController.cs
#	src/Umbraco.Web/Editors/EntityController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
#	src/Umbraco.Web/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/ColorPickerConfigurationEditor.cs
#	src/Umbraco.Web/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/ImageCropperPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs
#	src/Umbraco.Web/PropertyEditors/MediaPicker3PropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiUrlPickerValueEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultipleTextStringPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultipleValueEditor.cs
#	src/Umbraco.Web/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/RichTextPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/TagsPropertyEditor.cs
#	src/Umbraco.Web/Telemetry/ReportSiteTask.cs
#	src/Umbraco.Web/Telemetry/TelemetryComponent.cs
#	src/Umbraco.Web/Trees/ContentTreeController.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
#	src/Umbraco.Web/WebApi/EnableDetailedErrorsAttribute.cs
2022-01-21 12:40:18 +01:00
Nikolaj Geisle 936dd38c55 Make lots of models nullable 2022-01-21 11:43:58 +01:00
LantzifyandSebastiaan Janssen aae8694618 Added description to entityResource.getSafeAlias 2022-01-21 10:56:04 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 6a95ff366f Ensure query is not null before using Trim() 2022-01-21 10:54:29 +01:00
dependabot[bot]andSebastiaan Janssen c3b619fbbf Bump follow-redirects in /src/Umbraco.Web.UI.Client
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-21 10:50:35 +01:00
Sebastiaan Janssen ecd32bf033 The marked dev dependency was unused 2022-01-21 10:48:22 +01:00
James Jackson-SouthandSebastiaan Janssen 4136adebc8 Bump ImageSharp.Web version 2022-01-21 10:06:07 +01:00
Sebastiaan Janssen 8eb3ef65f6 Merge branch 'v9/dev' into v9/contrib 2022-01-21 10:02:37 +01:00
Bjarke Berg a8e0690199 moved namespace to match umbraco version 2022-01-21 09:31:09 +01:00
e204c5bab9 Media Previews (#11888)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Paul Johnson <pmj@umbraco.com>
2022-01-20 16:47:00 +01:00
029a261476 Improve functionality for external member logins (#11855)
* Bugfix - Take ufprt from form data if the request has form content type, otherwise fallback to use the query

* External linking for members

* Changed migration to reuse old table

* removed unnecessary web.config files

* Cleanup

* Extracted class to own file

* Clean up

* Rollback changes to Umbraco.Web.UI.csproj

* Fixed migration for SqlCE

* Change notification handler to be on deleted

* Update src/Umbraco.Infrastructure/Security/MemberUserStore.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fixed issue with errors not shown on member linking

* fixed issue with errors

* clean up

* Fix issue where external logins could not be used to upgrade Umbraco, because the externalLogin table was expected to look different. (Like after the migration)

* Fixed issue in Ignore legacy column now using result column.

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-01-19 09:21:50 +01:00
Paul JohnsonandGitHub c60d8c8ab8 Added EntityController.GetUrlsByIds support for int & guid + update MNTP (#11680)
Fixes issue with MNTP (for 8.18) in a partial view macro - GH #11631

Renamed GetUrlsByUdis to match, don't do this in v9 as it would be
breaking there, instead mark it obsolete.

TODO: v9 ensure integration test coverage, more painful here as no 
WebApplicationFactory.
2022-01-19 08:32:33 +01:00
Nikolaj GeisleandGitHub 16fb4f419a Merge pull request #11823 from umbraco/v8/bugfix/dont_show_stacktrace_in_production_mode
Don't show stack trace in production mode
2022-01-18 17:47:14 +01:00
Paul JohnsonandGitHub b3945f05b8 Merge pull request #11880 from umbraco/v10/feature/npoco5
v10 update to npoco5
2022-01-18 16:12:43 +00:00
Paul Johnson 2ead758a99 Update to npoco5 2022-01-18 15:23:53 +00:00
Elitsa MarinovskaandGitHub 24519f6dad Allowlisting remote URLs for displaying content on the content dashboard (#11822)
* Implement allowlisting of urls when fetching data for the content dashboard

* Adding a new setting in the config & removing inexistent one

* Adding description

* Adding description

* Tidy up code
2022-01-18 15:38:03 +01:00
Elitsa MarinovskaandGitHub 229ca989eb V9: Allowlisting remote URLs for displaying content on the content dashboard (#11825)
* Fixing ContentDashboardSettings to work when set in the config

* Moving file in Models folder and adding ContentDashboardUrlAllowlist setting

* Implementing allowlist for content dashboard base url

* Cleanup

* Error msg vs log msg
2022-01-18 15:37:31 +01:00
1b5830a9d7 V9: Visiting a page without a template returns "Page Not Found" (#11852)
* Returns "Page Not Found" when template doesn't exist for a docType

* Fix comment

* Use IsNullOrWhiteSpace instead of IsNullOrEmpty

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-01-18 15:36:25 +01:00
Elitsa Marinovska 72f30eb937 Adding else case 2022-01-18 15:19:05 +01:00
Elitsa Marinovska cce40a0734 Merge branch 'v8/dev' into v8/bugfix/dont_show_stacktrace_in_production_mode 2022-01-18 14:37:14 +01:00
Paul JohnsonandGitHub c6d7f3b5d1 Merge pull request #11879 from umbraco/v10/feature/merge-v9-dev
Merge branch 'v9/dev' into v10/dev
2022-01-18 13:19:44 +00:00
Ronald BarendseandGitHub 364b8f1c72 Add UmbracoApplicationStartedNotification and UmbracoApplicationStoppedNotification (#11857)
* Add UmbracoApplicationStartedNotification and UmbracoApplicationStoppedNotification

* Include cancellation token when publishing unattended install/upgrade notifications
2022-01-18 13:58:14 +01:00
Paul Johnson ca3bdcf39c Fix Umbraco.Core csproj 2022-01-18 12:20:33 +00:00
Paul Johnson ea3ceab4e2 GH actions - install latest dotnet 2022-01-18 11:51:42 +00:00
Paul Johnson 235918ecfc Merge branch 'v9/dev' into v10/feature/merge-v9-dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Core/Actions/ActionAssignDomain.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs
2022-01-18 11:37:43 +00:00
Paul JohnsonandGitHub bf166225de Move Umbraco.Tests to legacy dir. (#11878)
(makes grep easier)
2022-01-18 10:39:22 +00:00
Paul Johnson 366a8ba565 Prevent issues for those who wish use ServiceBasedControllerActivator.
Adds registration for CurrentUserController which has ambiguous constructors.
Register our controllers so that issues are visible during dev/test.
2022-01-18 00:40:39 +00:00
Paul JohnsonandGitHub 576f90ad37 Speedup codeql run (#11877)
* Speedup codeql run

* npm build once, ignore node_modules

* Misc cleanup
2022-01-18 00:35:53 +00:00
Paul Johnson 9a145537aa Fix config file, should be on init 2022-01-17 22:29:42 +00:00
Paul Johnson c410f78986 Restore config file and prevent duplicate run for feature branches 2022-01-17 21:41:24 +00:00
Paul JohnsonandGitHub 2c44d67686 Modify codeql setup. (#11876) 2022-01-17 14:42:41 +00:00
Nikolaj Geisle 0e9525d216 Added null check 2022-01-17 08:32:13 +01:00
Søren KottalandMichael Latouche 8cd0e5a003 Change logmessages 2022-01-16 13:42:57 +01:00
Erik-Jan WestendorpandGitHub ee1153ee56 Localization: Translate history cleanup labels/descriptions to Dutch (#11835)
* Update nl.xml to show labels in dutch in info content app

* Update nl.xml to show labels in dutch in permissions app
2022-01-16 12:33:49 +01:00
Erik-Jan WestendorpandGitHub 294ea7373e Localization: Rename RelatieTypen to RelatieTypes (Dutch) (#11849)
* Change RelatieTypen to RelatieTypes

* Small 't'
2022-01-16 12:13:17 +01:00
Erik-Jan WestendorpandGitHub 73e99b75b2 Add missing read more translation (#11850) 2022-01-16 05:36:45 +01:00
Paul Johnson 2a4c974568 Move services infra -> core 2022-01-14 11:34:08 +00:00
Paul Johnson 39c3fecc45 Prep for moving some services 2022-01-13 23:46:21 +00:00
Paul Johnson 44261589ae Move repository interfaces to Core 2022-01-13 23:22:19 +00:00
Paul Johnson eb841a7b98 Remove database properties from IScope 2022-01-13 17:44:40 +00:00
Paul Johnson 022042a0ce EntityService should delegate more to repository. 2022-01-13 17:44:39 +00:00
Paul Johnson 4a477c7378 Expose IQuery<T> from ScopeProvider.
So that it can be used without requiring visibility of ISqlContext.
2022-01-13 15:51:30 +00:00
Paul Johnson 3b51850e56 IUmbracoDatabase shouldn't be registered singleton. 2022-01-13 15:28:12 +00:00
0eed641235 Delete temp document type file if validation fails (#11836)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-13 13:12:44 +01:00
81d68f48ad v10 misc - Removed some redundant event handling code. (#11842)
* Removed some redundant event handling code.

* Cleanup

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-13 12:31:25 +01:00
Paul Johnson 8719010e8a Remove unused property from Scope 2022-01-13 10:07:08 +00:00
Paul Johnson d543dccb27 Attempt to make Scope.RobustExit clearer. 2022-01-13 09:56:08 +00:00
Paul Johnson 3258a676c0 ScopeProvider can create its own logger if required. 2022-01-13 09:31:08 +00:00
Paul Johnson 71ce038330 Scope no longer uses MediaFileManager.
Deleting media via services results in a published MediaDeletedNotification
via scope.Notifications, these are fired on Scope.Complete() and picked up
by the registered handlers.
2022-01-13 09:24:30 +00:00
Paul JohnsonandGitHub 52f5269e01 Update AddUnique to support multiple lifetimes. (#11841) 2022-01-13 09:48:38 +01:00
Nikolaj Geisle b6d5465b49 Fix up to Macros in Core project 2022-01-13 09:27:37 +01:00
Bjarke BergandGitHub baba7ffed9 Bugfix - Take ufprt from form data if the request has form content type, otherwise fallback to use the query (#11845) 2022-01-12 13:54:14 +01:00
eb4acba081 Set default tree group for core trees (#11801)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-12 12:35:48 +01:00
18a3133536 v9: Fix max allowed content length on iis & kestrel (#11802)
* Update web.config

* Change web.config to align with v8 default values

* Adjust kestrel options to align with v8

* Add better comment

* added web.config to root

* change web.config to 30mb

* delete obsolete comment

* No reason to have web.config to just have it default

* Add back ConfigureIISServerOptions.cs

* Add obsolete comment, can't link to documentation yet as it doesn't exist

* Apply suggestions from code review

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Add link to documentation

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-01-12 12:32:53 +01:00
Paul Johnson ae2ff856fb Remove IEventDispatcher, it's no longer used. 2022-01-11 17:02:20 +00:00
Nikolaj Geisle 521023372b Fix extension methods 2022-01-11 11:47:31 +01:00
Paul JohnsonandPaul Johnson 8d1fa717ba cherry-pick Misc/obsolete redundant extension (#11838)
* Mark AddUnique<TImplementing> obsolete.

* Remove all internal usages of AddUnique<TImplementing>.
2022-01-11 08:46:56 +00:00
Paul JohnsonandGitHub d9bdd8196c Misc/obsolete redundant extension (#11838)
* Mark AddUnique<TImplementing> obsolete.

* Remove all internal usages of AddUnique<TImplementing>.
2022-01-10 17:03:33 +01:00
Paul JohnsonandGitHub a952d17e74 Make using scoped services in notification handlers less painful. (#11733)
* Add failing test to demo issue with handlers + scoped dependencies.

* Make using scoped services in notification handlers less painful.

* Update comments for accuracy.
2022-01-10 15:31:46 +00:00
Ronald BarendseandGitHub 2155062678 Prune/remove indentation from JSON property values (#11806)
* Use Formatting.None for JSON property data in default value editor

* Use Formatting.None for JSON property data in custom value editors

* Use Formatting.None for JSON property data in Nested Content and Block List

* Use Formatting.None for JSON property tags

* Use Formatting.None for JSON configuration data

* Use Formatting.None in custom JSON converter

* Ensure empty tags and complex editor values are not stored

* Fix NestedContentPropertyComponentTests

* Do not store empty property data

* Use Formatting.None and don't store configured crops (without coordinates)

* Fix JSON deserialization of tags value
2022-01-10 09:32:29 +01:00
Nikolaj GeisleandGitHub 187cac469e Add package tests (#11824) 2022-01-07 08:55:40 +01:00
642c216f94 Serve Media and App_Plugins using WebRootFileProvider (and allow changing the physical media path) (#11783)
* Allow changing UmbracoMediaPath to an absolute path. Also ensure Imagesharp are handing requests outside of the wwwroot folder.

* Let UmbracoMediaUrl fallback to UmbracoMediaPath when empty

* Add FileSystemFileProvider to expose an IFileSystem as IFileProvider

* Replace IUmbracoMediaFileProvider with IFileProviderFactory implementation

* Fix issue resolving relative paths when media URL has changed

* Remove FileSystemFileProvider and require explicitly implementing IFileProviderFactory

* Update tests (UnauthorizedAccessException isn't thrown anymore for rooted files)

* Update test to use UmbracoMediaUrl

* Add UmbracoMediaPhysicalRootPath global setting

* Remove MediaFileManagerImageProvider and use composited file providers

* Move CreateFileProvider to IFileSystem extension method

* Add rooted path tests

Co-authored-by: Ronald Barendse <ronald@barend.se>
2022-01-06 13:35:24 +01:00
Nikolaj GeisleandGitHub d5ba5be096 Merge pull request #11386 from matthewcare/temp-11381
Request Handler Settings for character replacement
2022-01-05 14:56:11 +01:00
Nikolaj Geisle dfc3e56eb7 Check if we're in debug and set IncludeErrorPolicy accordingly 2022-01-05 13:16:07 +01:00
75bb8051bf Prune Image Cropper and Media Picker (v3) values (#11805)
* Clean up redundant/default Umbraco.ImageCropper data

* Fix ToString() and add HasCrops() method

* Re-use crop/focal point pruning for Umbraco.MediaPicker3

* Fix ImageCropperTest

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2022-01-05 11:11:27 +01:00
MoleandGitHub a54c5bb21d V8: Merge package telemetry from V9 (#11785)
* Merge Telemetry classes from V9

* Use TelemetryService in ReportSiteTask

* Migrate tests
2022-01-04 10:11:34 +01:00
Ronald BarendseandMole 763cb70e67 Move member properties to Member Content App (V9 merge regression) (#11768)
* Fix regression after merging to v9

* Update test to align with removed member properties
2022-01-04 08:21:58 +01:00
MoleandBjarke Berg 65c0d8fcec V9: Use current request for emails (#11778)
* Use request url for email

* Fixed potential null ref exceptions

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2022-01-04 08:18:01 +01:00
Mole bbfa975096 Bump versions to non-rc 2022-01-03 15:36:52 +01:00
Nikolaj GeisleandMole 421faf8d43 Fix assignDomain to handle case sensitive operating systems (#11784) 2022-01-03 15:33:32 +01:00
Nikolaj GeisleandGitHub 84fea8f953 Fix assignDomain to handle case sensitive operating systems (#11784) 2022-01-03 15:07:44 +01:00
Bjarne FyrstenborgandMichael Latouche be8e7b285b Fix incorrect styling of actions in tags editor 2021-12-30 03:11:31 +01:00
Bjarne FyrstenborgandMichael Latouche 025db57b03 Fix issue with missing URLs shown in redirect management 2021-12-30 02:49:03 +01:00
Søren KottalandMichael Latouche fad0c948a1 Makes the width of .login-overlay__logo dynamic 2021-12-28 02:33:57 +01:00
Mole 04d20269ab Merge CharCollection and UserDefinedCharCollection
Otherwise only CharCollection would work, and that's obsolete, now you can use either, but UserDefinedCharCollection takes priority
2021-12-22 13:04:40 +01:00
bc6d8b5ece v9: Throw error on duplicate routes (#11774)
* Add conflicting route service and check

* Added testclass

* Cleanup

* Update src/Umbraco.Web.BackOffice/Services/ConflictingRouteService.cs

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Implemented out variable

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-12-22 13:03:38 +01:00
Mole 53e5a25df8 Remove ugly CharCollection hack
By adding a new configuration and mapping the old CharCollection to that, we can get around having to return null the first time, by obsoleting the old one and redirecting to the new GetCharReplacements method
2021-12-22 11:29:04 +01:00
Nikolaj GeisleandGitHub 380b70046f Merge pull request #11753 from SpringIT/v9/bugfix/incorrect-import-document-url-casing
Fix incorrect camelcasing for import document type
2021-12-22 10:05:16 +01:00
Andy ButlandandGitHub 1af09c7f13 Updates Forms and adds Deploy JSON schema. (#11739) 2021-12-21 15:19:55 +01:00
Mole c6d28f01a8 Check for null in DefaultShortStringHelperConfig.WithDefault 2021-12-21 15:15:53 +01:00
Mole 040116c004 Remove TODO
With some testing this seems to be a none-issue, since we don't operate on the keys themselves
2021-12-21 14:48:56 +01:00
76cf5037e5 v9: Move local xml package files to database instead (#11654)
* Move package to database

* Added migration and implemented new repository

* Updated migrations to use proper xml convert

* Fixed save function and renamed createDate to update date

* Updated dependencyInjection

* Updated UmbracoPlan.cs

* Apply suggestions from code review

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Added File check

* Tried using same context as create table

* Fix DTO

* Fix GetById and local package saving

* Fix images when migrating

* Implement deletion of all local files

* Only delete local repo file, not file snapshots

* Remove static package path and use the one we save

* Update package repo to export package and remove check for ids when exporting

* Minor fixes

* Fix so that you can download package after creating

* Update savePackage method to export package afterwards

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-12-21 14:02:49 +01:00
Mole 80cda3364b Make CharCollection return the merged result
Since this is the way it's been previously, we cannot change the behaviour of this. Unfortunately due to how the config binding works, we have to make sure it returns null the very first time it's called by the framework to ensure that overrides actually gets registered.
2021-12-21 13:35:30 +01:00
Bjarke Berg 4abace7e51 Merge remote-tracking branch 'origin/v9/9.2' into v9/dev 2021-12-21 12:54:53 +01:00
Elitsa MarinovskaandBjarke Berg 0ea5f6a02c Adding UmbracoApplicationUrlCheck "Read more" URL 2021-12-21 12:50:44 +01:00
Elitsa MarinovskaandBjarke Berg be53ccf1fd Implement #11776 for v9 2021-12-21 12:50:25 +01:00
72d9f56478 V9: Use current request for emails (#11778)
* Use request url for email

* Fixed potential null ref exceptions

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-12-21 12:48:35 +01:00
Nikolaj GeisleandGitHub 65c0039656 Merge pull request #11779 from umbraco/v9/feature/AB15639-umbracoApplicationUrl-healthcheck
V9: Add a health check for umbraco application url
2021-12-21 12:15:07 +01:00
Mole 6147375a3e Return CharItem instead of IChar from CharCollection
On second thought this is not a breaking change since CharItem implements IChar, so you could still do something lke IEnumerable<IChar> chars = requestHandlerSettings.CharCollection
2021-12-21 11:56:33 +01:00
Nikolaj GeisleandGitHub bd1c392dff Merge pull request #11776 from umbraco/v8/bugfix/AB15639-umbracoApplicationUrl-healthcheck
Add a health check for umbraco application url
2021-12-21 11:35:41 +01:00
Sebastiaan JanssenandGitHub 4240f89534 Adds migration back for v9 for #10450 (#11769) 2021-12-21 11:15:57 +01:00
Mole d77e198d31 Move unit test to the new location 2021-12-21 10:44:36 +01:00
Mole 338bbdd382 Reintroduce IChar interface
Removing a public interface is a breaking change, in case someone is implementing the interface for some reason.
2021-12-21 10:36:25 +01:00
Mole 8a8b1e3247 Rename CharacterReplacement back to CharItem
Since the class is public renaming this would be a breaking change, since if anyone is directly referring to the class it would break
2021-12-21 10:30:19 +01:00
Mole c4f8944add Merge branch 'v9/contrib' into temp-11381 2021-12-21 09:42:39 +01:00
Elitsa Marinovska cc8ea0e8eb Adding UmbracoApplicationUrlCheck "Read more" URL 2021-12-21 08:58:13 +01:00
Elitsa Marinovska 2b2e703e30 Implement #11776 for v9 2021-12-21 08:57:28 +01:00
MoleandGitHub 7a5f72b5eb Use current request for emails (#11775)
* Use current request for emails

* Fix tests
2021-12-21 07:23:08 +01:00
Elitsa Marinovska 68fdf6521e Being more descriptive 2021-12-20 15:21:12 +01:00
Elitsa Marinovska bcabf05995 Adds new translation 2021-12-20 14:37:42 +01:00
Elitsa Marinovska 4e6d09b626 Adds a new Health Check 2021-12-20 14:37:18 +01:00
Andy ButlandandGitHub fd1de8e103 Merge pull request #11757 from umbraco/v8/bugfix/handle-batched-server-messages-on-background-thread
Handled flushing of cache instruction messages when created from handling events in a background thread
2021-12-20 11:43:31 +01:00
Ronald BarendseandGitHub 0ba51f87ea Move member properties to Member Content App (V9 merge regression) (#11768)
* Fix regression after merging to v9

* Update test to align with removed member properties
2021-12-20 08:45:11 +01:00
Bjarke Berg 32b1225291 Updated projects to net6 2021-12-17 16:33:23 +01:00
Sebastiaan Janssen 7006461ba2 Revert "Added notifications toggle to user groups (#10450)"
This reverts commit 4c6d4b9326.
2021-12-16 16:30:18 +01:00
Bjarke Berg 2ec92057c5 Started using nullable reference types.. 2021-12-16 13:44:20 +01:00
Mole a69499a136 Bump versions 2021-12-16 09:10:55 +01:00
Bjarke Berg 11eaf176a9 Fixed a few warnings 2021-12-15 16:22:27 +01:00
Bjarke Berg 6c8ea465e2 Merge remote-tracking branch 'origin/v9/9.2' into v10/dev 2021-12-15 14:49:46 +01:00
nikolajlauridsen e5deb7fe8c Fix LogViewerController ambiguous constructor 2021-12-15 14:42:18 +01:00
Bjarke Berg 47c1058195 Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
2021-12-15 14:41:49 +01:00
Bjarke Berg 694a636746 Fix breaking change 2021-12-15 11:53:16 +01:00
Bjarke Berg d41fca73a1 Unbreak breaking changes 2021-12-15 11:47:45 +01:00
nikolajlauridsen 908c89f4b3 Fix breaking change in ReportSiteTask 2021-12-15 11:38:17 +01:00
Bjarke Berg 99597734ca Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-12-15 08:31:28 +01:00
Bjarke BergandGitHub e991bb79d7 Merge pull request #11762 from umbraco/v9/feature/merge_v8_14-12-2021
Merge v8/dev into v9/dev 14/12/2021
2021-12-14 22:17:25 +01:00
Bjarke Berg 341aac44b5 Fixed tests after merge 2021-12-14 21:24:19 +01:00
Bjarke Berg 69b8b64b54 Merge remote-tracking branch 'origin/v8/dev' into v9/feature/merge_v8_14-12-2021
# Conflicts:
#	src/Umbraco.Core/Constants-Conventions.cs
#	src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Core/Models/IContentType.cs
#	src/Umbraco.Core/Packaging/PackageDataInstallation.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/MemberTypeRepository.cs
#	src/Umbraco.Core/Services/Implement/EntityXmlSerializer.cs
#	src/Umbraco.Core/Services/Implement/MemberService.cs
#	src/Umbraco.Tests/Packaging/PackageDataInstallationTests.cs
#	src/Umbraco.Tests/Persistence/Repositories/MemberTypeRepositoryTest.cs
#	src/Umbraco.Tests/Services/Importing/ImportResources.Designer.cs
#	src/Umbraco.Tests/Services/Importing/ImportResources.resx
#	src/Umbraco.Tests/Umbraco.Tests.csproj
#	src/Umbraco.Web.UI.Client/src/common/directives/components/localization/localize.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/umbdataformatter.service.js
#	src/Umbraco.Web.UI.Client/src/views/content/content.rights.controller.js
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/views/permissions/permissions.html
#	src/Umbraco.Web.UI.Client/src/views/member/apps/content/content.html
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web.UI/Umbraco/config/lang/da.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/fr.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/nl.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/zh.xml
#	src/Umbraco.Web.UI/config/BackOfficeTours/getting-started.json
#	src/Umbraco.Web/HealthCheck/Checks/Security/ExcessiveHeadersCheck.cs
#	src/Umbraco.Web/Models/ContentEditing/MemberDisplay.cs
#	src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs
#	src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs
#	src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesMapper.cs
#	src/Umbraco.Web/Models/Mapping/TabsAndPropertiesMapper.cs
#	src/Umbraco.Web/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
#	src/Umbraco.Web/Trees/ContentTreeController.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
#	tests/Umbraco.Tests.Integration/Umbraco.Examine.Lucene/Services/Importing/SingleDocType-WithCleanupPolicy.xml
2021-12-14 20:13:42 +01:00
2268b1e187 Package telemetry (#11738)
* Add TelemetryService

Currently it only allows you to get a list of the name of all the installed packages

* Create model class for package telemetry

And move the telemetry report data out of ReportSiteTask

* Add version as an option in package manifest

* Use TelemetryService to generate telemetry data

Instead of doing it directly in the ReportSiteTask

* Seal TelemetryService

This should not be overwritten

* Add option for package creators to opt out

* Add global setting to restrict package telemetry

* Add TelemetryService unit tests

* Add ManifestParser tests for new properties

* Clean

* Update src/Umbraco.Core/Telemetry/TelemetryService.cs

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Create interface for telemetry service

* Use IOptionsMonitor instead of IOptions

However I chose to use CurrentValue since according to microsoft: "Some file systems, such as Docker containers and network shares, may not reliably send change notifications.", additionally TelemetryService only runs once pr. day, so it shouldn't be too much of an issue that it doesn't cache the result.

* Use is false instead of negation

It's a bit more readable

* Track restrict package telemetry value

* Save RestrictPackageTelemetry in report data

Not packages, since it'll be the same for all packages

* Fix TelemetryService unit tests

* Clean

* Update src/Umbraco.Core/Telemetry/ITelemetryService.cs

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Remove RestrictPackageTelemetry

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-12-14 16:09:31 +01:00
MoleandGitHub cd022af2d7 Merge pull request #11759 from PerplexDaniel/bugfix/11758_umbraco-cshtml-compilation
Ensure Umbraco Razor files are compiled into <project>.Views.dll
2021-12-14 15:47:37 +01:00
Søren KottalandSebastiaan Janssen 50da4a77de Adds support for simple markdown in property descriptions, and extended property descriptions (#11628)
* Adds support for simple markdown in property descriptions, and extended descriptions

* removes max-width for property descriptions (doesn't make sense to limit these IMO)

(cherry picked from commit 8393fdecfb)
2021-12-14 14:28:02 +01:00
Sebastiaan Janssen a3b721bb4c Merge branch 'v8/contrib' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/views/permissions/permissions.html
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-12-14 14:19:59 +01:00
Michael LatoucheandGitHub e65baae814 Remove the need of Smtp.Host config when using PickupDirectoryLocation (#11548) 2021-12-14 13:56:10 +01:00
Sebastiaan Janssen bc80892f51 Merge branch 'v9/contrib' into v9/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/localization/localize.directive.js
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Languages/languages.ts
2021-12-14 13:32:46 +01:00
Daniël Knippers 95efeeabcf Ensure Umbraco Razor files are compiled into <project>.Views.dll
It worked properly if the Umbraco files are on disk before a build
but when the files are not there yet or a dotnet clean is done first the
files are not compiled. This is often the case on build servers that start
with a clean working directory for each build.

Using this target we simply ensure the files are included as "Content"
which Razor will scan for .cshtml files in their "ResolveRazorGenerateInputs"
target.
2021-12-14 12:25:25 +01:00
Andy Butland d9a4c50a73 Refactored message related methods to allow provision of an HttpContext, and used this in DistributedCacheBinder to ensure messages created are flushed from the same context. 2021-12-14 09:23:55 +01:00
Maarten Mensink bbbfb99a39 update key for importdocumenttype 2021-12-10 11:26:51 +01:00
Maarten Mensink 5580f80035 fix incorrect camelcasing
closes #11752
2021-12-10 10:33:35 +01:00
Bjarke Berg 0b39741309 Bump version 2021-12-07 08:22:29 +01:00
Elitsa MarinovskaandGitHub a6903d8abe V9: Display configured log levels (#11715)
* Adding ILogLevelLoader to get Serilog level values (global one and umbraco) and the corresponding dependencies

* Obsoleting old methods

* Fix tests

* Front-end changes

* Changes requested in a review
2021-12-06 11:06:55 +01:00
Paul JohnsonandGitHub 1c36af8c7e Map both settings and content data via property editors. (#11722)
For persistence and rendering property editor frontend components.
2021-12-06 10:35:44 +01:00
Jan SkovgaardandGitHub b4059ecfec Listview Datatype: Change from using delete icon to "Remove" text in layouts (#11624)
* Add overlay and texts for overlay

* Change remove icon to remove text
2021-12-06 09:05:08 +10:00
Michael LatoucheandGitHub 6824519cdb Fixes fallback value ignored in Localize directive (#11674)
* addig some French labels

* add intial inner html as fallback value
2021-12-06 08:51:36 +10:00
4c6d4b9326 Added notifications toggle to user groups (#10450)
* Added notifications toggle

* Review: Update DatabaseDataCreator.cs

Co-authored-by: Ronald Barendse <ronald@barend.se>

* Added migration

* Fix new file was excluded

* adapt DB  migration

Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Michael <michael@crossingpaths.be>
2021-12-05 13:27:15 +01:00
Bjarke Berg 568dc19929 Merge remote-tracking branch 'origin/v9/9.1' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
2021-12-03 07:20:19 +01:00
Bjarke BergandGitHub 915f1cb34c V9: Fix for migration of non-default configurated users/members (#11684)
* https://github.com/umbraco/Umbraco-CMS/issues/11366
Fallback to try login using super legacy HMACSHA1 even when the algorithm is stated as being HMACSHA256. The issue is that v8 saves HMACSHA256 on the user, but when configured to use legacy encoding it actually uses HMACSHA1

* Support migration of members with:
UseLegacyEncoding+Clear
UseLegacyEncoding+Encrypted (Requires machine key)
UseLegacyEncoding+Hashed

* Fixes unit tests

* Avoid exceptions + unit tests

* Save unknown algorithm if we dont know it, instead of persisting a wrong algorithm.

* Added setting to enable clear text password rehashes.

* Removed support for migration of clear text passwords

* Fixed unit test
2021-12-02 10:54:24 +00:00
fce97314bd Cherry-pick: support import/export for doc type history cleanup policy (#11708)
* cherry-pick 13a51d32 (V8 History cleanup import/export)

Support import/export for doc type history cleanup policy (#11660)

* Support import/export for doc type history cleanup policy

* Support unset/null history cleanup value

* Resolve issue when api endpoints called without cleanup policy.
noop isn't good enough as map fails for response.

* null conditional vs null coalesce assignment

* Don't overwrite existing policy if omitted in import XML

* Update history cleanup warning and translations

* Change history cleanup alert to infomational styling

* Remove margin around history cleanup config

Co-authored-by: Ronald Barendse <ronald@barend.se>
# Conflicts:
#	src/Umbraco.Core/Models/IContentType.cs
#	src/Umbraco.Core/Packaging/PackageDataInstallation.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs
#	src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs
#	src/Umbraco.Tests/Packaging/PackageDataInstallationTests.cs
#	src/Umbraco.Tests/Services/Importing/ImportResources.Designer.cs
#	src/Umbraco.Tests/Umbraco.Tests.csproj
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.resx
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/Importing/SingleDocType-WithCleanupPolicy.xml

* Remove namespace aliases

* Update IContentTypeWithHistoryCleanup documentation

Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-12-02 11:37:12 +01:00
Paul JohnsonandGitHub 08f106a23f Fix smidge bundles not always invalidated between backoffice versions. (#11700)
* Introduced new smidge CacheBuster with sensible defaults.

* Bring back reset functionality in SmidgeRuntimeMinifier

* Clearer obsolete messaging.
2021-12-02 11:32:19 +01:00
Nikolaj GeisleandMole 6c5851f556 v9: Remove install endpoint as valid endpoint (#11710)
* Remove installer endpoint from valid candidates

* Removed unrelevant change
2021-12-02 10:07:47 +01:00
Nikolaj GeisleandGitHub dd7805552f v9: Remove install endpoint as valid endpoint (#11710)
* Remove installer endpoint from valid candidates

* Removed unrelevant change
2021-12-02 10:01:23 +01:00
249d87297d V9: Fix backoffice javascript loading slowly (#11714)
* Update Smidge

* Add SmidgeRequestHelper to override the compression order

By default Smidge will always try and use Brotli (br), this compression is good in the the sense that it compresses the file quite a bit, but sadly it's super super slow, like 10 seconds for backoffice js slow.

* Remove unnecessary new keyword

Co-authored-by: nikolajlauridsen <nel@umbraco.dk>
2021-12-01 19:55:59 +01:00
980cf00cba V9: Fix backoffice javascript loading slowly (#11714)
* Update Smidge

* Add SmidgeRequestHelper to override the compression order

By default Smidge will always try and use Brotli (br), this compression is good in the the sense that it compresses the file quite a bit, but sadly it's super super slow, like 10 seconds for backoffice js slow.

* Remove unnecessary new keyword

Co-authored-by: nikolajlauridsen <nel@umbraco.dk>
2021-12-01 19:53:27 +01:00
Bjarke Berg 40119219f8 Bumb version to 9.1.2 2021-12-01 19:06:23 +01:00
Erik-Jan WestendorpandGitHub 5d2c950073 Rename AddOEmbedProvider() and Obsolete OEmbedProviders() (#11703)
* Rename AddOEmbedProvider to AddEmbedProvider

* Obsolete  OEmbedProviders()

Obsolete OEmbedProviders() and proxy it to a new EmbedProviders()

* Rename EmbedProviderBase to OEmbedProviderBase

Rename EmbedProviderBase to OEmbedProviderBase
Add an obsoleted  class EmbedProviderBase
Add todo's to all implementations

* remove unintentionally comment

Rem: automatic tests failures not linked to this PR.
2021-11-30 04:10:54 +01:00
Jeavon LeopoldandMichael Latouche b86505d8f2 Change httpsCheckInvalidUrl to healthCheckInvalidUrl 2021-11-28 12:58:02 +01:00
Erik-Jan WestendorpandGitHub 4cd0544c65 Create an extension methods to easily append to CollectionBuilders (#11691)
* Create UmbracoBuilder.ContentApps.cs

Add an extension method to register content apps to make it possible to register content apps in the startup.cs class.

* Create UmbracoBuilder.CollectionsBuilders

* White space

* Rename OEmbedProvider to EmbedProvider

* Rename EmbedProvider to OEmbedProvider
2021-11-26 10:18:45 +01:00
Paul JohnsonandGitHub 6a2a5d7fc9 Bugfixes for MNTP / EntityController (#11685)
* Added EntityController.GetUrlsByIds support for int & guid + update MNTP

Fixes issue with MNTP (for 8.18) in a partial view macro - GH #11631

Renamed GetUrlsByUdis to match, don't do this in v9 as it would be
breaking there, instead mark it obsolete.

TODO: v9 ensure integration test coverage, more painful here as no
WebApplicationFactory.

* Added partial test coverage for GetUrlsByIds.

This doesn't actually work in the backoffice because of GH #11448

So lets fix that next.

* Failing test demonstrating #11448

* Fix for #11448 getByIds doesn't work as expected.

ParameterSwapControllerActionSelectorAttribute - cached body survived between requests.

* Expand on sync vs async comment for future confused souls.

* Might aswell cache parsed json vs string for performance

* Make ParameterSwapControllerActionSelector remarks more accurate.

* Share deserialized request body between action constraint and model binder

* Be more defensive with RequestBodyAsJObject HttpContext item

Only store if deserialize success.
Don't assume key being present means can cast as JObject.

* Nest constant a little deeper.

* Final defensive tweak
2021-11-25 13:47:59 +01:00
Nikolaj GeisleandGitHub a0695850cb Merge pull request #11587 from umbraco/v8/bugfix/membership-contentapp
Move member properties to Member Content App
2021-11-24 10:45:53 +01:00
Nikolaj GeisleandGitHub b5a895e269 Merge pull request #11349 from umbraco/v9/feature/update-imagesharp-web
Update to SixLabors.ImageSharp.Web 1.0.4 and remove processing order workarounds
2021-11-24 10:24:23 +01:00
Nikolaj GeisleandGitHub 004d3410e9 Merge pull request #11359 from umbraco/v9/feature/imagesharp-cachecontrol-immutable
Change Cache-Control header when cache buster value is present
2021-11-24 09:48:51 +01:00
Nikolaj Geisle c19463b8ae Revert changes in Umbraco.Web.Common.csproj 2021-11-24 09:22:47 +01:00
Nikolaj Geisle e0701ccd48 Merge branch 'v9/dev' into v9/feature/update-imagesharp-web
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Users/users.ts
#	src/Umbraco.Web.UI/umbraco/config/lang/cy.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/da.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/it.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/nl.xml
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/DataTypes/dataTypes.ts
2021-11-24 09:11:52 +01:00
inetzoandGitHub 7538f0c4ad Apply pickDate-config setting to hide calendar in datepicker (#11632)
* Apply pickDate-config setting to hide calendar in datepicker 

A time-only picker is only possible if the format is configured like "hh:mm:ss". By using the pickDate config it is possible to determine whether the calendar should be shown or not, instead of depending on a certain time format.

* Changed timeformat to accept both hh:mm:ss and hh:mm

Edited the regex to math times with and without seconds. The calendar should not be shown anymore if the timeformat is (H)H:mm:ss or (H)H:mm.

* Removed unused config property pickDate

config.pickDate is never used and can be removed.

* remove pickDate config from datepickers config
2021-11-24 02:07:35 +01:00
13a51d3267 Support import/export for doc type history cleanup policy (#11660)
* Support import/export for doc type history cleanup policy

* Support unset/null history cleanup value

* Resolve issue when api endpoints called without cleanup policy.
noop isn't good enough as map fails for response.

* null conditional vs null coalesce assignment

* Don't overwrite existing policy if omitted in import XML

* Update history cleanup warning and translations

* Change history cleanup alert to infomational styling

* Remove margin around history cleanup config

Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-11-23 18:53:29 +00:00
Rasmus SöderströmandGitHub f7be5a5dec Add functionality for resetting to the initial state. (#11593)
* Add functionality for resetting to the initial state.

* Refactoing initData
2021-11-23 03:02:32 +01:00
Jan SkovgaardandGitHub 16c1359a90 Focus lock improvements (#11435)
* Call onInit directly and add a timeout of 500ms

* Don't include hidden input types in the selector

* Ensure that the "next" focusable element is selected in case the first element is either the sub-nav or the ellipsis type

* Make sure tab is not selected first
2021-11-23 01:41:51 +01:00
Bjarke Berg 9b5ab74d5b missing lock file 2021-11-22 19:54:50 +01:00
Bjarke Berg 78dc2d5721 Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts:
#	build/azure-pipelines.yml
#	src/Umbraco.Core/Routing/DefaultUrlProvider.cs
#	src/Umbraco.Core/Routing/UrlProviderExtensions.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/BTree.ContentDataSerializer.cs
#	src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentRepository.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	tests/Umbraco.Tests.AcceptanceTest/package-lock.json
#	tests/Umbraco.Tests.AcceptanceTest/package.json
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs
2021-11-22 19:43:20 +01:00
Bjarke Berg 351c37abc0 Merge remote-tracking branch 'remotes/origin/v8/dev' into v9/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Models/ContentVersionMeta.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/DocumentVersionRepository.cs
#	src/Umbraco.Core/Services/Implement/ContentService.cs
#	src/Umbraco.Core/Services/Implement/DefaultContentVersionCleanupPolicy.cs
#	src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs
#	src/Umbraco.Tests/Persistence/Repositories/DocumentVersionRepository_Tests_Integration.cs
#	src/Umbraco.Tests/Services/ContentVersionCleanupService_Tests_UnitTests.cs
#	src/Umbraco.Tests/Services/DefaultContentVersionCleanupPolicy_Tests_UnitTests.cs
#	src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/config/umbracoSettings.Release.config
#	src/Umbraco.Web/Cache/DistributedCacheBinder.cs
#	src/Umbraco.Web/Editors/ContentController.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
2021-11-22 18:53:38 +01:00
33f00a508f V9/feature/merge v8 22/11/2021 (#11681)
* Changes to GetReducedEventList (#11444)

* Instead of only using first event, we combine events of same type into a single event with multiple arguments

* Added generic method to DRY up grouping logic.

* Renamed method to better reflect new functionality.

Co-authored-by: Andy Butland <abutland73@gmail.com>

* Merge pull request #11360 from umbraco/v8/bugfix/11057-mandatory-image-not-validating-after-first-time-failure

Fixes 11057: Mandatory Image not validating after first time failure

(cherry picked from commit 5cc70d2160)

* Additional optional sanitization of scripting in TinyMCE (#10653)

(cherry picked from commit f68dba7bcb)

* Bump version to 8.17.1

* Hide localization key while loading

* ContentVersion cleanup backoffice UI (#11637)

* init rollback ui prototype

* add busy state to button, deselect version, add pagination status

* add localisation

* style current version

* disable rollback button when nothing is selected

* stop click event

* Endpoints for paginated content versions.
Light on tests, tight on time.

* Endpoints to "pin" content versions

* camel case json output.
Not sure why json formatter not set for controller, bit risky to add it now

* wire up paging

* wire up pin/unpin

* rename getPagedRollbackVersions to getPagedContentVersions

* prevent selection of current version and current draft

* add current draft and current version to UI

* remove pointer if the row is not selectable

* Improve warning for globally disabled cleanup feature.

* Fix current loses prevent cleanup state on publish.

* Added umbracoLog audit entries for "pin" / "unpin"

* Match v9 defaults for keepVersions settings

* Fix - losing preventCleanup on save current with content changes

* update pin/unpin button labels

* fix pagination bug

* add missing "

* always send culture when a doc type can vary

Co-authored-by: Mads Rasmussen <madsr@hey.com>

* Bugfix - DocumentVersionRepository.Get should not join culture variation

* Bugfix - Missing write lock

* Bugfix - Policy returns items to delete not items to keep.
Switch to inverse behavior.

Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Paul Johnson <pmj@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-11-22 18:50:10 +01:00
Bjarke Berg 579613c83c Revert version 2021-11-22 17:45:49 +01:00
Bjarke Berg 104819084a Merge remote-tracking branch 'origin/v9/9.1' into v9/dev 2021-11-22 17:42:47 +01:00
Paul JohnsonandGitHub b58a0cf0a5 Ensure Umbraco static assets included when publish --no-build (#11665)
* Ensure Umbraco static assets included when publish --no-build

Closes #11662

* Bump version to 9.1.1
2021-11-22 09:30:54 +01:00
c2e9ccea9f Member group picker actions (#10096)
* Add remove all property action

* Disable action if no current ids or new ids

* Use vm

* resolve conflict

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 12:38:42 +10:00
e56c1cc208 Fix the introduction tour getting lost if dashboard is not shown (#10597)
* Add conditional step that navigates users to the content section

* tweaked the text in the sections step as it refers to being in the content section, which may not always be the case (hence this PR)

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 10:46:29 +10:00
BatJanandMichael Latouche 1440213ef6 Add missing fallback values and fix en and en_us.xml keys 2021-11-22 01:39:50 +01:00
Jan SkovgaardandGitHub 97071133c7 Documenttypes Permissions view: Add missing fallback texts and fix styling (#11619)
* Add missing fallback texts

* Change styling of "history" info
2021-11-22 01:20:38 +01:00
12004a7854 Fix typo (#11027)
* Fix typo retrive to be retrieve throughout project.

* * Retain uppercase in descriptions.
* Add new directive fixing typo.
* Revert existing directive and template to previous to prevent breaking change.

* * Swap directives.

* * Revert.

* obsoletes public methods with typos. probably should find all refs and update those too

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 10:15:46 +10:00
ccffd264c9 fixes #9894 . Truncate block editor model title to 100 chars. (#10303)
* fixes #9894 . Truncate block editor model title to 100 chars.

* update to move max into controller logic

* null check name, just in case...

Co-authored-by: Mario Lopez <mario@monkii.com>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 09:43:43 +10:00
3b0da9be55 #7902 displaying messages on cancelled item creation (#7943)
* #7902 displaying messages on cancelled item creation

* remove debugger

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-22 09:12:01 +10:00
BatJanandNathan Woulfe 17f6899f5d Add missing fallback texts 2021-11-22 08:58:20 +10:00
BatJanandNathan Woulfe 77d3e17467 Add missing fallback text 2021-11-22 08:56:25 +10:00
Bjarne FyrstenborgandGitHub a82ee72056 Ensure crop size in shown for slim thumbnails (#11481)
* Ensure there is space enough to render thumbnail size label

* Simplify crop size label

* Add original gray color for min/max icons and adjust margin to compensate for slider handle
2021-11-22 08:55:37 +10:00
BatJanandMichael Latouche a9d2b0307f Add missing fallback text 2021-11-21 03:57:21 +01:00
BatJanandMichael Latouche 2605d7a03b Add missing fallback texts 2021-11-21 03:19:48 +01:00
BatJanandMichael Latouche 2f13bbfc52 Add missing fallback texts 2021-11-21 03:07:06 +01:00
Bjarke Berg 8fd013819d Merge remote-tracking branch 'origin/v9/9.1' into v9/dev 2021-11-19 09:29:45 +01:00
61f459670c Update to .NET6 and ASP.NET Core 6 (#11652)
* Changed targetFramework in nuspec file & project files + updated NuGet dependencies

* Updated .net version in pipelines

* Updated .net version in templates

* Update more dependencies

* Fixed ambiguous call to DistinctBy() - part of Umbraco.Extensions and System.Linq

* Disabling the Razor source generators in .NET 6 due to error: "Cannot find the fallback endpoint specified by route values..."

* Fixed unit tests

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-11-18 15:35:42 +01:00
028648786e Fix optional id route param inferred as FromQuery (#11557)
* Fix optional id route param inferred as FromQuery

Closes #11554

* Prevent breaking change, UmbracoJsonModelBinderConvention is public class

* Set missing binding source for complex types

* Update UmbracoApiBehaviorApplicationModelProvider.cs

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-11-18 15:20:53 +01:00
082e703863 Migrated / Rewritten ScopedNuCacheTests (#11636)
* Migrated / Rewritten ScopedNuCacheTests

* Cleanup

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-11-18 13:34:10 +01:00
bfd17846b7 V9: Fix granular permissions for user groups (#11577)
* Fixes the treepicker for granular permissions to use a select callback instead of submit with the full selection

* Introduced UserGroup2NodeDto table, to allow users to save empty arrays of permissions

* Cleanup

* Fixed null issue in audit logging

* Fixed migration

* Fixed GetDeleteClauses

* Fixes for SqlCE, do not run multiple comments on one sql request

* Align behavior between content>permissions and usergroups>granularPpermissions

- It is now possible to save default values in content>permissions like in usergroups>granularPpermissions
- It is now possible to differentiate between we save an empty collection and we remove the granular permissions in content>permissions

* Fix comments

Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-11-18 11:20:49 +01:00
Michael LatoucheandGitHub 819bc21daa addig some French labels (#11545) 2021-11-18 08:18:22 +10:00
BatJanandNathan Woulfe 43db605c31 Add missing fallback texts 2021-11-18 07:59:14 +10:00
Kevin MeilanderandNathan Woulfe 1125644eb3 in media selection, made folder name clickable to select into a folder. Added not allowed cursor on not allowed items. 2021-11-18 07:57:44 +10:00
SibrenandGitHub ba1518bc5c V8 Changed 'bevestig nieuw password' to 'bevestig nieuw wachtwoord' (#11649)
* V8 Changed 'bevestig nieuw password' to 'bevestig nieuw wachtwoord'

* Added extra missing translation: minimum x character(s) to go
2021-11-17 16:03:24 +01:00
BatJanandMichael Latouche 47da02c5f1 Add missing fallback text 2021-11-17 03:11:48 +01:00
Søren KottalandGitHub 8393fdecfb Adds support for simple markdown in property descriptions, and extended property descriptions (#11628)
* Adds support for simple markdown in property descriptions, and extended descriptions

* removes max-width for property descriptions (doesn't make sense to limit these IMO)
2021-11-17 10:38:15 +10:00
b0a4a92f57 ContentVersion cleanup backoffice UI (#11637) (#11644)
* ContentVersion cleanup backoffice UI (#11637)

* init rollback ui prototype

* add busy state to button, deselect version, add pagination status

* add localisation

* style current version

* disable rollback button when nothing is selected

* stop click event

* Endpoints for paginated content versions.
Light on tests, tight on time.

* Endpoints to "pin" content versions

* camel case json output.
Not sure why json formatter not set for controller, bit risky to add it now

* wire up paging

* wire up pin/unpin

* rename getPagedRollbackVersions to getPagedContentVersions

* prevent selection of current version and current draft

* add current draft and current version to UI

* remove pointer if the row is not selectable

* Improve warning for globally disabled cleanup feature.

* Fix current loses prevent cleanup state on publish.

* Added umbracoLog audit entries for "pin" / "unpin"

* Match v9 defaults for keepVersions settings

* Fix - losing preventCleanup on save current with content changes

* update pin/unpin button labels

* fix pagination bug

* add missing "

* always send culture when a doc type can vary

Co-authored-by: Mads Rasmussen <madsr@hey.com>
# Conflicts:
#	src/Umbraco.Core/ContentEditing/ContentVersionMetaViewModel.cs
#	src/Umbraco.Core/Models/HistoricContentVersionMeta.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.Tests/Persistence/Repositories/DocumentVersionRepository_Tests_Integration.cs
#	src/Umbraco.Tests/Services/ContentVersionCleanupService_Tests_UnitTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js
#	src/Umbraco.Web.UI/config/umbracoSettings.Release.config
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Umbraco.Web.csproj

* Added tests

* Misc - missed translation update

* Bugfix - DocumentVersionRepository.Get should not join culture variation

* Bugfix - Missing write lock

* Removed unnecessary view model

* Misc - kill some warnings

* Misc - Kill some more warnings

* Fixed cypress rollback test

* Bugfix - Policy returns items to delete not items to keep.
Switch to inverse behavior.

# Conflicts:
#	src/Umbraco.Tests/Services/DefaultContentVersionCleanupPolicy_Tests_UnitTests.cs

Co-authored-by: Paul Johnson <pmj@umbraco.com>
2021-11-16 13:04:31 +01:00
Paul Johnson a86baa4798 Bugfix - Policy returns items to delete not items to keep.
Switch to inverse behavior.
2021-11-16 11:53:16 +00:00
Paul Johnson bdbc38e280 Bugfix - Missing write lock 2021-11-16 10:13:20 +00:00
Paul Johnson cf9a6671a9 Bugfix - DocumentVersionRepository.Get should not join culture variation 2021-11-16 08:53:44 +00:00
d89725bd48 ContentVersion cleanup backoffice UI (#11637)
* init rollback ui prototype

* add busy state to button, deselect version, add pagination status

* add localisation

* style current version

* disable rollback button when nothing is selected

* stop click event

* Endpoints for paginated content versions.
Light on tests, tight on time.

* Endpoints to "pin" content versions

* camel case json output.
Not sure why json formatter not set for controller, bit risky to add it now

* wire up paging

* wire up pin/unpin

* rename getPagedRollbackVersions to getPagedContentVersions

* prevent selection of current version and current draft

* add current draft and current version to UI

* remove pointer if the row is not selectable

* Improve warning for globally disabled cleanup feature.

* Fix current loses prevent cleanup state on publish.

* Added umbracoLog audit entries for "pin" / "unpin"

* Match v9 defaults for keepVersions settings

* Fix - losing preventCleanup on save current with content changes

* update pin/unpin button labels

* fix pagination bug

* add missing "

* always send culture when a doc type can vary

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-11-16 08:24:12 +01:00
Daniel ShuyandBjarke Berg e2fdf43a7f contentpicker: Don't validate minNumber/maxNumber if 0 2021-11-16 07:02:52 +01:00
BatJanandNathan Woulfe b8f20d4548 Add missing fallback value 2021-11-16 13:10:21 +10:00
BatJanandNathan Woulfe e900197907 Wrap texts in umb-box 2021-11-16 13:08:12 +10:00
BatJanandMichael Latouche a9cf12a600 Add "enable js" message changes + removal of the http-equiv meta tag 2021-11-16 02:26:45 +01:00
Matt DarbyandGitHub 0a626c6c2a Replace .first() with localize (#11341)
Replaced usage of first() with localize to target specific action in context menu
2021-11-16 09:25:04 +10:00
Daniel ShuyandNathan Woulfe 284b4b9253 contentpicker: Don't validate minNumber/maxNumber if 0 2021-11-16 07:22:12 +10:00
Paul JohnsonandBjarke Berg af942b2558 V9/bugfix/fix lucene immense raw fields prevent indexing (#11599)
* Added failing test to demonstrate issue with large raw_ fields.

* Switched to StoredField to avoid indexing error for immense fields.

StringField indexes all the content as a single token and has a max
length of 32766.

StoredField does not analyze/index the field but enables retrieval with
luceneSearcher.Doc(docId)

Closes GH #11487
2021-11-15 14:24:54 +01:00
Paul JohnsonandGitHub 958cd03b00 V9/bugfix/fix lucene immense raw fields prevent indexing (#11599)
* Added failing test to demonstrate issue with large raw_ fields.

* Switched to StoredField to avoid indexing error for immense fields.

StringField indexes all the content as a single token and has a max
length of 32766.

StoredField does not analyze/index the field but enables retrieval with
luceneSearcher.Doc(docId)

Closes GH #11487
2021-11-15 14:24:20 +01:00
Paul JohnsonandBjarke Berg f64894d37b Make PublishedContentQueryAccessor usable (#11601)
* Make PublishedContentQueryAccessor usable

Closes #11319

* Make xmldocs for IPublishedContentQueryAccessor more helpful.
2021-11-15 14:23:35 +01:00
Paul JohnsonandGitHub d147d7d412 Make PublishedContentQueryAccessor usable (#11601)
* Make PublishedContentQueryAccessor usable

Closes #11319

* Make xmldocs for IPublishedContentQueryAccessor more helpful.
2021-11-15 14:23:02 +01:00
32d8e0bb96 v9: Fix tests on Linux (#11586)
* downgraded cypress, updated package

* Fixed language test

* Fix language test

* Fixed routing tests to wait for popup

* Publish test artifacts

* Added better element to wait on

* Fix routing tests for linux

* Fix language tests on linux

* Stablize tabs tests

* Implement waiting for inner tree like in content tests

* Assert that we are in settings section so we dont click an element that doesnt exist

* Fixed rollback by not doing cy.reload()

* Fix language test with correct wait

* Stabilize dataTypes by moving API Call, and stabilize systemInformation.ts test by waiting for success notification

* Fix dataTypes, tabs and template tests

* Update node to newer version in package-lock.json and fix template test

* Implemented cy.wait to test if it is because we are too fast

* Added comments

* Bigger wait

* Try another wait instead of magic numbers

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-11-15 14:20:10 +01:00
5d19c663cd v9: Fix tests on Linux (#11586)
* downgraded cypress, updated package

* Fixed language test

* Fix language test

* Fixed routing tests to wait for popup

* Publish test artifacts

* Added better element to wait on

* Fix routing tests for linux

* Fix language tests on linux

* Stablize tabs tests

* Implement waiting for inner tree like in content tests

* Assert that we are in settings section so we dont click an element that doesnt exist

* Fixed rollback by not doing cy.reload()

* Fix language test with correct wait

* Stabilize dataTypes by moving API Call, and stabilize systemInformation.ts test by waiting for success notification

* Fix dataTypes, tabs and template tests

* Update node to newer version in package-lock.json and fix template test

* Implemented cy.wait to test if it is because we are too fast

* Added comments

* Bigger wait

* Try another wait instead of magic numbers

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-11-15 14:19:34 +01:00
Bjarke BergandGitHub 169fc7c12f Merge pull request #11609 from umbraco/v9/bugfix/AB14726-fix-user-invite
Fix sending invite emails
2021-11-15 13:13:31 +01:00
Bjarke Berg fc49c8ac4e Merge remote-tracking branch 'origin/v9/9.1' into v9/9.1 2021-11-15 13:00:49 +01:00
Andy ButlandandBjarke Berg 3465bff6f3 Inverted conditional on linking user for clarity. 2021-11-15 12:59:43 +01:00
Andy ButlandandBjarke Berg 0217bdc063 Added null check for external login invocation when linking users. 2021-11-15 12:59:34 +01:00
Andy ButlandandBjarke Berg 808ba62b34 Added suggestions from code review. 2021-11-15 12:58:23 +01:00
Rick ButterfieldandBjarke Berg e5a5d1e5b2 Remove unreachable code 2021-11-15 12:58:15 +01:00
Rick ButterfieldandBjarke Berg cb15c2a413 Fixes #11591 2021-11-15 12:57:58 +01:00
Rick ButterfieldandBjarke Berg 25e82ddc14 Fix for #11591 2021-11-15 12:56:09 +01:00
Bjarke BergandGitHub cabc30341a Merge pull request #11592 from rickbutterfield/feature/temp-11591
v9: Fix for OAuth ExternalLogin
2021-11-15 12:54:44 +01:00
Andy Butland fe396ba0cf Inverted conditional on linking user for clarity. 2021-11-15 11:45:00 +01:00
Andy Butland c6176a0ae7 Added null check for external login invocation when linking users. 2021-11-15 11:42:04 +01:00
Andy Butland 3d43815981 Added suggestions from code review. 2021-11-15 11:17:47 +01:00
BatJanandMichael Latouche e07a2b1abd Add missing text fallback 2021-11-15 03:07:51 +01:00
Enkel MediaandNathan Woulfe c59d799557 Update docs for localize.directive.js
Updated docs to add information about tokens and watch-tokens.
2021-11-15 09:14:35 +10:00
ea9d6919a8 Cy create language (#11546)
* add create language test

* add create language test

* fix bug, move test to new folder and add type definitions

* update to use culture command

Co-authored-by: Jesper <jmh@umbraco.dk>
2021-11-14 02:20:17 +01:00
Bjarke Berg caa49a1463 package-lock 2021-11-12 15:32:34 +01:00
Bjarke Berg 1862b81418 Unbreak 2021-11-12 15:32:13 +01:00
Patrick de MooijandBjarke Berg baaed139c3 Updated version to 9.1.0 2021-11-12 14:55:12 +01:00
Bjarke Berg b0e39fe548 Merge branch 'v9/dev' into v9/9.1 2021-11-12 14:53:11 +01:00
Nikolaj GeisleandBjarke Berg d66fde6056 Fix after cherry pick 2021-11-12 14:42:53 +01:00
15fa9e1bc1 v9: Don't load all translation files (#11576)
* Update systemInformation.ts

* Added lazy loading

* Update systemInformation.ts

* Update systemInformation.ts

* Use CharArrays.ForwardSlash instead of hardcoded string

* Align braces

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-11-12 14:37:50 +01:00
Bjarke BergandGitHub 581934da00 Merge pull request #11608 from umbraco/v9/task/obsolete-unneeded-deploy-events
Obsoletes events added for local database initialization for Umbraco Cloud that are no longer required.
2021-11-12 07:47:12 +01:00
55de670246 makes the log viewer prettier (#6890)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-11-12 15:43:09 +10:00
Elitsa Marinovska b8cd731b0d Don't send null but fall back to the user's email in case SMPT settings are not configured in appsettings 2021-11-11 15:07:51 +01:00
Andy Butland e634c818d0 Obsoletes events added for local database initialization for Umbraco Cloud that are no longer required. 2021-11-11 15:02:06 +01:00
Nikolaj Brask-NielsenandMichael Latouche d9c7640a8d Fixes userpicker filter
#11520
2021-11-11 13:13:21 +01:00
Nikolaj GeisleandMichael Latouche 837cef0b14 Update user test to use constants 2021-11-11 13:06:09 +01:00
Rick ButterfieldandGitHub f92070cee9 v9: Health Check still references web.config instead of appsettings.json (#11600)
* Fix an old reference to web.config instead of appsettings.json

* Match en_us.xml to en.xml

* adding FR translations
2021-11-11 01:00:04 +01:00
f5ea5df8f3 v9: Don't load all translation files (#11576)
* Update systemInformation.ts

* Added lazy loading

* Update systemInformation.ts

* Update systemInformation.ts

* Use CharArrays.ForwardSlash instead of hardcoded string

* Align braces

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-11-10 11:48:09 +01:00
fe7b696c7c Add support for media saving messages in dropzone (#11304)
* WIP

Waiting for a response on the issue about how to proceed

* Support messages in dropzone

Update dropzone to allow the showing of messages that may be added in a media saving notification / handler

* Remove test code

Remove code used for testing

* Sort usings

Remove unused using

* Fix ordering

Ordering of files when they were being processed was backwards / out of order

* Add button to "okay" all messages

PR Feedback to add a button to dismiss all of the messages all at once.
Fixing a referencing issue with `currentFile`

Co-authored-by: Michael Latouche <michael@crossingpaths.be>
2021-11-10 02:32:21 +01:00
Lennard FonteijnandMichael Latouche 570841b958 Allow appsettings.json to set SMTP authentication to string.Empty 2021-11-10 01:33:13 +01:00
Paul Johnson cf38e3a97b Separate customizations for clarity 2021-11-09 19:40:20 +00:00
Bjarke BergandGitHub 17abf0474c Added unit tests for ContentVersionService (#11597)
* Added unit tests for ContentVersionService

* Clean up

* Fixed tests after using ConfigureMembers = true

* Fixed tests after using ConfigureMembers = true
2021-11-09 16:48:50 +00:00
Sebastiaan Janssen 1fbf02d61e Merge branch 'v8/dev' into v8/contrib 2021-11-09 11:04:38 +01:00
Sebastiaan Janssen e59f855aa9 Merge branch 'v8/contrib' of https://github.com/umbraco/Umbraco-CMS into v8/contrib 2021-11-09 11:04:01 +01:00
Sebastiaan Janssen 2aad2087a5 Merge branch 'v8/8.17' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/contenttypehelper.service.js
2021-11-09 11:02:21 +01:00
Ronald BarendseandMichael Latouche 2993c301f3 Hide localization key while loading 2021-11-08 23:42:06 +01:00
Rick Butterfield 709c2498fe Remove unreachable code 2021-11-08 12:46:04 +00:00
Rick Butterfield b00e686936 Fixes #11591 2021-11-08 12:44:01 +00:00
Ronald Barendse 1aeed3173b Do not allow deleting tabs with locked properties 2021-11-08 11:47:12 +01:00
Ronald Barendse 4f6a073f79 Re-bind readonly property state after save 2021-11-08 11:22:35 +01:00
Ronald Barendse 4bf598d9a4 Change IsLockedOut property to readonly when it's true (only allow unlocking members) 2021-11-08 11:22:07 +01:00
Rick Butterfield 1117440a04 Fix for #11591 2021-11-06 11:40:05 +00:00
Ronald Barendse 5bda825fd1 Add Member Content App to display membership properties 2021-11-05 11:05:13 +01:00
Bjarke BergandGitHub 90c64a22c7 Merge pull request #11582 from umbraco/v9/bugfix/downgrade_cypress
v9: Downgrade cypress to 8.4.1
2021-11-05 09:50:36 +01:00
Nikolaj Geisle 07feb8f79b Downgraded cypress to 8.4.1 2021-11-05 09:10:37 +01:00
Nikolaj GeisleandGitHub fdd62d367b Merge pull request #11579 from umbraco/v9/bugfix/allow_map_filesd_as_default_BrowsableFileExtensions
Allow .map files as default browsable file extensions from the App_Pl…
2021-11-05 08:53:08 +01:00
Bjarke Berg a528b9d5f4 Allow .map files as default browsable file extensions from the App_Plugins static file handler. 2021-11-04 20:58:02 +01:00
cd596b444e v9: Implemented new routing tests (#11571)
* Implemented new routing tests

* Update package-lock.json

* Cleanup

* Updated routing to cleanup before and after tests

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-11-04 16:54:25 +01:00
ba7db3b842 v9: Use localization keys instead of hardcoded string (#11406)
* Update help.controller.js

* updated with better localization keys

* Added more translations

* Fixed spelling mistakes

* Updated help.controller.js according to review

* Fix localizaMany to include another call

* Cleanup

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-11-04 16:50:33 +01:00
1359eb8f77 v9: Create new 'delete stylesheet' cypress test (#11528)
* Create new cypress test- delete stylesheet

* Cleanup

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-11-04 16:49:21 +01:00
Ronald Barendse 86fb382f81 Do not explicitly create standard member property group 2021-11-04 15:45:42 +01:00
740c2e4b53 Update systemInformation.ts (#11572)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-11-04 14:07:59 +01:00
Bjarke Berg b8616426ee Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/mediatypes/create.html
#	src/Umbraco.Web.UI.Client/src/views/partialviewmacros/create.html
#	src/Umbraco.Web.UI.Client/src/views/partialviews/create.html
#	src/Umbraco.Web.UI.Client/src/views/relationtypes/create.html
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
2021-11-04 12:43:16 +01:00
Bjarke Berg fa96ba1e82 Bump version to 9.2.0-rc 2021-11-04 12:36:10 +01:00
Bjarke Berg a64c58d68e Merge branch 'v9/9.1' into v9/dev 2021-11-04 12:34:21 +01:00
Bjarke BergandGitHub 7b98cc3c4d Merge pull request #11495 from umbraco/v8/feature/version-history-cleanup
Version history cleanup
2021-11-04 12:33:07 +01:00
Bjarke Berg 02dfb5af25 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/version-history-cleanup
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-11-04 11:40:11 +01:00
Bjarke BergandGitHub b09619f638 Merge pull request #11561 from umbraco/v8/feature/version-history-cleanup-ui
V8: Added UI to configure history cleanup per doc type
2021-11-04 11:36:58 +01:00
fca16859fd v9: 11419 Remove Azure gallery from build.ps1 (#11540)
* Fix build.ps1 & change order of itemgroup in csproj

* Fix merge conflict

* Update package version

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-11-04 11:05:39 +01:00
Nikolaj GeisleandGitHub d4682a9fff Move language test to the 'tests' folder (#11527) 2021-11-04 10:37:00 +01:00
Sebastiaan JanssenandGitHub 6f214fc269 Update 01_bug_report.yml 2021-11-04 08:47:02 +01:00
Bjarke Berg 7ffa46d4f2 Use specific version of docfx 2021-11-04 07:55:51 +01:00
Sebastiaan Janssen 65a1e5adbe Merge branch 'v8/dev' into v9/contrib 2021-11-03 17:57:44 +01:00
Sebastiaan Janssen 2ec77a2fde Merge branch 'v8/contrib' into v8/dev 2021-11-03 17:53:51 +01:00
Jan SkovgaardandGitHub 91a67cd3f0 Add missing fallback texts in various views (#11466) 2021-11-03 17:49:28 +01:00
Sebastiaan Janssen 04d0348351 Merge branch 'v9/dev' into v9/contrib 2021-11-03 17:14:46 +01:00
Sebastiaan Janssen 16b0e85ccb Merge branch 'v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tours/backofficeTour.ts
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Users/users.ts
#	src/Umbraco.Tests.AcceptanceTest/cypress/support/commands.js
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Tours/backofficeTour.ts
#	tests/Umbraco.Tests.AcceptanceTest/package-lock.json
2021-11-03 17:12:33 +01:00
Chriztian SteinmeierandSebastiaan Janssen b876771a75 Minor edits to the XPath query help sheet (#11385)
* Clarify the use of placeholders

Since the placeholder is only replaced if it's at the beginning of the query, I've added a note about it.

Also made the spelling of XPath consistent and fixed a nesting error in the HTML.

* Rephrase a couple of sentences

(cherry picked from commit e04efe6067)
2021-11-03 17:03:14 +01:00
Paul SealandSebastiaan Janssen 9a6a7ffa88 Added more detailed message when deleting items in the list view (#11375)
* Added more detailed message when deleting items in the list view

* Update FR language file

(cherry picked from commit 14fe7d99a8)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-11-03 17:03:14 +01:00
Matthew CareandSebastiaan Janssen c7b285796d Update background size
Update background size property to `contain` so that the whole image shows

(cherry picked from commit 215ef3d7b6)
2021-11-03 17:03:14 +01:00
Chriztian SteinmeierandSebastiaan Janssen f1668c6bd7 Add positioning context
A fallback for browsers that don't support `contain: content`, to make sure the positioning context is correct

(cherry picked from commit 8989c4ad13)
2021-11-03 17:03:14 +01:00
Matthew CareandSebastiaan Janssen 4a4b45fe27 Link insertion with no selected text
TinyMCE requires text to be selected in order to insert links.
Added checks for if there is a text selection, and insert HTML content if there is not.
Link contents consists of the target name, or the target url if not populated

(cherry picked from commit e7f8e692c2)
2021-11-03 17:03:14 +01:00
Patrick de MooijandSebastiaan Janssen f39909dd90 8258: Added create dictionary item button
(cherry picked from commit 49132e2b7f)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
2021-11-03 17:03:14 +01:00
Sebastiaan Janssen 64dc1d4862 Gets all of the remaining changes to Cypress tests from v9 dev - all tests pass on v8 2021-11-03 17:03:14 +01:00
Nikolaj GeisleandSebastiaan Janssen a3797aaeef v9: Fixing flaky cypress test "Macro in Grid" (#11485)
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Fixed failing tabs test

* Amend magic numbers with actual wait

* Update tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts

* Updated UI to click on button instead of icon

* Make macro test click bottom to ensure we're not clicking on icon

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit 34be464cf8)

# Conflicts:
#	tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Tabs/tabs.ts
2021-11-03 17:03:14 +01:00
Nikolaj GeisleandSebastiaan Janssen 0bd82d33aa v9: Update cypress to newest version and fix errors (#11486)
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Updated cypress to 8.6 and fixed failing script test

* Updated cypress to 8.6 and fixed failing script test

* Update package-lock.json

* Fixed Scripts and stylesheet tests with proper waits instead of magic numbers

* Updated to newest version of cypress and fixed template test

* Remove duplicate click

* Revert version to 8.4.1

* changed template

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit e9ae567617)

# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/package.json
#	tests/Umbraco.Tests.AcceptanceTest/package-lock.json
2021-11-03 17:03:14 +01:00
Jesper MayntzhusenandSebastiaan Janssen ac83a32d34 add delete language test (#11380)
(cherry picked from commit ba73a39558)
2021-11-03 17:03:14 +01:00
Jesper MayntzhusenandSebastiaan Janssen 771dfdb48f Cypress test for textbox max length (#11245)
* add test for textbox max length

* remove leftover comment

Co-authored-by: Jesper <jmh@umbraco.dk>
(cherry picked from commit f29bda6455)
2021-11-03 17:03:14 +01:00
Jesper MayntzhusenandSebastiaan Janssen f555f0adfe add cypress test for deleting a user (#11282)
(cherry picked from commit a2f05850c0)

# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Users/users.ts
2021-11-03 17:03:14 +01:00
Sebastiaan Janssen eee8bd5565 Fixed missing null check in BlockEditorPropertyEditor (#11184)
Thanks @lauraneto - reviewed this and your fix solves the issue. #h5yr

(cherry picked from commit 23d2106277)

# Conflicts:
#	src/Umbraco.Web/PropertyEditors/BlockEditorPropertyEditor.cs
2021-11-03 17:03:14 +01:00
Ronald Barendse cd6d027e51 Mark standard Member group as inherited 2021-11-03 16:47:52 +01:00
Ronald Barendse 0f5f7d24e5 Use standard Member property group name/alias 2021-11-03 16:46:56 +01:00
Bjarke Berg 3b73a87a68 Bumped right info :'( 2021-11-03 15:26:39 +01:00
Bjarke Berg b4d00cc695 Bump version to 9.1.0-rc 2021-11-03 15:05:12 +01:00
Sebastiaan Janssen 5123799e32 Bump version to 8.17.1 2021-11-03 14:59:00 +01:00
Bjarke BergandGitHub 7f061bd818 Merge pull request #11570 from umbraco/v9/feature/merge_v9_contrib_03-11-2021
V9: Merge `v9/contrib` 03-11-2021
2021-11-03 14:54:59 +01:00
Bjarke Berg be65f12ed7 Updated nuget dependencies 2021-11-03 14:29:59 +01:00
Bjarke BergandGitHub 1af1506b67 Merge pull request #11524 from umbraco/v9/bugfix/dont-reload-page-with-edit-user-button
v9: don't reload page when navigating to edit user
2021-11-03 14:22:25 +01:00
Nikolaj Geisle 439e1b5596 Updated User after merge 2021-11-03 14:15:36 +01:00
Nikolaj Geisle a54a76e113 Merge branch 'v9/dev' into v9/bugfix/dont-reload-page-with-edit-user-button
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
2021-11-03 14:14:07 +01:00
Bjarke Berg 67604654c1 Fixed breaking changes 2021-11-03 14:03:28 +01:00
Sebastiaan Janssen 692f952293 Merge branch 'v9/contrib' into v9/dev
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs
2021-11-03 13:05:43 +01:00
Bjarke Berg 353686361b Merge branch 'v9/9.0' into v9/dev 2021-11-03 13:01:52 +01:00
Bjarke BergandGitHub 109487f117 Merge pull request #11568 from umbraco/v9/feature/merge_v8_03-11-2021
V9: Merge v8: 03-11-2021
2021-11-03 12:56:23 +01:00
Bjarke BergandGitHub f694a09a0c Merge pull request #11562 from umbraco/v9/feature/merge_and_clean_history_cleanup
V9: Merged History cleanup from v8 and refactored to v9
2021-11-03 12:35:14 +01:00
Bjarke Berg a91d708bc5 cleanup 2021-11-03 12:11:05 +01:00
Bjarke Berg fb953ad532 Only run this test on windows 2021-11-03 12:10:42 +01:00
Elitsa Marinovska 53a83abf1a Fix lang files 2021-11-03 11:25:38 +01:00
Elitsa Marinovska 236bf88143 Cleanup 2021-11-03 10:23:50 +01:00
Bjarke Berg ab96e7c17d fix for linux+mac 2021-11-03 09:11:30 +01:00
Niels LyngsøandSebastiaan Janssen 23ce69db2f Additional optional sanitization of scripting in TinyMCE (#10653)
(cherry picked from commit f68dba7bcb)
2021-11-03 08:55:59 +01:00
Nikolaj GeisleandSebastiaan Janssen da48f8435a Merge pull request #11360 from umbraco/v8/bugfix/11057-mandatory-image-not-validating-after-first-time-failure
Fixes 11057: Mandatory Image not validating after first time failure

(cherry picked from commit 5cc70d2160)
2021-11-03 08:52:24 +01:00
Bjarke Berg c3ebbe23fd Merge remote-tracking branch 'origin/v8/dev' into v9/feature/merge_v8_03-11-2021
# Conflicts:
#	src/Umbraco.Core/Configuration/GlobalSettings.cs
#	src/Umbraco.Core/Configuration/IGlobalSettings.cs
#	src/Umbraco.Core/Constants-AppSettings.cs
#	src/Umbraco.Tests/Umbraco.Tests.csproj
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/HealthCheck/Checks/Security/BaseHttpHeaderCheck.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Configurations/LanguageXmlTests.cs
2021-11-03 08:44:12 +01:00
Matthew CareandGitHub 1c4cab521d Published Content Query has "skip" applied twice (#11378)
* Fix double skip

Skipping is done as part of the query now, causing `skip` to be applied twice

* More instances of skipping

Fix more areas where skip is applied twice
2021-11-03 08:32:48 +01:00
Berg a25183a063 Committing missing package-lock.json 2021-11-02 16:22:35 +01:00
Berg 4882837d60 Fixed test 2021-11-02 16:18:49 +01:00
Bjarke Berg ef34fe5a8a Missing lock file 2021-11-02 14:25:42 +01:00
Bjarke Berg d18afd351e Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/feature/merge_and_clean_history_cleanup
# Conflicts:
#	tests/Umbraco.Tests.AcceptanceTest/package.json
2021-11-02 14:08:44 +01:00
Bjarke Berg 8e49b91692 Updated cyoress + testhelpers 2021-11-02 14:07:56 +01:00
Bjarke Berg 89aa7f87bd Updated cypress + testhelpers 2021-11-02 13:29:47 +01:00
Sebastiaan Janssen bb323b0286 Merge branch 'v8/dev' into v8/contrib 2021-11-02 13:29:33 +01:00
Niels LyngsøandGitHub f68dba7bcb Additional optional sanitization of scripting in TinyMCE (#10653) 2021-11-02 13:21:44 +01:00
Bjarke Berg a1f93f84e2 changed default values 2021-11-02 11:59:34 +01:00
Bjarke Berg bf7e356e34 Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/feature/merge_and_clean_history_cleanup
# Conflicts:
#	src/Umbraco.Core/Models/ContentEditing/HistoryCleanup.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentVersionCleanupServiceTest.cs
2021-11-02 10:59:09 +01:00
Bjarke Berg 456b8a8a7c Fixed test now that save of content types creates a cleanup policy 2021-11-02 10:58:16 +01:00
Bjarke Berg ab06d21639 Fix namespace syntax 2021-11-02 10:42:51 +01:00
Bjarke Berg 0c3c88609e New projects starts with history cleanup enabled by default 2021-11-02 10:19:41 +01:00
Bjarke Berg 08c283656e aligned background job timings with v8 version 2021-11-02 10:17:36 +01:00
Bjarke Berg 6c628a46ba Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/feature/merge_and_clean_history_cleanup
# Conflicts:
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs
2021-11-02 09:45:45 +01:00
Bjarke Berg b15f86c1c2 Fixed issue with history cleanup not persisted on first save 2021-11-02 09:45:20 +01:00
Bjarke Berg 47827cdd88 Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/feature/merge_and_clean_history_cleanup
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/documentTypes/views/permissions/permissions.html
2021-11-02 09:26:01 +01:00
Bjarke Berg c7e9e94996 cleanup 2021-11-02 09:25:21 +01:00
Bjarke Berg cec9a22a38 Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/feature/merge_and_clean_history_cleanup 2021-11-02 09:18:34 +01:00
Bjarke Berg b7d5fd4b26 Cleanup and fixed tests 2021-11-02 09:18:15 +01:00
Bjarke Berg c3279f71c1 Negated bool check.. 2021-11-02 09:18:03 +01:00
Callum WhyteandMichael Latouche bd23a5fd2d Making UmbracoTreeSearcherFields virtual for easier overriding 2021-11-01 17:33:33 +01:00
1553f02b18 adding unit test for validating language xml files. (#7174)
* adding unit test for validating language xml files.

* locating the language files by traversing instead of hardcoded path.

* debugging null refs.

* debugging

* Updated method of detecting language folder for XML tests, that should work correctly on the build server.

* Path amends to support running test on build server.

* Path amends to support running test on build server (2).

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-11-01 14:50:54 +00:00
Anders BjernerandMichael Latouche 152956bb1a Added ngdocs documentation for overlay.service.js 2021-10-31 12:16:27 +01:00
Anders BjernerandMichael Latouche 7e55c469e3 Added extra selector for styling <code> elements in the content 2021-10-31 03:24:17 +01:00
Michael LatoucheandGitHub 9a64df758b Merge pull request #9 from umbraco/v9/contrib
Revert accidental commit of "Remove need of SMTP.Host config when def…
2021-10-30 00:12:39 +02:00
Michael bd63974d69 Revert accidental commit of "Remove need of SMTP.Host config when defining pickupdirectorylocation"
This reverts commit cb06170818.
2021-10-30 00:09:49 +02:00
Michael cb06170818 Remove need of SMTP.Host config when defining pickupdirectorylocation 2021-10-29 23:26:22 +02:00
Jan SkovgaardandGitHub d70583f238 Media Grid View improvements (#11518)
* Add last Updated text under general

* Map missing fallback text values and refactor <i> to <umb-icon> directive

* fix icon styling
2021-10-29 19:44:05 +02:00
a20915664d GitHub issue#11299 fix v8 (#11493)
* adding validation

* adding localization keys

* applying cleaning up notes

* fix spaces

* revert ex.xml

* spaces again

* keep it DRY

* chenge hasTabsAndFirstRender to hasTabsOrFirstRender

Co-authored-by: inada <inada@2p.com.sa>
2021-10-29 18:06:00 +02:00
Martin BentancourandMichael Latouche 56e05988f4 Validate fileName to prevent path traversal 2021-10-29 17:46:12 +02:00
Jeavon LeopoldandMichael Latouche c3625aed87 Fix the basehttpheader so that it's checking the root of the domain instead of /umbraco 2021-10-29 16:06:22 +02:00
JeavonandGitHub acaece6f18 [v9] Fix the basehttpheader health check so that it's checking the root of the domain instead of the /umbraco path (#11535)
* Fix the basehttpheader health check so that it's checking the root of the domain instead of the /umbraco path.

* Remove unused value from security health checks (it was used in v8 for fixing)
2021-10-29 15:42:07 +02:00
Bjarke Berg 926c74dcba Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/feature/merge_and_clean_history_cleanup
# Conflicts:
#	src/Umbraco.Core/Models/ContentType.cs
#	src/Umbraco.Core/Models/Mapping/ContentTypeMapDefinition.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Models/ContentEditing/HistoryCleanup.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs
2021-10-29 15:04:27 +02:00
Bjarke Berg a5c7af68cf Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-10-29 15:00:48 +02:00
Bjarke Berg 53631ee48b Merge remote-tracking branch 'origin/v8/feature/version-history-cleanup-ui' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Composing/CompositionExtensions/Repositories.cs
#	src/Umbraco.Core/Composing/CompositionExtensions/Services.cs
#	src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs
#	src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs
#	src/Umbraco.Core/ContentEditing/HistoryCleanup.cs
#	src/Umbraco.Core/Models/ContentEditing/DocumentTypeDisplay.cs
#	src/Umbraco.Core/Models/ContentType.cs
#	src/Umbraco.Core/Models/Mapping/ContentTypeMapDefinition.cs
#	src/Umbraco.Core/Persistence/Repositories/DocumentVersionRepository.cs
#	src/Umbraco.Core/Scheduling/ContentVersionCleanup.cs
#	src/Umbraco.Core/Services/DefaultContentVersionCleanupPolicy.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.Tests/Configurations/UmbracoSettings/umbracoSettings.config
#	src/Umbraco.Tests/TestHelpers/Entities/MockedContent.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs
#	src/Umbraco.Tests/Umbraco.Tests.csproj
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI/config/umbracoSettings.Release.config
#	src/Umbraco.Web.UI/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Scheduling/SchedulerComponent.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
#	tests/Umbraco.Tests.Common/Extensions/AutoMoqDataAttribute.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Persistence/Repositories/DocumentVersionRepository_Tests_Integration.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Scheduling/ContentVersionCleanup_Tests_UnitTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentVersionCleanupService_Tests_Integration.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/ContentVersionCleanupService_Tests_UnitTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/DefaultContentVersionCleanupPolicy_Tests_UnitTests.cs
2021-10-29 15:00:27 +02:00
Bjarke Berg 82a64ca589 Add message if prevent cleanup is globally disabled. 2021-10-29 14:51:38 +02:00
Martin BentancourandMichael Latouche dfdb498537 Check for path traversal before uploading file 2021-10-29 14:12:46 +02:00
Bjarke Berg b0ff096a8a Fixed Tests 2021-10-29 13:58:50 +02:00
Sebastiaan Janssen 0db177d1d3 Merge branch 'v9/dev' into v9/contrib 2021-10-29 13:00:00 +02:00
Sebastiaan Janssen ef4a0f89fa Reverts accidental commit 2021-10-29 12:50:00 +02:00
Sebastiaan Janssen 485353b43c Merge branch 'v9/dev' into v9/contrib 2021-10-29 11:09:43 +02:00
Bjarke Berg 14fc4b6e25 Unbreak a breaking change :( 2021-10-29 11:08:40 +02:00
Bjarke Berg 698e6b1533 Renamed interface to prepare for adding GetPagedRollbackVersions 2021-10-29 10:55:47 +02:00
Bjarke BergandGitHub 7aea361c21 Merge pull request #11538 from umbraco/v9/feature/merge-v8_29-10-2021
V9: Merge v8 29-10-2021
2021-10-29 10:48:20 +02:00
Sebastiaan Janssen 687670cc0b Merge v9/dev 2021-10-29 10:25:14 +02:00
Bjarke Berg bf5f1364fd Fix build after merge 2021-10-29 10:14:52 +02:00
Bjarke Berg 02bf61667d Merge remote-tracking branch 'origin/v8/dev' into v9/feature/merge-v8_29-10-2021
# Conflicts:
#	src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.Client/src/views/common/overlays/user/user.html
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/importdocumenttype.html
#	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/nl.xml
2021-10-29 09:52:39 +02:00
Bjarke Berg b96ec5a320 UI+Persistence for history cleanup per doc type 2021-10-28 14:14:07 +02:00
Bjarke Berg ae20c49590 Do paging in database, when viewing rollbacks 2021-10-28 10:02:04 +02:00
Paul JohnsonandGitHub f5fa1eeda2 Merge pull request #11517 from umbraco/v9/feature/nugetconfig
We no longer rely on anything in the umbraconightly feed
2021-10-27 10:01:06 +01:00
Nikolaj Geisle 4876108f71 change button to user editUser function 2021-10-27 09:49:05 +02:00
Bjarke BergandGitHub af5be82960 Merge pull request #11317 from matthewcare/custom-default-view-content
Ability to register your own content provider for default template content
2021-10-27 07:46:52 +02:00
b04609880b Accept udt as extension in import document type (#11108)
* Pass in invalid files

* Fix pattern and accept udt file extension

* Remove wildcard

* fix help text - referred to 'browse' button, which does not exist

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-10-27 12:05:08 +10:00
Søren KottalandGitHub 3ddb2c6bac New design for the default 404 page (#11468)
* New design for the default 404 page

* remove installer reference in link to our
2021-10-27 03:39:42 +02:00
Rick ButterfieldandNathan Woulfe ed167288c8 Change event name to rte.shortcut.saveAndPublish 2021-10-27 10:40:56 +10:00
Rick ButterfieldandNathan Woulfe 976711ef1c Publish hotkey doesn't work in RTE 2021-10-27 10:40:56 +10:00
BatJanandNathan Woulfe f12c4493b3 Map fallback texts 2021-10-27 10:18:57 +10:00
BatJanandNathan Woulfe 3ee289fd2f Update fallback texts and add an ind so label and input are paired properly 2021-10-27 10:17:43 +10:00
BatJanandNathan Woulfe 612f52985f Add new dictionary key 2021-10-27 10:17:43 +10:00
BatJanandNathan Woulfe 5f7c00dc31 Add missing fallback texts 2021-10-27 10:14:11 +10:00
BatJanandNathan Woulfe f6854cddc9 Remove unused code 2021-10-27 10:14:11 +10:00
BatJanandNathan Woulfe 5d4e1c6f98 Add missing fallback texts 2021-10-27 10:11:45 +10:00
BatJanandNathan Woulfe e8970c0d44 Add missing fallback texts 2021-10-27 10:09:26 +10:00
BatJanandMichael Latouche 35b0dda1f5 Add missing fallback texts 2021-10-27 02:03:03 +02:00
BatJanandNathan Woulfe 57637da767 Add missing fallback texts 2021-10-27 10:02:28 +10:00
BatJanandNathan Woulfe 80c9c09210 Add missing fallback values 2021-10-27 09:57:39 +10:00
Nathan Woulfe cf40b904c9 update styling in rollback text - removes stray comma, slight change to wording 2021-10-27 09:56:54 +10:00
BatJanandNathan Woulfe d131df181b Add missing fallback texts 2021-10-27 09:56:54 +10:00
BatJanandNathan Woulfe d1005c5976 Add missing fallback texts 2021-10-27 09:38:23 +10:00
BatJanandNathan Woulfe 713f204ea5 Add missing fallback texts 2021-10-27 09:37:31 +10:00
BatJanandNathan Woulfe 090fe7e9ae Add missing fallback texts 2021-10-27 09:34:45 +10:00
BatJanandNathan Woulfe 97775196ae Add missing fallback texts 2021-10-27 09:33:53 +10:00
BatJanandNathan Woulfe 1fdfb2c434 Add missing fallback texts 2021-10-27 09:32:08 +10:00
BatJanandNathan Woulfe 7794d55381 Add missing fallback texts 2021-10-27 09:29:44 +10:00
BatJanandNathan Woulfe 0eb0b18560 Add missing fallback texts 2021-10-27 09:27:04 +10:00
BatJanandNathan Woulfe 0d73d903d1 Add missing fallback texts 2021-10-27 09:26:05 +10:00
BatJanandNathan Woulfe 87a8ea755e Add missing fallback texts 2021-10-27 09:18:57 +10:00
BatJanandNathan Woulfe 072374913d Add missing fallback texts 2021-10-27 09:18:05 +10:00
BatJanandNathan Woulfe f1998ca5ab Add missing fallback texts 2021-10-27 09:17:00 +10:00
BatJanandNathan Woulfe 965ce917bf Map missing fallback texts 2021-10-27 09:15:43 +10:00
BatJanandNathan Woulfe 57634d5b4e Add missing fallback values 2021-10-27 09:14:47 +10:00
BatJanandNathan Woulfe 20941016ff Map missing translations 2021-10-27 09:12:30 +10:00
BatJanandNathan Woulfe 85c9d55b7a Add missing translations 2021-10-27 09:11:45 +10:00
Bjarne FyrstenborgandNathan Woulfe 1bffd97be9 Update noUiSlider to v15.5.0 2021-10-27 08:28:32 +10:00
BatJanandNathan Woulfe 034e43d3b8 Add missing text fallback values 2021-10-27 08:27:22 +10:00
BatJanandNathan Woulfe ad17207072 Fix localizations 2021-10-27 08:23:16 +10:00
BatJanandNathan Woulfe 1ce05d44e5 Map missing text values 2021-10-27 08:21:29 +10:00
BatJanandNathan Woulfe 8b4398c006 Remove space 2021-10-27 08:19:56 +10:00
BatJanandNathan Woulfe bed34b9916 Map missing values 2021-10-27 08:19:56 +10:00
BatJanandNathan Woulfe 52f56628e9 Add missing fallback texts 2021-10-27 08:16:54 +10:00
BatJanandNathan Woulfe f9ed371cb7 Add missing fallback texts 2021-10-27 08:13:43 +10:00
Paul Johnson d0a0a0a9cb Downgrade NUnit and NUnit3TestAdapter 2021-10-26 18:04:23 +01:00
Sebastiaan Janssen e1ea8911be We no longer rely on anything in the umbraconightly feed 2021-10-26 17:53:54 +02:00
Jesper MayntzhusenandGitHub ba73a39558 add delete language test (#11380) 2021-10-26 17:40:37 +02:00
Paul Johnson 86f344c484 Post review feedback
Less logging @ info level
More re-usable migration
2021-10-26 16:30:57 +01:00
Paul Johnson bba089c24c Implemented ContentVersionCleanup scheduled task.
Note: adding ref to Microsoft.NET.Test.Sdk fixes AutoFixture AutoDataAttribute (and sub classes)
2021-10-26 16:17:42 +01:00
Paul Johnson a1ac730633 Added XML configuration support for cleanup policy 2021-10-26 16:17:41 +01:00
Paul Johnson d865448177 Added database migration to support version cleanup feature 2021-10-26 16:17:41 +01:00
Matthew CareandSebastiaan Janssen 742b8eb1dc Update Examine
Partly fixes #11377
2021-10-26 16:58:53 +02:00
e9ae567617 v9: Update cypress to newest version and fix errors (#11486)
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Updated cypress to 8.6 and fixed failing script test

* Updated cypress to 8.6 and fixed failing script test

* Update package-lock.json

* Fixed Scripts and stylesheet tests with proper waits instead of magic numbers

* Updated to newest version of cypress and fixed template test

* Remove duplicate click

* Revert version to 8.4.1

* changed template

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-26 15:03:19 +01:00
Erik-Jan WestendorpandSebastiaan Janssen 123bceef08 Localization add tab text dutch (#11346)
* Update nl.xml add addTab key

* tab to tablad

* Add translation to shortcuts sections

(cherry picked from commit d22297270b)
2021-10-26 15:58:03 +02:00
Paul JohnsonandGitHub 9155329de8 Merge pull request #11496 from umbraco/v9/bugfix/cypress-streaming-log-output
Use powershell / bash tasks instead of npm for acceptance tests

npm buffers output and flushes at end, which isn't ideal if cypress killed after an hour and we have no idea what happened.
2021-10-26 14:56:36 +01:00
Sebastiaan Janssen cdd4bd1f69 Merge branch 'v8/dev' into v8/contrib 2021-10-26 15:54:34 +02:00
Paul Johnson b375d28bdb Use powershell / bash tasks instead of npm for acceptance tests 2021-10-26 14:08:11 +01:00
34be464cf8 v9: Fixing flaky cypress test "Macro in Grid" (#11485)
* fixed flaky macro test and updated cypress version

* fixed flaky macro test and updated cypress version

* Update package.json

* Fixed failing tabs test

* Amend magic numbers with actual wait

* Update tests/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts

* Updated UI to click on button instead of icon

* Make macro test click bottom to ensure we're not clicking on icon

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-26 14:01:14 +01:00
Matthew Care ded1c0b79f Fix DI
Integration tests failing due to multiple ctors. Marking correct one for DI usage
2021-10-26 13:57:53 +01:00
Bjarke BergandGitHub a7ff1e2c93 Merge pull request #11447 from jaddie/bugfix/11442/MigrationStepsAreSkippedV817toV9
Bugfix/11442/migration steps are skipped v8.17 to v9
2021-10-26 14:09:20 +02:00
Matthew Care cca526aa58 Use static service provider
Use the static service provider in the obsolete ctor
2021-10-26 10:51:15 +01:00
af17859139 Update src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-10-26 10:47:00 +01:00
BatJanandMichael Latouche 45dec5c181 Add missing fallack values 2021-10-26 01:21:54 +02:00
Paul JohnsonandGitHub 9773726c95 Merge pull request #11489 from umbraco/v8/bugfix/prevent-github-actions-spam
Prevent github actions spam
2021-10-25 17:02:16 +01:00
Paul JohnsonandGitHub 7bed6e5632 Merge pull request #11490 from umbraco/v9/bugfix/prevent-github-actions-spam
Prevent github actions spam
2021-10-25 17:02:02 +01:00
Paul Johnson 4133a9cdf9 Prevent github actions spam 2021-10-25 16:37:34 +01:00
Paul Johnson 76879caaaa Prevent github actions spam 2021-10-25 16:31:16 +01:00
Jaddie 7d1ca67007 Adjusted migration plan to run everything and repeat AddPropertyTypeGroupColumns as mentioned by @bergmania 2021-10-25 15:41:23 +01:00
Matthew Care 576bc1f60b Make requested changes
Prevent breaking change by creating a new ctor

Update obsolete message
2021-10-25 14:30:58 +01:00
Sebastiaan Janssen 27f50e7525 Revert "Content app for dictionary items"
This reverts commit 1d2272f536.
2021-10-24 10:55:38 +02:00
inadaandMichael Latouche 2d346248d3 adding . applying filter 2021-10-24 02:13:48 +02:00
Paul JohnsonandGitHub c61eaa2257 Merge pull request #11369 from umbraco/v8/bugfix/maxparametercount
Add Constants.Sql.MaxParameterCount and update query logic
2021-10-22 21:08:55 +01:00
Bjarke BergandGitHub 5ddf6a1e1f Merge pull request #11452 from umbraco/v9/feature/v8_merge_22_10_2021
Merge v8 into v9 22/10/2021
2021-10-22 10:26:24 +02:00
8acf7e147e Changes to GetReducedEventList (#11444)
* Instead of only using first event, we combine events of same type into a single event with multiple arguments

* Added generic method to DRY up grouping logic.

* Renamed method to better reflect new functionality.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-10-22 09:58:47 +02:00
BatJanandNathan Woulfe 79e8205556 Remove comma 2021-10-22 17:45:15 +10:00
Bjarke BergandGitHub 222a40accc Delete importdocumenttype.html 2021-10-22 09:20:43 +02:00
Bjarke BergandGitHub 51ec026630 Delete create.html 2021-10-22 09:20:26 +02:00
Bjarke BergandGitHub 071fb4b9ff Delete create.html 2021-10-22 09:19:44 +02:00
Bjarke BergandGitHub 3d85d9b0a7 Delete create.html 2021-10-22 09:19:00 +02:00
Bjarke BergandGitHub 4bb1dbff52 Delete create.html 2021-10-22 09:18:32 +02:00
Bjarke BergandGitHub a851fc5e29 Delete create.html 2021-10-22 09:18:03 +02:00
Bjarke Berg 7261091271 Merge remote-tracking branch 'origin/v8/dev' into v9/feature/v8_merge_22_10_2021
# Conflicts:
#	src/Umbraco.Core/Exceptions/InvalidCompositionException.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
#	src/Umbraco.Tests/Umbraco.Tests.csproj
#	src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs
#	src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
#	src/Umbraco.Web.UI.Client/src/views/datatypes/create.html
#	src/Umbraco.Web.UI.Client/src/views/documentTypes/create.controller.js
#	src/Umbraco.Web.UI.Client/src/views/documenttypes/importdocumenttype.html
#	src/Umbraco.Web.UI.Client/src/views/mediatypes/create.html
#	src/Umbraco.Web.UI.Client/src/views/partialviewmacros/create.html
#	src/Umbraco.Web.UI.Client/src/views/partialviews/create.html
#	src/Umbraco.Web.UI.Client/src/views/relationtypes/create.html
#	src/Umbraco.Web.UI/Umbraco/config/lang/cy.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/it.xml
#	src/Umbraco.Web.UI/umbraco/config/lang/da.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/nl.xml
#	src/Umbraco.Web/Editors/MemberGroupController.cs
#	tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/PublishedCache/NuCacheRebuildTests.cs
2021-10-22 08:51:01 +02:00
Bjarke Berg 884ce9898f Merge remote-tracking branch 'origin/v9/9.0' into v9/dev 2021-10-22 08:27:59 +02:00
Paul SealandGitHub 00d7422d2f V8/feature/app header localized titles (#11429)
* Added a link to 404 documentation

I think it will be useful to include a link to the documentation on how to create a custom 404

* added localized titles to the search and help buttons in the app header (top right of Umbraco)
2021-10-22 03:47:35 +02:00
BatJanandMichael Latouche aa6c5d48a2 Add fallback text 2021-10-22 03:40:02 +02:00
Jaddie 2cf3be8c10 Migration steps are missed when migrating to V9 from V8.17 2021-10-21 16:24:54 +01:00
Nikolaj GeisleandGitHub 3cd09a8230 Merge pull request #11441 from umbraco/v9/hotfix/11427-Ensure_there_is_not_duplicate_culture_codes_before_making_dictionary
Ensure there can't be duplicate culture codes in languages dropdown
2021-10-21 15:32:35 +02:00
Nikolaj GeisleandGitHub b6d3e2d90d Merge pull request #11430 from umbraco/v9/hotfix/11389-use-path.gettemppath
Use Path.GetTempPath instead of %temp% environment variable.
2021-10-21 13:32:53 +02:00
6d3f407dac Changed behavior to match v8 (#11431)
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-21 09:53:28 +02:00
Bjarke Berg 3e7aa299a3 https://github.com/umbraco/Umbraco-CMS/issues/11427
Ensure there can't be duplicate culture codes in languages dropdown
2021-10-21 09:51:05 +02:00
Matthew Care 3c1e52f109 Merge branch 'v9/contrib' into temp-11381 2021-10-21 08:34:09 +01:00
Paul JohnsonandGitHub c585f77533 Merge pull request #11211 from umbraco/v9/bugfix/fix-build-required-before-initial-publish
v9 Fix build required before initial publish
2021-10-21 08:33:27 +01:00
Paul Johnson 7a929765cd Fix build required before initial publish 2021-10-21 02:05:08 +01:00
809671b9ca Align template picking more towards the other pickers (#11363)
* Align template picking more towards the other pickers

* style/cleanup - remove unused args, updated openItemPicker function name to openTemplatePicker since that's what we're opening

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-10-21 10:09:08 +10:00
Blake IrwinandNathan Woulfe e5549b7533 Fix logger message placeholders being parsed literally instead of substituted 2021-10-21 09:03:15 +10:00
Sebastiaan JanssenandNathan Woulfe e8a6a9279f Further clarification around where configuration goes 2021-10-21 08:58:29 +10:00
Patrick de MooijandNathan Woulfe b13f260341 11343: Remove blocklist block on cancel 2021-10-21 08:51:14 +10:00
Patrick de MooijandSebastiaan Janssen 3fb150dda3 11315: Don't unbind unbinding keys 2021-10-20 18:28:06 +02:00
BatJanandSebastiaan Janssen 122caf8f1c Adjust styling to make grid config look better 2021-10-20 18:07:27 +02:00
BatJanandSebastiaan Janssen 4dd663d665 Add remove warning 2021-10-20 18:06:11 +02:00
BatJanandSebastiaan Janssen 2b6e4ce599 Turn nodelist into an array and filter out elements whose parent, grandparents etc. has a .ng-hide class 2021-10-20 18:04:17 +02:00
Jan SkovgaardandGitHub e668755a30 Listview: Fix translations and use "Remove" text for button instead of icon (#11411) 2021-10-20 18:01:45 +02:00
BatJanandSebastiaan Janssen 9a16907d63 Add warning overlay when deleting grid layout 2021-10-20 18:00:07 +02:00
BatJanandSebastiaan Janssen fef162b465 Remove z-index 2021-10-20 17:54:32 +02:00
Bjarke Berg c86c283a08 https://github.com/umbraco/Umbraco-CMS/issues/11389
Use Path.GetTempPath instead of %temp% environment variable.
2021-10-20 13:47:04 +02:00
+16 56595a7fc7 Merge v8/dev 20-10-2021 (#11426)
* Adjust icon in umb-checkbox and ensure icon is centered

* Missing nl translation for blockEditor_addBlock

* Implement icon parameter for doctype editor (#11008)

* fix: implement icon parameter for doctype editor

issue #10108

* fix: move color from icon to class attribute

* fix: removed defined colors, defaulting to the standard dark grey (ie "no color picked" in icon picker)

* cleaned up unused dependencies, double quotes to single, removed unused 'color' param from the create methods, and use shorthand object creation in createDocType (if the key has the same name as the variable passed as a prop, we only need to pass the key name)

* fix comment

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Align sortable handle vertically in multivalues prevalue editor

* 10341: Use different picker for content types (#10896)

* 10341: Use different picker for content types

* use es6 where possible (inc removing underscore for teeny tiny performance improvement)

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Falling back to contentTypeName when Block List label is empty (#10963)

* Falling back to contentTypeName when Block List label is empty

* Adding $contentTypeName variable for Block List labels

* Fix incorrect attribute

* Grid: Add button styling fix (#10978)

* Add missing focus styling

* Ensure add button is perfectly rounded and remove unused / uneeded CSS.

* Remove redundant border-color property

* Revert removal of unused css

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>

* Create content template localization (#10945)

* Don't use self-closing element for custom HTML elements

* Use button element for close/cancel in copy dialog

* Update localization of "createBlueprintFrom"

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Cleanup examine search results, and adds ability to toggle fields (#9141)

* Cleanup examine search results, and adds ability to toggle fields

* update table to use joinarray filter with one-time binding to avoid recalculating filter values, updated filter to not explode when array arg is null

* fix failing tests - improve filter to not fail on non-array params, update tests accordingly

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Add EntityController GetUrlsByUdis

Enables loading multiple URLs in a single request for Media & Documents

* Update content picker to use GetUrlsByUdis

* Allows replacing MainDom with alternate DB

There are some cases where there is a complex hosting strategy and folks want a readonly database and are hosting on Azure. In that case, it is not entirely possible to have a readonly Umbraco database because SqlMainDom is required and part of that requirement is to have read/write access to the umbraco key value table.
This PR allows for the default MainDom to be replaced and to allow for an SqlMainDomLock to use an alternate connection string so that a separate read/write database can be used.

* Remove inherited property group id/key when local properties are added (#11231)

* Remove inherited property group id/key when local properties are added

* Rebind saved content type values

* Remove inherited from save group

* Rename parameter for clarity

* Removes annoying wait text, which causes layout jank

* v8: Backoffice Welsh language translation updates (#11240)

* Updated the Welsh language file to include newly added keys (based on the en us language file)

* Updated the searchInputDescription key

* Updated the endTitle key

* Use medium sized overlay

* Use umb-icon component for icons in content type groups and tabs

* fixes wrong reference to enterSubmitFolder method in ng-keydown

* 11251: Don't add default dashboard to url

* Fix preview of SVG when height and width not are set

* If caching a published document, make sure you use the published Name… (#11313)

* If caching a published document, make sure you use the published Name. Closes #11074.

* Fix case of new node

Co-authored-by: Moore, Douglas S <Douglas.Moore@opm.gov>

* Added missing Italian translations (#11197)

* Resolve incorrect ContentSavedState for failed publish

Closes #11290 (for v8)

* add modelValue validation for server to correctly update validation errors

* 11048: Bugfix for groups and properties that get replaced (#11257)

(cherry picked from commit 1605dc10bd)

* Icon fallback to `icon-document` for existing document types (#11283)

* Align create buttons styling (#11352)

* Added button for cancelling dictionary create action

* Use hideMenu

* Align dictionary create with the other creates

* Align import documenttype

* Align for data type folder create

* Align document type create buttons

* Forgot small ng-show

* Align create media folder buttons

* Align create macro buttons

* Align create relation buttons

* Align create partial view macro folder buttons

* Align partial view folder create buttons

* Align create scripts folder buttons

* Align create scripts folder buttons

* Use primary instead of success

* V8: Duplicate MemberGroup names cause MemberGroup mixup (#11291)

* Prevented duplicate member group names

* Added English lang

* Updated 'Exist' typo

* add labels in FR and NL

* Adding property group aliases to ex.message

* Adding invalid prop group aliases as ModelState errors, so we don't introduce breaking changes

* Pointing the actual reason for invalidating composition

* Validate all content type dependencies and throw a single InvalidCompositionException

* Rename based on review comments

* Update composition validation error messages

* Update InvalidCompositionException message

* Allow switching property editor from numeric to slider (#11287)

* Make it possible to change from numeric/decimal property editor to slider without breaking editor

* Formatting

* Enables friendly pasting in multipletextbox

* UI API docs: Added reset rules for .close class

* UI API docs: Fixed incorrect method name

* 11331: Check property on instance if id is not set yet

* Fixed cypress tests

Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
Co-authored-by: Corné Strijkert <cornestrijkert@hotmail.com>
Co-authored-by: Søren Gregersen <soreng@gmail.com>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
Co-authored-by: patrickdemooij9 <patrickdemooij98@hotmail.com>
Co-authored-by: Callum Whyte <hey@callumwhyte.com>
Co-authored-by: Jan Skovgaard <1932158+BatJan@users.noreply.github.com>
Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
Co-authored-by: Søren Kottal <sk@ecreo.dk>
Co-authored-by: Paul Johnson <pmj@umbraco.com>
Co-authored-by: Shannon <sdeminick@gmail.com>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Owain Jones <owain.jones@method4.co.uk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Doug Moore <lordscarlet@idledreams.net>
Co-authored-by: Moore, Douglas S <Douglas.Moore@opm.gov>
Co-authored-by: Martino Gabrielli <39855999+ZioTino@users.noreply.github.com>
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Jamie Townsend <jamie.townsend@unitstack.co.uk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Anders Bjerner <abjerner@skybrud.dk>
2021-10-20 13:12:46 +02:00
Nikolaj GeisleandGitHub 9494591ed4 Merge pull request #11403 from umbraco/v9/feature/improve_package_usage_of_integration_tests
Simplify usage of integration tests from nuget package
2021-10-20 10:32:39 +02:00
BatJanandMichael Latouche 37511f5a6e Change remove icon to remove text 2021-10-20 03:17:50 +02:00
6e04cc72c2 contentpicker: Don't validate minNumber if empty and not mandatory (#11330)
* contentpicker: Don't validate minNumber if empty and not mandatory

* adds variable for accessing $scope.model.config.minNumber and $scope.model.config.maxNumber

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-10-20 09:51:26 +10:00
BatJanandNathan Woulfe 5f97fca130 Update styling and code style of imagepicker prevalue editor 2021-10-20 08:17:40 +10:00
Sebastiaan Janssen 4dc1ee64e0 Merge branch 'v8/dev' into v8/contrib 2021-10-19 15:49:24 +02:00
c77dc5dc00 Migrating tests that depend on Published Cache from the old test project (#11242)
* starts cleaning up old test project, removing ones we'll never convert, moves new test to where it should be.

* Makes ContentNodeKit immutable properties, moves first nucache tests over

* Gets the Nucache unit tests working and refactors a bit to use builder pattern for models.

* Migrates first xml based cache test to use nucache.

* Migrates a bunch more

* Migrates remaining tests for PublishedContentTests

* Moves PublishedRouterTests

* Moves PublishedContentExtensionTests

* Moves more tests.

* committing wip

* committing wip

* Gets PublishedContentLanguageVariantTests converted and working.

* Fixes DataTable ext method and moves PublishedContentDataTableTests

* Moves PublishedMediaTests

* wip - moving EntityXmlSerializerTests

* Moves more tests

* moves more tests

* moves more tests

* Move another test

* Moves more tests

* Fix test

* move another test

* Moves more tests

* Moves more tests

* Moves more tests

* wip before merge

* More tests

* More tests

* More tests

* More tests

* More tests

* More tests

* Cleanup and moving classes.

* Remove unused code

* Fixed failing tests, due to new null checks, that did not exist in v8

* Avoid breaking changes

* Unbreak more things, even that it the old solution was crazy..

* Fixed bug where ordering of stream readings was changed..

* cleanup

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-10-19 14:11:54 +02:00
Mads RasmussenandNikolaj Geisle 49e1aec71c add modelValue validation for server to correctly update validation errors 2021-10-19 13:30:44 +02:00
Nikolaj GeisleandGitHub 5cc70d2160 Merge pull request #11360 from umbraco/v8/bugfix/11057-mandatory-image-not-validating-after-first-time-failure
Fixes 11057: Mandatory Image not validating after first time failure
2021-10-19 13:30:03 +02:00
Bjarke Berg ca9dc94392 Fixed StyleCop issues in JsonSchema project 2021-10-19 13:11:02 +02:00
Paul JohnsonandGitHub 14e1f7f7fc V10/feature/content schedule performance (#11398)
* Nuke Content.ContentSchedule

Can't make an omelette without breaking eggs

* Fix read view models

* Fix Save, Save & Schedule, Save & Publish

* Fix scheduled publish/unpublish

* Fix unit tests

* Fix bugs & integration tests

* Cleanup action result signatures

* Update tests from #11356, new method for saving contentschedule
2021-10-19 12:29:25 +02:00
Callum WhyteandGitHub 02481f8e14 requireExactSource needs to be disabled in order to properly attach to process and debug Umbraco source in VS Code / Codespaces (#11367) 2021-10-19 10:47:58 +01:00
Bjarke Berg edaf411b0d Merge remote-tracking branch 'origin/v9/dev' into v9/feature/improve_package_usage_of_integration_tests 2021-10-19 11:19:43 +02:00
Paul JohnsonandRonald Barendse 0f3b24496a Restore BelleBuild target (for back-office assets) and use npm ci (#11364)
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-10-19 10:16:08 +01:00
Paul JohnsonandRonald Barendse 7020793235 Restore BelleBuild target (for back-office assets) and use npm ci (#11364)
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-10-19 10:15:07 +01:00
Paul Johnson 687de61793 Drop ref to Web.UI from integration tests (#11413)
* Remove reference to Web.UI, Fix test server content root

* Cleanup test databases in parallel
2021-10-19 10:12:35 +01:00
Paul JohnsonandGitHub 37a429017e Drop ref to Web.UI from integration tests (#11413)
* Remove reference to Web.UI, Fix test server content root

* Cleanup test databases in parallel
2021-10-19 10:09:48 +01:00
Matthew Care dac697f9b4 Merge remote-tracking branch 'upstream/v9/contrib' into custom-default-view-content
# Conflicts:
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/DefaultViewContentProviderTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs
#	tests/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs
2021-10-19 09:18:46 +01:00
Matthew Care aee9bbbb7d Merge remote-tracking branch 'upstream/v9/contrib' into temp-11381 2021-10-19 08:44:05 +01:00
Matthew CareandNathan Woulfe 215ef3d7b6 Update background size
Update background size property to `contain` so that the whole image shows
2021-10-19 17:30:41 +10:00
Matthew CareandMichael Latouche e7f8e692c2 Link insertion with no selected text
TinyMCE requires text to be selected in order to insert links.
Added checks for if there is a text selection, and insert HTML content if there is not.
Link contents consists of the target name, or the target url if not populated
2021-10-19 09:30:07 +02:00
69f8e54cb0 Restore BelleBuild target (for back-office assets) and use npm ci (#11364)
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-10-19 09:28:39 +02:00
Patrick de MooijandMichael Latouche 57445e81a6 11331: Check property on instance if id is not set yet 2021-10-19 09:28:38 +02:00
Anders BjernerandNathan Woulfe eb2f152591 UI API docs: Fixed incorrect method name 2021-10-19 17:19:27 +10:00
Anders BjernerandNathan Woulfe 8e86f3e091 UI API docs: Added reset rules for .close class 2021-10-19 17:15:54 +10:00
Berg a8889fcabb Uses TestExecutionContext to get the current test, instead of trying to find it using assembly scanning 2021-10-18 21:25:21 +02:00
Paul Johnson afe43ab8cf Fix broken build 2021-10-18 09:38:34 +01:00
Paul Johnson ad66d61b04 Move new test 2021-10-18 08:32:24 +01:00
Paul Johnson 8be613cad7 Merge branch 'v9/dev' into v9/contrib 2021-10-18 08:31:20 +01:00
Paul Johnson b71d6afba6 Moved new test classes 2021-10-18 08:29:43 +01:00
Paul Johnson f214d58f0b Merge branch 'v9/dev' into v10/dev 2021-10-18 08:20:52 +01:00
00133e880d Move test projects from src/ to tests/ (#11357)
* Update gitignore

* Move csproj

* Update project references

* Update solutions

* Update build scripts

* Tests used to share editorconfig with projects in src

* Fix broken tests.

* Stop copying around .editorconfig

merged root one with linting

* csharp_style_expression_bodied -> suggestion

* Move StyleCop rulesets to matching directories and update shared build properties

* Remove legacy build files, update NuGet.cofig and solution files

* Restore myget source

* Clean up .gitignore

* Update .gitignore

* Move new test classes to tests after merge

* Gitignore + nuget config

* Move new test

Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-10-18 08:14:04 +01:00
Nikolaj GeisleandGitHub c005673a96 Merge pull request #11394 from umbraco/v9/bugfix/support_localdb_15
Also detect localdb 15
2021-10-18 09:11:29 +02:00
Patrick de MooijandNathan Woulfe 1d2272f536 Content app for dictionary items 2021-10-18 16:54:26 +10:00
Nikolaj GeisleandGitHub 434ce0f7dc Merge pull request #11199 from umbraco/register-notification-extension
v9: Added Extension method to register all custom Notifications
2021-10-18 08:20:28 +02:00
Berg 05f5c8def8 Also detect localdb 15 2021-10-18 08:10:29 +02:00
Bjarke Berg 7ba221be98 Merge remote-tracking branch 'origin/v9/dev' into v10/dev 2021-10-18 06:44:48 +02:00
Bjarke Berg 616b57774f Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-10-18 06:44:13 +02:00
Bjarke Berg c9d71ec0c7 Merge remote-tracking branch 'origin/v9/9.0' into v9/dev 2021-10-18 06:43:50 +02:00
Chriztian SteinmeierandGitHub e04efe6067 Minor edits to the XPath query help sheet (#11385)
* Clarify the use of placeholders

Since the placeholder is only replaced if it's at the beginning of the query, I've added a note about it.

Also made the spelling of XPath consistent and fixed a nesting error in the HTML.

* Rephrase a couple of sentences
2021-10-17 17:02:59 +01:00
58d980cc80 Update src/Umbraco.Core/Extensions/UmbracoBuilderExtensions.cs
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2021-10-17 14:13:51 +02:00
0d7c6e4128 Update src/Umbraco.Core/Extensions/UmbracoBuilderExtensions.cs
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2021-10-17 14:13:43 +02:00
Jacob OvergaardandMichael Latouche 8703d7c929 Rename importdocumenttype to importDocumentType and emptyrecyclebin to emptyRecycleBin to match UI and mocks 2021-10-17 03:35:14 +02:00
Søren KottalandMichael Latouche 7ec1147243 Enables friendly pasting in multipletextbox 2021-10-17 02:46:52 +02:00
Paul SealandGitHub 14fe7d99a8 Added more detailed message when deleting items in the list view (#11375)
* Added more detailed message when deleting items in the list view

* Update FR language file
2021-10-17 01:40:47 +02:00
Matthew Care 98474e1110 Fix broken test
Update tests to disable the default replacements
2021-10-15 23:52:26 +01:00
Matthew Care 25b1c3c078 Add tests
Add new tests for the request handler settings, and fix other tests
2021-10-15 23:24:21 +01:00
Matthew Care 12e89a01ba Update usage
Update string helper to use new method that uses user defined replacements
2021-10-15 23:23:56 +01:00
Matthew Care 1ee4e379e7 Update classes
Update class names, and location
2021-10-15 23:23:07 +01:00
Matthew Care c2ed6a629b Update request handler settings
`CharCollection` didn't map correctly from the config, updated to an array so that it does
Add logic to concatenate user and default replacements, replacing defaults with user defined if present.
Added additional option to disable the default replacements
2021-10-15 23:22:01 +01:00
Nikolaj GeisleandGitHub ee6abdeec3 Merge pull request #11328 from umbraco/v9/feature/add-notifcation-for-url-collision
Add notifcation when publishing varying culture without domains configured
2021-10-15 12:31:39 +02:00
Nikolaj Geisle 48003e0b70 Check ancestors for published culture
Fixed issue where if you were 3 levels deep and published only 1 culture, warning wouldn't fire
2021-10-15 11:48:15 +02:00
nikolajlauridsen cc74e3f4fd Remove unused using 2021-10-15 08:42:17 +02:00
nikolajlauridsen ebd0d95df0 Merge branch 'v9/feature/add-notifcation-for-url-collision' of https://github.com/umbraco/Umbraco-CMS into v9/feature/add-notifcation-for-url-collision 2021-10-15 08:40:41 +02:00
nikolajlauridsen 28c9b9bcca Add constants for ISO codes in ContentControllerTests 2021-10-15 08:36:24 +02:00
e0cac5e79e Apply suggestions from code review
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2021-10-15 08:26:23 +02:00
Bjarne FyrstenborgandGitHub 6a5e34b24d Allow switching property editor from numeric to slider (#11287)
* Make it possible to change from numeric/decimal property editor to slider without breaking editor

* Formatting
2021-10-15 03:00:16 +02:00
Ronald BarendseandGitHub a284d5251f Merge pull request #11373 from umbraco/v8/bugfix/AB14159-add-more-warnings-when-invalid-composition
Add validation errors when invalid composition due to duplicate property group aliases
2021-10-14 16:51:01 +02:00
Nikolaj Geisle 563babd555 Removed logging from tests 2021-10-14 16:01:54 +02:00
Ronald Barendse b73ab255e4 Update InvalidCompositionException message 2021-10-14 15:50:29 +02:00
Nikolaj Geisle d184f82d63 Added removed language array back 2021-10-14 15:31:10 +02:00
Nikolaj Geisle d992a6e71f Changed default language for Unit & Integration tests to en-US 2021-10-14 15:20:34 +02:00
Nikolaj Geisle 885281fc89 Added Assembly attributes 2021-10-14 15:16:49 +02:00
Ronald Barendse db5028192f Merge branch 'v8/bugfix/AB14159-add-more-warnings-when-invalid-composition' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/AB14159-add-more-warnings-when-invalid-composition 2021-10-14 15:08:33 +02:00
Ronald Barendse 705a3ed4e8 Update composition validation error messages 2021-10-14 15:06:28 +02:00
Elitsa Marinovska 844cd95f1b Merge branch 'v8/bugfix/AB14159-add-more-warnings-when-invalid-composition' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/AB14159-add-more-warnings-when-invalid-composition 2021-10-14 14:58:14 +02:00
Elitsa Marinovska 6666f6aab7 Rename based on review comments 2021-10-14 14:57:52 +02:00
Ronald Barendse 1b06db8d5c Validate all content type dependencies and throw a single InvalidCompositionException 2021-10-14 14:47:57 +02:00
Nikolaj Geisle 6e540de408 Added additional logging 2021-10-14 14:36:58 +02:00
Nikolaj Geisle 76a8d4c474 Added logging in test 2021-10-14 14:07:31 +02:00
Elitsa Marinovska b8ecc17140 Pointing the actual reason for invalidating composition 2021-10-14 13:41:56 +02:00
Nikolaj Geisle 7379387b2e Added logging 2021-10-14 13:30:22 +02:00
Nikolaj Geisle 4c616dc71d Merge branch 'v9/dev' into v9/feature/add-notifcation-for-url-collision 2021-10-14 13:02:11 +02:00
Nikolaj Geisle e64d1ff4d1 Removed check for message 2021-10-14 11:26:33 +02:00
Elitsa Marinovska ccd9013d30 Adding invalid prop group aliases as ModelState errors, so we don't introduce breaking changes 2021-10-14 09:57:13 +02:00
Elitsa Marinovska 3f3262eb01 Adding property group aliases to ex.message 2021-10-14 09:54:14 +02:00
Ronald BarendseandGitHub 60be71d1a0 Remove duplicated comment 2021-10-13 23:34:50 +02:00
Ronald Barendse 1bc3290497 Fix bugs in fetching more than 2000 items (permissions and culture variations) 2021-10-13 14:10:24 +02:00
Ronald Barendse 88a20cb13c Minor query cleanup 2021-10-13 13:46:51 +02:00
Ronald Barendse a6b04a941c Replace arbitrary group size with constant 2021-10-13 13:44:33 +02:00
Ronald Barendse c5ba23a15c Add Constants.Sql.MaxParameterCount 2021-10-13 13:32:30 +02:00
Jamie TownsendandGitHub 08075e511f V8: Duplicate MemberGroup names cause MemberGroup mixup (#11291)
* Prevented duplicate member group names

* Added English lang

* Updated 'Exist' typo

* add labels in FR and NL
2021-10-13 02:08:30 +02:00
patrickdemooij9andGitHub 03b2aed91e Align create buttons styling (#11352)
* Added button for cancelling dictionary create action

* Use hideMenu

* Align dictionary create with the other creates

* Align import documenttype

* Align for data type folder create

* Align document type create buttons

* Forgot small ng-show

* Align create media folder buttons

* Align create macro buttons

* Align create relation buttons

* Align create partial view macro folder buttons

* Align partial view folder create buttons

* Align create scripts folder buttons

* Align create scripts folder buttons

* Use primary instead of success
2021-10-13 09:03:19 +10:00
Bjarne FyrstenborgandGitHub 93720c9897 Icon fallback to icon-document for existing document types (#11283) 2021-10-12 16:49:33 +02:00
Matthew CareandSebastiaan Janssen 5c25567599 Return tempFiles
Add the response data to the return. Fixes #11278
2021-10-12 14:51:52 +02:00
patrickdemooij9andSebastiaan Janssen d02440d411 11048: Bugfix for groups and properties that get replaced (#11257)
(cherry picked from commit 1605dc10bd)
2021-10-12 14:49:19 +02:00
patrickdemooij9andGitHub 1605dc10bd 11048: Bugfix for groups and properties that get replaced (#11257) 2021-10-12 14:47:03 +02:00
Nikolaj Geisle ee22d262b3 Merge remote-tracking branch 'origin/v9/feature/add-notifcation-for-url-collision' into v9/feature/add-notifcation-for-url-collision 2021-10-12 14:09:25 +02:00
Nikolaj Geisle ab0ac0f599 Ensure current thread culture 2021-10-12 14:09:04 +02:00
Nikolaj Geisle 6fcef7bc33 Ensure current thread culture 2021-10-12 14:05:45 +02:00
Sebastiaan Janssen 3f5d9df2a2 Merge branch 'v9/dev' into v9/contrib 2021-10-12 13:24:51 +02:00
Patrick de MooijandSebastiaan Janssen 04f53b7e88 Ability to remove trees in the backoffice 2021-10-12 13:19:17 +02:00
nikolajlauridsen 7c2f5c934c Add EN translations 2021-10-12 12:53:07 +02:00
Nikolaj GeisleandGitHub eb7e01f177 Merge pull request #11358 from umbraco/v9/bugfix/11290_fix_incorrect_publish_status
v9: Cherry picked fix from v8 and updated test for v9
2021-10-12 12:38:44 +02:00
Mads Rasmussen 3d53c72205 add modelValue validation for server to correctly update validation errors 2021-10-12 11:52:01 +02:00
Nikolaj GeisleandGitHub 303976b5d7 Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs 2021-10-12 11:30:49 +02:00
Paul JohnsonandNikolaj Geisle 90aebde107 Cherry picked fix from v8 and updated test for v9 2021-10-12 11:27:35 +02:00
Ronald Barendse 25d3fc90ac Change Cache-Control header when cache buster value is present 2021-10-12 11:13:54 +02:00
Ronald Barendse 83db6f5c5d Ensure crop coordinates are always added before focal point 2021-10-12 11:00:44 +02:00
Nikolaj GeisleandGitHub 4c6e01438a Merge pull request #11356 from umbraco/v8/bugfix/fix-incorrect-edited-state-for-failed-publish-11290
[v8] Resolve incorrect ContentSavedState for failed publish
2021-10-12 10:51:15 +02:00
Paul Johnson f6f5723b7b Resolve incorrect ContentSavedState for failed publish
Closes #11290 (for v8)
2021-10-12 09:19:15 +01:00
Berg 5fe30c746c Fixed breaking change! 2021-10-12 08:08:03 +02:00
Erik-Jan WestendorpandGitHub d22297270b Localization add tab text dutch (#11346)
* Update nl.xml add addTab key

* tab to tablad

* Add translation to shortcuts sections
2021-10-12 03:50:17 +02:00
Warren BuckleyandGitHub 243d0bba7b Implement IUserSessionStore<BackOfficeIdentityUser> to fix timeout bug #11350 (#11351) 2021-10-11 15:51:49 +02:00
Martino GabrielliandGitHub 359181cf11 Added missing Italian translations (#11197) 2021-10-11 14:18:47 +02:00
Laura NetoandMichael Latouche 7524b7809c Added missing documentation to Image Cropper Extensions 2021-10-11 12:43:12 +02:00
Ronald Barendse 4dd54a17f2 Update to SixLabors.ImageSharp.Web 1.0.4 and remove processing order workarounds 2021-10-11 12:12:59 +02:00
de12605095 Remove remaining web.config references in translation files (#11344)
* Remove remaining web.config references in translation files so it will fallback to the correct English text

* Remove final reference to web.config in config/lang

ru errorChangingProviderPassword

Co-authored-by: Paul Johnson <pmj@umbraco.com>
2021-10-11 06:59:48 +01:00
Patrick de MooijandNathan Woulfe 49132e2b7f 8258: Added create dictionary item button 2021-10-11 14:46:02 +10:00
Paul SealandNathan Woulfe 3dcfb6aea1 added vm. in front of the enterSubmitFolder method call on ng-keydown 2021-10-11 10:07:57 +10:00
Doug MooreGitHubMoore, Douglas S <Douglas.Moore@opm.gov>
f7ea400e5a If caching a published document, make sure you use the published Name… (#11313)
* If caching a published document, make sure you use the published Name. Closes #11074.

* Fix case of new node

Co-authored-by: Moore, Douglas S <Douglas.Moore@opm.gov>
2021-10-11 10:03:43 +10:00
Chriztian SteinmeierandNathan Woulfe 8989c4ad13 Add positioning context
A fallback for browsers that don't support `contain: content`, to make sure the positioning context is correct
2021-10-11 09:58:39 +10:00
Laura NetoandGitHub 15aa713d2a Added missing GetCropUrl overload for MediaWithCrops (#11201)
* Added missing GetCropUrl overload for MediaWithCrops with the extra configuration options

The missing overload would mean that if anyone tried to use the extra options with MediaWithCrops, they would be using the IPublishedContent extension method instead.
This would cause several issues, like not loading the local crops and returning null for a lot of scenarios that should work.

* Added documentation to the added overload

* Use extension method
2021-10-11 01:36:14 +02:00
Brian PopowandNathan Woulfe 10d1d3c30d Update ImageSharp to version 1.0.4 2021-10-11 09:20:02 +10:00
Jesper MayntzhusenandGitHub a2f05850c0 add cypress test for deleting a user (#11282) 2021-10-10 18:50:02 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 494bef878b Fix preview of SVG when height and width not are set 2021-10-10 18:30:12 +02:00
Lewis HazellandGitHub 9a5960bf1e Fixes (hides) customize button when connection string is already configured (#11273) 2021-10-10 18:08:41 +02:00
Louis JRandGitHub 9f72b7b710 Change references of Web.config to be appsettings.json (#11244) 2021-10-10 14:32:27 +02:00
Jose MarcenaroandMichael Latouche bea143fa96 Allow local API when using AspNetCore identity 2021-10-10 03:31:57 +02:00
e7da8558e5 Added support for Smtp PickupDirectory (#11253)
* Added support for Smtp PickupDirectory

* Add reference to the implementation outline by MailKit

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-10-09 03:30:58 +02:00
nikolajlauridsen 161fc7d456 Use hashset instead of list for assigned domains
We don't care about dupes
2021-10-08 14:55:44 +02:00
nikolajlauridsen 597b6f4bd2 Add final integration test 2021-10-08 14:52:22 +02:00
nikolajlauridsen 8112e1a9af Add intergration test 2021-10-08 13:08:32 +02:00
Matthew Care 4456bf4a3b Re-add original ctor
Add original ctor in case someone was using it, else this would be a breaking change
2021-10-08 11:33:39 +01:00
nikolajlauridsen 5a82d8ee2e Also display warning when publishing with descendants 2021-10-08 11:35:56 +02:00
nikolajlauridsen 8e7fb897d1 Use proper notifications instead of event messages 2021-10-08 11:24:10 +02:00
patrickdemooij9andGitHub 4c08b44684 11269: Make sure TemplateId is set correctly from cache (#11271) 2021-10-08 11:18:00 +02:00
Sebastiaan Janssen 79fdb9a876 Merge branch 'v9/dev' into v9/contrib 2021-10-08 08:49:47 +02:00
Matthew Care 8dfec54b2a Remove string
Remove a string that gets appended to the default file content.
2021-10-07 21:09:14 +01:00
Matthew Care 44c25cd016 Update tests
Fix all of the unit / integration tests
Update integration tests to remove references to ViewHelper, to make the tests more focused on what they should be testing
2021-10-07 21:08:35 +01:00
Matthew Care dc536b011b Add Umbraco Builder unique
Follow the convention of having a method on IUmbracoBuilder which allows you to set a custom content provider
2021-10-07 21:06:39 +01:00
Matthew Care 5801ba4b81 Add Default View Content Provider
Add the ability to register your own content provider, so that you can change the content which is injeted into new templates
Obsolete old static method
Register new interfaces / classes (hopefully in the correct buidler)
2021-10-07 21:05:43 +01:00
nikolajlauridsen f0f8874727 Add integration test 2021-10-07 16:34:38 +02:00
54eeaedc52 v9: bugfix 11228 Blocklist stylesheet path includes wwwroot (#11298)
* Update blocklist.blockconfiguration.overlay.controller.js

* Removed obsolete property sets, and switched to staticfilePicker

Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-07 15:43:22 +02:00
nikolajlauridsen 501ba2414f Add more unit tests 2021-10-07 15:36:11 +02:00
Nikolaj GeisleandGitHub d6b4fd567f Merge pull request #11230 from umbraco/v9/feature/debug-dashboard
v9: Created new system information section in help panel
2021-10-07 15:14:47 +02:00
nikolajlauridsen 11bfef4750 Add unit test 2021-10-07 14:12:37 +02:00
nikolajlauridsen df1d456c98 Add ContentCultureInfosBuilder 2021-10-07 14:09:34 +02:00
nikolajlauridsen 0f803ec7e9 Add ContentCultureInfosCollectionBuilder test builder 2021-10-07 13:36:18 +02:00
nikolajlauridsen ae39256a84 Specify constructor for DI 2021-10-07 12:49:36 +02:00
Nikolaj GeisleandGitHub 70831bb0c0 Update src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs 2021-10-07 10:46:54 +02:00
Nikolaj Geisle 09a35ef96c Fixed breaking change 2021-10-07 09:51:04 +02:00
Nikolaj Geisle 1a25f723f7 Updated test for the last time i swear 2021-10-07 08:33:06 +02:00
Nikolaj Geisle 861be72889 Updated systeminformation to use more helper methods 2021-10-07 08:18:10 +02:00
Nikolaj Geisle 4446de915e Merge branch 'v9/dev' into v9/feature/debug-dashboard 2021-10-07 08:16:25 +02:00
Bjarke Berg 9d4a0573d0 Merge remote-tracking branch 'origin/v9/9.0' into v9/dev
# Conflicts:
#	build/templates/UmbracoPackage/.template.config/template.json
#	build/templates/UmbracoProject/.template.config/template.json
#	src/Directory.Build.props
#	src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs
2021-10-07 07:16:32 +02:00
JesperandNathan Woulfe b74bed380d Add test to update user 2021-10-07 09:34:16 +10:00
Jason ElkinandGitHub 56c97e1c29 Add ModelsBuilder unit tests to cover Inheritance and Composition (#11261)
* Add ModelsBuilder unit tests to cover Inheritance and Composition

* add name to GenerateSimpleType test
2021-10-07 09:10:44 +10:00
Patrick de MooijandNathan Woulfe 8619cfe3ef 11251: Don't add default dashboard to url 2021-10-07 09:01:32 +10:00
Andy ButlandandGitHub bef1ccedca Exposes the entity containers (folders) created during a package installation in the summary available from the ImportedPackageNotification. (#11303)
* Exposes the entity containers (folders) created during a package installation in the summary available from the ImportedPackageNotification.

* Restored original constructors.

* Refactored to use out parameters for tracking installed entity containers.

* Removed unnecessary variable initialization.
2021-10-06 20:11:06 +02:00
nikolajlauridsen 9e5520f8c1 Only warn about cultures actually being published 2021-10-06 14:49:49 +02:00
Bjarke BergandGitHub e786491a0c Added CopyRazorGenerateFilesToPublishDirectory to the template (#11301) 2021-10-06 14:38:50 +02:00
nikolajlauridsen a8bd71ba7e Check ancestors for any configured domains 2021-10-06 14:31:42 +02:00
nikolajlauridsen 7b6bf780ce Add GetAncestorIds extension method 2021-10-06 14:30:26 +02:00
Nikolaj Geisle 0be61212a5 Updated test to actually cleanup 2021-10-06 14:07:08 +02:00
Nikolaj Geisle be66e2ea61 Updated cypress test to use newly created helper method 2021-10-06 13:53:33 +02:00
nikolajlauridsen 9e05bf156f Add translations 2021-10-06 13:02:26 +02:00
nikolajlauridsen a60594440a Localize speech bubble text 2021-10-06 12:57:21 +02:00
nikolajlauridsen 740dfcc531 Verify that published culture has domain 2021-10-06 12:26:18 +02:00
nikolajlauridsen 1921fd8a76 Verify that root node has domains when multilingual content is published 2021-10-06 11:37:03 +02:00
2a29cdc6c6 Allow opt out of import embedded schema file (#11296)
* Introduce an opt-out options from the import of embedded schema files.

* Moved the initialization of the static service provider into CoreRuntime as this runs before the IStartupFilters, and otherwise the static service provider is not available in hosted services. E.g. for migrations

* fix build

* Minor code tidy and naming alignment.

* Update src/Umbraco.Web.UI/Umbraco.Web.UI.csproj

* Removed default installation of starter kit.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-10-06 11:13:59 +02:00
MoleandGitHub 83e79f9bfa Merge pull request #11276 from umbraco/v9/bugfix/force_icu_on_windows_in_template
Force ICU usage on windows.
2021-10-06 10:28:00 +02:00
Blake IrwinandBjarke Berg 1bd827cbba Execute CopyUmbracoAssets @ BeforeBuild to prevent Rebuild failures 2021-10-06 10:25:05 +02:00
114ab93a6a Moved endpoint to new controller to avoid issue with too hard access requirements (#11264)
* Fixed https://github.com/umbraco/Umbraco-CMS/issues/11258

Moved endpoint and obsoleted the old one to avoid breaking changes..
The issue is the auth policies cannot be overridden.. You need all of them, and the controller requires you to have access to member types

* Update src/Umbraco.Web.BackOffice/Controllers/MemberTypeQueryController.cs

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>

Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2021-10-06 10:20:50 +02:00
MoleandGitHub d311cc3282 Merge pull request #11288 from umbraco/v9/bugfix_for_2fa_user_auth
Fixed bug where the wrong schema was signed in when using 2fa.
2021-10-06 10:08:56 +02:00
Bjarke Berg ca80ecf0fd Merge remote-tracking branch 'origin/v9/9.0' into v9/9.0 2021-10-06 10:07:26 +02:00
Jeavon LeopoldandBjarke Berg a6492871e8 Remove all ImageSharp.Web Processors and the re-add in the correct order 2021-10-06 10:04:49 +02:00
MoleandGitHub e36dd86d2d Merge pull request #11207 from umbraco/v8/bugfix/mntp-performance
Combine GetUrl requests when loading a MNTP with many entries
2021-10-06 08:56:12 +02:00
Søren KottalandNathan Woulfe 828558ac29 fixes wrong reference to enterSubmitFolder method in ng-keydown 2021-10-06 09:36:32 +10:00
Bjarne FyrstenborgandNathan Woulfe c7f342a6dd Use umb-icon component for icons in content type groups and tabs 2021-10-06 09:09:56 +10:00
Jeavon LeopoldandNathan Woulfe a3744f90de Remove all ImageSharp.Web Processors and the re-add in the correct order 2021-10-06 08:53:04 +10:00
BatJanandNathan Woulfe 7043d1cc0f Use medium sized overlay 2021-10-06 08:36:28 +10:00
Owain JonesandGitHub 3fcfb1b546 v8: Backoffice Welsh language translation updates (#11240)
* Updated the Welsh language file to include newly added keys (based on the en us language file)

* Updated the searchInputDescription key

* Updated the endTitle key
2021-10-06 08:34:36 +10:00
Søren KottalandNathan Woulfe ef725bac37 Removes annoying wait text, which causes layout jank 2021-10-06 08:26:44 +10:00
Bjarke Berg 9b6421947a Fixed to not use remember me type 2021-10-05 21:57:02 +02:00
Bjarke Berg 223e8661dc Fixed bug where the wrong schema was signed in. 2021-10-05 21:25:15 +02:00
MoleandGitHub a013cfb1da Merge pull request #11277 from umbraco/v9/bugfix/11081_userRepo_doesnt_retrieve_tourdata
Removed obsolete method
2021-10-05 15:01:25 +02:00
Paul Johnson 106f6dce25 Rename parameter for clarity 2021-10-05 13:45:43 +01:00
Nikolaj GeisleandGitHub 846b1c454b Merge pull request #11268 from umbraco/v9/bugfix/11188_Missing_JSON_Schema_Property_for_Smidge_Version
Fixes Missing JSON Schema Property for RuntimeMinification:Version
2021-10-05 14:36:28 +02:00
nikolajlauridsen 0d90a786e4 Try and fix acceptance tests
take 1000
2021-10-05 14:15:43 +02:00
Nikolaj Geisle 80c74968ef Updated UmbracoPocoDataBuilder.cs
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 13:48:42 +02:00
Nikolaj Geisle 62f2bdbafa Removed obsolete method
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 13:41:58 +02:00
nikolajlauridsen c05d6b774f Move timeout 2021-10-05 12:57:04 +02:00
Bjarke Berg 931e91760d Force ICU usage on windows. 2021-10-05 12:34:39 +02:00
Nikolaj Geisle fa6f96d6fa stability wait
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 11:37:18 +02:00
Nikolaj Geisle e3ff40be50 Tried to fix stability
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 11:31:02 +02:00
Nikolaj GeisleandGitHub 53df7c6a42 Merge pull request #11266 from umbraco/v9/bugfix/11263_use_email_from_smtp_settings_when_sending_invite_emails_instead_of_current_users_email_like_in_v8
Use email from SMTP settings instead of current users email when sending invite emails
2021-10-05 11:09:10 +02:00
MoleandGitHub 287022cbb0 Merge pull request #11262 from umbraco/v9/bugfix/11227_GetDictionaryValue_not_working_when_Restrict_Public_Access_is_setup
Fixed issue with culture not set when doing internal redirects due to public access
2021-10-05 09:56:39 +02:00
Laura NetoandGitHub 23d2106277 Fixed missing null check in BlockEditorPropertyEditor (#11184)
Thanks @lauraneto - reviewed this and your fix solves the issue. #h5yr
2021-10-05 08:39:56 +01:00
ZeegaanandNikolaj Geisle 44f14c9c19 Added more stability to test
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 09:39:07 +02:00
Paul SealandGitHub bdfa54af11 Changed the case of BlockList to blocklist as it breaks on *nix systems (#11219)
Changed the case of `BlockList` to `blocklist` as it breaks on Unix/Linux.
2021-10-05 08:14:50 +01:00
Nikolaj Geisle 8a6d028ddf Fixed flaky test v2
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 09:12:48 +02:00
Nikolaj Geisle 1deab9a9ad Fixed flaky test
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-05 08:48:03 +02:00
f29bda6455 Cypress test for textbox max length (#11245)
* add test for textbox max length

* remove leftover comment

Co-authored-by: Jesper <jmh@umbraco.dk>
2021-10-05 10:20:51 +10:00
Jeavon LeopoldandNathan Woulfe 9abd071457 Fix for Excessive header checker when excluding Cloudflare 2021-10-05 09:07:18 +10:00
Bjarke Berg 4d4fa4d041 https://github.com/umbraco/Umbraco-CMS/issues/11188
Fixes Missing JSON Schema Property for RuntimeMinification:Version
2021-10-04 20:01:23 +02:00
Louis JRandBjarke Berg c5ddc3d872 Change template helper to use async partials (#11243) 2021-10-04 19:49:52 +02:00
Louis JRandGitHub e416f060c2 Change template helper to use async partials (#11243) 2021-10-04 19:48:52 +02:00
Bjarke Berg 02d89ce613 https://github.com/umbraco/Umbraco-CMS/issues/11263
Fixes issue where we used the current users email when sending invite emails. Now we use the one from SMTP settings like in v8
2021-10-04 19:40:32 +02:00
Andy ButlandandBjarke Berg f3f674437d Ensured order of Deploy artifact dependencies irrespective of ICU or NLS globalization settings. (#11265) 2021-10-04 18:52:31 +02:00
Andy ButlandandGitHub eaa0f4618f Ensured order of Deploy artifact dependencies irrespective of ICU or NLS globalization settings. (#11265) 2021-10-04 18:44:14 +02:00
nikolajlauridsen 8330dec85f Make system information run locally on linux 2021-10-04 18:31:13 +02:00
nikolajlauridsen 9a04150897 Try and make input block more specific 2021-10-04 15:32:35 +02:00
nikolajlauridsen 92429942b8 Don't search in array 2021-10-04 14:54:38 +02:00
Nikolaj GeisleandGitHub 6aaa13b385 Merge pull request #11200 from umbraco/v9/feature/implement-IOptionsMonitor-instead-of-IOptions
v9: Implement IOptionsMonitor or IOptionsSnapshot instead of IOptions
2021-10-04 14:01:28 +02:00
Bjarke Berg 2922871a73 https://github.com/umbraco/Umbraco-CMS/issues/11227
Set culture from domain when internal redirecting due to public access
2021-10-04 13:42:06 +02:00
Nikolaj Geisle 7e14205996 Fixed unit test
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 13:31:00 +02:00
Nikolaj Geisle 02475695f7 Updated InMemoryModelFactory.cs
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 13:28:57 +02:00
Nikolaj Geisle 009549a433 Updated HealthCheckNotifier.cs to use IOptionsMonitor
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 13:26:32 +02:00
nikolajlauridsen c9b43ba48c Allow the period to change in Recurring host base 2021-10-04 13:22:49 +02:00
Nikolaj Geisle 9214db8cde fixed cypress test
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 13:06:04 +02:00
Nikolaj Geisle 9c39cc4583 Updated based on review
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 12:56:55 +02:00
Bjarke Berg fed6eaa03d Avoid breaking changes from merge. 2021-10-04 11:48:24 +02:00
Nikolaj Geisle e4e1d7f873 Fixed folders
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 11:37:03 +02:00
45badbd36b Apply suggestions from code review
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-10-04 11:31:38 +02:00
Nikolaj Geisle 17e53e497c Fixed Folder structure
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 11:29:14 +02:00
Bjarke Berg 779f3b7b36 Merge remote-tracking branch 'origin/v8/8.17' into v9/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Composing/CompositionExtensions/Services.cs
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Web/UmbracoApplication.cs
2021-10-04 11:23:05 +02:00
Bjarke Berg 5300d74cda Bump version to 9.0.1 2021-10-04 11:15:28 +02:00
Ronald BarendseandBjarke Berg 5a3efa72f9 Remove inherited property group id/key when local properties are added (#11231)
* Remove inherited property group id/key when local properties are added

* Rebind saved content type values

* Remove inherited from save group

(cherry picked from commit 20b9db87d0)
2021-10-04 11:14:24 +02:00
Nikolaj Geisle e383f51b65 Updated AuditNotificationsHandler.cs
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 11:14:04 +02:00
Nikolaj Geisle 89d357d00a Merge remote-tracking branch 'origin/v9/feature/implement-IOptionsMonitor-instead-of-IOptions' into v9/feature/implement-IOptionsMonitor-instead-of-IOptions 2021-10-04 11:03:56 +02:00
Nikolaj Geisle 44a7c0ce88 Updated IdentityMapDefinition.cs
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 11:03:31 +02:00
Nikolaj Geisle 33b55093de Updated IdentityMapDefinition.cs
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 10:44:23 +02:00
Nikolaj Geisle c42356ef65 Updated UmbracoRequestLocalizationOptions.cs to not use IOptionsSnapshot
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 10:41:35 +02:00
Nikolaj Geisle 20b95de2d1 Changed some classes back to use IOptionsMonitor as they are singleton services
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 10:28:59 +02:00
Ronald BarendseandSebastiaan Janssen 213d8c00aa Remove inherited property group id/key when local properties are added (#11231)
* Remove inherited property group id/key when local properties are added

* Rebind saved content type values

* Remove inherited from save group

(cherry picked from commit 20b9db87d0)
2021-10-04 10:05:19 +02:00
Nikolaj Geisle 4d35600288 updates tests to use IOptionsSnapshot
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 09:59:48 +02:00
Ronald BarendseandGitHub 20b9db87d0 Remove inherited property group id/key when local properties are added (#11231)
* Remove inherited property group id/key when local properties are added

* Rebind saved content type values

* Remove inherited from save group
2021-10-04 09:45:33 +02:00
Nikolaj Geisle 125247fddb Updated classes according to review
Signed-off-by: Nikolaj Geisle <niko737@edu.ucl.dk>
2021-10-04 09:40:57 +02:00
julian-codeandGitHub 465e9545e0 Update CONTRIBUTING.md (#11248) 2021-10-02 15:58:27 +02:00
Nikolaj Geisle ba463cddc1 Updated classes according to review 2021-10-01 14:31:59 +02:00
Nikolaj Geisle 6b5d5b4e4c Delete Root.cshtml 2021-10-01 14:23:30 +02:00
Nikolaj Geisle ef8a70580d Update help.controller.js 2021-10-01 11:20:57 +02:00
Nikolaj Geisle d42b51d6f4 Created Cypress test and renamed folder 2021-10-01 10:56:34 +02:00
Bjarke Berg 82959816d8 Bump to 9.1.0 2021-10-01 09:17:45 +02:00
Bjarke Berg a3e687026f fix js projects in sln 2021-10-01 09:15:49 +02:00
Nikolaj Geisle 22ca290884 Added Unit Tests 2021-09-30 15:51:21 +02:00
Nikolaj Geisle c4e14d183d Updated to display default language 2021-09-30 14:21:14 +02:00
Nikolaj Geisle 95568b21af Updated to display framework 2021-09-30 13:36:54 +02:00
Nikolaj Geisle 4ea1f46f2b Implemented variable data instead of hardcoded 2021-09-30 13:09:04 +02:00
Sebastiaan Janssen c3ab0ae7b5 Merge branch 'v8/dev' into v8/contrib 2021-09-30 10:18:03 +02:00
Sebastiaan Janssen 7c77ba2335 Merge branch 'v8/8.17' into v8/dev 2021-09-30 10:17:39 +02:00
Sebastiaan Janssen 11ad3fc082 Bump version to 8.17.0 2021-09-30 10:16:33 +02:00
Sebastiaan JanssenandGitHub 97ecb07be7 Fixes #11206 (#11225) 2021-09-30 10:07:05 +02:00
ShannonandSebastiaan Janssen 5c0e42e1cb Allows replacing MainDom with alternate DB
There are some cases where there is a complex hosting strategy and folks want a readonly database and are hosting on Azure. In that case, it is not entirely possible to have a readonly Umbraco database because SqlMainDom is required and part of that requirement is to have read/write access to the umbraco key value table.
This PR allows for the default MainDom to be replaced and to allow for an SqlMainDomLock to use an alternate connection string so that a separate read/write database can be used.

(cherry picked from commit 9f48a9f940)
2021-09-30 09:20:08 +02:00
ShannonandSebastiaan Janssen 9f48a9f940 Allows replacing MainDom with alternate DB
There are some cases where there is a complex hosting strategy and folks want a readonly database and are hosting on Azure. In that case, it is not entirely possible to have a readonly Umbraco database because SqlMainDom is required and part of that requirement is to have read/write access to the umbraco key value table.
This PR allows for the default MainDom to be replaced and to allow for an SqlMainDomLock to use an alternate connection string so that a separate read/write database can be used.
2021-09-30 09:19:22 +02:00
Paul JohnsonandGitHub 9c0de1970b Merge pull request #11216 from OzoneNZ/v9/bugfix/static-assets-copy
Copy static assets during BeforeBuild target to fix Visual Studio "rebuild" failures
2021-09-30 07:20:43 +01:00
Paul JohnsonandGitHub bceebea158 V9 Move sln files to root (#11212)
* Move sln files to root

* Fix tests

* Misc cleanup - remove unused helper

* Document the esoteric nature of UmbracoWebApplicationFactory

* Avoid unnecessary change to TestHelper WorkingDirectory
2021-09-29 11:51:28 +01:00
Blake Irwin 74a232d989 Execute CopyUmbracoAssets @ BeforeBuild to prevent Rebuild failures 2021-09-29 23:44:40 +13:00
Nikolaj Geisle 61de77f6be Implemented debug dashboard with hardcoded data 2021-09-27 16:52:44 +02:00
Paul Johnson 4eb75799e7 Update content picker to use GetUrlsByUdis 2021-09-27 14:39:04 +01:00
Paul Johnson 26382ab8d5 Add EntityController GetUrlsByUdis
Enables loading multiple URLs in a single request for Media & Documents
2021-09-27 14:36:29 +01:00
Nikolaj Geisle 5d47ce7daf Fixed UnitTest 2021-09-27 10:54:47 +02:00
Nikolaj Geisle e11d6ac280 Updated classes to use IOptionsMonitor or IOptionsSnapshot instead of IOptions 2021-09-27 10:32:21 +02:00
Martin Humlund Clausen 649d7fd829 Added UmbracoBuilderExtensions.AddNotificationsFromAssembly to help all notifications from within an Assembly 2021-09-27 08:28:40 +02:00
5bfab13dc5 Fixes #11189 - protected content not working (#11193)
* Fixes #11189

* Fixes #11183

* Fix test Null_When_No_Content_On_PublishedRequest.

Believe this is reasonable.

* Update src/Umbraco.Web.Website/Routing/PublicAccessRequestHandler.cs

Co-authored-by: Paul Johnson <pmj@umbraco.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-09-26 12:42:27 +02:00
Paul Johnson cf52b4648d Misc translation improvements for #11191 2021-09-24 16:58:16 +01:00
Bjarke BergandGitHub 452097d975 Fixed issue with Paths-integers being converted using local culture. (#11180)
* Fixed issue with Paths-integers being converted using local culture.

* Align with the old implementation

* Use int.TryParse insteaad of TryConvertTo when we do not want culture specific parsing

* More fixes for cultures and fixed wrong test. Users should be part of all groups to have access

* Fix casing for requested file

* Force tests to not use NLS

* try force tests to not use NLS

* try force tests to not use NLS

* Force tests on windows to run ICU

* More fixes for invariant int parsing

* Change key on actions/emptyRecycleBin, so the casing aligns with the view file, that is named emptyrecyclebin.html

* Fixed casing issue

* use Attempt to align with other code
2021-09-24 16:42:31 +01:00
Elitsa MarinovskaandGitHub 936757297e Reintroducing removed lang keys (#11178) 2021-09-24 14:03:25 +02:00
Nikolaj Geisle 8ce66277ce Updated classes to use IOptionsMonitor or IOptionsSnapshot 2021-09-24 12:45:34 +02:00
Nikolaj Geisle 8c26a86a55 Updated classes to use IOptionsMonitor and IOptionsSnapshot instead of IOptions 2021-09-24 09:45:00 +02:00
Nikolaj Geisle 10c2561d0a Updated Classes to use IOptionsMonitor or IOptionsSnapshot instead of IOptions 2021-09-23 15:31:46 +02:00
Nikolaj Geisle eb01984763 Created TestOptionsMonitor.cs and updated tests to use this new class 2021-09-23 11:49:47 +02:00
Nikolaj Geisle 3596d527b2 Updated logscrubber to use IOptionsMonitor 2021-09-23 10:53:59 +02:00
Nikolaj Geisle 7e304cbf56 updated KeepAlive to use IOptionsMonitor 2021-09-23 10:49:24 +02:00
Nikolaj Geisle 689f022dea Updated BackOfficeServerVariables to use IOptionsMonitor 2021-09-23 10:38:53 +02:00
Nikolaj Geisle 03ccd29831 Updated BackOfficeServerVariables to use IOptionsMonitor instead of IOptions 2021-09-23 10:30:22 +02:00
Zeegaan 9e685813cd Updated BackOfficeSessionIdValidator 2021-09-23 09:42:04 +02:00
Zeegaan 6631839a6a Updated BackOfficeAssetsController to use IOptionsSnapshot 2021-09-23 09:41:00 +02:00
Zeegaan 0bb086c53d Changed AuditNotificationHandler to use IOptionsMonitor, but not the cached value, as this is a transient service 2021-09-23 09:28:56 +02:00
Zeegaan 7541648e24 Updated BackOfficeController 2021-09-23 09:20:13 +02:00
Zeegaan 8218ba0c97 Updated BackOfficeController to use IOptionsSnapshot 2021-09-23 09:19:56 +02:00
Zeegaan 2aa7f3d130 Updated AutoModelsNotificationHandler to use IOptionsMonitor 2021-09-23 08:50:50 +02:00
Zeegaan e345a8c27f updated AutoModelsNotificationHandler 2021-09-23 08:43:08 +02:00
Zeegaan e8df59d32a UpdatedBackOfficeAntiforgery 2021-09-23 08:40:15 +02:00
Zeegaan cefed26563 Use IOptionsSnapshot in transient services 2021-09-23 08:33:16 +02:00
Bjarke Berg 9194eb9bd0 Merge branch 'v9/9.0-rc004' into v9/dev 2021-09-22 23:58:00 +02:00
Jason ElkinandBjarke Berg dd72c18b19 add MaybeNull attribute to mixin properties (#11171) 2021-09-22 23:54:20 +02:00
Bjarke BergandAndy Butland 913e812f84 Add folderkeys to package xml. (#11172)
* Add folderkeys to package xml.

* Cleanup

* Use folderKeys to find child

* Fix potential issue with when no folder

* Fixed logic issue.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-09-22 23:54:13 +02:00
Jason ElkinandGitHub a7495d529f add MaybeNull attribute to mixin properties (#11171) 2021-09-22 23:52:28 +02:00
d007fa0012 Add folderkeys to package xml. (#11172)
* Add folderkeys to package xml.

* Cleanup

* Use folderKeys to find child

* Fix potential issue with when no folder

* Fixed logic issue.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-09-22 23:52:09 +02:00
Bjarke Berg c15c42eb83 Fixes for members 2021-09-22 23:49:16 +02:00
Jan SkovgaardandSebastiaan Janssen b6268e3650 Bump version to 8.17.0-rc2 2021-09-22 23:12:45 +02:00
Bjarke Berg 22546fd629 bump version to 9.0.0 2021-09-22 21:30:26 +02:00
Bjarke BergandGitHub 63448fb171 Merge pull request #11159 from umbraco/v9/bugfix/AB13851-correct-file-name-references
V9: Fix incorrect static filenames references
2021-09-22 20:35:29 +02:00
Bjarke BergandGitHub 9b357ab00e Merge pull request #11111 from umbraco/v9/feature/language-keys-cleanup
V9: Cleaning up unused or duplicated language keys
2021-09-22 20:35:15 +02:00
Bjarke BergandGitHub 10625b6aad Merge pull request #11167 from Jeavon/task/migrateIsMaster
Add migration for isMaster column to isSchedulingPublisher in UmbracoServer table
2021-09-22 20:34:55 +02:00
Bjarke BergandGitHub 69e47fc5e0 Merge pull request #11168 from umbraco/v9/hack/fix_for_dotnet6_preview1
Fix for dotnet6 preview1 when using runtime compiled views (default umbraco)
2021-09-22 19:44:07 +02:00
Bjarke Berg 0411d9410b Merge remote-tracking branch 'origin/v9/dev' into v9/feature/language-keys-cleanup
# Conflicts:
#	src/Umbraco.Web.UI/umbraco/config/lang/nl.xml
2021-09-22 19:24:35 +02:00
Bjarke Berg f2df363c77 Fix for issue while running .NET6 with runtime compiled views 2021-09-22 19:07:53 +02:00
Bjarke Berg f52de653a4 Fixed more casing issues.. 2021-09-22 18:48:19 +02:00
Jeavon Leopold a3ca09c82e Update SQL that contains isMaster 2021-09-22 17:41:18 +01:00
Jeavon Leopold f18af9aaf4 Merge branch 'v9/dev' into task/migrateIsMaster 2021-09-22 17:36:42 +01:00
Andy ButlandandGitHub fee3d0778a Serializes key for templates in package definition and imports if ava… (#11163) 2021-09-22 18:21:53 +02:00
Bjarke BergandGitHub e5ce9deeb6 Merge pull request #11158 from umbraco/v9/bugfix/fixed-flaky-usergroup-test
v9: fixed flaky usergroup test
2021-09-22 17:37:57 +02:00
Jeavon Leopold 43d2eebaaa Add migration for isMaster column to isSchedulingPublisher 2021-09-22 16:27:37 +01:00
Bjarke Berg 5fab8f22c7 Bump Smidge to 4.0.0 final 2021-09-22 15:55:24 +02:00
Bjarke Berg 890fe589bf Merge remote-tracking branch 'origin/v8/8.17' into v9/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/components/content/umb-tabbed-content.html
#	src/Umbraco.Web.UI.Client/src/views/components/elementeditor/umb-element-editor-content.component.html
#	src/Umbraco.Web.UI.Client/src/views/media/apps/content/content.html
#	src/Umbraco.Web.UI.Client/src/views/member/apps/content/content.html
#	src/Umbraco.Web/PropertyEditors/NestedContentController.cs
2021-09-22 15:41:31 +02:00
Jan SkovgaardandSebastiaan Janssen e269d1bcd0 Grid: Add button styling fix (#10978)
* Add missing focus styling

* Ensure add button is perfectly rounded and remove unused / uneeded CSS.

* Remove redundant border-color property

* Revert removal of unused css

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
(cherry picked from commit 31ecc146d1)
2021-09-22 14:26:55 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 52f3350e76 Adjust icon in umb-checkbox and ensure icon is centered
(cherry picked from commit c49c5369e3)
2021-09-22 14:24:25 +02:00
Corné StrijkertandSebastiaan Janssen f776dbb616 Missing nl translation for blockEditor_addBlock
(cherry picked from commit 674edd3a97)
2021-09-22 14:22:02 +02:00
Bjarne FyrstenborgandSebastiaan Janssen a09103dc82 Align sortable handle vertically in multivalues prevalue editor
(cherry picked from commit 46e6f050cb)
2021-09-22 14:19:36 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 7548074fa3 Fix incorrect attribute
(cherry picked from commit 6c512107a4)
2021-09-22 14:10:31 +02:00
Elitsa Marinovska e00038d6d0 Merge branch 'v9/dev' into v9/feature/language-keys-cleanup 2021-09-22 13:50:28 +02:00
Zeegaan 27b85aa08f Updated AuthenticationController to use IOptionsMonitor, but not subscribed to events 2021-09-22 13:45:04 +02:00
Zeegaan 32b406d077 AuditNotificationsHandler updated to use IOptionsMonitor 2021-09-22 13:31:28 +02:00
Zeegaan e6e52d0fbf Updated AspNetCoreRequestAccessor to use IOptionsMonitor 2021-09-22 13:04:58 +02:00
Zeegaan 14498f8457 Updated AngularJsonOnlyConfigurationAttribute 2021-09-22 12:53:07 +02:00
Zeegaan ab131ef1ab Updated AliasUrlProvider to use IOptionsMonitor 2021-09-22 12:50:58 +02:00
Zeegaan 5076996a14 Updated ApplicationBuilderExtensions with IOptionsMonitor 2021-09-22 12:49:49 +02:00
Zeegaan 1efc630413 Updated UmbracoPluginPhysicalFileProvider 2021-09-22 12:43:00 +02:00
Elitsa Marinovska 60a179c354 Fix references to wrong file names 2021-09-22 10:40:49 +02:00
Nikolaj GeisleandGitHub ef7fe700f4 Merge pull request #11157 from umbraco/v8/bugfix/11100-fix-multi-url-picker-in-block-list
Fix Multi URL Picker in Block List Editor
2021-09-22 10:39:29 +02:00
Elitsa Marinovska 02791141c4 Remove renaming toLower when copying the resource files in the gulp task 2021-09-22 10:39:02 +02:00
Zeegaan 46f55b8477 Updated cypress test 2021-09-22 09:57:03 +02:00
Mads Rasmussen b6338cacb3 prevent tab properties to be rendered twice 2021-09-22 09:26:02 +02:00
ffa704c5d0 Cleanup examine search results, and adds ability to toggle fields (#9141)
* Cleanup examine search results, and adds ability to toggle fields

* update table to use joinarray filter with one-time binding to avoid recalculating filter values, updated filter to not explode when array arg is null

* fix failing tests - improve filter to not fail on non-array params, update tests accordingly

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-22 13:25:10 +10:00
48a3a0524d Create content template localization (#10945)
* Don't use self-closing element for custom HTML elements

* Use button element for close/cancel in copy dialog

* Update localization of "createBlueprintFrom"

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-22 10:27:16 +10:00
31ecc146d1 Grid: Add button styling fix (#10978)
* Add missing focus styling

* Ensure add button is perfectly rounded and remove unused / uneeded CSS.

* Remove redundant border-color property

* Revert removal of unused css

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-09-22 09:49:49 +10:00
Bjarne FyrstenborgandNathan Woulfe 6c512107a4 Fix incorrect attribute 2021-09-22 09:30:48 +10:00
Bjarke BergandGitHub 4edf29ee2d Merge pull request #11155 from umbraco/v9/bugfix/10730-route-hijacking-public-access
Fixes 10730 - Route hijacking with public access
2021-09-21 20:20:52 +02:00
Bjarke BergandGitHub 31034c76cb Merge pull request #11154 from umbraco/v9/bugfix/11150
Fixes #11150 V9: MediaPicker3 casing incorrect
2021-09-21 19:33:21 +02:00
Shannon c4fdf808d3 Fixes 10730 - Route hijacking with public access 2021-09-21 10:49:45 -06:00
Bjarke BergandGitHub 8d2c1acb75 Merge pull request #11153 from umbraco/v9/bugfix/persist-isapproved
Fixes persisting the IsApproved for users
2021-09-21 18:37:19 +02:00
Sebastiaan Janssen 80386db368 Fixes #11150
V9: MediaPicker3 casing incorrect
2021-09-21 17:47:16 +02:00
Shannon cbafef2f03 Adds user store test 2021-09-21 09:21:28 -06:00
Shannon 65cfc14cdb Fixes persisting the IsApproved for users 2021-09-21 08:56:10 -06:00
Bjarke BergandGitHub 1b0911fd06 Merge pull request #11151 from umbraco/v9/bugfix/fixed_tabs_test_on_every_resolution
v9: fixed tabs test on every resolution
2021-09-21 16:20:14 +02:00
Zeegaan 4a1dffcd24 Update tabs.ts 2021-09-21 15:37:46 +02:00
Bjarke BergandGitHub ee132afa42 Merge pull request #11102 from umbraco/v9/bugfix/packagedatainstallation-macropartialviews
Use IFileService to save macro partial views in package migration
2021-09-21 14:18:36 +02:00
Bjarke BergandGitHub 241b303b79 Merge pull request #11149 from umbraco/v9/feature/examine-dependencies
Update Examine dependencies to 2.0.0
2021-09-21 14:17:00 +02:00
Bjarke BergandGitHub e84f4b29e5 Merge pull request #11148 from umbraco/v9/bugfix/11083-nested_content_missing_properties_on_member_edit
V9/bugfix/11083 nested content missing properties on member edit
2021-09-21 14:14:57 +02:00
Nikolaj 6c1ced201f Merge branch 'v9/dev' of https://github.com/umbraco/Umbraco-CMS into v9/dev 2021-09-21 13:56:54 +02:00
Nikolaj fd67e19bc8 Fix ambiguous reference in IPublishedContentQuery 2021-09-21 13:56:37 +02:00
Ronald Barendse d1207148a8 Update package definition with all installed file paths (stylesheets, scripts, partial views) 2021-09-21 13:29:00 +02:00
Sebastiaan Janssen 43a33cc1c4 Update Examine dependencies to 2.0.0 2021-09-21 13:27:36 +02:00
Zeegaan a7d60badd3 fixed NestedContentController to use pattern matching instead of equals operator 2021-09-21 13:25:11 +02:00
Ronald BarendseandZeegaan ae85c959d4 Updated predicate to use GetParentAlias() 2021-09-21 13:20:07 +02:00
Mads RasmussenandZeegaan de47f95c4f alias is changed. We need to compare with label instead 2021-09-21 13:19:17 +02:00
Mads RasmussenandZeegaan a6afe2bdf3 cherry picked f7b485a 2021-09-21 13:18:39 +02:00
Nikolaj GeisleandGitHub 3ad2e74f45 Merge pull request #11145 from umbraco/v8/bugfix/11114-nested-content-not-rendering
Fixes Nested Content not rendering
2021-09-21 13:07:42 +02:00
Bjarke BergandGitHub cf89841e8d Merge pull request #11146 from umbraco/v9/bugfix/handle_maindom_on_install_issue
Handle maindom was acquired doing install, so we do not have our lock…
2021-09-21 13:04:02 +02:00
dd85ca6fad Update src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-09-21 12:47:02 +02:00
199c8b7681 Update src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-09-21 12:39:45 +02:00
b9ec06555f Update src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-09-21 12:37:23 +02:00
Bjarke Berg 8d74efb635 Handle maindom was acquired doing install, so we do not have our lock Id in the database.. 2021-09-21 12:28:49 +02:00
Ronald BarendseandGitHub 5796b841e3 Updated predicate to use GetParentAlias() 2021-09-21 12:01:02 +02:00
Ronald Barendse a9d8f5fa5b Fix exporting/importing macro partial views using a virtual file path 2021-09-21 11:22:40 +02:00
Mads Rasmussen 426050374d alias is changed. We need to compare with label instead 2021-09-21 11:19:04 +02:00
Mads Rasmussen f7b485a199 filter out tabs and groups in tabs for nested content 2021-09-21 11:18:34 +02:00
Ronald Barendse 8b853b17ac Include installed media to package definition on install 2021-09-21 11:11:40 +02:00
Bjarke Berg 63807bc65f Bump version to RC4 2021-09-21 10:51:43 +02:00
Callum WhyteandGitHub 405ed44bb1 Falling back to contentTypeName when Block List label is empty (#10963)
* Falling back to contentTypeName when Block List label is empty

* Adding $contentTypeName variable for Block List labels
2021-09-21 16:41:21 +10:00
1e1276f270 10341: Use different picker for content types (#10896)
* 10341: Use different picker for content types

* use es6 where possible (inc removing underscore for teeny tiny performance improvement)

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-21 16:18:15 +10:00
Bjarne FyrstenborgandNathan Woulfe 46e6f050cb Align sortable handle vertically in multivalues prevalue editor 2021-09-21 14:58:04 +10:00
9a246a1970 Implement icon parameter for doctype editor (#11008)
* fix: implement icon parameter for doctype editor

issue #10108

* fix: move color from icon to class attribute

* fix: removed defined colors, defaulting to the standard dark grey (ie "no color picked" in icon picker)

* cleaned up unused dependencies, double quotes to single, removed unused 'color' param from the create methods, and use shorthand object creation in createDocType (if the key has the same name as the variable passed as a prop, we only need to pass the key name)

* fix comment

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-09-21 14:56:27 +10:00
Corné StrijkertandMichael Latouche 674edd3a97 Missing nl translation for blockEditor_addBlock 2021-09-21 03:18:38 +02:00
Bjarke BergandGitHub 2575432e4b Merge pull request #11126 from An0d/v9/9.0-rc003
Fix: AllowAnonymous attribute on Action is ignored when UmbracoMember…
2021-09-20 21:30:21 +02:00
Bjarke BergandGitHub f088a9b637 Merge pull request #11127 from umbraco/v9/feature/localdb-install-option
Add LocalDB database install option and implement automatic database creation
2021-09-20 20:02:30 +02:00
Bjarke Berg baa51d9469 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-09-20 12:59:22 +02:00
Bjarke Berg e95a759181 Updated nuget package dependencies 2021-09-20 12:59:14 +02:00
MoleandGitHub 85e8caf306 Merge pull request #11105 from umbraco/v9/bugfix/11097-apparently_the_swedish_minus_symbol_is_different_from_us_and_dk
V9: Use invarint culture when parsing ints
2021-09-20 12:34:25 +02:00
Bjarke Berg fb24e4eca5 Removes the sv-SE test, as it is expected to fail for "-1" 2021-09-20 11:49:51 +02:00
Ronald Barendse f638636c10 Update default LocalDB connection string to equal parsed value 2021-09-20 11:45:08 +02:00
Bjarke BergandGitHub 1a794fe6fc Merge pull request #11136 from umbraco/v9/bugfix/10977-Region-and-UI-cultures-are-different
Fixed cultures to now both seperately in the backoffice and frontend …
2021-09-20 11:41:58 +02:00
Ronald Barendse fed720042c Fix ParseConnectionString to pass tests 2021-09-20 11:38:54 +02:00
Bjarke Berg 68d4d76da2 Use Invariant when toString userIds 2021-09-20 11:30:09 +02:00
Bjarke Berg 25aae38a25 Explictly uses int.TryParse Invariant when the input is not from a user 2021-09-20 11:22:51 +02:00
Bjarke Berg 8060d41dba More rollback 2021-09-20 11:17:38 +02:00
Bjarke Berg ef39f36d63 Rollback changes to TryConvertTo (now it is always current culture) and uses int.tryParse directly where we know it do not come from user input 2021-09-20 11:15:32 +02:00
Bjarke BergandGitHub 27e74e78bc Merge pull request #11104 from umbraco/v8/feature/implement-tabs-cypress-test
Feature - Implemented new cypress tests
2021-09-20 10:50:44 +02:00
Nikolaj c08c9c9160 Don't ToString int only to parse it back
This seems to be a fix for a VERY old issue (U4-5223), when ID was seemingly saved as int16, so we parsed it back to int32, this doesn't make sense anymore since the ID is int32 to begin with.
2021-09-20 10:39:34 +02:00
JeavonandGitHub 981e096a19 Rename server roles, master = SchedulingPublisher and replica = Subscriber (#10480) 2021-09-20 10:37:58 +02:00
Zeegaan 3b9593614c Fixed cultures to now both seperately in the backoffice and frontend check for both region culture and UI culture 2021-09-20 10:29:03 +02:00
Bjarke BergandGitHub dc8d338ba4 Merge pull request #11052 from umbraco/v9/bugfix/AB13489-no-error-when-exceeding-maxAllowedContentLength
V9: Update MaxRequestBodySize on both IIS Server and Kestrel Server
2021-09-20 09:32:09 +02:00
Bjarke Berg 3ffbbf64e5 Clean up 2021-09-20 08:40:23 +02:00
Bjarke Berg 0a042b2c37 IIS can only handle ~4GB uploads. No good documentation, but found a couple of places documenting this. E.g. https://newbedev.com/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7 2021-09-20 08:39:59 +02:00
Bjarke Berg e960ca6fdb Handle null in ConfigureKestrelServerOptions.cs 2021-09-20 07:56:22 +02:00
Bjarke Berg c7fcb4abaa Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/AB13489-no-error-when-exceeding-maxAllowedContentLength
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbfiledropzone.directive.js
2021-09-20 07:56:06 +02:00
Bjarke Berg 898f270c69 Merge remote-tracking branch 'origin/v8/8.17' into v9/dev 2021-09-20 07:42:37 +02:00
Bjarne FyrstenborgandNathan Woulfe c49c5369e3 Adjust icon in umb-checkbox and ensure icon is centered 2021-09-20 08:28:57 +10:00
Bjarke BergandGitHub af35757b11 Merge pull request #11051 from umbraco/v9/bugfix/httpscheck-concurrency
Fix concurrency and certificate days to expiry issues in HttpsCheck
2021-09-19 21:01:05 +02:00
Bjarke BergandGitHub 7fdb6d2c24 Merge pull request #11130 from umbraco/v9/bugfix/dynamic-routing-fixes
UmbracoRouteValueTransformer fixes
2021-09-19 19:29:20 +02:00
Ronald Barendse bc29155032 Fix parsing of connection string during setup 2021-09-18 00:23:47 +02:00
Shannon 9306861d76 Better candidate checking. 2021-09-17 13:49:12 -06:00
Shannon 57bbbfa7d3 better null checks 2021-09-17 13:35:43 -06:00
Shannon 2ede06485c fix/add tests 2021-09-17 12:47:41 -06:00
Ronald Barendse fd5cef6b42 Support DataDirectory placeholder in LocalDB connection string 2021-09-17 20:20:36 +02:00
Shannon d27dc05f32 Return null from UmbracoRouteValueTransformer when there is no matches, use a custom IEndpointSelectorPolicy to deal with 404s. 2021-09-17 12:02:04 -06:00
Ronald Barendse 4ad34270dd Remove runtime state dependency in InstallHelper 2021-09-17 19:59:54 +02:00
Shannon 494c9f1b42 UmbracoRouteValueTransformer fixes 2021-09-17 10:29:24 -06:00
Ronald Barendse ab28251558 Use RuntimeState to determine whether to install missing database 2021-09-17 16:30:46 +02:00
Ronald Barendse d702b2f616 Fix non-Windows database configuration install step 2021-09-17 13:10:21 +02:00
Ronald Barendse 51002ba7a4 Minor code cleanup 2021-09-17 12:52:23 +02:00
Ronald Barendse 074bbb045b Install missing database during unattended install 2021-09-17 12:52:05 +02:00
Ronald Barendse 81cbbd8614 Add LocalDB database option to installer 2021-09-17 12:50:25 +02:00
Ronald Barendse 785630922e Rename IEmbeddedDatabaseCreator to IDatabaseCreator and refactor implementations 2021-09-17 12:48:48 +02:00
Ronald Barendse b82fc3350f Set default UmbracoConnectionString value 2021-09-17 11:57:49 +02:00
Ronald Barendse 57610c96b9 Detect as brand new install if we can't connect and InstallMissingDatabase is enabled 2021-09-17 11:57:20 +02:00
An0d e6413aad0a Fix: AllowAnonymous attribute on Action is ignored when UmbracoMemberAuthorize is set on Controller
Ref: https://github.com/umbraco/Umbraco-CMS/issues/11125
2021-09-17 11:22:09 +02:00
Bjarke Berg e2ab9a2285 Clean up 2021-09-17 08:29:34 +02:00
Shannon DeminickandGitHub cdae12aee0 Merge pull request #11124 from umbraco/v9/bugfix/11123-fixed_issue_with_variation_context_not_initialized
Initializing the IVariationContextAccessor in the UmbracoRequestMiddleware.
2021-09-17 06:18:41 +10:00
Bjarke Berg c799d9e45c https://github.com/umbraco/Umbraco-CMS/issues/11123 initializing the IVariationContextAccessor if the UmbracoRequestMiddleware 2021-09-16 21:59:52 +02:00
Elitsa Marinovska cef90038f6 Last file cleanup 2021-09-16 16:36:03 +02:00
Bjarke Berg f96c6beaa8 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-09-16 14:20:12 +02:00
Bjarke BergandGitHub e1333fee49 Merge pull request #11121 from umbraco/v8/bugfix/keep-existing-propertygroup-key
Add property group key to save model
2021-09-16 14:20:00 +02:00
Ronald BarendseandBjarke Berg 4a1820b80d Add property group key to save model 2021-09-16 14:18:15 +02:00
Ronald Barendse 1baa4cf653 Add property group key to save model 2021-09-16 14:07:31 +02:00
Bjarke Berg 42987b2128 clean up 2021-09-16 14:07:00 +02:00
Warren BuckleyandGitHub 138ef42884 Adds new dotnet new template arg --use-https-redirect (#11115) 2021-09-16 13:39:56 +02:00
Elitsa Marinovska ec0ecfd16c Merge remote-tracking branch 'origin/v9/dev' into v9/feature/language-keys-cleanup 2021-09-16 08:25:56 +02:00
BatJanandMichael Latouche e056918e4f Ensure the expression is interpolated so the aria-selected attribute has a proper true/false value 2021-09-16 01:54:08 +02:00
Elitsa Marinovska 062116aedb Cleaning up last half of lang files 2021-09-15 20:10:30 +02:00
Elitsa Marinovska c1a55979f7 First half of lang files cleaned up 2021-09-15 17:21:58 +02:00
Ronald Barendse aa15b0d244 Simplify parsing provider name from connection string 2021-09-15 15:41:20 +02:00
Ronald Barendse 27043bec59 Remove custom SQL CE checks from IsConnectionStringConfigured 2021-09-15 15:30:21 +02:00
Bjarke Berg 35cfcfcc0c Fixed acceptance tests to use v9 templates 2021-09-15 14:54:27 +02:00
Bjarke Berg 9b2acd098c Merge remote-tracking branch 'origin/v8/feature/implement-tabs-cypress-test' into v9/dev 2021-09-15 14:30:47 +02:00
Andy ButlandandGitHub b21b93dfbd Merge pull request #11103 from umbraco/v9/bugfix/dotnet-new-template-connectionstring
Fixes issue with dotnet new template if you did not specify a connection string
2021-09-15 14:23:59 +02:00
Bjarke Berg dd8b1d27ef Do not handle date time as invariant 2021-09-15 13:59:01 +02:00
Zeegaan 2e14abc744 Implemented tabs test 2021-09-15 13:48:32 +02:00
Bjarke Berg 39faf63f9c Fixed tryParse 2021-09-15 13:40:08 +02:00
Warren Buckley 465d730616 Fixes issue with dotnet new template if you did not specify a connection string it was adding an empty one in appsettings.dev 2021-09-15 11:55:53 +01:00
Warren BuckleyandGitHub ac34a20db2 Merge pull request #11101 from umbraco/v9/feature/added-no-nodes-view-path-option-to-template
Added option to set NoNodesViewPath in umbraco template.
2021-09-15 10:49:21 +01:00
Andy Butland b8a135626d Moved NoNodesViewPath destination from template to appSettings.json. 2021-09-15 11:19:12 +02:00
Ronald Barendse c2a184482c Add null checks when writing summary text 2021-09-15 11:03:28 +02:00
Elitsa Marinovska 45a9a94aba Change from int.MaxValue to long.MaxValue 2021-09-15 10:41:58 +02:00
Andy Butland d52fd92bbd Fixed JSON syntax error 2021-09-15 10:21:32 +02:00
Elitsa Marinovska fc29a2ccd7 Cherry-picking the https://github.com/umbraco/Umbraco-CMS/pull/11061 UI fix 2021-09-15 10:00:01 +02:00
Elitsa Marinovska 00bd5bd6ee Fixing the IIS Express maxAllowedContentLength 2021-09-15 09:57:56 +02:00
Sebastiaan JanssenandGitHub ee42a7ebac Add the correct year of open sourcing Umbraco on the license 2021-09-15 09:57:03 +02:00
Andy Butland 9a3f77ed83 Added option to set NoNodesViewPath in umbraco template. 2021-09-15 09:45:15 +02:00
Elitsa Marinovska 720006457e Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/AB13489-no-error-when-exceeding-maxAllowedContentLength 2021-09-15 09:28:06 +02:00
Mads RasmussenandGitHub 09db4ed4a5 Show UI errors for invalid files in media upload (#11061) 2021-09-15 09:18:36 +02:00
Ronald Barendse af0f263e3c Fix code formatting 2021-09-14 23:56:49 +02:00
Ronald Barendse 26b26a940d Write all installation results to summary text 2021-09-14 23:50:25 +02:00
Ronald Barendse 7e7e28f7c7 Use IFileService to save macro partial views 2021-09-14 23:48:24 +02:00
Bjarke Berg f68717c1c8 Temp commit 2021-09-14 22:13:39 +02:00
Bjarke BergandGitHub 8d58e31bcf Merge pull request #11096 from umbraco/v9/feature/merge_v8_14092021
V9: Merged 8.17RC (14/09/2021)
2021-09-14 14:07:14 +02:00
Bjarke Berg b30dcf905b Merge remote-tracking branch 'origin/v8/8.17' into v9/feature/merge_v8_14092021
# Conflicts:
#	src/Umbraco.Core/PropertyEditors/MultiUrlPickerConfiguration.cs
#	src/Umbraco.Web/HealthCheck/Checks/Security/ExcessiveHeadersCheck.cs
2021-09-14 13:10:44 +02:00
Sebastiaan Janssen 237ac53928 Merge branch 'v8/dev' into v8/8.17 2021-09-14 12:57:13 +02:00
Andy ButlandandGitHub b666596ad3 Merge pull request #11095 from umbraco/v9/dotnet-template-sqlce-conn
V9 dotnet new template - allow just setting connection string on its own
2021-09-14 12:05:43 +02:00
Warren Buckley e7b1f09254 Remove condition around connection string needed to have all unattended arguments in dotnet new template set
This is for Umbraco cloud team as they want to set a connection string with the dotnet new template but not set the rest of the unattedend arguments
2021-09-14 10:56:31 +01:00
Bjarke BergandGitHub 1ed2cf38c2 Merge pull request #11092 from umbraco/v9/feature/licenses-folder
Added a constant for reference to the umbraco/Licenses folder.
2021-09-14 11:42:14 +02:00
Andy Butland ef69847645 Added a constant for reference to the umbraco/Licenses folder. 2021-09-14 11:36:01 +02:00
Bjarke Berg f3096c99da Merge remote-tracking branch 'origin/v8/8.17' into v9/feature/merge_v8_14092021
# Conflicts:
#	src/Umbraco.Core/ConfigsExtensions.cs
#	src/Umbraco.Core/Configuration/CoreDebug.cs
#	src/Umbraco.Core/Scoping/ScopeProvider.cs
#	src/Umbraco.Infrastructure/Scoping/Scope.cs
#	src/Umbraco.PublishedCache.NuCache/ContentStore.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/UnitOfWorkTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Scoping/ScopeUnitTests.cs
#	src/Umbraco.Tests/Components/ComponentTests.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web/HealthCheck/Checks/Security/BaseHttpHeaderCheck.cs
2021-09-14 11:32:43 +02:00
Bjarne FyrstenborgandGitHub 71733b72d9 Remove restricted image size when opening media (#10940)
* Remove restricted image size as SVG are vector and we already handle max size in css

* Use css class instead of inline style

* Add required src and alt attributes to img tag - ng-src will populate value of src attribute

* Align folder icon in medie entry editor
2021-09-14 17:57:16 +10:00
Mads RasmussenandSebastiaan Janssen c6a1765c95 set form to dirty when add tab, delete tab, add group, and delete group 2021-09-14 08:41:32 +02:00
Bjarne FyrstenborgandNathan Woulfe a4e472b4d3 Stream line <umb-progress-bar> and <umb-progress-circle> 2021-09-14 16:02:56 +10:00
Bjarne FyrstenborgandGitHub aa48cdbbfd Media picker 3 preview with checkered background (#10939)
* Set property editor limit width on parent like other property editors

* Use checkered background in media picker 3 preview like the legacy media picker
2021-09-14 15:58:59 +10:00
5b62516114 Grid: labels offset fix (#10979)
* Add missing focus styling

* Ensure labels have the proper pixels offset

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-09-14 15:54:46 +10:00
Jeavon LeopoldandNathan Woulfe 8810b98003 Exclude "Server" header from excessive check if the value is "cloudflare" 2021-09-14 15:46:41 +10:00
Bjarne FyrstenborgandGitHub e42af34b5f Introduce overlaysize prevalue editor (#11010)
* Introduce overlaysize prevalue editor instead of redundant prevalue editor for each property editor

* Move ordering of properties

* Change overlaySizeWidth to overlaySize

* Make it clear overlay is only for link picker

* Fix overlay size not working for link picker in rich text editor
2021-09-14 15:43:21 +10:00
Sebastiaan Janssen a1e965cce6 Merge branch 'v8/dev' into v8/8.17 2021-09-13 16:22:44 +02:00
Ronald BarendseandGitHub a7732d76f8 Merge pull request #11086 from umbraco/v8/fix/frontend-dependencies
Updating Angular and jQuery to the latest available version
2021-09-13 15:38:30 +02:00
Bjarne FyrstenborgandSebastiaan Janssen eb7b570002 Include MediaService extensions 2021-09-13 15:19:28 +02:00
Sebastiaan Janssen 25d482f42f Add package-lock.json updates 2021-09-13 14:41:21 +02:00
Jeavon LeopoldandSebastiaan Janssen fb466f4309 Fix string interpolation for health check messages 2021-09-13 13:11:54 +02:00
Shannon DeminickandGitHub 5fadb238ee Don't eagerly acquire distributed (SQL) locks (#10171) 2021-09-13 13:09:47 +02:00
Sebastiaan Janssen cacd471601 Updating Angular and jQuery to the latest available version 2021-09-13 13:03:29 +02:00
Paul Johnson cafbe89f61 Template bugfix for ModelsBuilder, don't attempt to compile ood.flag marker. 2021-09-13 10:56:33 +01:00
Chad CurrieandSebastiaan Janssen b17cc47632 Fix message template to not mix string interpolating and formatting. 2021-09-13 11:10:26 +02:00
Paul Johnson 6dec0f9aba Template bugfix for ModelsBuilder default path in SourceCode mode(s) 2021-09-13 09:25:09 +01:00
Bjarke BergandGitHub 2ac5bb0dc4 Merge pull request #11039 from umbraco/v9/feature/cancellation_now_works_on_content
V9/feature/cancellation now works on content
2021-09-13 08:45:15 +02:00
Bjarke BergandGitHub 91ba144f3b Merge pull request #11076 from umbraco/v9/bugfix/9661-bool-conversion
Fixes #9661 boolean conversion
2021-09-10 21:01:51 +02:00
Shannon 7b5b6eea2c Fixes #9661 boolean conversion 2021-09-10 11:28:04 -06:00
Nikolaj GeisleandGitHub fa0fb5a2a2 Merge pull request #11065 from umbraco/v9/missing-gitignore-in-template
Commit missing update to ensure gitignore file is packed in Umbraco.T…
2021-09-10 11:13:06 +02:00
Bjarke BergandGitHub c8a67528ea Merge pull request #11071 from umbraco/v9/bugfix/empty-recycle-bin-index
Fixes empty recycle bin performance with indexing
2021-09-10 11:10:15 +02:00
Nikolaj GeisleandGitHub 088d87bac6 Merge pull request #11064 from umbraco/v9/bugfix/10650-fix_issue_with_upgrading_while_in_backoffice
Add redirect to /umbraco if you are not in run state.
2021-09-10 10:50:41 +02:00
Nikolaj GeisleandGitHub 1291a38097 Merge pull request #11060 from umbraco/v9/bugfix/110056-added_missing_null_check_when_conneciton_is_missing
Fixes issue when ConnectionStrings.umbracoDbDSN is missing
2021-09-10 10:33:07 +02:00
Bjarke Berg 583549c768 Fixed test 2021-09-10 09:25:56 +02:00
Bjarke Berg 0db6d542ea Cleanup 2021-09-10 09:24:11 +02:00
Bjarke BergandGitHub 7ffdf72519 Merge pull request #11068 from umbraco/v9/bugfix/options-monitor-connection-strings
Fixes reading connection strings after install
2021-09-10 09:22:39 +02:00
MoleandGitHub dd03b25a43 Merge pull request #11054 from umbraco/v9/bugfix/#10403-Fixed-Notification-with-UmbracoAuthorizedController
v9: Bugfix - Implemented attribute changes in controller
2021-09-10 09:18:06 +02:00
Shannon 71448eafe6 Fixes empty recycle bin performance with indexing
Currently when the recycle bin is empty, it is going to individually delete each item from the index. This is going to cause tons of allocations in Umbraco for DeferedDeleteIndex objects for each item and then down within Examine is going to process each one individually instead of just doing it in bulk. There will be a lot of allocations made there too along with a bunch of extra and unecessary threads.
2021-09-09 16:04:18 -06:00
Shannon 769f24aaae Fixes reading connection strings after install
The issue was discovered when testing Umbraco Id. If you have an existing install and there is a pending Umbraco migration (upgrade), but you clear out the connection string to force a new install screen, fill out the existing connection string details, it all works and redirects to the back office. This will throw exceptions because the runtime state is in an upgrade state (which is fixed in #11064) but if you then logout and try to log in with an active OAuth provider, it means there is a redirect outside of Umbraco and back again and you'll end up back on the installer screen - but it will not show you the upgrade screen, instead it shows you the normal install screen. This is because we are not using IOptionsMonitor for connection string settings which means it's already read the original empty connection string setting fom the very beginning and isn't reading the current/updated value.

We need to review all IOptions usages. Most of them should be IOptionsMonitor unless its impossible to change the app behavior at runtime with a particular config option.
2021-09-09 13:15:11 -06:00
Bjarke Berg 41aabd2515 https://github.com/umbraco/Umbraco-CMS/issues/10650 - Added redirect in backoffice controller if you are not in run state. 2021-09-09 15:37:13 +02:00
Warren Buckley b8316d151e Commit missing update to ensure gitignore file is packed in Umbraco.Templates 2021-09-09 14:36:34 +01:00
Bjarke Berg d121456054 https://github.com/umbraco/Umbraco-CMS/issues/11056 Handle null checks 2021-09-09 13:08:27 +02:00
Nikolaj GeisleandGitHub dc0994a429 Merge pull request #11059 from umbraco/v9/bugfix/application-url-in-appsettings
V9: Fix ApplicationMainUrl not being set from appsettings.json
2021-09-09 12:39:41 +02:00
MoleandGitHub 985eb1420d Merge pull request #10964 from umbraco/v9/bugfix/imagesize-cleanup
Use ImageSharps Image.Identify for dimension extraction
2021-09-09 12:29:17 +02:00
Nikolaj acf0052f8e Merge branch 'v9/dev' into v9/bugfix/imagesize-cleanup
# Conflicts:
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs
2021-09-09 11:40:17 +02:00
Elitsa Marinovska aaf1b464ba Update MultipartBodyLengthLimit on FormsOptions 2021-09-09 11:39:47 +02:00
Nikolaj 7578d460c4 Assign ApplicationMainUrl in constructor of hosting environment if its specified in appsettings 2021-09-09 11:18:12 +02:00
Bjarke BergandGitHub 36582f2cd2 Merge pull request #11045 from umbraco/v9/gitignore-in-template
Ship a gitignore in Umbraco V9 dotnet new template
2021-09-08 21:19:35 +02:00
d797351349 Update build/templates/UmbracoProject/.gitignore
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-09-08 20:16:07 +01:00
Bjarke BergandGitHub 97486e0705 Merge pull request #11050 from umbraco/v9/bugfix/fix-imagecropper-trygetmediapath
Fix Image Cropper media path parsing
2021-09-08 21:03:46 +02:00
c6c924179b Update build/templates/UmbracoProject/.gitignore
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-09-08 19:55:56 +01:00
Bjarke BergandGitHub 2cfb099dea Merge pull request #11058 from umbraco/v9/bugfix/fix-email-handler-detection
Fixes email handler detection
2021-09-08 19:59:23 +02:00
Shannon 8ff78fb1de Fixes email handler detection 2021-09-08 11:19:52 -06:00
Bjarke BergandGitHub 1d55d50809 Merge pull request #11046 from umbraco/v9/feature/merge_v8.17-rc
Merge 8.17 RC into V9, cleanup/refactor property groups/tabs API
2021-09-08 19:17:02 +02:00
Bjarke BergandGitHub 42e27450d9 Merge pull request #11053 from umbraco/v9/bugfix/add_missing_action
V9: Fixed missing action
2021-09-08 19:16:47 +02:00
Bjarke BergandGitHub 3eb21d5bbd Merge pull request #11016 from umbraco/v9/feature/add_friendly_extension_method_to_replace_the_backofficeusermanager
Added SetBackOfficeUserManager extension method to IUmbracoBuilder
2021-09-08 19:11:52 +02:00
Bjarke BergandGitHub a2bceb0697 Merge pull request #11002 from umbraco/v9/bugfix/fix_issues_when_changing_umbraco_path
Bugfix: Fixed issues when changing UmbracoPath in config
2021-09-08 19:08:11 +02:00
Bjarke Berg e284e30df5 Fixed issues where we used the global setting UmbracoPath instead of the constant 2021-09-08 18:29:24 +02:00
Bjarke Berg 995595cce1 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/fix_issues_when_changing_umbraco_path 2021-09-08 18:17:39 +02:00
Bjarke Berg 774a021ea5 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-09-08 17:50:20 +02:00
Bjarke Berg 6558ed9b0c Changes SchemeForBackOffice to just ensure it is prefixed with "Umbraco.".
https://github.com/umbraco/UmbracoDocs/pull/3438#discussion_r703981003
2021-09-08 17:49:56 +02:00
Bjarke BergandGitHub e5ab0fc084 Merge pull request #10962 from umbraco/v9/task/examine-update
Updates to latest Examine version
2021-09-08 17:45:27 +02:00
Ronald Barendse 26c4fc339f Move extension method classes into separate files 2021-09-08 17:01:34 +02:00
Ronald Barendse 87709f7d35 Fix JS unit tests 2021-09-08 16:58:45 +02:00
Ronald Barendse e2e9305513 Merge branch 'v8/8.17' into v9/feature/merge_v8.17-rc 2021-09-08 16:43:16 +02:00
Ronald Barendse 0aa545df75 Update parameter order of new AddPropertyGroup overload 2021-09-08 16:24:10 +02:00
Ronald BarendseandGitHub d4f3a55033 Merge pull request #11055 from umbraco/v8/bugfix/reorder-group-to-generic-tab-only-work-once
Fix move group to Generic tab only work once
2021-09-08 16:10:12 +02:00
Ronald BarendseandGitHub 530e498132 Merge pull request #11042 from umbraco/v8/bugfix/set-correct-sort-order-on-converted-tab
Set correct sort order on converted tab
2021-09-08 16:09:31 +02:00
Ronald Barendse 3b994339d7 Updated directory casing for language files 2021-09-08 16:03:01 +02:00
Mads RasmussenandGitHub 05dc65ecf0 Fixes folder creation for doc, data, and media types (#11040)
* fixes folder creation for doctype and datatype

* add fix for media types

* remove umb-auto-focus we use focus-when instead
2021-09-08 15:58:54 +02:00
Nikolaj GeisleandGitHub 8da852c417 Update src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs 2021-09-08 15:20:49 +02:00
Ronald Barendse 7c250fcac7 Use ImageSharp configuration from DI (and its related ReadOrigin) 2021-09-08 15:18:29 +02:00
Mads Rasmussen 1fa816bd32 Show notification when a group can't be moved + reset requested tab 2021-09-08 15:14:12 +02:00
Ronald Barendse 9b7c43217c Move repeated code into a private method 2021-09-08 15:06:35 +02:00
Bjarke Berg f941e9caca Fixed issue because of missing overload of GetAncestors that takes an Guid as id. 2021-09-08 14:59:52 +02:00
Zeegaan ef73e181f1 Implemented attribute changes in controller 2021-09-08 14:54:21 +02:00
Elitsa Marinovska e3b1400f22 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/AB13489-no-error-when-exceeding-maxAllowedContentLength 2021-09-08 13:42:25 +02:00
Elitsa Marinovska 3d60d2b967 Update MaxRequestBodySize on both IIS Server and Kestrel Server 2021-09-08 13:41:46 +02:00
Ronald Barendse 79316d6eaa Store certificate days to expiry in request message properties and clean-up HttpsCheck 2021-09-08 13:34:51 +02:00
Nikolaj GeisleandGitHub 64e958217c Merge pull request #11041 from umbraco/v9/bugfix/10641-allow-unsafe-namespace-characters-in-package-template-name
Fixes a couple of issues with the Umbraco Package dotnet new template.
2021-09-08 12:22:58 +02:00
Ronald Barendse bd8d7b91d6 Support plain file path strings as Image Cropper values 2021-09-08 12:07:05 +02:00
Ronald Barendse b145f09368 Ensure TryGetMediaPath only returns true on non-empty values 2021-09-08 12:03:56 +02:00
Elitsa Marinovska 6c56c298d6 Merge branch 'v9/dev' into v9/bugfix/fix_issues_when_changing_umbraco_path 2021-09-08 08:17:59 +02:00
Shannon DeminickandGitHub 676b5c4198 Update Umbraco.Web.Common.csproj 2021-09-08 06:03:12 +10:00
Ronald Barendse e2497d66a8 Refactor IContentTypeBase API to use property group aliases 2021-09-07 20:48:45 +02:00
Warren Buckley b673ad2b94 Same gitignore as Umbraco Cloud team are using 2021-09-07 16:17:45 +01:00
Warren Buckley a2a88e5851 Adds the default from dotnet new gitignore 2021-09-07 16:15:39 +01:00
Ronald Barendse fc9c69d1fa Add 8.17.0 migration to plan 2021-09-07 16:32:24 +02:00
Ronald Barendse 02310cb3ec Change exposed PropertyGroupType enum from int to string values 2021-09-07 15:59:26 +02:00
Mads Rasmussen f51e594929 sets sortOrder on the converted tab based on the exiting tabs 2021-09-07 14:45:44 +02:00
Ronald Barendse 8ce4993cdc Fix failing tests because of missing property group alias 2021-09-07 14:40:45 +02:00
Ronald Barendse ee2da5b8ca Merge branch 'v8/8.17' into v9/feature/merge_v8.17-rc 2021-09-07 12:10:58 +02:00
Bjarke Berg 981982d87c Fixes https://github.com/umbraco/Umbraco-CMS/issues/10641 and a couple of other issues with the Umbraco Package dotnet new template.
- Fixed issues with invalid namespace, when using characters like "-"
- Fixed issues with invalid characters in MSBuilder property names, like "."
2021-09-07 10:58:33 +02:00
Erik-Jan WestendorpandZeegaan df31871fa2 Close dialog if show ysod dialog 2021-09-07 09:46:12 +02:00
Erik-Jan WestendorpandZeegaan 3ee3b03aa8 Close dialog if response has notifications 2021-09-07 09:46:07 +02:00
Nikolaj GeisleandGitHub 1b2c667afa Merge pull request #11009 from erikjanwestendorp/close-content-delete-dialog-on-error
Close delete dialog if response has notifications
2021-09-07 09:38:32 +02:00
Nikolaj GeisleandGitHub 06cf4c29b1 Merge pull request #11035 from umbraco/v9/feature/10965-allow-app-settings-configuration-of-the-Umbraco-file-sink
Added support for configuring the UmbraocFile "sink", using IConfiguration
2021-09-07 08:02:37 +02:00
8e54946810 Apply suggestions from code review
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
2021-09-06 15:24:04 +02:00
Bjarke BergandGitHub 9a9f61e4c4 Merge pull request #10968 from umbraco/v9/feature/composers-cleanup
Obsolete IUserComposer and rename Composers
2021-09-06 14:00:59 +02:00
Bjarke BergandGitHub 47f29e3b5c Merge pull request #11034 from umbraco/bugfix/IProfileLogger.TraceDuration_does_not_work
v9: Fixed Profilling logger to correctly send args in call
2021-09-06 13:56:12 +02:00
Bjarke Berg e1ca6da8b7 https://github.com/umbraco/Umbraco-CMS/issues/10965 - Added support for appsettings configuration of the UmbracoFile "sink".
{
  "Serilog": {
    "WriteTo": [
      {
        "Name": "UmbracoFile",
        "Args": {
          "RestrictedToMinimumLevel": "Warning"
          "FileSizeLimitBytes": 1073741824,
          "RollingInterval" : "Day"
          "FlushToDiskInterval": null,
          "RollOnFileSizeLimit": false,
          "RetainedFileCountLimit": 31
        }
      }
    ]
  },
}
2021-09-06 12:46:09 +02:00
MoleandGitHub e31dad6552 Merge pull request #11032 from vsilvar/v9/bugfix/10827_incorrect_url_when_domain_not_set
Improvement for #10845 - Changed culture comparison of domain to be case insensitive
2021-09-06 12:29:42 +02:00
Zeegaan 41d6fd931a Fixed Profilling logger to correctly send args in call 2021-09-06 11:43:36 +02:00
Paul Johnson d6d853326d Make ComposerGraph internal 2021-09-06 09:44:33 +01:00
Vitor Rodrigues e45b7e090e Changed culture comparision to be case insensitive for consistency 2021-09-06 09:48:33 +02:00
MoleandGitHub baec56b2d7 Merge pull request #10845 from vsilvar/v9/bugfix/10827_incorrect_url_when_domain_not_set
Fixed incorrect node url being returned when no suitable domain exist…
2021-09-06 09:38:00 +02:00
Bjarke BergandGitHub 570b54342a Merge pull request #10997 from umbraco/v9/bugfix/grid-editor-manifest-fix
V9: Fix grid editor config values in package manifest
2021-09-06 08:05:21 +02:00
Vitor Rodrigues 03072ffcd8 Don't use only the current uri to determine the domain when an culture is specified 2021-09-03 15:45:59 +02:00
Vitor Rodrigues 8a4bf8c0b8 Added missing change removing required filter constraint 2021-09-03 15:37:33 +02:00
Sebastiaan Janssen 05d0a29e03 Merge branch 'v8/dev' into v8/8.17 2021-09-03 14:09:12 +02:00
Sebastiaan Janssen 5c3363de1e Merge branch 'v8/contrib' into v8/dev 2021-09-03 14:08:26 +02:00
Bjarke BergandGitHub 9787ea0cfa Apply suggestions from code review 2021-09-03 08:42:22 +02:00
2254d475bd Apply suggestions from code review
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-09-03 08:35:13 +02:00
Philippe GuilmetteandMichael Latouche 2de22b6394 Don't cache AuthenticationController calls including GetRemainingTimeoutSeconds (fix for 11011) 2021-09-03 04:33:50 +02:00
c090afe5b1 V8: Validate uploaded files based on the configuration of the FileUpload property configuration (#10987)
* Add validation to uploaded file based on the DataTypeConfiguration

* Update src/Umbraco.Web/PropertyEditors/UploadFileTypeValidator.cs

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Nikolaj <nel@umbraco.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-09-02 15:39:31 +02:00
MoleandGitHub 540740e802 Merge pull request #8854 from ronaldbarendse/v8/bugfix/generic-blocklistitem
8.7RC Get generic BlockListItem settings model type from configuration
2021-09-02 14:45:22 +02:00
Simone ChiarettaandGitHub 27f4e38263 Cannot migrate from Umbraco 7 to Umbraco 8 with v8.14+ because userId 0 is skipped over (#10622) 2021-09-02 14:11:13 +02:00
Bjarke BergandGitHub be3545ce4a https://github.com/umbraco/Umbraco-CMS/issues/10927 - Fixed issue with translations but still support the fix for https://github.com/umbraco/Umbraco-CMS/issues/10627 (#10986) 2021-09-02 10:51:11 +02:00
Bjarke Berg aaab486c52 Added SetBackOfficeUserManager extension method to IUmbracoBuilder 2021-09-02 09:50:13 +02:00
Shannon b17f28f3bf Another examine update 2021-09-01 16:51:33 -06:00
Jan SkovgaardandGitHub 1c4f6bb799 Suggestion: Add config setting in Rich Text Editor to control the linkpicker overlay size (#11007) 2021-09-01 16:45:17 +02:00
Jan SkovgaardandGitHub 4a12ef5e19 Suggestion: Extend markdown editor settings for overlay width (#11006) 2021-09-01 16:40:49 +02:00
Jan SkovgaardandGitHub 95386cd116 Color swatch "selected" state - Icon looks weird (#11003) 2021-09-01 16:35:13 +02:00
ChadandGitHub b201c85c2c Dispose RNGCryptoServiceProvider (#11001) 2021-09-01 16:08:20 +02:00
jesperweberandGitHub f736d21c2c Automatically create emtpy SQL CE database with unattended install (#10995) 2021-09-01 15:42:33 +02:00
Erik-Jan Westendorp 598b5cf0fc Close dialog if show ysod dialog 2021-09-01 15:36:52 +02:00
Erik-Jan Westendorp 36ba30fcbd Close dialog if response has notifications 2021-09-01 15:34:15 +02:00
Nikolaj 2a65582d6d Merge branch 'v8/contrib' into v8/bugfix/generic-blocklistitem 2021-09-01 15:21:11 +02:00
Bjarke Berg 375698594e Fixed NoNodes.cshtml when moved the wwwroot/umbraco folder 2021-09-01 13:44:14 +02:00
Warren BuckleyandGitHub 5708203950 Merge pull request #11005 from umbraco/v8/bugfix/split-view-close-and-dropzone-text
Tabs fixes: Remove the extra split view close button + Add helper text to properties dropzone
2021-09-01 11:41:07 +01:00
Mads Rasmussen 1cbae4e533 add helper text for direct properties 2021-09-01 11:40:44 +02:00
Mads Rasmussen 1d78baac10 remove double close button in split view 2021-09-01 11:39:07 +02:00
Warren BuckleyandGitHub 74b1c8384a Merge pull request #10998 from umbraco/v9/bugfix/email-sending-metadata
Updates email sender to have some metadata
2021-09-01 10:27:29 +01:00
Bjarke Berg eca26cd827 Bump version to next rc 2021-09-01 10:57:33 +02:00
Bjarke Berg 2876d0b179 Handle the msbuild copy in two steps, so we can override the wwwroot/umbraco folder from outside, using the following in the project csproj.
<PropertyGroup>
        <UmbracoWwwrootName>my-secret-loginpanel</UmbracoWwwrootName>
    </PropertyGroup>

    it will now copy to wwwroot/my-secret-loginpanel instead of wwwroot/umbraco
2021-09-01 10:57:21 +02:00
Jan SkovgaardandGitHub e707490b47 Suggestion: Make the overlay size width in multiurlpicker configurable (#10992) 2021-09-01 10:54:24 +02:00
Warren Buckley 8888c55d2e Update to use constants for emailtype strings 2021-09-01 09:02:41 +01:00
Elitsa Marinovska 9de04f66c4 Remove unused lang keys from he, it, ja, ko, nb and pt.xml files 2021-09-01 10:02:26 +02:00
Sebastiaan Janssen 0b4dc6a498 Bump version to 8.17.0-rc 2021-09-01 09:13:57 +02:00
Elitsa Marinovska dfc695d205 Merge remote-tracking branch 'origin/v9/dev' into v9/feature/language-keys-cleanup 2021-09-01 08:40:00 +02:00
MoleandGitHub e727f0f1be Merge pull request #10994 from umbraco/v9/todo/removed_obsolete_SystemFilesClass
v9: Removed obsolete SystemFiles class
2021-09-01 08:31:55 +02:00
Bjarke Berg 5953c9ebe7 Fixed issues with confusion about when to use umbracoPath and when to use the const.
Now it is possible to change the location of backoffice.
{
  "Umbraco": {
    "CMS": {
      "Global": {
       "UmbracoPath": "~/my-secret-loginpanel",
        "IconsPath": "~/my-secret-loginpanel/assets/icons"
      }
    }
  }
}
2021-09-01 07:50:17 +02:00
ChadandGitHub 51fcde5fcd use existing array to split (#10999) 2021-09-01 13:06:33 +10:00
Shannon 706a629f93 Updates Smidge too 2021-08-31 15:25:17 -06:00
Shannon 4d125da6f1 Updates email sender to have some metadata 2021-08-31 13:41:33 -06:00
Sebastiaan Janssen 3fcf8676b4 Merge branch 'v8/dev' into v8/contrib 2021-08-31 17:29:24 +02:00
Warren BuckleyandGitHub 4c9d773f59 Merge pull request #10606 from umbraco/v8/feature/reintroduce-tabs
Reintroduce tabs
2021-08-31 16:22:53 +01:00
TheBekkerandGitHub b9ca313917 Add button to reset focal point on umb-image-gravity directive (#10923) 2021-08-31 16:51:33 +02:00
Ronald Barendse c29383dae0 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-08-31 16:41:55 +02:00
Mads RasmussenandSebastiaan Janssen f36785f2e8 fixes: #10373 2021-08-31 16:32:08 +02:00
Paul JohnsonandGitHub 80b36101c9 Merge pull request #10913 from cleversolutions/temp-10912
Fix PhysicalFileSystem.GetRelaitvePath for *nix
2021-08-31 15:30:38 +01:00
Ronald Barendse b6d4cc467e Fix ContentTypeServiceTests 2021-08-31 15:56:00 +02:00
Ronald Barendse 0895aeaf30 Add test for populating alias in migration 2021-08-31 15:50:49 +02:00
Ronald Barendse ddcf3d5bfc Clean up migration tests 2021-08-31 15:47:28 +02:00
inetzoandSebastiaan Janssen d9135dd4ff Check if umbFileDropzone has queued items before showing ChooseMediaTypeDialog
The ChooseMediaTypeDialog is shown even if there are no queue items, for example due file errors. 
Checking the queue lenght in _requestChooseMediaTypeDialog prevents showing the dialog unnecessary.
2021-08-31 14:45:16 +02:00
Nikolaj 4fb02eb32e Apply AngularJsonOnlyConfiguration 2021-08-31 14:34:59 +02:00
Nikolaj GeisleandGitHub 65545134f4 Merge pull request #10946 from umbraco/v9/feature/validationService-optimization
V9: Reuse value editors for validation
2021-08-31 13:58:01 +02:00
Zeegaan 56f8e1c12b Deleted obsolete Systemfiles class 2021-08-31 13:26:47 +02:00
Nikolaj GeisleandGitHub 9a677bef9b Merge pull request #10959 from umbraco/v8/bugfix/IsPublished
V8: Fix IsPublished only working with lowercase.
2021-08-31 11:18:03 +02:00
Nikolaj GeisleandGitHub 7de1e1b187 Merge pull request #10941 from umbraco/v9/feature/improved-project-template
New project - simplify includes/excludes
2021-08-31 10:01:28 +02:00
Nikolaj GeisleandGitHub f1ba8a3868 Merge pull request #10942 from lauraneto/v9/feature/add_url_mode_to_getcropurl
Added url mode parameter to the GetCropUrl extension methods
2021-08-31 08:49:23 +02:00
Nikolaj 7f279bcd77 Add messagepack formatter for dictionary with key ignore case
This is required for culture since there will be called ToLower on the culture when used as a dictionary key.
2021-08-31 08:30:46 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 2ae28c1e7a Fix self-closing tags which should have a end-closing tag 2021-08-30 19:58:19 +02:00
Jan SkovgaardandGitHub a28cbff178 Bugfix for #10927 - Body steal focus when opening folder overlay (#10983) 2021-08-30 19:38:20 +02:00
TheBekkerandGitHub 631663ed63 emit formSubmitting when submitting change in multi url picker dialog (#10957) 2021-08-30 19:24:22 +02:00
Sebastiaan JanssenandGitHub e62dd04295 Fixes #10956 - GetLocalCropUrl Obsolete message is misleading 2021-08-30 17:18:42 +00:00
ChadandGitHub 125ebe40fb Replace use of dynamic type with POCOs (#10917) 2021-08-30 19:10:50 +02:00
Jacob OvergaardandSebastiaan Janssen a2b9146abf Generate a local certificate for Kestrel https
Fixes #10981
2021-08-30 18:55:10 +02:00
7757c4d763 Allow to pass in boolean to noDirtyCheck directive (#8638)
* Adjust noDirtyCheck directive to accept a parameter to enable/disable dirty check

* Update dirty property

* Use Utilities.noop and add description

* Set default value from controller

* Check for truthly value

* Use Object.toBoolean

* Revert setting $pristine and $dirty for now

* Handle default values in dirty check attributes

* Add check on presence of disableDirtyCheck atribute

* Check for truthy value otherwise it should be default return false and work as no-dirty-check without value

* update test conditions for vamue of no-dirty-check and disable-dirty-check

* Remove whitespace

* update check

Co-authored-by: Kenn Jacobsen <kja@vertica.dk>
Co-authored-by: Michael <michael@crossingpaths.be>
2021-08-30 15:57:58 +02:00
Chad CurrieandSebastiaan Janssen 20eda449e7 Avoid generating the maindom hash twice to get the Id. 2021-08-30 14:24:30 +02:00
ChadandGitHub b1d1a2fcf2 Avoid creating a new string for the log level every log message (#10934) 2021-08-30 14:22:07 +02:00
ChadandGitHub 50dfb1fd92 Avoid allocating an array every call to IsClientSideRequest() (#10936) 2021-08-30 14:17:05 +02:00
nzdevandSebastiaan Janssen b04fe360d8 Dispose certficate handle 2021-08-30 14:07:57 +02:00
Bjarke Berg 9bb6d8b20b https://github.com/umbraco/Umbraco-CMS/issues/10927 - Fixed issue with translations but still support the fix for https://github.com/umbraco/Umbraco-CMS/issues/10627 2021-08-30 13:50:48 +02:00
Mads Rasmussen 067a53a680 fixes: 13623 Convert to tab always adds + 1 to alias 2021-08-30 12:52:24 +02:00
Sebastiaan Janssen 695d4688d3 Merge branch 'v8/dev' into v8/contrib 2021-08-30 11:18:10 +02:00
Sebastiaan Janssen b4b8fecc2a Merge branch 'v8/8.16' into v8/dev 2021-08-30 11:17:37 +02:00
Sebastiaan Janssen f79ae63992 Merge branch 'v8/8.15' into v8/8.16
# Conflicts:
#	src/SolutionInfo.cs
2021-08-30 11:17:12 +02:00
Sebastiaan Janssen ee1faa4da2 Bump version to 8.15.3 2021-08-30 11:15:11 +02:00
Sebastiaan Janssen 8b54c8655c Merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-08-30 11:14:00 +02:00
Sebastiaan Janssen cac4124dea Bump version to 8.14.4 2021-08-30 11:12:45 +02:00
Nikolaj 3d2dae075d Remove notification registration for ValueEditorCacheRefresher 2021-08-30 10:57:32 +02:00
Nikolaj d448ddd7df Make ValueEditorCacheRefresher a distributed cache refresher 2021-08-30 10:46:05 +02:00
Jacob OvergaardandGitHub a73c7bb8a1 Devcontainer: Update SMTP FROM address (#10970) 2021-08-30 09:25:04 +02:00
Shannon c2fd3a1f7e Another Examine update 2021-08-27 12:03:08 -06:00
MoleandGitHub c2016a6f44 Merge pull request #10967 from bergmania/v9/dev
Added danish translations for treeSearch
2021-08-27 14:24:58 +02:00
aeaf935df8 Update src/Umbraco.Web.UI/umbraco/config/lang/da.xml
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-08-27 12:59:15 +02:00
Paul Johnson 7216c6140f Rename Composers.cs and perform minimal spring cleaning. 2021-08-27 10:56:21 +01:00
Paul Johnson d6f1e7a1da Mark IUserComposer obsolete. 2021-08-27 10:42:36 +01:00
Bjarke Berg 622a03fa66 Added danish translations for treeSearch 2021-08-27 11:05:47 +02:00
Ronald Barendse 806ebc6106 Merge branch 'v9/dev' into v9/bugfix/imagesize-cleanup
# Conflicts:
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs
#	src/Umbraco.Infrastructure/Media/ImageDimensionExtractor.cs
2021-08-27 08:46:02 +02:00
Shannon e34b593b79 Updates to latest Examine version
The latest Examine version has some API breaking changes - namely it shouldn't have been relying on IOptionsSnapshot and instead IOptionsMonitor.
2021-08-26 11:36:24 -06:00
Nikolaj ac8a83177f Make AutoInterningStringKeyCaseInsensitiveDictionaryConverter case insensitive
Instead of calling the parents CreateDictionary we just newed up a regular dictionary leading to AutoInterningStringKeyCaseInsensitiveDictionaryConverter not actually being case insensitive
2021-08-26 14:21:40 +02:00
Bjarke BergandGitHub 48fcfcae21 Merge pull request #10689 from erikjanwestendorp/rename-contentType-to-mediaType-in-Media-model
Update Media.cs
2021-08-26 13:13:09 +02:00
Bjarke Berg 56d8e0e684 Merge remote-tracking branch 'origin/v8/8.16' into v9/dev
# Conflicts:
#	build/NuSpecs/UmbracoCms.Core.nuspec
#	build/NuSpecs/UmbracoCms.nuspec
#	build/build.ps1
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Diagnostics/MiniDump.cs
#	src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
#	src/Umbraco.Infrastructure/Persistence/LocalDb.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyHandler.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
2021-08-26 12:13:04 +02:00
MoleandGitHub 15f4ea937b Merge pull request #10948 from umbraco/v9/bugfix/keepalive_null_ref
Fixed potential null reference exception in KeepAlive
2021-08-25 13:25:59 +02:00
Bjarke Berg 392eec2371 Fixed potential null reference exception in KeepAlive 2021-08-25 11:56:20 +02:00
Ronald BarendseandGitHub 8020c1f00d Fix duplicate property alias validation 2021-08-25 11:16:00 +02:00
Mads Rasmussen ea7985aec1 we cant track by property alias because it may not be unique when you add a property 2021-08-25 10:53:02 +02:00
Paul Johnson 1e0d82ceee More consistent globs 2021-08-24 20:35:14 +01:00
Laura Neto 9e73cfe0ec Added url mode parameter to the GetCropUrl extension methods 2021-08-24 18:26:14 +02:00
Paul Johnson 64f4d0ec93 also ignore wwwroot/media 2021-08-24 16:58:05 +01:00
Paul Johnson fe7067e056 New project - simplify includes/excludes 2021-08-24 16:49:58 +01:00
Sebastiaan Janssen d13a555204 Merge branch 'v8/8.15' into v8/8.16 2021-08-24 16:38:48 +02:00
Paul JohnsonandSebastiaan Janssen e558d11fa9 Revert "Optimization by returning the same instance"
This reverts commit 990fc118cb.

When using the _reusableEditor field to create a BlockEditorPropertyEditor
it doesn't matter that content type cache has been invalidated (memory cache)
as the content types are also cached in a private field in the BlockEditorValues class.

Closes #10910

(cherry picked from commit 94b0b252ec)
2021-08-24 16:38:18 +02:00
Paul JohnsonandSebastiaan Janssen 94b0b252ec Revert "Optimization by returning the same instance"
This reverts commit 990fc118cb.

When using the _reusableEditor field to create a BlockEditorPropertyEditor 
it doesn't matter that content type cache has been invalidated (memory cache)
as the content types are also cached in a private field in the BlockEditorValues class.

Closes #10910
2021-08-24 16:36:13 +02:00
Elitsa Marinovska b837bf4188 Cleaning up duplicates and maintaining the file format 2021-08-24 15:48:13 +02:00
Nikolaj 90bc927d66 Add unit tests 2021-08-24 14:15:18 +02:00
Nikolaj 1c4893d3c8 Fix Tests 2021-08-24 11:02:51 +02:00
Nikolaj 65b69dfa4a Create separate refresher for ValueEditorCache
Notification handlers are scoped.
2021-08-24 11:02:37 +02:00
Nikolaj 6c21cb30d3 Add locks for the dictionary. 2021-08-24 10:38:38 +02:00
Sebastiaan Janssen 90d37e0b5c Merge branch 'v8/dev' into v8/contrib 2021-08-24 10:35:02 +02:00
Sebastiaan Janssen 51237a098f Merge branch 'v8/8.16' into v8/dev 2021-08-24 10:34:33 +02:00
Sebastiaan Janssen d37a4c4be0 Merge branch 'v8/8.15' into v8/8.16 2021-08-24 10:32:41 +02:00
Shannon DeminickandSebastiaan Janssen 14a94f0ba5 Merge pull request #10847 from umbraco/v8/bugfix/backport-fix-for-10774-into-v8
Backport fix for #10774 to v8

(cherry picked from commit 88f17b7cbf)
2021-08-24 08:41:10 +02:00
Shannon DeminickandGitHub 88f17b7cbf Merge pull request #10847 from umbraco/v8/bugfix/backport-fix-for-10774-into-v8
Backport fix for #10774 to v8
2021-08-24 06:41:57 +10:00
Shannon e869ba7e9b removes comment 2021-08-23 14:41:26 -06:00
Mads Rasmussen 72749fd3e2 keep local group if it still has properties 2021-08-23 19:29:44 +02:00
Sebastiaan Janssen 604b45bbc0 Merge branch 'v8/dev' into v8/contrib 2021-08-23 15:19:15 +02:00
Sebastiaan Janssen c023f35638 Merge branch 'v8/8.16' into v8/dev 2021-08-23 15:18:53 +02:00
Chad CurrieandSebastiaan Janssen 8b685a0a2c Update Serilog.Enrichers.Process to 2.0.2 as it fixes a leak
(cherry picked from commit dcc533fd8d)
2021-08-23 15:18:03 +02:00
ChadandSebastiaan Janssen d085b11752 DIspose Process (#10918)
(cherry picked from commit a2dab5b6ca)
2021-08-23 15:17:57 +02:00
Sebastiaan Janssen c87dc1c3a6 Merge branch 'v8/8.15' into v8/8.16 2021-08-23 15:17:36 +02:00
Mads Rasmussen 6d62d91bf2 fix missing checkmark when checkbox is checked 2021-08-23 15:15:26 +02:00
Nikolaj c690d5f3ba Add clarifying comment in ValueEditorCache 2021-08-23 15:06:47 +02:00
Sebastiaan Janssen 0ecc887175 Merge branch 'v8/8.14' into v8/8.15 2021-08-23 14:52:05 +02:00
Sebastiaan Janssen 82fc05ac51 Cannot copy page with Block List block with property that 'looks like' JSON #10879 (#10925)
(cherry picked from commit cd6cb3737e)
2021-08-23 14:51:11 +02:00
Sebastiaan JanssenandGitHub cd6cb3737e Cannot copy page with Block List block with property that 'looks like' JSON #10879 (#10925) 2021-08-23 14:48:49 +02:00
Chad CurrieandSebastiaan Janssen dcc533fd8d Update Serilog.Enrichers.Process to 2.0.2 as it fixes a leak 2021-08-23 14:47:50 +02:00
ChadandGitHub a2dab5b6ca DIspose Process (#10918) 2021-08-23 14:44:48 +02:00
Ronald Barendse fde1759d49 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-08-23 14:36:24 +02:00
Ronald Barendse 6883cf40a8 Initial validation of compositions containing invalid property groups (same alias, different type) 2021-08-23 14:34:24 +02:00
Nikolaj dc22ee8563 Merge branch 'v9/dev' into v9/feature/validationService-optimization 2021-08-23 14:32:43 +02:00
Nikolaj 306ed56027 Create a cache for value editors 2021-08-23 14:28:44 +02:00
Paul JohnsonandGitHub 8dd645f36e Merge pull request #10880 from umbraco/v9/bugfix/suppress-notifications-migrations
Suppress scope notifications during migrations
2021-08-23 13:25:47 +01:00
Ronald Barendse eebd88f271 Ensure details of local groups are used by default 2021-08-23 13:18:39 +02:00
MoleandGitHub 2da06fb156 Merge pull request #10898 from umbraco/v9/task/removed_obsolete_property_in_user
v9: removed obsolete property from User and IUser
2021-08-23 12:47:36 +02:00
Sebastiaan Janssen 42c59a91ca Bump version to 8.16.0 2021-08-23 11:14:27 +02:00
Sebastiaan Janssen f26fbafa71 Merge branch 'v8/dev' into v8/contrib 2021-08-23 11:04:47 +02:00
Sebastiaan Janssen 59e36981cd Merge branch 'v8/8.16' into v8/dev 2021-08-23 11:04:26 +02:00
Sebastiaan Janssen 0f3e2cfd02 Merge branch 'v8/8.15' into v8/8.16
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/less/property-editors.less
2021-08-23 11:03:45 +02:00
Sebastiaan Janssen c72cb1683b Removes unneeded flex that caused an issue with the image cropper datatype
Fixes #10876
2021-08-23 11:01:53 +02:00
Bjarke BergandGitHub 7d0b26b25c Merge pull request #10884 from umbraco/v9/feature/imagesharp-cachefolder
V9: Move default ImageSharp cache folder to TEMP and map configured value to content root
2021-08-23 08:06:01 +02:00
Ronald Barendse d1457702b2 Ensure Id element is still exported for Tabs (older CMS versions break without it present) 2021-08-21 11:43:11 +02:00
Paul JohnsonandGitHub 4814eb504c Merge pull request #10914 from umbraco/v9/bugfix/integration-tests-orphaned-localdb
Shutdown (localdb)\UmbracoTests when we're done with it
2021-08-20 17:11:04 +01:00
Paul Johnson 41a51df724 Shutdown (localdb)\UmbracoTests when we're done with it 2021-08-20 16:35:49 +01:00
Paul Johnson d41ab6a429 Fix integration tests - register PackageMigrationRunner 2021-08-20 16:18:57 +01:00
Evan Moore 01ee495367 Fix PhysicalFileSystem.GetRelaitvePath for *nix 2021-08-20 10:55:09 -04:00
Sebastiaan Janssen db16f9c6dc Merge branch 'v8/dev' into v8/contrib 2021-08-20 16:54:50 +02:00
Sebastiaan Janssen a82723b4f1 Merge branch 'v8/8.16' into v8/dev 2021-08-20 16:54:30 +02:00
Sebastiaan Janssen 4c0cdbd615 Merge branch 'v8/8.15' into v8/8.16 2021-08-20 16:54:05 +02:00
Sebastiaan Janssen 78d8f5b9e8 Merge branch 'v8/8.14' into v8/8.15 2021-08-20 16:45:19 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 22c49398e3 Hide backdrop when closing/select navigation (#10907)
(cherry picked from commit 72d33b8f68)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtree.directive.js
#	src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js
2021-08-20 16:38:55 +02:00
Bjarne FyrstenborgandGitHub 72d33b8f68 Hide backdrop when closing/select navigation (#10907) 2021-08-20 15:59:31 +02:00
Sebastiaan Janssen 3030269bde Create a cloud-specific zip that includes necessary config transforms for cloud 2021-08-20 14:21:36 +02:00
Sebastiaan Janssen d566d42c4b Remove unintentional change from 15 months ago that causes you to end up in your windows users folder after each build 2021-08-20 14:20:46 +02:00
Bjarke BergandGitHub d1bc7dd09d Merge pull request #10720 from soreng/patch-8
Update LocalizedTextServiceExtensions.cs - use the culture parameter, instead of Thread.CurrentThread.CurrentUICulture
2021-08-20 13:32:15 +02:00
Zeegaan b272afa0ab removed the cloning of additonalData from PerformDeepClone 2021-08-20 12:20:05 +02:00
Ronald Barendse 5f372a3329 Fix importing document types with properties within nested groups 2021-08-20 12:15:29 +02:00
Zeegaan c2c222687f Removed obsolete backing field and lock 2021-08-20 12:13:30 +02:00
Zeegaan bccd4796e2 Merge remote-tracking branch 'origin/v9/dev' into v9/task/removed_obsolete_property_in_user 2021-08-20 11:11:14 +02:00
Mads Rasmussen e605fc02cd update sort order logic when dragging and dropping groups 2021-08-20 10:44:50 +02:00
Ronald BarendseandGitHub 33108a7e05 Merge branch 'v9/dev' into v9/feature/imagesharp-cachefolder 2021-08-19 23:42:08 +02:00
Ronald Barendse 60ced5db8c Retarget migration to 8.17 2021-08-19 23:29:40 +02:00
Paul JohnsonandGitHub f285986ae7 Merge pull request #10905 from umbraco/v9/bugfix/email-sender-ambiguous-constructor
V9/bugfix/email sender ambiguous constructor
2021-08-19 15:07:02 +01:00
Paul Johnson 061f1b3b87 Move EmailSender to Mail namespace. 2021-08-19 14:38:38 +01:00
Paul Johnson 6b18f93ae7 Fix issue where MSDI confused which ctor to use for EmailSender 2021-08-19 14:11:40 +01:00
Mads Rasmussen 97e5c8fef0 moving of properties works 2021-08-19 14:58:28 +02:00
Mads Rasmussen ab2276bdd7 update sort order on drag and drop 2021-08-19 14:57:13 +02:00
Mads Rasmussen e8a9165d39 refresh groups sortable when dragging to new tab 2021-08-19 14:43:00 +02:00
Ronald Barendse e5a1e0f4e9 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-08-19 13:44:17 +02:00
Bjarke Berg fbbfcd84c7 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-08-19 10:55:57 +02:00
Nikolaj GeisleandGitHub bd875c027d Merge pull request #10886 from umbraco/v9/feature/AB13286-rename-ui-project-back-to-its-original-name
V9: Rename Umbraco.Web.UI.Netcore to Umbraco.Web.UI
2021-08-19 10:49:09 +02:00
Zeegaan 466434feda Merge remote-tracking branch 'origin/v9/dev' into v9/feature/AB13286-rename-ui-project-back-to-its-original-name 2021-08-19 09:37:23 +02:00
Ronald Barendse 7ccc434bd6 Inject IHostingEnvironment to UmbracoBuilder to fix integration tests 2021-08-19 09:08:12 +02:00
Zeegaan b1d11fca64 Removed obsolete property from User 2021-08-19 08:47:32 +02:00
Bjarke BergandGitHub 7b68083aff Merge pull request #10889 from umbraco/v9/task/fixed_todo_implement_new_asserts
v9: Implemented new asserts
2021-08-19 08:36:20 +02:00
Bjarke BergandGitHub 9e44b4a064 Merge pull request #10887 from umbraco/v9/update-all-things-pt2
Ensure Nuget dependencies are upto date except NPoco as breaking changes in major
2021-08-19 08:33:45 +02:00
patrickdemooij9andGitHub 2c1185598e 9908: No parentheses & language picker with only 1 language (#10892)
* 9908: No parantheses & language picker with only 1 language

* 9908: Fixed missing )
2021-08-19 10:12:48 +10:00
Bjarne FyrstenborgandGitHub 61f929e660 Adjust styling of umb-file-icon (#10895)
* Adjust styling of umb-file-icon with new umb-icon

* Styling on legacy icons

* Use umb-icon and add missing class

* Simplify icons

* Use umb-search-filter in umb-tree-search-box and add back button
2021-08-19 09:34:17 +10:00
e2af016a7b Inherit text color from parent element (#10894)
* Inherit text color from parent element

* Update block card icon and avoid use of !important

* Wrap card in div

* interpolate background image path value, to remove string escaping which can be confusing

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-19 09:11:31 +10:00
Bjarne FyrstenborgandNathan Woulfe dc359cc819 User super user id 2021-08-19 08:49:32 +10:00
Shannon 6f8344a349 removes unneeded deps on package controller. 2021-08-18 12:03:23 -06:00
Shannon 8ede33f6ba Updates how package migrations are run. Only publish a single notification. 2021-08-18 12:01:56 -06:00
Bjarke Berg dba385e5e5 Added App_Plugins to publish output 2021-08-18 16:00:57 +02:00
ac53b89fe1 V8: Improve nested content optimization in the backoffice (#10885)
* Get all nested content scaffolds in a single post request

* Only load alias array and initialize once

* Remove old nested content load code

* Get the content types within a scope

This will drastically reduce the amount of SQL queries, since the same read lock will be used for all operations.

* Add comments

* Fix typo

* Fix typos

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-08-18 15:51:16 +02:00
Zeegaan 7239c2c942 Fixed tests with review comments 2021-08-18 15:45:33 +02:00
7247a3759f Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Packaging/PackageInstallationTest.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-08-18 15:35:48 +02:00
Zeegaan 3063ed182c Implemented new Asserts 2021-08-18 14:20:56 +02:00
Warren Buckley 7e99a69949 Revert back poackage-lock accidently committed 2021-08-18 12:36:33 +01:00
Elitsa Marinovska d9d7de8467 Moving up the "Umbraco.Web.UI" proj reference, so that it is the first project from solution file (.sln) since it will be selected as startup one by default. 2021-08-18 12:47:52 +02:00
Warren Buckley 9671a08be2 Ensure Nuget dependencies are upto date excpet NPoco as breaking changes in major 2021-08-18 11:38:23 +01:00
Elitsa Marinovska f3115a8b05 More renaming 2021-08-18 11:50:48 +02:00
Elitsa Marinovska 460df9bfd2 Changing gulp config and karma.conf.js 2021-08-18 11:26:27 +02:00
Elitsa Marinovska 50f6b230a9 Further renaming 2021-08-18 11:23:19 +02:00
Elitsa Marinovska 63e12c8dab Changing project ref in dotnet new templates related files 2021-08-18 11:18:30 +02:00
Elitsa Marinovska 5f4ddf86ab Renaming proj ref in build script and azure pipelines file 2021-08-18 11:13:58 +02:00
Elitsa Marinovska 7e77454f03 Changing to the correct project ref in .gitignore and .vscode/ 2021-08-18 11:07:06 +02:00
Elitsa Marinovska 490c09b81e Remove old references of Umbraco.Web.UI 2021-08-18 10:58:23 +02:00
Elitsa Marinovska e734b6dda4 Renaming folder, project, solutions + changing .gitignore (there were old references to Umbraco.Web.UI) 2021-08-18 10:40:13 +02:00
Ronald Barendse d6cfc900f3 Remove is-cache folder form gitignore and fix minor formatting 2021-08-18 10:02:34 +02:00
Ronald Barendse 34b65404e0 Move default ImageSharp cache folder to TEMP and map configured value to content root 2021-08-18 10:01:33 +02:00
Bjarke Berg a8eae13e0e Fixed wrong negation 2021-08-18 09:49:44 +02:00
Nikolaj GeisleandGitHub 8ceadb33d9 Merge pull request #10853 from bjarnef/v9/feature/eye-dropper-pvc
V9: Eye Dropper property value converter
2021-08-18 08:47:52 +02:00
Shannon 718a9e9593 no need to suppress on outer scope. 2021-08-17 11:16:46 -06:00
Shannon 4b57366ca0 Suppress scope notifications during migrations 2021-08-17 11:13:46 -06:00
Ronald Barendse 469091b180 Align delete button (trash can) 2021-08-17 17:07:25 +02:00
Warren BuckleyandGitHub f62fbe3327 Minor tour update (#10875) 2021-08-17 16:06:09 +02:00
Nikolaj GeisleandGitHub 4b7481955a Merge pull request #10829 from bjarnef/v9/feature/infinite-editor-file-picker
V9: Infinite editor file picker
2021-08-17 15:32:25 +02:00
MoleandGitHub 96ff5917a2 Merge pull request #10878 from umbraco/v9/bugfix/keep-the-old-key-index-in-place
V9: Keep the old indexes in case the DictionaryTablesIndexes migration fails
2021-08-17 15:19:09 +02:00
5a47acceda Raise SendingContentModel event for each element type in blocklist (#10869)
Co-authored-by: Nikolaj <nel@umbraco.dk>
2021-08-17 14:36:19 +02:00
Bjarke BergandGitHub 794cddffd4 Merge pull request #10846 from umbraco/v9/bugfix/resolve-issues-adding-content-on-startup
Resolve issues adding content on startup for #10774
2021-08-17 14:29:57 +02:00
Bjarke BergandGitHub 26a79c097e Merge pull request #10789 from umbraco/v9/bugfix/add_IUmbracoHelperAccessor_and_IPublishedContentQueryAccessor
v9: Resolving UmbracoHelper in custom middleware was null
2021-08-17 14:26:24 +02:00
Ronald Barendse 471a560465 Remove automatic child alias updating on server-side (due to issues with adding already changed aliases) 2021-08-17 14:25:05 +02:00
Elitsa Marinovska 656d518981 Keep the old indexes in case the DictionaryTablesIndexes migration fails 2021-08-17 14:17:34 +02:00
Ronald Barendse 1ad73c099d Ensure correct order of groups 2021-08-17 14:08:52 +02:00
Bjarke BergandGitHub 3cab3cbc23 Merge pull request #10877 from umbraco/v9/improve-smidge-use
V9: Help improve using Smidge in FrontEnd views
2021-08-17 14:06:17 +02:00
8b8da5002b Update src/Umbraco.Web.UI.NetCore/Startup.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-08-17 13:05:43 +01:00
Warren Buckley d632aa678e Add the same to the _viewimports file for the dotnet new template 2021-08-17 12:58:08 +01:00
Bjarke Berg 449e19e049 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/add_IUmbracoHelperAccessor_and_IPublishedContentQueryAccessor
# Conflicts:
#	src/Umbraco.PublishedCache.NuCache/Property.cs
2021-08-17 13:55:05 +02:00
Bjarke Berg fa06964e49 Removed unnecessary projectreference 2021-08-17 13:54:09 +02:00
Bjarke Berg 94410a1135 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/add_IUmbracoHelperAccessor_and_IPublishedContentQueryAccessor 2021-08-17 13:52:23 +02:00
Bjarke BergandGitHub f5ae437904 Merge pull request #10833 from umbraco/v9/bugfix/Refractor_UmbracoContextAccessor
v9: Updated IUmbracoContextAccessor Interface and HybridUmbracoAccessorClass
2021-08-17 13:50:53 +02:00
Warren Buckley f38b8bc1d1 Adds Smidge namespace to startup - so its easier to add app.UseSmidge() if you are wanting to add it
All about discoverability IMO
2021-08-17 12:48:50 +01:00
Warren Buckley 0c5b83377d Injects SmidgeHelper so docs from Smidge wiki/repo for creating Bundles in Razor at runtime can be done 2021-08-17 12:45:04 +01:00
Warren Buckley 7d47d08bf4 Adds Smidge TagHelper so can be used in frontend views 2021-08-17 12:43:53 +01:00
Elitsa Marinovska 81ea232ecb Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/Refractor_UmbracoContextAccessor 2021-08-17 13:11:45 +02:00
Elitsa Marinovska e9b697b0c2 Cleanup 2021-08-17 13:10:13 +02:00
Elitsa Marinovska d8b3a1bbe5 Get rid of some more duplicate code 2021-08-17 13:09:25 +02:00
Bjarke BergandGitHub 224d237092 Merge pull request #10868 from umbraco/v9/task/appsettings_now_generate_on_build
v9: appsettings.json now generate from template if missing
2021-08-17 12:53:01 +02:00
Bjarke BergandGitHub e19b3718e4 Merge pull request #10873 from umbraco/v9/task/fixed_todo_make_backoffice_url_absolute
v9: Making backoffice path absolute
2021-08-17 12:45:56 +02:00
Zeegaan ea530e786e Changed gitignore to ignore appsettings.json 2021-08-17 12:14:46 +02:00
Sebastiaan Janssen 98f5d471fc Correct the path of the config file 2021-08-17 12:03:49 +02:00
Zeegaan 285c9c92b5 Fixed duplications 2021-08-17 11:41:28 +02:00
Zeegaan 6c545a29c7 Fixed missing null checks 2021-08-17 11:33:51 +02:00
dbe38968de Update src/Umbraco.Core/Templates/UmbracoComponentRenderer.cs
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-08-17 11:31:03 +02:00
Zeegaan 255e0d4134 Updated summaries 2021-08-17 11:20:17 +02:00
MoleandGitHub 1902f00d0c Merge pull request #10826 from umbraco/v9/bugfix/AB12681-unique-constraints-to-dictionary-tables
V9: Add unique constraints to cmsDictionary and cmsLanguageText tables
2021-08-17 11:17:18 +02:00
9fe0a40b63 Update src/Umbraco.Web.Common/AspNetCore/AspNetCoreBackOfficeInfo.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-08-17 11:09:53 +02:00
efac943e11 Update src/Umbraco.Tests.Integration/Implementations/TestHelper.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-08-17 11:09:49 +02:00
Bjarke BergandGitHub c6cdc6d226 Merge pull request #10860 from nzdev/v9/bugfix/logging-patterns
Avoid mixing using of string interpolation and string formatting in log messages
2021-08-17 10:30:46 +02:00
Zeegaan d9a7727175 implemented checking if "_httpContextAccessor" is null 2021-08-17 10:21:00 +02:00
Mads Rasmussen f765a19535 add some tests for content type helper and alias generation 2021-08-17 10:17:30 +02:00
Zeegaan 45bbaafde9 fixed todo in AspNetCore Backoffice 2021-08-17 09:55:57 +02:00
Zeegaan d51fed4f6d Fixed UmbracoHelperAccessor to do a null check 2021-08-17 08:34:01 +02:00
Nikolaj GeisleandGitHub a4b6fc8db6 Merge pull request #10855 from bjarnef/v9/bug/packages-overflow
V9: Fix packages overflow
2021-08-17 08:29:07 +02:00
Bjarke Berg 4ef08072ed Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-08-17 08:26:56 +02:00
Bjarke Berg c39053d7c1 Bumb version 2021-08-17 08:26:32 +02:00
Bjarke BergandGitHub f6bd3a1eec Merge pull request #10861 from nzdev/v9/bugfix/trimstart-arrays
Reduce allocations by using existing CharArrays for TrimStart()
2021-08-17 08:07:14 +02:00
Bjarke BergandGitHub bab7545a6d Merge pull request #10862 from nzdev/v9/bugfix/razor-event-cleanup
Cleanup _inMemoryModelFactory.ModelsChanged event on dispose in  RefreshingRazorViewEngine
2021-08-17 08:06:17 +02:00
Bjarke BergandGitHub 615c78dab5 Merge pull request #10859 from nzdev/v9/bugfix/dispose-processes
Process requires disposal
2021-08-17 07:59:46 +02:00
Bjarke BergandGitHub a7fcb60d3f Merge pull request #10857 from gunnim/patch-2
SystemLock - Update link to msdn blog
2021-08-17 07:58:35 +02:00
Bjarke BergandGitHub 831efead10 Merge pull request #10623 from umbraco/v9/bugfix/image-cropping
V9: Fix ImageSharp integration and add support for custom crops
2021-08-17 07:49:32 +02:00
4dd3b81b1f UI improvement: Add option to select/deselect all filters in Log Viewer drop-down (#10815)
* Update search.controller.js

Minor linting update to existing code

* Basic functionality for select and deselect all log level filters

* Fix button texts and added localisations for languages en, en_us, da

* Grammar correction of Danish localisation

* Finalise button styling using the umb-button directive, including localisation of labels

* Minor linting update

* Add various localisations of "select all" and "deselect all" for Log Viewer

* Minor refactor of select/deselect buttons to be wrapped in <umb-dropdown-item> directive

* use foreach/map

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-17 14:22:58 +10:00
Bjarne FyrstenborgandGitHub f4504d7824 Password tip not updated correct on init (#10814)
* Angular binding in curly brackets not necessary when using ng-bind or ng-bind-html

* Update password tip on init

* Update comment
2021-08-17 14:03:54 +10:00
Bjarne FyrstenborgandGitHub 22c80f0ff1 Update to noUiSlider v15.4.0 (#10870) 2021-08-17 10:47:33 +10:00
Sebastiaan JanssenandGitHub 1057df997d Trying to prevent unnecessary CodeQL errors for contributors (#10867) 2021-08-16 15:40:06 +02:00
Zeegaan 7a431a7184 Renamed appsettings to appsettings.template 2021-08-16 14:57:27 +02:00
Elitsa Marinovska fba02ea2d6 Fix merge conflict 2021-08-16 14:21:37 +02:00
Elitsa Marinovska 5518867590 Merge remote-tracking branch 'v9/dev' into v9/bugfix/AB12681-unique-constraints-to-dictionary-tables 2021-08-16 14:21:13 +02:00
Elitsa Marinovska 600319cf93 Added missing key value for a test dictionary item 2021-08-16 14:14:41 +02:00
Elitsa Marinovska b82320c9f3 Modifying the cmsLanguageText unique index to be just across the languageId and unqiueId fields 2021-08-16 13:26:42 +02:00
Zeegaan 4e2d9159f4 Merged v9/dev into this branch 2021-08-16 12:43:28 +02:00
Zeegaan 95fd1f57ba Added missing using 2021-08-16 12:39:23 +02:00
Zeegaan 61f952bd70 Changed the UmbracoContextAccessor checks with extension methods to lessen duplicate code 2021-08-16 12:36:50 +02:00
Ronald Barendse 0b53249d57 Make ImageSharpConfigurationOptions public 2021-08-16 12:11:30 +02:00
Ronald Barendse 43704da869 Remove dimensions if either one is above the configured maximum 2021-08-16 11:12:54 +02:00
Ronald Barendse 992eb58023 Move ImageSharpImageUrlGenerator back to Infrastructure and remove NoopImageUrlGenerator 2021-08-16 11:08:09 +02:00
MoleandGitHub 5d5ee574c8 Merge pull request #10865 from umbraco/v9/task/removed-VaritaionContextAccessor-from-IUmbracoContext
v9: Removed VariationContextAccessor from IUmbracoContext
2021-08-16 10:44:20 +02:00
Zeegaan c5be9129bb Merge required 2 updates to use the new TryGetUmbracoContext 2021-08-16 10:42:26 +02:00
Zeegaan 33ab3a32ec Merged v9/dev into this branch 2021-08-16 10:41:36 +02:00
Ronald Barendse 42c6aa8d56 Register default ImageSharp configuration for application-wide use 2021-08-16 10:35:37 +02:00
Zeegaan cca7c379ae Implemented an extension method to lessen duplication of code 2021-08-16 10:31:11 +02:00
Zeegaan 2a03c7dfd3 Removed CultureAccessor from test 2021-08-16 08:54:28 +02:00
Zeegaan 3c4cefb17d Removed VariationContextAccessor from IUmbracoContext 2021-08-16 08:43:13 +02:00
e0fb606eb8 #10572 watch model value (#10634)
* setup watch, to ensure model value is reflected across variants in splitview.

* unsubscribe watch

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-08-16 10:26:17 +10:00
Lars-ErikandNathan Woulfe f7428ac67b Decouple NuCache.Property from NuCache.PublishedSnapshot 2021-08-16 09:34:33 +10:00
Bjarne FyrstenborgandGitHub deedb24b65 Upgrade to noUiSlider v15.3.0 (#10852) 2021-08-16 09:12:48 +10:00
Bjarne FyrstenborgandGitHub 82cf0e30a5 Implement drag start and drag stop events (#10856) 2021-08-16 09:11:50 +10:00
Chad Currie 2b6b620370 fix backslash 2021-08-15 19:36:41 +12:00
Chad Currie c8777c25ff Remove _inMemoryModelFactory.ModelsChanged event handler on dispose 2021-08-15 19:04:36 +12:00
Chad Currie c72e4f224a use existing CharArrays for TrimStart() to reduce array allocations 2021-08-15 19:02:05 +12:00
Chad Currie 9457d73499 Avoid mixing using of string interpolation and string formatting. MessageFormat parameter is cached and should be a constant string. 2021-08-15 18:51:26 +12:00
Chad Currie f934780300 Process requires disposal 2021-08-15 18:38:17 +12:00
GunnarandGitHub a79aec85d7 SystemLock - Update link to msdn blog 2021-08-13 22:03:15 +00:00
Bjarne Fyrstenborg 96cbf1622f Fix expansion panel header causing horizontal overflow 2021-08-13 19:46:37 +02:00
Bjarke BergandGitHub 3c6efa6cb5 Merge pull request #10787 from umbraco/v9/bugfix/member_validation_doesnt_update_properly
v9: Fixed a bug where validation didnt update properly
2021-08-13 19:19:37 +02:00
Bjarke BergandGitHub cf78027b84 Merge pull request #10850 from umbraco/v9/bugfix/user-roles-fail-if-0
v9: If you didnt have a member group, restricting acces to the public would always lead to error page
2021-08-13 19:15:43 +02:00
Bjarke Berg 8c42d563bd Updated unittest to match real usecase 2021-08-13 18:51:06 +02:00
Bjarke Berg 8e2044ad4e Revert "Removed UnitTest"
This reverts commit 18d670bc20.
2021-08-13 18:30:09 +02:00
Bjarne Fyrstenborg a3c6947082 Remove space 2021-08-13 16:42:36 +02:00
Bjarne Fyrstenborg 6eec481672 Allow Eye Dropper to be used as macro parameter editor 2021-08-13 16:35:10 +02:00
Bjarne Fyrstenborg 88761b34d4 Add Eye Dropper property value converter 2021-08-13 16:34:38 +02:00
Ronald Barendse a0184d5556 Remove repeated ImageSharp default configuration 2021-08-13 16:04:44 +02:00
Ronald Barendse 36568a0fdc Move ImageSharpImageUrlGenerator to Web.Common and add NoopImageUrlGenerator 2021-08-13 16:01:56 +02:00
Paul Johnson 774e174b87 Remove duplicate project references in Umbraco.Examine.Lucene.csproj 2021-08-13 14:34:52 +01:00
Ronald Barendse 74ea311e3c Remove width/height when both are above the configured maximums, add comments/documentation 2021-08-13 14:23:27 +02:00
Mads Rasmussen 9f9d6e8148 move alias related methods from contentEditingHelper to contentTypeHelper 2021-08-13 14:06:54 +02:00
Nikolaj GeisleandGitHub c15e4bc025 Merge pull request #10810 from DanDiplo/temp-debuggerdisplay
Adding [DebuggerDisplay] attribute to core published content classes …
2021-08-13 13:50:52 +02:00
Mads Rasmussen 64e254657c fix drag and drop direct properties 2021-08-13 13:48:25 +02:00
Zeegaan 18d670bc20 Removed UnitTest 2021-08-13 12:17:20 +02:00
Zeegaan 683170b04e Removed Unneccesary if check 2021-08-13 10:51:50 +02:00
Paul JohnsonandGitHub afe3f5bc38 Merge pull request #10849 from umbraco/v9/feature/improve-pipelines-test-setup
Build sln before running tests.
2021-08-13 09:46:16 +01:00
Paul Johnson 5aad18b99a Build sln before running tests.
Should prevent more OS related broken builds e.g. project files with case sensitivity issues.
2021-08-13 09:21:10 +01:00
Nikolaj GeisleandGitHub 21c762d7de Merge pull request #10838 from umbraco/v9/bugfix/AB13223-fix-absolute-url-provider-mode
V9: Fix RedirectToCurrentUmbracoPage when UrlProviderMode is set to "Absolute"
2021-08-13 09:12:42 +02:00
Shannon c92e1beaa0 Better debugging when working with external login providers 2021-08-12 15:50:47 -06:00
Paul Johnson 5c7bf075e6 Backport fix for #10774 to v8
Call EnsureCaches on all notify handlers in PublishedSnapshotService.
No need to delete NuCache database files.
2021-08-12 19:28:48 +01:00
Paul Johnson 2c0761346c Resolve issues adding content on startup for #10774
Call EnsureCaches on all notify handlers in PublishedSnapshotService.
No need to delete NuCache database files.
2021-08-12 18:30:57 +01:00
Vitor Rodrigues 31b1a3eb2b Fixed incorrect node url being returned when no suitable domain exists for culture #10827 2021-08-12 17:05:43 +02:00
Kenny NielsenandSebastiaan Janssen e4a2fc2736 Only encode text once
Html.ReplaceLineBreaks calls WebUtility.HtmlEncode internally, so the text gets encoded by this method.

As far as I know, WebUtility.HtmlEncode and HttpUtility.HtmlEncode produces the same result (unlike WebUtility.UrlEncode and HttpUtility.UrlEncode which produces different results; see https://edi.wang/post/2018/11/25/netcore-webutility-urlencode-httputility-urlencode), so it should be safe to omit HttpUtility.HtmlEncode here.
2021-08-12 16:16:48 +02:00
Sebastiaan Janssen 33feb808dd Fix version dependencies 2021-08-12 14:56:55 +02:00
Sebastiaan Janssen 4ae1d9ee06 Merge branch 'v8/8.15' into v8/8.16 2021-08-12 14:54:06 +02:00
Sebastiaan Janssen a5ff183015 Bump version to 8.15.2 2021-08-12 14:48:15 +02:00
Sebastiaan Janssen 3d088a0376 Merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-08-12 14:31:47 +02:00
Sebastiaan Janssen 2c885f7a86 Bump version to 8.14.3 2021-08-12 14:30:10 +02:00
7710409be8 Set isMainPage to true on TemplateRenderer.ExecuteTemplateRendering (#10684)
* Set isMainPage to true on TemplateRenderer.ExecuteTemplateRendering (#10683)

* Added comment

* Tweak comment for clarity

Co-authored-by: Paul Johnson <pmj@umbraco.com>
2021-08-12 11:09:21 +01:00
Mads Rasmussen e3f75252a2 update delete dialogs to handle empty names 2021-08-12 11:36:07 +02:00
Elitsa Marinovska 185cebb490 Adding a check for when the UrlProviderMode is set to Absolute 2021-08-12 12:08:39 +03:00
Bjarke Berg 6085e03600 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-08-12 11:03:32 +02:00
Bjarke Berg 42255a8dc3 Removed connection string 2021-08-12 11:03:14 +02:00
Mads Rasmussen c93a572425 lower tab hover timeout 2021-08-12 10:23:27 +02:00
Mads Rasmussen e73ed39039 align group inherited label to the right 2021-08-12 10:21:59 +02:00
Ronald Barendse 0b713d4562 Use ImageSharp for dimension extraction, remove ImageSize and ExifImageDimensionExtractor 2021-08-12 10:19:06 +02:00
Andy Butland 8ca35f598b Removed two effectively duplicate tests. 2021-08-12 10:08:41 +02:00
Mads Rasmussen deb21e96fe show composition icon on inherited tabs 2021-08-12 09:53:10 +02:00
Ronald Barendse 8b1bd14df1 Remove ImageCropRatioMode and clean up GetCropUrl overloads 2021-08-12 09:03:02 +02:00
Bjarke BergandGitHub 40b9109f65 Merge pull request #10834 from umbraco/v9/remove-system.configuration
V9 Remove System.Configuration
2021-08-12 09:02:48 +02:00
Elitsa Marinovska 6097faa906 Remove connection string from appsettings.json 2021-08-12 09:43:29 +03:00
Bjarke BergandGitHub 765f650d08 Merge pull request #10835 from umbraco/v9/feature/merge_v8_11082021
Merge V8.16RC into V9 11-08-2021
2021-08-11 20:13:58 +02:00
Bjarke Berg d775de5ddd Fixed issue after merge 2021-08-11 19:38:23 +02:00
Bjarke Berg 2baa1abfc4 Merge remote-tracking branch 'origin/v8/8.16' into v9/feature/merge_v8_11082021
# Conflicts:
#	.github/CONTRIBUTING.md
#	build/NuSpecs/UmbracoCms.Core.nuspec
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	build/NuSpecs/UmbracoCms.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Cache/AppCaches.cs
#	src/Umbraco.Core/Cache/AppPolicedCacheDictionary.cs
#	src/Umbraco.Core/Cache/DeepCloneAppCache.cs
#	src/Umbraco.Core/Cache/WebCachingAppCache.cs
#	src/Umbraco.Core/CompositionExtensions.cs
#	src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
#	src/Umbraco.Core/Models/PropertyGroupCollection.cs
#	src/Umbraco.Core/Models/PropertyTypeCollection.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/ExternalLoginRepository.cs
#	src/Umbraco.Core/ReadLock.cs
#	src/Umbraco.Core/Routing/SiteDomainMapper.cs
#	src/Umbraco.Core/UpgradeableReadLock.cs
#	src/Umbraco.Core/WriteLock.cs
#	src/Umbraco.Examine/ExamineExtensions.cs
#	src/Umbraco.Infrastructure/Examine/UmbracoFieldDefinitionCollection.cs
#	src/Umbraco.Infrastructure/Persistence/Dtos/ContentTypeDto.cs
#	src/Umbraco.Infrastructure/Persistence/Dtos/DictionaryDto.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
#	src/Umbraco.Infrastructure/Services/IdKeyMap.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
#	src/Umbraco.Tests/App.config
#	src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
#	src/Umbraco.Web.UI/Umbraco/config/lang/cy.xml
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/CacheHelperExtensions.cs
#	src/Umbraco.Web/Editors/RelationTypeController.cs
#	src/Umbraco.Web/Logging/WebProfilerProvider.cs
#	src/Umbraco.Web/Models/Mapping/MemberMapDefinition.cs
#	src/Umbraco.Web/PublishedCache/NuCache/MemberCache.cs
#	src/Umbraco.Web/Routing/ContentFinderByConfigured404.cs
#	src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
#	src/Umbraco.Web/Security/BackOfficeUserManager.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
2021-08-11 19:11:35 +02:00
Andy Butland 902984f977 Added unit tests for CropWebProcessor and ImageCropperTemplateCoreExtensions. 2021-08-11 17:18:23 +02:00
Bjarke Berg c5e882680b Fixed issue with model state marked as invalid on the entire model, where we handle it for each item separately 2021-08-11 15:43:41 +02:00
Warren Buckley f794f63884 Use ToSemanticStringWithoutBuild() extension method 2021-08-11 14:20:58 +01:00
Warren Buckley 042371a99a Merge branch 'v9/dev' into v9/remove-system.configuration 2021-08-11 14:08:52 +01:00
Bjarke Berg dfa76af4d6 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-08-11 14:50:56 +02:00
Bjarke Berg c5752b5db5 Revert "Fixed issue with saving content when having an empty variant. Aligned codebase with how it is in v8"
This reverts commit 5ae0b64b36.
2021-08-11 14:50:39 +02:00
Nikolaj GeisleandGitHub 6be555f85a Merge pull request #10832 from umbraco/v9/bugfix/cached_partial_did_not_materialize_before_caching
Fixed issue with CachedPartial that cached an unmaterialized value
2021-08-11 14:42:25 +02:00
Warren Buckley f351cc15d5 Fix up TestData to not use ConfigManager but to get Version from injected IUmbracoVersion in the view 2021-08-11 13:33:53 +01:00
Bjarke Berg 805a228e6b Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-08-11 14:32:35 +02:00
Bjarke Berg 5ae0b64b36 Fixed issue with saving content when having an empty variant. Aligned codebase with how it is in v8 2021-08-11 14:32:08 +02:00
Niels Lyngsø 6d7067cbb0 fixing dragging forth and back between tabs + fixes the problem with dragging to generic tab. 2021-08-11 14:27:47 +02:00
Warren Buckley f09ec194fe Remove System.Configuration from tests 2021-08-11 13:27:28 +01:00
Warren Buckley 485730b776 Use TestData Options/Settings as opposed to ConfigManager 2021-08-11 13:27:03 +01:00
Warren Buckley ec15f20fdf Replace excetion type from System.Configuration 2021-08-11 13:26:28 +01:00
Warren Buckley 9112963224 Remove System.Configuration.ConfigurationManager 2021-08-11 13:25:13 +01:00
Zeegaan 1906228ead Fixed test class with private field instead of public property 2021-08-11 14:23:16 +02:00
Zeegaan c07fe97edd Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/Refractor_UmbracoContextAccessor 2021-08-11 14:01:00 +02:00
Bjarke Berg 442310d0ea Fixed issue with CachedPartial that cached an unmaterialized value, that could not be used on cache hits. 2021-08-11 13:59:28 +02:00
Zeegaan 81807f76dc Fixed last 4 classes that used old UmbracoContextAccessor to use new TryGetUmbracoContext 2021-08-11 13:33:34 +02:00
Zeegaan f299c6a93b Updated 15 classes to use the new TryGetUmbracoContext and implemented a Set() method in HybridUmbracoContextAccessor 2021-08-11 13:25:17 +02:00
Zeegaan c3bac00f6e Fixed 11 more classes with new TryGetUmbracoContext 2021-08-11 12:17:35 +02:00
Warren BuckleyandGitHub 558352e3ac Merge pull request #10823 from umbraco/v9/feature/package_export_and_import_both_xml_and_zip
V9: Package export and import both xml and zip
2021-08-11 11:10:28 +01:00
Niels Lyngsø 4c8956c654 dropzone take no place unless visible 2021-08-11 11:34:55 +02:00
Zeegaan 919b091e67 Fixed 11 classes with the new TryGetUmbracoContext 2021-08-11 11:33:46 +02:00
Bjarke Berg c2d54f508f Fixed missing TODO 2021-08-11 11:30:47 +02:00
Zeegaan 261b93f7be Updated 13 classes with new TryGetUmbracoContext 2021-08-11 11:06:55 +02:00
Bjarke Berg 53fc1693ec Fix duplicate ProjectReference to Umbraco.Web.Common 2021-08-11 10:39:58 +02:00
Mads Rasmussen 2651f0fe63 move convert tab to group function outside the setSortingOptions function 2021-08-11 10:31:30 +02:00
Zeegaan 4bcabf7c6e Fixed missing "!" 2021-08-11 10:12:16 +02:00
Mads Rasmussen 05e8cfa9f4 Add dropzone to convert a group to a tab 2021-08-11 09:54:19 +02:00
Ronald Barendse c5361ec54e Improve crop coordinate calculations 2021-08-11 09:53:58 +02:00
Bjarne Fyrstenborg b8b8fb667b Use constants 2021-08-11 08:31:37 +02:00
690a6314df Remove requirement to specify icon class in umb-icon directive (#10805)
* Wrap legacy font icon so we can inherit font from parent element

* Remove icon name from class attributes

* Add back class as color is part of icon

* Replace icon classes

* Replace icon class

* Use umb-icon

* Remove icon classes

* Remove icon classes

* Update color for SVG icons

* Inherit animation

* Add icon add class to SVG as well

* Update umb-icon inner wrapper

* Fix issue with search icon styling in property editors dialog

* Formatting

* Adjust umb-icon with transclude

* Change back to original back icon from font awesome

* Adjust styling for font icon

* Replace with umb-icon

* Use umb-icon in packager

* Use umb-icon in help drawer

* Use umb-icon in treesource prevalue editor

* Update font size

* Replace with umb-icon

* Replace icons with umb-icon

* div isn't valid inside label element

* Replace more icons

* Use umb-search-filter component

* Update to use umb-icon

* Use end-closing tag for custom HTML element

* Use umb-icon component

* Use umb-icon component to replace icons

* Replace with umb-icon

* Replace icons with umb-icon

* Replace more icons

* Custom HTML element should have end-closing tag

* Replace icons with umb-icon

* Replace icons

* Remove unused variable

* Replace icon

* Replace icons

* Revert to `<i>` element as it was causing issues with isolated scopes

* Adjust umb-checkmark to work with umb-icon

* Adjust lightbox styling

* Remove unused helper class and it is already available as "self-center" in _flexbox.less

* remove unused class from icon, shift margin to parent element

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-11 16:20:54 +10:00
Bjarne Fyrstenborg 520a7e519c Use file picker for packages 2021-08-11 01:26:15 +02:00
Bjarne Fyrstenborg 94f7a55698 Add back isDialog 2021-08-11 01:22:22 +02:00
Bjarne Fyrstenborg 1fac53e120 Simplify code 2021-08-11 01:12:13 +02:00
Bjarne Fyrstenborg c33294ae7f Include static file picker 2021-08-11 00:55:01 +02:00
Bjarne Fyrstenborg 04fcd8c01e Add infinite editor for file picker and static file picker 2021-08-11 00:53:30 +02:00
Ronald Barendse 01559ede97 Only support crop coordinates in CropWebProcessor 2021-08-10 23:55:37 +02:00
Shannon DeminickandGitHub 962984b9c9 Merge pull request #10702 from umbraco/v9/task/more-flexible-startup
More flexible Umbraco startup code - new method WithCustomMiddleware
2021-08-11 06:26:03 +10:00
Shannon 01dd9e6f2e Merge branch 'v9/dev' into v9/task/more-flexible-startup
# Conflicts:
#	src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs
2021-08-10 13:55:55 -06:00
Shannon 652f385057 Merge branch 'v9/bugfix/external-login-changes' into v9/dev 2021-08-10 12:42:32 -06:00
Shannon 1917c51115 Another fix required for the user invite flow. 2021-08-10 12:41:24 -06:00
Bjarke BergandGitHub d520be52bc Merge pull request #10721 from umbraco/v9/bugfix/external-login-changes
external login changes/enhancements
2021-08-10 20:04:20 +02:00
Bjarke Berg cfc9450940 Do not show build information on Upgrade page 2021-08-10 19:31:27 +02:00
Ronald Barendse 22814036a1 Update FocalPointPosition and CropCoordinates constructors/properties 2021-08-10 17:20:03 +02:00
Ronald Barendse 766530fcd3 Swap focal point order to left,top to match resize X,Y coordinates 2021-08-10 17:17:40 +02:00
Elitsa Marinovska 20a40ce001 New migration for dropping existing indexes in the dictionary tables and re-creating the new ones. Silently log in case the migration fails - due to duplicate records 2021-08-10 17:47:48 +03:00
Bjarke BergandGitHub 2add0833bc Merge pull request #10824 from umbraco/v9/serilog-remove-old-xml-settings-nuget
V9 Serilog - Remove old XML settings nuget
2021-08-10 14:54:05 +02:00
Elitsa Marinovska 2362b9479b Update DictionaryDto and LanguageTextDto to have unique indexes. 2021-08-10 15:44:19 +03:00
Ronald Barendse 0753353cf7 Remove obsolete/unused properties and parameters 2021-08-10 13:36:50 +02:00
Ronald Barendse 474b63a590 Update AngularJS image URL parameters 2021-08-10 13:35:04 +02:00
Warren Buckley 73daca339e Adds in System.Configuration.ConfigurationManager that the Serilog package had a dependacy on 2021-08-10 11:45:53 +01:00
Bjarke Berg 2b8256c576 Fix hash of xml 2021-08-10 12:40:24 +02:00
Zeegaan e9908e341f fixed RedirectTrackingHandler to implement new version of IPublishedSnapshot 2021-08-10 12:25:56 +02:00
Ronald Barendse 0b9f1f4f86 Remove usage of obsolete image URL generation properties (width/height ratio, default crop, upscale and animation process mode) 2021-08-10 11:23:37 +02:00
Zeegaan cd439bbb7c removed unneccesary dbcontext 2021-08-10 11:20:14 +02:00
Warren Buckley 66194fe553 Remove unused usings 2021-08-10 10:19:29 +01:00
Warren Buckley b82047ce00 Fix build & remove this constructor where you could pass in a custom filepath to read the XML settings from 2021-08-10 10:19:13 +01:00
Warren Buckley 2b36538b71 Uninstall OLD Serilog package that read config from XML values we use Serilog.Settings.Configuration instead now 2021-08-10 10:18:33 +01:00
Zeegaan ac71fc5c67 merged v9/dev into this branch to make sure its up to date 2021-08-10 11:15:43 +02:00
Zeegaan f3db706808 merged v9/dev into this branch 2021-08-10 11:15:23 +02:00
Zeegaan 5d264fefdb Added a null check to IUmbracoHelperAccessor & IPublishedSnapshotAccessor 2021-08-10 10:55:29 +02:00
Bjarke Berg 3ac5004d09 Fixed issue:
Did not load media items if the folder was still there but the nested media was deleted/missing

## Testcase:
Add folder to media..

add multiple images into the folder

Create package with the folder and include decendents

Remove one of the items inside the folder + empty recycle bin

Install the package  - Now the missing item is still added (it was not before)
2021-08-10 10:52:26 +02:00
Ronald Barendse 50d8e74b5b Obsolete unsupported image URL generation options and update ImageSharp implementation 2021-08-10 10:26:02 +02:00
Paul Johnson 5c1712cba2 Stopped building frontend assets to Umbraco.Web.UI/ 2021-08-10 09:16:52 +01:00
Paul JohnsonandSebastiaan Janssen 4b73c44700 Remove duplicate project entry for examine in netcore-only sln 2021-08-10 09:34:07 +02:00
Bjarke BergandGitHub 74c20f6d96 Merge pull request #10811 from umbraco/v9/bugfix/null-check-redirect-tracking
Needs a null check so it doesn't explode when saving content during a migration.
2021-08-10 07:56:13 +02:00
Bjarne FyrstenborgandGitHub 2dadfc2990 Check invariant name of custom listview (#10813)
* Check invariant name of custom listview

* Update prefix value
2021-08-10 09:29:30 +10:00
Shannon 456e352491 Fix build 2021-08-09 13:42:52 -06:00
Shannon ab84490535 Fixes email sending notifications so they are checked if they are handled. 2021-08-09 13:42:08 -06:00
Bjarke BergandGitHub fb9fdc44ca Merge pull request #10818 from p-m-j/v9/bugfix/misc-linux-issues
v9: Run all tests on linux build
2021-08-09 17:22:35 +02:00
Paul Johnson 7f71298e3f Remove apartment state annotations
Resolves issue where fewer test run on Linux than Windows.
Presumably legacy that has hung around.
2021-08-09 15:49:56 +01:00
Paul Johnson a2799738ca Fix nuspec solution items 2021-08-09 14:40:16 +01:00
Paul Johnson 38e66b0124 Fix case sensitivity issue 2021-08-09 14:34:32 +01:00
Ronald Barendse c21656aff2 Change processor order and fix crop percentage calculation 2021-08-09 14:52:07 +02:00
Bjarke Berg c190ed504e fix tests 2021-08-09 13:19:37 +02:00
Ronald Barendse 5cdcd021fa Remove support for whole percentage crop values 2021-08-09 12:00:37 +02:00
Ronald Barendse fd93248d11 Move CropMode enum into seperate file 2021-08-09 11:59:23 +02:00
Nikolaj GeisleandGitHub 18ef926c5e Merge pull request #10796 from umbraco/v9/bugfix/AB13096-remove-unwanted-folders-on-publish
V9: Umbraco Templates - remove unwanted folders on publish
2021-08-09 11:08:57 +02:00
Mads Rasmussen 99ffbed7a6 wrap variant switcher in correct flex values 2021-08-09 10:53:22 +02:00
Nikolaj GeisleandGitHub c03e84689d Merge pull request #10794 from umbraco/v9/bugfix/AB13095-block-thumbnail-fix
V9: Limit the BlockList thumbnail picker to only the directories serving static files
2021-08-09 08:54:23 +02:00
Sebastiaan Janssen 9b93a8f1ab Bump version to 8.16.0-rc 2021-08-09 08:26:22 +02:00
Bjarke Berg 6ef2deb3cb Fix base url for js docs 2021-08-09 07:48:37 +02:00
Bjarke Berg 2a3ac1961d Temp commit 2021-08-09 06:28:26 +02:00
Shannon afb952fa38 Needs a null check so it doesn't explode when saving content during a migration. 2021-08-06 15:54:50 -06:00
Shannon d4be031b78 Fixes an error caused by v8-v9 merge 2021-08-06 14:12:25 -06:00
Shannon 53bc53a377 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/external-login-changes
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
2021-08-06 13:47:41 -06:00
Dan Booth 56f0f6b3fe Adding [DebuggerDisplay] attribute to core published content classes to make debugging easier 2021-08-06 20:21:30 +01:00
Bjarke BergandGitHub a159aa4790 Merge pull request #10808 from abjerner/v9/bugfix/typefinder-jetbrains-annotations
v9: Added "JetBrains.Annotations" to assembly exclusion list to fix #10801
2021-08-06 19:19:10 +02:00
Kevin MeilanderandSebastiaan Janssen 1dd75b9051 #10354 - added domain content id as node context for the content finder for the 404 error page so $site works 2021-08-06 16:33:57 +02:00
Adam NelsonandSebastiaan Janssen 0bc9f3e322 Fix textboxes inside flatpickr popup to not cause the scheduled publishing overlay to submit when enter is pressed. 2021-08-06 16:31:21 +02:00
Sebastiaan Janssen 33e980841f Update to latest flatpickr 2021-08-06 16:27:07 +02:00
Philippe GuilmetteandSebastiaan Janssen 19a6184502 Delete entries from umbracoUserLogin before deleting the user (fix for 10269) 2021-08-06 16:14:32 +02:00
Sebastiaan Janssen f7dee7ec74 Fix self-closing element 2021-08-06 15:55:50 +02:00
Jan SkovgaardandGitHub dafa5d2ef6 Numberrange view: Various minor improvements (#10452) 2021-08-06 15:33:52 +02:00
inetzoandSebastiaan Janssen 4e4412ed34 RelationType parent/child are stored in the wrong order
When creating a new relationtype, the parent and child type are stored in reverse order (parent- and childtype are switched).
2021-08-06 15:28:53 +02:00
Rachel BreezeandGitHub 9b57ec5fa6 Accessibility Amends for the Content Info Tab (#10541) 2021-08-06 15:27:18 +02:00
Michel CollardandSebastiaan Janssen 25888a5da1 Changed umb-notifications z-index 2021-08-06 15:23:20 +02:00
Callum WhyteandSebastiaan Janssen 47df53db95 Adding extension for MapDefinitions collection builder 2021-08-06 15:20:49 +02:00
Anders Bjerner 37a141a204 Added "JetBrains.Annotations" to assembly exclusion list
Fixes #10801
2021-08-06 15:18:17 +02:00
Sebastiaan Janssen 7d0558d59f Update ImageProcessor dependencies 2021-08-06 15:05:49 +02:00
Ronald Barendse 6430b36a22 Update resize mode and anchor query string parameters 2021-08-06 14:44:16 +02:00
Jan SkovgaardandGitHub 319e3ed7b9 Add label in mini search component (#10583) 2021-08-06 14:37:17 +02:00
Bjarke BergandGitHub 5a1c3c5061 Merge pull request #10804 from umbraco/v9/update-all-the-things
Update Nuget Package Dependencies
2021-08-06 14:27:22 +02:00
Ronald Barendse 4b85edd1d9 Update ImageSharpImageUrlGenerator 2021-08-06 14:25:09 +02:00
Sebastiaan Janssen 210d155afd Merge branch 'v8/dev' into v8/contrib 2021-08-06 14:10:23 +02:00
Sebastiaan Janssen e6cff8c7f5 Merge branch 'v8/8.15' into v8/dev 2021-08-06 14:08:20 +02:00
Sebastiaan Janssen 61a273c3f5 Merge branch 'v8/8.14' into v8/8.15 2021-08-06 14:07:53 +02:00
Bjarke Berg b7801f6940 Fixed merge issue 2021-08-06 13:55:41 +02:00
Niels LyngsøandSebastiaan Janssen 9ccabd51b9 append a input with ng-model which matches the field coming from model state
(cherry picked from commit 9a16adcb18)
2021-08-06 13:51:26 +02:00
Mads RasmussenandSebastiaan Janssen cf64430116 #10520 Correct mandatory markers in nested content (#10563)
(cherry picked from commit c1a4e07e87)
2021-08-06 13:50:50 +02:00
Niels LyngsøandSebastiaan Janssen c1956882fe append a input with ng-model which matches the field coming from model state
(cherry picked from commit 9a16adcb18)
2021-08-06 13:49:05 +02:00
Bjarke Berg a030506c6a Merge remote-tracking branch 'origin/v9/dev' into v9/update-all-the-things 2021-08-06 13:39:53 +02:00
Bjarke BergandGitHub be32f776ff Merge pull request #10803 from umbraco/v9/feature/basic_auth_middleware
V9: Add basic auth middleware
2021-08-06 13:28:39 +02:00
Niels LyngsøandSebastiaan Janssen 9a16adcb18 append a input with ng-model which matches the field coming from model state 2021-08-06 13:23:17 +02:00
Mads Rasmussen 6f73c6041a Use relocateDisorientedGroups feature in content, media, member + block list editor 2021-08-06 13:02:52 +02:00
Chad CurrieandSebastiaan Janssen 67e812d93c Don't create new empty arrays 2021-08-06 13:01:18 +02:00
nzdevandSebastiaan Janssen 6f8749bc52 Automatically intern contentType Alias and propertyType Alias when querying the database to save on memory and speed up comparisons. 2021-08-06 13:00:28 +02:00
Ronald Barendse 760c15e5ce Add cropmode paramerter back to tests 2021-08-06 12:59:56 +02:00
Ronald Barendse 20007db7f2 Add cropmode support and align logic to ImageProcessors Crop processor 2021-08-06 12:59:23 +02:00
nzdevandSebastiaan Janssen 54b4d6f8d1 Compress true/false from int to bool 2021-08-06 12:59:20 +02:00
Ronald Barendse ca5af1e9a7 Only add our custom CropWebProcessor to ImageSharp 2021-08-06 12:56:49 +02:00
Patrick de MooijandSebastiaan Janssen 51e6ff5cbf Fix examine overview not working as expected 2021-08-06 12:55:40 +02:00
inetzoandGitHub 0ebf8742c3 UserService.SavedUserGroup event returns wrong list of AddedUsers (#10681) 2021-08-06 12:53:35 +02:00
Sebastiaan Janssen 7030d5b170 Removes the changeDocType translations as this is no longer a feature in v8 (triggered by #10499) 2021-08-06 12:44:58 +02:00
Bjarke Berg 6e29645b83 Merge remote-tracking branch 'origin/v9/feature/basic_auth_middleware' into v9/feature/basic_auth_middleware 2021-08-06 12:29:35 +02:00
Bjarke Berg 641546d427 Skip for backoffice requests + Handle potential missing backoffice signin manager 2021-08-06 12:29:05 +02:00
Ronald BarendseandGitHub 40d8e11ba7 Match neutral cultures as Examine culture fields (#9305) 2021-08-06 12:22:03 +02:00
Andy Butland 9732381933 Added unit test for TryGetBasicAuthCredentials extension method and minor code tidy. 2021-08-06 12:13:16 +02:00
Bjarne FyrstenborgandGitHub f4f6350879 Use colorpicker plugin when plugins includes table plugin (#10523) 2021-08-06 12:01:25 +02:00
Bjarne FyrstenborgandGitHub 8b40753f2c Fix issue with show selected member types on init using treepicker (#10204) 2021-08-06 11:59:41 +02:00
Warren Buckley bbbed9f2db Update NUnit 2021-08-06 10:53:42 +01:00
Warren Buckley 3111a8cef7 Update MessagePack & LZ4 Compression for NuCache 2021-08-06 10:41:35 +01:00
Bjarke Berg 7859798e8b Move basic auth to website part 2021-08-06 11:37:10 +02:00
Warren Buckley ffe9f4c4e4 Update NJsonSchema used for auto generating schema file for our options/config 2021-08-06 10:36:48 +01:00
Bjarne FyrstenborgandSebastiaan Janssen 9e12190b6f Fix localization of title attribute 2021-08-06 11:34:34 +02:00
Warren Buckley 139c2db3b3 Update MS Nuget Packages 2021-08-06 10:33:25 +01:00
Bjarne FyrstenborgandGitHub 9f3eddf95f Refactor NPoco queries to use constants and dtos (#10654) 2021-08-06 11:32:16 +02:00
Bjarke Berg bbd935a0b8 Updates based on review feedback 2021-08-06 11:26:31 +02:00
Warren Buckley 6fe719f774 Uninstall SecurityCodeScan
See this internal HQ Slack thread - https://umbraco.slack.com/archives/CSQMK997E/p1628237493038000
2021-08-06 10:16:33 +01:00
Warren Buckley 2c9502c0ef Update MailKit 2021-08-06 10:14:27 +01:00
Warren Buckley 116cd3238b Update Serilog Nuget Packages 2021-08-06 10:11:41 +01:00
Sebastiaan Janssen 4c4120d674 Merge branch 'v8/contrib' into v8/dev 2021-08-06 11:02:03 +02:00
aaf28cba21 Update src/Umbraco.Web.BackOffice/Middleware/BasicAuthAuthenticationMiddleware.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-08-06 11:00:27 +02:00
266af1de12 Update src/Umbraco.Core/Configuration/Models/BasicAuthSettings.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-08-06 10:59:54 +02:00
Mads Rasmussen ffcce26a89 Fix: Tabs active state are distrubed by the Anchor Links/scroll feature. 2021-08-06 10:44:50 +02:00
Bjarke Berg db6002196d Fix test name 2021-08-06 10:44:35 +02:00
Bjarke Berg 2d6b382ce7 Added support for Ip Ranges 2021-08-06 10:41:21 +02:00
Bjarke Berg 0e7f9d93ca Introduced IBasicAuthService 2021-08-06 09:51:08 +02:00
Ronald Barendse f4ac0a532e Merge branch 'v9/dev' into v9/bugfix/image-cropping 2021-08-06 09:44:01 +02:00
Mads Rasmussen 815013f21d allow validation messages to overflow toolbar 2021-08-06 09:39:44 +02:00
Mads Rasmussen c0902dbf1a include inherited groups with local props in server validation index 2021-08-06 09:25:23 +02:00
Mads Rasmussen 39eba15f5e tab aliases can change - make sure we always have the right one for validation 2021-08-06 09:23:48 +02:00
Bjarne FyrstenborgandGitHub 137be33a6c Fixes various issues with javascript services (#10800) 2021-08-06 09:09:50 +02:00
Bjarke Berg 4f2cb09939 Added POC of basic auth middleware 2021-08-05 21:42:47 +02:00
Mads Rasmussen 51743d97bc find index in group when deleting a tab after removing it for validation 2021-08-05 21:33:13 +02:00
Mads Rasmussen c03eec8a11 fixes: The height of the tabs bar also collapses entirely when in reorder mode without any tabs 2021-08-05 21:17:21 +02:00
Mads Rasmussen 6650ebd6d2 order tabs on init to make sure compositions are ordered correctly 2021-08-05 21:07:33 +02:00
Mads Rasmussen 6cfb052285 don't include inherited groups in server validation index 2021-08-05 21:03:23 +02:00
Sebastiaan Janssen d55b740b16 Fix possible null result in #10762 2021-08-05 17:05:48 +02:00
Niels Lyngsø 83907089b7 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-05 16:22:43 +02:00
jattwoodandSebastiaan Janssen ea42063424 Fix for #10678. 2021-08-05 16:14:23 +02:00
Sebastiaan Janssen ef3495b16a Amending fix for #10739 2021-08-05 16:09:14 +02:00
Bjarne FyrstenborgandGitHub 120bc2af11 Examine dashboard search adjustments (#10735) 2021-08-05 15:57:14 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 4513a85d14 Only set umb-button-ellipsis opacity to 1 when above backdrop 2021-08-05 15:32:15 +02:00
Bjarne FyrstenborgandGitHub 854634b243 Tour backdrop missing (#10762) 2021-08-05 15:22:23 +02:00
Bjarne FyrstenborgandGitHub a7c0edec28 Support custom SVG icons in user groups list (#10739) 2021-08-05 15:05:03 +02:00
Mads Rasmussen d5dee05514 remove reference to file 2021-08-05 13:55:31 +02:00
Mads Rasmussen 199e3e449c fix height change when the Generic tab is active without containing items + add white space in the top of the other subviews 2021-08-05 13:19:51 +02:00
Mads Rasmussen 05f6b4dc7c When exiting the reorder mode while the generic tab is empty, set the active tab to the first available one 2021-08-05 13:01:47 +02:00
Niels Lyngsø 2f69eff8f5 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-05 12:39:51 +02:00
Niels Lyngsø 2862a64f72 remove log 2021-08-05 12:39:40 +02:00
Mads Rasmussen a1893206d4 set height to 100% on add tab button 2021-08-05 12:37:00 +02:00
Mads Rasmussen 94ed309b55 remove white space on right side of generic tab 2021-08-05 12:36:38 +02:00
Sebastiaan JanssenandGitHub 7800fe83a8 Install MessagePack's dependencies explicitly (#10772) 2021-08-05 11:57:03 +02:00
Rowan BottemaandSebastiaan Janssen 6a12f4af90 Update Serilog dependencies
This should at least fix #10793 because of a memory leak fix in Serilog.Sinks.Map 1.0.2. Also updated the rest for good measure.

Note that Serilog.Sinks.File is not upgraded to the latest version because it is a new major (4.1.0 -> 5.0.0). Also note that Serilog.Filters.Expressions is deprecated and should be replaced by Serilog.Expressions. I considered both out of scope for this fix.
2021-08-05 11:56:37 +02:00
Elitsa Marinovska baf69305f3 Exclude the wanted folders in the order Content, Compile, EmbeddedResource and None. Have the None Remove after None Include 2021-08-05 12:51:53 +03:00
Ronald Barendse 5edc5fd6c2 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-05 10:52:30 +02:00
Ronald Barendse 362b797006 Fix validation server field name index of group 2021-08-05 10:52:26 +02:00
Ronald Barendse 8b3f43f00a Add alias tooltip on tabs and groups 2021-08-05 10:49:13 +02:00
Ronald Barendse 581437cf8b Keep alias casing intact and ignore casing when comparing 2021-08-05 10:38:51 +02:00
Ronald Barendse 2b2022acd1 Return validation results for all duplicate group aliases/names and fix member name indexes 2021-08-05 10:37:19 +02:00
Niels Lyngsø cdaad8e8e3 relocate disoriented groups 2021-08-05 10:01:26 +02:00
Sebastiaan Janssen 14fc72ff2b Reverting ConcurrentHashSet for now so that Umbraco can install again, see #10751 2021-08-05 09:50:58 +02:00
Niels Lyngsø 6254909270 cancel drop timer when mouse-out 2021-08-05 09:19:24 +02:00
Elitsa Marinovska 1963913658 Fix test - new TreeController increases the count +1 2021-08-05 09:27:17 +03:00
Nikolaj GeisleandGitHub 61b343da8b Merge pull request #10722 from umbraco/v9/bugfix/fix-multi-url-picker
V9: Fix multi url picker
2021-08-05 08:11:31 +02:00
Elitsa Marinovska c8d848bd48 Limiting the access to other folders which are not serving static content when selecting a thumbnail for a Block List and if the image is located under the webroot folder, remove the "wwwroot" prefix from the thumbnail path 2021-08-05 09:04:46 +03:00
Niels Lyngsø e5c6716fb8 remove unused hover class 2021-08-04 19:05:02 +02:00
Niels Lyngsø 8d1034db60 Switch tab after a delay, plus tab droppable indication. 2021-08-04 19:01:20 +02:00
Niels Lyngsø ce9d38aad7 remove double ; 2021-08-04 18:10:02 +02:00
Niels Lyngsø d0db43da35 remove log 2021-08-04 17:04:14 +02:00
Niels Lyngsø 621dbebf95 generate unique alias 2021-08-04 17:04:01 +02:00
Niels Lyngsø 90046fadd3 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-04 17:01:33 +02:00
Niels Lyngsø 3060dc2ba3 add missing l in class 2021-08-04 17:01:20 +02:00
Ronald Barendse a86c57d497 Update group validation to only get the last duplicate alias/name 2021-08-04 16:46:36 +02:00
Ronald Barendse 3ee1013bdb Validate unique group names per parent 2021-08-04 16:39:36 +02:00
Nikolaj GeisleandGitHub eca3536dc7 Merge pull request #10660 from vsilvar/v9/feature/modelsbuilders-nullable-references-maybenull
Added MaybeNullAttribute to ModelsBuilder generated files
2021-08-04 15:13:31 +02:00
Bjarke BergandGitHub cb81b96c4a Merge pull request #10716 from lars-erik/patch-separate-sqlce-from-integration-tests
Testable BTree to ContentCache in V9 / Separate SqlCe from integration tests
2021-08-04 15:02:49 +02:00
Sebastiaan Janssen 96d5935933 Revert "Accessibility improvements for Extensions in Razor Markup (#9576)"
This reverts commit a1e0af6fff.
2021-08-04 14:19:34 +02:00
Bjarke Berg f67415a363 Force only tests of csproj files to avoid executing the tests for dll's too 2021-08-04 13:47:14 +02:00
Mads Rasmussen d156f6a1d0 add anchor links for doc types without tabs 2021-08-04 13:45:18 +02:00
Ronald Barendse 7d46129b76 Fix mutable property group keys/aliases 2021-08-04 13:11:31 +02:00
Mads Rasmussen c121a701a8 fix validation marker on generic tab for content type editors 2021-08-04 12:58:14 +02:00
Bjarke Berg c65cde38f7 Aligned the solution files 2021-08-04 12:51:40 +02:00
Bjarke Berg bcb8c0e286 Fixed todo in test that is now possible after update of nunit 2021-08-04 12:51:25 +02:00
Bjarke Berg 8ad456a6d0 Test sqlCe integration tests on azure too 2021-08-04 12:50:49 +02:00
Zeegaan 3eb32a97a7 v9: 10540 Resolving UmbracoHelper in middleware was null 2021-08-04 12:48:19 +02:00
Mads Rasmussen 5a67ceb39f fix validation marker on generic tab for content, media, members and block list 2021-08-04 12:46:07 +02:00
Bjarke BergandGitHub f9b91cd272 Merge pull request #10661 from vsilvar/v9/feature/10648-umbracobuilder-extensions-chaining
Updated public IUmbracoBuilder extension methods to allow chaining
2021-08-04 12:45:33 +02:00
Mads Rasmussen f43d84787d use resize observer to calculate tabs width 2021-08-04 10:51:07 +02:00
Bjarke Berg e1dab63123 Merge remote-tracking branch 'origin/v9/dev' into patch-separate-sqlce-from-integration-tests 2021-08-04 10:50:33 +02:00
Bjarke BergandGitHub d1a004078f Merge pull request #10781 from umbraco/v9/feature/merge_v8_dev_03082021
V9: Merge v8/dev 03082021
2021-08-04 10:40:34 +02:00
Nikolaj GeisleandGitHub 9f1ed2b676 Merge pull request #10615 from umbraco/v9/bugfix/fix-get-local-crop-url
V9: Fix GetLocalCropUrl
2021-08-04 10:30:57 +02:00
Niels Lyngsø fac303b274 enabling opening a parent composition type 2021-08-04 10:14:07 +02:00
Niels Lyngsø c97073b414 align style for tabs and inherited tabs 2021-08-04 10:13:34 +02:00
Bjarke BergandGitHub 0de0b52354 Merge pull request #10785 from umbraco/v9/bugfix/10699/swapped_hashset_to_concurrent_hashset
v9: Changed HashSet to ConcurrentHashSet to fix concurrency issues https://github.com/umbraco/Umbraco-CMS/issues/10699
2021-08-04 09:51:11 +02:00
Zeegaan d11b79421d fixed a bug where validation didnt update properly
adressed in
https://github.com/umbraco/Umbraco-CMS/pull/10688
2021-08-04 09:46:01 +02:00
Bjarke Berg 30badd7d69 Fixed migration to support updating from 8.15rc (and before),8.15 final and 9.0rc1 2021-08-04 09:44:34 +02:00
Nikolaj GeisleandGitHub c7dd3b2461 Merge pull request #10688 from adamhearn/temp-10665
Support member names using Down-Level Logon Name format
2021-08-04 09:12:57 +02:00
Mads Rasmussen cff39b14c6 fix validation marker on generic tab 2021-08-03 15:14:44 +02:00
Mads Rasmussen ead92ddf36 render tabs on member 2021-08-03 15:14:27 +02:00
Nikolaj GeisleandGitHub 1b54013873 Merge pull request #10687 from umbraco/v9/bugfix/translations-everywhere
V9: Fix translations not shown everywhere
2021-08-03 14:52:00 +02:00
Niels Lyngsø 8791c8dcc5 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-03 14:47:17 +02:00
Niels Lyngsø d4b9ce6648 if alias is null, when we return null. needed for generic-tab 2021-08-03 14:47:07 +02:00
Bjarke BergandGitHub a90b9dc052 Merge pull request #10784 from umbraco/v9/bugfix/10776/added_namespaces_to_view_imports
v9: Added missing namespaces to viewimports https://github.com/umbrac…
2021-08-03 14:28:21 +02:00
Zeegaan 338e1e0d6d https://github.com/umbraco/Umbraco-CMS/issues/10699 Changed HasSet<Uri> to ConcurrentHashSet<Uri>
and changed Add method to TryAdd in AspNetCoreHostingEnviroment.EnsureApplicationMainUrl()
to fix concurrency errors
2021-08-03 14:04:19 +02:00
Mads Rasmussen a5eeee038a render tabs in media section 2021-08-03 13:49:09 +02:00
Bjarke Berg 2229a3e7f8 Remove project references used to test 2021-08-03 13:18:27 +02:00
Zeegaan d76044875b v9: Added missing namespaces to viewimports https://github.com/umbraco/Umbraco-CMS/issues/10776 2021-08-03 12:57:52 +02:00
Mads Rasmussen 1991174115 fix tab validation in content editor and block list editor after change to aliases 2021-08-03 12:55:24 +02:00
Niels Lyngsø 7cdae9f5c1 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-08-03 12:50:36 +02:00
Niels Lyngsø d717556528 Add parentAlias for umbElementContentEditor 2021-08-03 12:50:26 +02:00
Bjarke Berg ac2f567f0e Still do ToArray as the first thing, to avoid test fails. 2021-08-03 12:29:15 +02:00
Bjarke Berg 06951d2e2e Fix for IPropertyCacheCompressionOptions registration 2021-08-03 10:01:13 +02:00
Bjarke Berg e84fcd31a1 Moved namespaces 2021-08-03 09:58:41 +02:00
Bjarke Berg 4ab0b65238 post merge fix - Moved migration to infrastructure 2021-08-03 09:56:32 +02:00
Ronald Barendse 6e5295eb0a Use localizeMany and update to arrow function expressions 2021-08-03 09:53:13 +02:00
Bjarke Berg 43ae1fa3e4 Merge remote-tracking branch 'origin/v8/dev' into v9/feature/merge_v8_dev_03082021
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/ContentEditing/ContentTypesByKeys.cs
#	src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
#	src/Umbraco.Core/PropertyEditors/IPropertyCacheCompression.cs
#	src/Umbraco.Core/PropertyEditors/IPropertyCacheCompressionOptions.cs
#	src/Umbraco.Core/PropertyEditors/NoopPropertyCacheCompressionOptions.cs
#	src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_15_0/AddCmsContentNuByteColumn.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheSerializerComponent.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
#	src/Umbraco.Web/Umbraco.Web.csproj
#	src/Umbraco.Web/UrlHelperRenderExtensions.cs
2021-08-03 09:48:34 +02:00
c1dcdfa634 Changed ConfigConnectionString to accept more valid connectionstrings (#10766)
* Added test cases for valid connectionstring configuration and updated code to pass tests

* Removed unneeded reference added by reverted changes

Co-authored-by: Dave de Moel <d.demoel@wearetriple.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-08-03 10:04:49 +03:00
Bjarke BergandGitHub 7cbe205472 Merge pull request #10742 from umbraco/v9/task/migrate-test-data
Migrated Umbraco.TestData to .NET 5.
2021-08-03 06:49:14 +02:00
Julia GruandGitHub b070a36039 reset confirmDiscardChanges on save (#10777) 2021-08-02 15:11:42 +02:00
ZeegaanandGitHub 1e20724882 Merge pull request #10676 from umbraco/v9/bugfix/image-upload
V9: Fix drag and drop image upload
2021-08-02 12:57:15 +02:00
Ronald Barendse daf2d7c946 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs and add fixes from #10150 and #10759 2021-08-02 11:35:39 +02:00
Andy Butland 9957149008 Removed debug reference to test data from Umbraco.Web.UI.NetCore. 2021-08-02 09:31:45 +02:00
d40e503c82 V8: Fix JS error when using the hide search function in treepicker (#6931)
* Fix JS error when using the hide search function in treepicker

* updates with same defensive change from original pr - only explores child.children after confirming the child indeed has children

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-08-02 09:26:30 +10:00
Bjarne FyrstenborgandNathan Woulfe d537545fa9 Use umb-icon component in user history 2021-08-02 09:14:15 +10:00
Bjarne FyrstenborgandGitHub 050cdd2bb0 Update icon in member group picker (#10094)
* Use member group icon as default icon

* Make pickers consistent using member group entity icon

* Remove unused functions

* Use vm

* Use original getSelected() function

* Include clear function again

* Fix merge conflict

* Remove comment - remove function is requested from <umb-node-preview> in view

* Remove comment - wasn't used, but intend to use in PR 10096 to use property actions to clear member group picker
2021-08-02 08:32:54 +10:00
Bjarne FyrstenborgandGitHub d9555ea57c Update noUiSlider to v15.2.0 (#10319)
* Upgrade to noUiSlider v15.1.1

* Configurate on drag event

* Update nouislider dependencies

* Update description

* Upgrade to latest noUISlider v15.2.0
2021-08-02 08:31:41 +10:00
Bjarne FyrstenborgandGitHub 56790f72b0 Replace angular.forEach with Utilities.forEach (#10759)
* Replace angular.forEach with Utilities.forEach

* Use localizeMany to localize translations in a single request

* Replace angular.forEach

* Replace angular.forEach in mocks
2021-08-02 08:18:30 +10:00
Robert Ghafoorandemma-hq 168abbf2f7 10758 Caption will now be correctly set when passing in a target to the media picker. 2021-07-30 12:45:39 +01:00
Sebastiaan Janssen 3b227b9c67 Merge branch 'v8/dev' into v8/contrib 2021-07-29 14:10:26 +02:00
Sebastiaan Janssen 05973ecae8 Merge branch 'v8/8.15' into v8/dev 2021-07-29 14:10:09 +02:00
Sebastiaan Janssen 7c336554db Fix: Issue when upgraded from 8.14 to 8.15 when inviting user into the backoffice. #10746 (#10767)
* Remove unusable method

* Fixes #10746 by removing the recursive call ending in an infinite loop

Also: the culture is already known, don't take the `CurrentUICulture`
(cherry picked from commit cb06442de4)
2021-07-29 14:06:29 +02:00
Sebastiaan JanssenandGitHub cb06442de4 Fix: Issue when upgraded from 8.14 to 8.15 when inviting user into the backoffice. #10746 (#10767)
* Remove unusable method

* Fixes #10746 by removing the recursive call ending in an infinite loop

Also: the culture is already known, don't take the `CurrentUICulture`
2021-07-29 12:54:05 +01:00
Sebastiaan Janssen 905b43f8af Merge branch 'v8/dev' into v8/contrib 2021-07-29 10:22:36 +02:00
Sebastiaan Janssen 52e8237a0e Merge branch 'v8/8.15' into v8/dev 2021-07-29 10:22:10 +02:00
Bjarne FyrstenborgandNathan Woulfe 7f2b85da19 Don't squeeze avatar when help panel is open 2021-07-29 08:07:25 +10:00
Shannon 5cec6ab8f4 Fixes issue with resolving a scheme name since that is managed via IOptions but we were capturing it. 2021-07-27 16:12:23 -06:00
Shannon 29ebb42a01 Fixes ugly classes not structured correctly and removes dead code, simplifies how db types are initialized and removes hacks. Fixes datetimeoffset definition. 2021-07-27 10:41:46 -06:00
Shannon 499a0608ec Fixes sql server DateTimeOffset mapping. Makes Custom DB types much more flexible and usable by 3rd parties. 2021-07-27 10:15:45 -06:00
Bjarne FyrstenborgandGitHub 8209525611 Modernize mini listview component to use svg icons and umb-search-filter component (#10740) 2021-07-27 15:49:16 +02:00
Sebastiaan Janssen e8926ab17d Merge branch 'v8/8.14' into v8/8.15 2021-07-27 14:54:40 +02:00
Bjarne FyrstenborgandSebastiaan Janssen f7529e0cf5 Inject windowResizeListener in Image Crop directive (#10745)
(cherry picked from commit 2eb554f1b4)
2021-07-27 14:53:09 +02:00
Bjarne FyrstenborgandGitHub 2eb554f1b4 Inject windowResizeListener in Image Crop directive (#10745) 2021-07-27 14:52:01 +02:00
Shannon d218cb4599 Fixes migration and redirect 2021-07-26 16:55:41 -06:00
Shannon a89a92efea Fixing upgrade redirect when using external providers. 2021-07-26 13:28:18 -06:00
Shannon 27fc159e28 ensures the last login date, etc... are updated with external logins 2021-07-26 13:12:29 -06:00
Shannon b939da3668 adds invited date to back office user 2021-07-26 11:51:54 -06:00
Shannon c8d36cfc4f Fix ordering of css files and set correct defautl icon for external providers. 2021-07-26 11:10:37 -06:00
Shannon 4759bcac69 Fixes migrations for external login table. 2021-07-26 10:54:06 -06:00
Shannon 15e65f0c1e Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/external-login-changes 2021-07-26 10:44:51 -06:00
Shannon DeminickandGitHub f1bc76e709 Merge pull request #10670 from cleversolutions/temp-10656
Umbraco 9 - LoginProvider Duplicate Key
2021-07-27 02:43:01 +10:00
Shannon 68737f8682 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/external-login-changes 2021-07-26 09:58:43 -06:00
Shannon DeminickandGitHub b1c4be4299 Merge pull request #10675 from cleversolutions/temp-10674
Change the property accessed on the external provider from SocialIcon to Icon.
2021-07-27 01:56:59 +10:00
Shannon 3a229ef8af update comment and method name 2021-07-26 09:49:56 -06:00
Shannon 0e1c10ca7b adds comments, fixes null check. 2021-07-26 09:44:59 -06:00
Shannon 5c59b54b6e Adjust how the umbraco builder works 2021-07-26 09:23:34 -06:00
Shannon 86dea11711 chagen to IOptionsMonitor 2021-07-26 08:58:23 -06:00
Andy Butland ab5272c6d3 Corrected comment. 2021-07-26 09:37:52 +02:00
Andy Butland 5bd00c8fc9 Migrated Umbraco.TestData to .NET 5. 2021-07-26 09:32:08 +02:00
Niels Lyngsø ffb240c2c9 wrap add-tab in <li> 2021-07-23 14:30:02 +02:00
9807365800 Escape HTML in localization tokens. (#10729)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-07-23 14:26:12 +02:00
Niels Lyngsø 66cb8167db Merge remote-tracking branch 'origin/v8/dev' into v8/feature/reintroduce-tabs 2021-07-23 14:15:48 +02:00
Sebastiaan Janssen 175bb3e6df Bump version to 8.15.1 and merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-07-23 13:35:15 +02:00
Sebastiaan Janssen 071a89a59b Bump version to 8.14.2 2021-07-23 13:32:30 +02:00
Patrick de MooijandNathan Woulfe c86d3b1dae 9157: Use the sorting event instead of the saving 2021-07-23 09:44:19 +10:00
Anders BjernerandNathan Woulfe 6116ec814d Update umbeditorview.directive.js 2021-07-23 09:32:51 +10:00
Bjarne FyrstenborgandGitHub c812dab967 File upload checkered background (#10621)
* Use umb-icon component

* Cleanup unused css and use checkered background on both image cropper and file upload
2021-07-23 09:26:37 +10:00
Shannon 0f7e5a2f2f fix null auto link options. 2021-07-22 16:39:06 -06:00
Shannon ed5ab8b866 Fix delete user clause 2021-07-22 16:34:30 -06:00
Shannon 9ec86f2f86 create scope to resolve named options. 2021-07-22 14:47:17 -06:00
Shannon 560d49d6a5 create scope to resolve named options. 2021-07-22 14:33:32 -06:00
Shannon c3953bb0c1 Ensure to resolve the named options 2021-07-22 13:54:46 -06:00
fe9d0db763 10718 Enables more configured Blocks in Block List Editor (#10726)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-07-22 15:03:09 +02:00
Sebastiaan Janssen d615c1e88b Merge branch 'v8/dev' into v8/contrib 2021-07-22 14:01:55 +02:00
Sebastiaan Janssen 1e13f3feea Merge branch 'v8/8.15' into v8/dev 2021-07-22 14:01:31 +02:00
Sebastiaan Janssen ab0fcdfb9f Merge branch 'v8/8.14' into v8/8.15 2021-07-22 14:01:02 +02:00
Matt BrailsfordandSebastiaan Janssen 98266d462c Removes inert attribute when editorService.closeAll() is called
Fixes #10708 by removing the `inert` attribute on `#mainWrapper` when `editorService.closeAll()` is called.

This code is necessary because when close all is called, there is no editor passed, and so `removeEditor` is never called, and so the `focusLockService.removeInertAttribute();` method isn't called. I add to the if block that handles the close all code instead.

(cherry picked from commit 1f4cc81af8)
2021-07-22 13:59:33 +02:00
Matt BrailsfordandSebastiaan Janssen 1f4cc81af8 Removes inert attribute when editorService.closeAll() is called
Fixes #10708 by removing the `inert` attribute on `#mainWrapper` when `editorService.closeAll()` is called.

This code is necessary because when close all is called, there is no editor passed, and so `removeEditor` is never called, and so the `focusLockService.removeInertAttribute();` method isn't called. I add to the if block that handles the close all code instead.
2021-07-22 13:55:48 +02:00
Mole 615008c0ab Rename udi to id in EntityController.GetUrl 2021-07-22 11:10:02 +02:00
MoleandGitHub 32e11ec8dc Merge pull request #10713 from vsilvar/feature/10709-expose_IMvcBuilder_configuration_action
Exposed MVC configuration action in AddBackOffice - #10709
2021-07-22 10:28:24 +02:00
Shannon 7280c22e0a Changes BackOfficeExternalLoginProviderOptions to use the IOptions pattern with named options so they can be set after DI. 2021-07-21 14:53:25 -06:00
Shannon 1155210209 Fixes error reporting for external login 2021-07-21 14:32:55 -06:00
Søren GregersenandGitHub 358591a65d Update LocalizedTextServiceExtensions.cs
Use the culture passed in, instead if the static Thread.CurrentThread.CurrentUICulture
2021-07-21 19:47:48 +02:00
Warren BuckleyandGitHub 4df4b3eeaf Merge pull request #10603 from umbraco/v8/bugfix/creating-document-types-sqlce
Fix duplicate ID when creating document types with SQL CE
2021-07-21 12:11:22 +01:00
MoleandGitHub 8efdc5a047 Merge pull request #10150 from umbraco/v8/bugfix/removing-unnecessary-readerwriterlock
Ensure that any ReaderWriterLockSlim is disposed, or replaced with a more suitable lock
2021-07-21 08:39:48 +02:00
Shannon 3ce2cf0992 Merge remote-tracking branch 'origin/v8/contrib' into v8/bugfix/removing-unnecessary-readerwriterlock 2021-07-20 10:05:32 -06:00
Lars-Erik 37066bb0e1 The rest of the internals. 🥳 2021-07-20 17:34:19 +02:00
Niels Lyngsø abe78a2be5 revert umb-tabs-nav-item and use val-tab for umb-tray-buttons 2021-07-20 13:28:02 +02:00
Lars-Erik 053f1b2795 Moved the one remaining SqlCe dependant integration test into separate assembly. 2021-07-20 13:08:55 +02:00
Niels Lyngsø 973b177624 prefix variables from attritbute-directive valTab with valTab_ 2021-07-20 12:30:22 +02:00
Niels Lyngsø 1f527b3152 umb-tabs-nav-item 2021-07-20 12:25:27 +02:00
Niels Lyngsø fda8c6bc82 use white bar for doc type editor tabs 2021-07-20 12:22:21 +02:00
Sebastiaan Janssen 3a2a79108d Merge branch 'v8/dev' into v8/contrib 2021-07-20 10:23:29 +02:00
Sebastiaan Janssen 3feda1bc58 Merge branch 'v8/8.15' into v8/dev 2021-07-20 10:22:32 +02:00
Sebastiaan Janssen fce0bd0cfd Merge branch 'v8/8.14' into v8/8.15
# Conflicts:
#	src/SolutionInfo.cs
2021-07-20 10:17:40 +02:00
Niels LyngsøandSebastiaan Janssen 3def2ee2ad add vm.model.onValueChanged callback
(cherry picked from commit 8ebb37a596)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/mediapicker3/umbMediaPicker3PropertyEditor.component.js
2021-07-20 09:41:02 +02:00
Niels LyngsøandSebastiaan Janssen 8ebb37a596 add vm.model.onValueChanged callback 2021-07-20 09:37:29 +02:00
MoleandGitHub 4f4caeba6a Merge pull request #10691 from umbraco/v9/feature/package-manifest-bundle-options
Adds bundle options to the package manifest
2021-07-20 08:28:48 +02:00
Vitor Rodrigues 3f0a478974 Exposed MVC configuration action in AddBackOffice - #10709 2021-07-20 01:29:00 +02:00
Shannon 6118091da2 fixes css independent registration. 2021-07-19 16:34:32 -06:00
Niels Lyngsø 3739f34ec1 making overflow work 2021-07-19 16:04:44 +02:00
Niels Lyngsø bc0f304556 dont move group if alias already exists in the context. 2021-07-19 15:33:44 +02:00
Niels Lyngsø f10e0872d5 prevent changing alias of groups from other parents when typing names 2021-07-19 15:14:01 +02:00
Niels Lyngsø 481b4daced minor updates 2021-07-19 14:56:39 +02:00
Niels Lyngsø 7a1410f88f visual adjustments 2021-07-19 14:17:32 +02:00
MoleandGitHub 25e2016e82 Merge pull request #10652 from marcemarc/v9/bugfix/mediapickertypo
Typo in DataTypeList Media Picke (legacy)
2021-07-19 09:53:38 +02:00
Shannon ab66a9f33c Adds new method WithCustomDefaultMiddleware
To be able to fully customize the default middleware pipeline. Renames some interfaces and methods to be more consistent. Changes the startup builder interface types to be more type safe.
2021-07-16 16:04:14 -06:00
3757170043 Update src/Umbraco.Core/WebAssets/BundlingOptions.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-07-17 02:13:56 +10:00
Shannon c2d51f8d37 re-adds AppPluginsPath 2021-07-16 10:13:23 -06:00
Ronald Barendse ce97ecbd46 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-16 11:18:50 +02:00
Ronald Barendse c71ad239da Fix saving nested groups with the same name 2021-07-16 11:18:40 +02:00
Niels Lyngsø c849e12b1f Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-16 11:15:45 +02:00
Niels Lyngsø 917df60a39 styling adjustments 2021-07-16 11:15:40 +02:00
Ronald Barendse ad9b9d83e5 Remove unneeded OrderByHierarchy (now the self-referencing foreign key is gone) 2021-07-16 10:19:52 +02:00
MoleandGitHub eec3f0f421 Merge pull request #10692 from umbraco/v9/task/remove-old-projects
Removes old projects
2021-07-16 09:51:17 +02:00
Shannon 5549c446f7 try to fix build 2021-07-15 15:20:49 -06:00
Shannon bb87c0156d removes Umbraco.Web.UI 2021-07-15 14:27:15 -06:00
Shannon 11cb1ef55d Removes Umbraco.Web. 2021-07-15 14:25:40 -06:00
Shannon b16bf2f583 Adds BundlingOptions for better bundling support and moves all logic to the bundler (don't manually process urls). 2021-07-15 14:06:33 -06:00
Shannon df9c4a0160 Adds bundle options to the package manifest
to more control over how bundling works for static file processing for app_plugins
2021-07-15 13:26:32 -06:00
Shannon 91d5820982 Fixes #10666 - CreateMemberWithIdentity was not working 2021-07-15 09:42:06 -06:00
Erik-Jan Westendorp 708308be8c Update Media.cs
rename contentType parameter to mediaType
2021-07-15 17:40:18 +02:00
Shannon DeminickandGitHub e2646e2864 Merge pull request #10685 from adamhearn/temp-10666
Add integration test for MemberService::CreateMemberWithIdentity
2021-07-16 01:19:24 +10:00
Shannon DeminickandGitHub e6a27a09dc Merge pull request #10686 from deMD/bugfix/applicationbuilder_nullcheck_order
Moved nullcheck to top to catch possible nullreference exceptions
2021-07-16 01:14:52 +10:00
Ronald Barendse cdb56b4fa0 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-15 16:57:21 +02:00
Ronald Barendse 3987429975 Rename current alias to local alias 2021-07-15 16:57:14 +02:00
Ronald Barendse cae6e02ceb Fix migration to handle identical aliases for different group names and write error to log 2021-07-15 16:53:42 +02:00
Niels Lyngsø b2afb89f6f rename current to local 2021-07-15 15:37:12 +02:00
Niels Lyngsø a8bdeb1f32 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js
2021-07-15 15:29:50 +02:00
Niels Lyngsø c4ae74b7d9 also set new parentAlias when renaming alias 2021-07-15 15:25:33 +02:00
Ronald Barendse 40bce56efd Fix handling of alias in tabs/groups 2021-07-15 14:15:39 +02:00
Ronald Barendse 68c26e90a7 Update ContentTypeSave validation to use alias 2021-07-15 14:14:08 +02:00
Mole 33f53fcf35 Force authentication of user when getting localized text and get culture from user identity 2021-07-15 14:10:52 +02:00
Niels Lyngsø 66fb1cb451 dont send the key to the server, we didn't do that before this feature, and we do not have a good way to ensure the right keys in compositions. 2021-07-15 11:53:11 +02:00
Niels Lyngsø 23c64c7cd3 use key for 'track by' + ensure key on all groups 2021-07-15 10:52:37 +02:00
Dave de Moel 62352fc1a6 Moved nullcheck to top to catch possible nullreference exceptions 2021-07-15 10:48:39 +02:00
MoleandGitHub a5ee8566b8 Merge pull request #10655 from umbraco/v9/task/supress-notifications
Remove raiseEvent method parameters and allow suppressing events at the scope level
2021-07-15 09:36:58 +02:00
Adam Hearn f978ef15d0 Support member names using Down-Level Logon Name format 2021-07-15 01:28:24 +01:00
Adam Hearn 883ad7d256 Added integration test for MemberService::CreateWithIdentity to highlight that whilst the method does not generate an error, no member is persisted 2021-07-15 01:05:54 +01:00
Ronald Barendse 09163a3836 Initial changes to use group alias in directives 2021-07-14 22:59:57 +02:00
Shannon 2fc0fc6850 Removes CannotSuppressNotificationAttribute 2021-07-14 11:56:30 -06:00
Shannon DeminickandGitHub 7e8e96aaa3 Merge pull request #10646 from umbraco/v9/bugfix/runtime-hash-calculation
Fixes runtime hash calculation
2021-07-15 03:46:51 +10:00
Shannon DeminickandGitHub 994e67aeea Merge pull request #10657 from umbraco/v9/task/lazy-collections
Changes all collections from collection builders to resolve the concrete instances lazily.
2021-07-15 03:46:16 +10:00
Evan Moore 8e20b7fda5 Fix broken icon on user overlay 2021-07-14 12:29:59 -04:00
Ronald Barendse 17df9a9f65 Update tests to account for group name "Content_" getting the same alias as "Content"
This shows the behavioral change to switching from unique names to aliases and should be mentioned in the release notes!
2021-07-14 16:35:49 +02:00
Ronald Barendse ade88757a7 Minor cleanup for improved backwards compatibility 2021-07-14 16:23:06 +02:00
Ronald Barendse 476685c9de Add backwards compatibility for removing property groups by name and update tests 2021-07-14 16:05:42 +02:00
Warren BuckleyandGitHub 907a8659dd Merge pull request #10680 from umbraco/v9/bugfix/validation-messages
V9: Fix validation messages
2021-07-14 14:34:53 +01:00
Evan Moore ef4621e6f1 Login screen replace i tag with umb-icon directive 2021-07-14 09:10:57 -04:00
Ronald Barendse 83e704a749 Remove SQL queries referencing the now removed parentKey column 2021-07-14 15:04:19 +02:00
Mole 5cd0545b2f Tweak xml header 2021-07-14 14:27:36 +02:00
Mole 2ea40a103a Make ValidationProblem methods unambiguous 2021-07-14 14:18:22 +02:00
Ronald Barendse 891bd437db Fix failing tests by adding property group aliases 2021-07-14 13:54:26 +02:00
Ronald Barendse 94c864f6fc Fix infinite loop in OrderByHierarchy extension methods 2021-07-14 13:43:56 +02:00
Ronald Barendse d282a82481 Update IContentTypeBase interface to account for group aliases and simplify code for backwards compatibility with group names 2021-07-14 12:02:49 +02:00
Mole 96837a18a1 Correctly return false from TryGetMediaPath if the value is null 2021-07-14 11:03:09 +02:00
Ronald Barendse 8aebf5093b Add GetCurrentAlias/UpdateCurrentAlias extension methods and make PropertyGroupExtensions public 2021-07-14 10:33:29 +02:00
Ronald Barendse 44caa0cf05 Obsolete AddPropertyGroup without specifying alias 2021-07-14 10:31:58 +02:00
Ronald Barendse 74a56aadb7 Use camel case for alias and fix infinite loop in IndexOfKey 2021-07-14 10:30:55 +02:00
Ronald Barendse f74a6c81d0 Merge branch 'v8/feature/reintroduce-tabs-use-alias' into v8/feature/reintroduce-tabs 2021-07-14 09:41:13 +02:00
MoleandGitHub 5dd57cf83b Merge pull request #10659 from umbraco/v9/bugfix/sync-date-time-content
Fixes issue that the update culture dates were not synced with the version date like they are for the published culture dates
2021-07-14 09:36:13 +02:00
Evan Moore acda7706be Remove changes from temp-10656 2021-07-13 21:04:47 -04:00
Evan Moore 0c125492f4 Fix External Login Providers using wrong property for icon 2021-07-13 20:58:37 -04:00
Ronald Barendse da856fae1b Revert "New AddColumn overloads for migrations (obsoleted the oddly named AddColumnIfNotExists)"
This reverts commit 81bdcf58a8.
2021-07-14 00:27:36 +02:00
Evan Moore 0ca4dd176c Add some comments 2021-07-13 13:55:44 -04:00
Evan Moore d4760f5467 include userId in IX_umbracoExternalLogin_LoginProvider 2021-07-13 13:19:28 -04:00
Shannon 7913ae5463 fix test 2021-07-13 10:04:47 -06:00
Shannon 961d70e352 Fixes when SetCultureEdited and AdjustDates is called. 2021-07-13 09:52:31 -06:00
3e586991df Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/SupressNotificationsTests.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-07-14 01:19:40 +10:00
e30bc55ffe Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/SupressNotificationsTests.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-07-14 01:19:35 +10:00
a39f5da65b Update src/Umbraco.Infrastructure/Services/Implement/MediaService.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-07-14 01:19:26 +10:00
127c0e1be0 Update src/Umbraco.Infrastructure/Services/Implement/MediaService.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-07-14 01:19:19 +10:00
47a8a3f5ff Update src/Umbraco.Infrastructure/Services/Implement/MediaService.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-07-14 01:19:14 +10:00
1fc4bf6dcd Update src/Umbraco.Core/Events/IScopedNotificationPublisher.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-07-14 01:19:06 +10:00
Niels Lyngsø abec5d61f2 Use Alias for groups 2021-07-13 17:17:23 +02:00
Evan Moore d045003fb5 add userId to IX_ExternalLogin_LoginProvider 2021-07-13 11:02:45 -04:00
Warren BuckleyandGitHub fe0c888e02 Merge pull request #10669 from umbraco/v9/bugfix/fix-recusive-localize
V9: Fix recursive localize when resetting password
2021-07-13 15:31:11 +01:00
Niels Lyngsø bff132993f parentAlias 2021-07-13 15:43:13 +02:00
Niels Lyngsø d3314afec4 use alias 2021-07-13 15:25:31 +02:00
Niels Lyngsø 54d9c2d9a4 use alias 2021-07-13 15:22:43 +02:00
Mole 3b611d6551 Convert string[] to dictionary vars 2021-07-13 15:20:50 +02:00
Ronald Barendse da95bc0d14 Merge branch 'v8/feature/reintroduce-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/feature/reintroduce-tabs 2021-07-13 15:05:10 +02:00
Ronald Barendse ec761adee2 Rewrite parent key with alias for easier editing/merging of groups 2021-07-13 14:49:57 +02:00
Niels Lyngsø 3d951ac7fe break into several lines 2021-07-13 13:55:43 +02:00
Ronald Barendse 81bdcf58a8 New AddColumn overloads for migrations (obsoleted the oddly named AddColumnIfNotExists) 2021-07-13 13:43:07 +02:00
Ronald Barendse 2befd73640 Replace ToLower calls with case insensitive comparison 2021-07-13 13:41:02 +02:00
MoleandGitHub 19c3a1fa47 Merge pull request #10629 from umbraco/v9/task/package-partial-views
V9/task/package partial views
2021-07-13 11:59:31 +02:00
Vitor Rodrigues 89e758127d Updated ModelsBuilder unit tests 2021-07-13 10:15:03 +02:00
87a7e84cba Bugfix: #10414 - Validation message doesn't disappear once the issue is fixed (#10581)
* Add missing focus styling

* Fix issue where validation message does not disappear when all chars are removed

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-07-13 08:57:20 +01:00
Vitor Rodrigues 4f9265240b #10648: Updated public IUmbracoBuilder extension methods to allow chaining 2021-07-13 01:47:26 +02:00
Vitor Rodrigues d624eaff33 Added MaybeNullAttribute to ModelsBuilder generated files
The added attribute will enable consuming projects that have Nullable Reference Types enabled to receive proper warnings when access null checks aren't performed.
2021-07-13 01:26:03 +02:00
Shannon c08b5173a2 Fixes issue that the update culture dates were not synced with the version date like they are for the published culture dates. 2021-07-12 16:26:19 -06:00
Shannon bc84ffe260 Changes all collections from collection builders to resolve the concrete instances lazily.
This means we don't have to inject Lazy<T> all over the place when dealing with
colleciton builders and circular references since this will automatically just work OOTB.
This in theory should also allocate less instances during startup.
2021-07-12 15:28:46 -06:00
Shannon 461a199d15 Changes a couple of collection builders to not use the lazy (slightly more expensive ones) when not needed. 2021-07-12 13:34:14 -06:00
Shannon dcae692407 Fix typo, adds [CannotSuppressNotification] 2021-07-12 11:54:38 -06:00
Shannon cd20701929 another test 2021-07-12 11:13:01 -06:00
Shannon e8bc2f6dac adds tests 2021-07-12 10:58:50 -06:00
Shannon a15eab1e6b cleanup 2021-07-12 10:43:50 -06:00
Shannon ff9645c289 Updates usages. 2021-07-12 10:20:59 -06:00
720aa6202a Update src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-07-13 02:09:15 +10:00
Shannon b912f1361a changes parameter to path instead of name. 2021-07-12 10:08:54 -06:00
Shannon a72797e8c9 handles xml data consistently between partial views and partial view macros 2021-07-12 10:07:46 -06:00
Shannon e04d2a8405 adds debug logging 2021-07-12 09:58:19 -06:00
Shannon bc2aab5e67 fix benchmark build 2021-07-12 09:49:27 -06:00
Shannon 113b6598ed removes raiseEvent params 2021-07-12 09:46:56 -06:00
Mole a0f86f015e Merge remote-tracking branch 'origin/v9/dev' into v9/task/package-partial-views 2021-07-12 14:32:43 +02:00
MoleandGitHub 11b0157047 Merge pull request #10620 from umbraco/v9/task/package-as-xml
Package format changed to zip
2021-07-12 14:18:05 +02:00
MoleandGitHub b3fa5f5f35 Update src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs 2021-07-12 12:53:04 +02:00
Sebastiaan Janssen 2a6bdf7330 Fixes umbraco/Umbraco-CMS#10402
We added an overload that would conflict for people with existing templates, that was a bit too premature. Disabled for now with a note to look into it for v9 again.
2021-07-12 10:48:21 +02:00
Marc Goodson f69ca3392a Typo in DataTypeList Media Picke (legacy)
should be Media Picker (legacy)
2021-07-11 12:35:08 +01:00
Sebastiaan Janssen a37f6c604f Inconsistent formatting 2021-07-10 14:25:26 +02:00
Shannon 582fdec213 Adds null check and adds back orig ctor for ProfilingLogger 2021-07-09 16:37:37 -06:00
Shannon f7b8a93a35 Fixes typefinder/loader dependency refs, allows config to specify additional entry assemblies 2021-07-09 16:15:37 -06:00
Shannon 7ec3afa5ff Adds new ctor to runtime hash class. Adds startup objects to the IUmbracoBuilder that are not otherwise available during configuration. 2021-07-09 15:31:01 -06:00
Shannon 1ef5290576 Updates runtime hash calc to be based on the assemblies returned from the assembly provider. 2021-07-09 14:50:37 -06:00
Shannon 5b21b9fe2c uses ext method 2021-07-09 14:48:53 -06:00
Shannon a1efccbc68 Add extension to get hash from stream 2021-07-09 14:48:12 -06:00
Shannon 93f5dd7631 Changes bulk copy timeout to be infinite. Changes bulk copy to not allocate an arbitrary array. 2021-07-09 13:35:43 -06:00
Shannon 5240921dab Merge branch 'v8/bugfix/8.15rc-bugs' of https://github.com/nzdev/Umbraco-CMS into v8/8.15 2021-07-09 12:25:19 -06:00
Shannon 7dc03256ed Fixes SQLCE migration for nucache table. 2021-07-09 12:05:19 -06:00
Shannon 5e8b4572a0 Ensures that the content nu data column is updated to support null during migration. 2021-07-09 09:40:31 -06:00
Mads Rasmussen 69ebd6aebd use val-tab directive in doc type editor 2021-07-09 14:53:52 +02:00
MoleandGitHub c6e3e69365 Merge pull request #10636 from erikjanwestendorp/remove-reference-to-app-data-folder
Change path to log files in error.html (installation)
2021-07-09 14:26:00 +02:00
Erik-Jan Westendorp 9d3daa1959 Update error.html
Change path of the log folder since the App_Data folder doesn't exist anymore.
2021-07-09 13:34:54 +02:00
nzdev 6a8ed8012c simplify 2021-07-09 21:22:30 +12:00
nzdev b119201480 fix serializer swap message 2021-07-09 20:55:03 +12:00
MoleandGitHub f19d4975ef Merge pull request #10628 from KevinJump/v9/UmbracoDictionaryTranslate-fix
Fix for #10627 - UmbracoDictionaryTranslate checks.
2021-07-09 10:52:23 +02:00
nzdev 044c900c2b Make IPropertyCacheCompressionOptions useful out of the box. key = "Umbraco.Web.PublishedCache.NuCache.CompressUnPublishedContent" value = "true" will compress all ntext properties on unpublished content 2021-07-09 20:14:35 +12:00
nzdev 6b6525cc98 Add whether the current content is published. Allowing for compression of just non published, non media content. 2021-07-09 19:33:42 +12:00
Mole c255729be0 Change back to ClearProcessors 2021-07-09 09:26:19 +02:00
Mole c93fe0d2e7 Add method descriptions 2021-07-09 09:08:26 +02:00
Mole cacef54ef7 Round to int instead of just converting 2021-07-09 09:04:07 +02:00
Mole 1814b70baf Only remove the resize processor 2021-07-09 08:13:49 +02:00
Mole ba2e4cd760 Use decimal instead of float for coordinates 2021-07-09 08:08:41 +02:00
6376a32131 Use CommandParser to parse commands
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-07-09 08:04:20 +02:00
Mads Rasmussen 03128d1085 update tabs warning error style 2021-07-08 22:04:19 +02:00
Shannon c93dee667a Merge branch 'v9/task/package-as-xml' into v9/task/package-partial-views 2021-07-08 13:58:54 -06:00
Shannon 69060bbc15 fixes tests 2021-07-08 13:58:27 -06:00
Mads Rasmussen 840f3c6372 add generic tab to content and block list editor 2021-07-08 21:29:22 +02:00
Shannon 5a1a24556e Gets packaging scripts and partial views working and fixes packaging stylesheets and cleans things up a bit. 2021-07-08 13:11:39 -06:00
Kevin Jump 5d21e07341 Fix for #10627 - UmbracoDictionaryTranslate checks. 2021-07-08 20:06:08 +01:00
Mads Rasmussen 42e689f253 remove content apps when split view is open 2021-07-08 20:55:30 +02:00
Mads Rasmussen 9b5322a7af add border to tab bar 2021-07-08 17:50:49 +02:00
Mole d7795cf316 Fix unit tests 2021-07-08 15:53:48 +02:00
Mads Rasmussen 0032eb0936 update validation to work with block list editor inline mode 2021-07-08 15:25:14 +02:00
Mads Rasmussen d6c247e047 fix generic tab when sorting 2021-07-08 14:19:02 +02:00
Mole 753f6f6b1d Clean url generator a bit 2021-07-08 14:11:30 +02:00
Mole 865a5b999c Add ParseDecimal method 2021-07-08 14:08:23 +02:00
Mads Rasmussen 0ce9b496f9 render generic groups in doc type editor 2021-07-08 14:02:30 +02:00
Mole a8dd90d9d6 Add CropWebProcessor 2021-07-08 13:48:44 +02:00
Bjarke Berg 4f06c1f33a Missing translation 2021-07-08 11:09:12 +02:00
Bjarke Berg dd8d719f65 Fixed potential issue with PublishedSnapshot not available. 2021-07-08 10:07:11 +02:00
Bjarke Berg 005b09d58b Fixed version numbers in templates 2021-07-08 09:39:40 +02:00
Shannon f7d0e417d6 packages partial views associated with macros. 2021-07-07 16:16:14 -06:00
Shannon 2897ef9695 adds hash benchmark 2021-07-07 15:35:35 -06:00
Shannon 3eb54831cb Remove OriginalMediaPathScheme, changes how we extract the media file path and use that correctly instead of hacks. 2021-07-07 14:36:52 -06:00
Shannon 6402a0ca8d Merge remote-tracking branch 'origin/v9/dev' into v9/task/package-as-xml 2021-07-07 11:10:53 -06:00
Bjarke Berg f56c4e529a Version number 2021-07-07 18:50:36 +02:00
Bjarke Berg 19b58a5d9c Merge remote-tracking branch 'origin/v9/dev' into v9/9.0-rc001 2021-07-07 18:50:07 +02:00
Bjarke BergandGitHub d8b969a3c1 Merge pull request #10619 from umbraco/v9/bugfix/models-builder-refs
Changes the RoslynCompiler to use assemblies resolved from the DependencyContext
2021-07-07 18:49:34 +02:00
Bjarke Berg c1c114104d Merge remote-tracking branch 'origin/v9/bugfix/models-builder-refs' into v9/9.0-rc001 2021-07-07 17:48:34 +02:00
Shannon 70861870a3 Changes the RoslynCompiler to use assemblies resolved from the DependencyContext 2021-07-07 09:45:32 -06:00
Shannon 58a4e600db Pretty much gets zip package format working with media install 2021-07-07 09:41:11 -06:00
Warren BuckleyandGitHub dd7b70c448 Merge pull request #10618 from umbraco/v9/feature/migration_surface_action_extension_methods
V9: Migrated surfaceaction extension methods
2021-07-07 15:44:51 +01:00
Bjarke Berg 414b003747 uncomment old file 2021-07-07 15:58:16 +02:00
Bjarke Berg 9a7f233a90 Migrated surfaceaction extension methods 2021-07-07 15:55:33 +02:00
Bjarke BergandGitHub 530151f749 Merge pull request #10614 from umbraco/v9/RenderController-as-options
RenderController as .NETCore IOptions pattern
2021-07-07 15:38:37 +02:00
Bjarke BergandGitHub 28b0e108e4 Update src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs 2021-07-07 14:51:05 +02:00
Mole 9101cfdc09 Make GetLocalCropUrl use GetCropUrl on local crops instead of calling itself 2021-07-07 14:23:24 +02:00
Warren Buckley b177c1ba12 Further Simplification of IOptions 2021-07-07 13:07:01 +01:00
Warren Buckley 8d936c08da Change RenderController defautl type to be swapped out using the .NETCore options pattern 2021-07-07 12:52:02 +01:00
Sebastiaan Janssen 4ac29927de Bump version to 8.15.0 2021-07-07 11:22:50 +02:00
Ronald Barendse 9405daad9f Update delete confirmation titles 2021-07-07 10:51:47 +02:00
Ronald Barendse 1fea66990d Update delete confirmations 2021-07-07 10:48:09 +02:00
Bjarke BergandGitHub 69b3c958b8 Merge pull request #10612 from umbraco/v9/feature/remove-manifest-watcher
V9: Remove manifest watcher
2021-07-07 10:39:08 +02:00
Mads Rasmussen 48ba4f3875 performance tweaks for validationAlias 2021-07-07 10:39:01 +02:00
Mads Rasmussen e552bde16e only recalculate tab width when an app changes 2021-07-07 09:52:18 +02:00
Mads Rasmussen adb8c5372e Add support for block list editor and show validation errors on tabs 2021-07-07 09:45:25 +02:00
Mole a34dcab221 Remove ManifestWatcher 2021-07-07 09:34:42 +02:00
Bjarke Berg 87bd67c5fe Merge remote-tracking branch 'origin/v9/9.0-rc001' into v9/dev 2021-07-07 06:35:11 +02:00
Bjarke BergandGitHub 33a72c934c Merge pull request #10567 from umbraco/v9/task/package-refactor
V9: Packages migrations and UI changes to support NuGet packages.
2021-07-07 06:25:15 +02:00
Bjarke BergandGitHub 47469b4c73 Merge pull request #10592 from umbraco/v9/bugfix/sqlce-image-mapper-only-applied-for-sqlce
V9: SqlCeImageMapper only applied for SqlCe
2021-07-07 06:23:51 +02:00
Shannon f7123b355d init commit for changing packages back to xml format so we can more easily deal with media. 2021-07-06 15:09:56 -06:00
Bjarke BergandGitHub e379a8fd44 Update src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs 2021-07-06 21:20:31 +02:00
a1e0af6fff Accessibility improvements for Extensions in Razor Markup (#9576)
* Support for language of parts

* Changed casing of "FallBack" to "Fallback" to be consistent with the existing code.

* Now tests the type to determine if span should be added.

* Remove magic strings and return <div> for IHtmlString values

This fixes the "string" vs "String" issue in the previous commit and prevents the function returning invalid markup

* Fix for test providing string as "object"

Co-authored-by: Joe Glombek <joe@rockdove.uk>
2021-07-06 18:39:56 +01:00
Bjarke Berg d10ea08f0d Fixed issue from merge - MediaPickerWithCropsValueConverter was not update to inject _publishedValueFallback 2021-07-06 18:28:01 +02:00
Henk Jan PluimandGitHub 1e54d05514 #10577 bugfix - Umbraco backoffice allows you to assign the same 'login' on two different Members (#10591) 2021-07-06 16:46:07 +02:00
Bjarke Berg 27d5aefc2d add missing variable in azure pipeline script and removed the auto generation of files until we figure out how to support both windows and linux for those. 2021-07-06 15:04:48 +02:00
berg 3a9c3f4f3b Fix build (preconditions) on linux 2021-07-06 14:21:04 +02:00
Bjarke Berg 65c654231d paths and stuff for linux development 2021-07-06 14:03:00 +02:00
Ronald Barendse e9c69052c1 Merge branch 'v8/contrib' into v8/feature/reintroduce-tabs 2021-07-06 13:32:33 +02:00
Mole dfa161adb4 Add migration 2021-07-06 13:08:44 +02:00
Mole 9b32c83182 Update PropertyTypeGroupDto IdentitySeed to no longer collide with new media types 2021-07-06 13:03:44 +02:00
Bjarke Berg 21528ff60b Move condition to job from stage 2021-07-06 11:51:12 +02:00
Bjarke Berg a755cac410 make bool value as string 2021-07-06 10:59:30 +02:00
Bjarke Berg a4846b1d4a fix quotes 2021-07-06 10:55:33 +02:00
Bjarke Berg f8180f0009 casing 2021-07-06 10:51:43 +02:00
Bjarke Berg 1307188ede output variable 2021-07-06 10:50:05 +02:00
Mads Rasmussen 0d330efb5d lower z-index for editor tab bar 2021-07-06 10:12:07 +02:00
Bjarke Berg dbad75c66a Updated version number 2021-07-06 09:54:55 +02:00
Bjarke Berg 53fa3f5a3f Merge remote-tracking branch 'origin/v9/bugfix/sqlce-image-mapper-only-applied-for-sqlce' into v9/9.0-rc001 2021-07-06 09:53:52 +02:00
Bjarke Berg 19ca2f9c28 Merge remote-tracking branch 'origin/v9/dev' into v9/task/package-refactor
# Conflicts:
#	src/Umbraco.Core/Configuration/Models/UnattendedSettings.cs
#	src/Umbraco.Web.UI.NetCore/appsettings.Development.json
2021-07-06 09:51:43 +02:00
Bjarke BergandGitHub bed1c18a0b Merge pull request #10531 from umbraco/v9/cyclehack/autogeneration_of_json_schema
V9: Autogeneration of AppSettings JSON schema and Merge the official + Umbraco
2021-07-06 09:48:43 +02:00
Bjarke BergandGitHub 7f27e3b9c8 Merge pull request #10575 from umbraco/v9/feature/add-umbraco-authorized-controller
V9: Add UmbracoAuthorizedController
2021-07-06 09:46:25 +02:00
Bjarke BergandGitHub 15fcd557b6 Merge pull request #10594 from umbraco/v9/bugfix/razor-compile-on-publish
V9: Add RazorCompileOnPublish property to UmbracoProject for template
2021-07-06 09:18:07 +02:00
Bjarke Berg 16d63639ba Merge remote-tracking branch 'origin/v9/dev' into v9/cyclehack/autogeneration_of_json_schema
# Conflicts:
#	build/azure-pipelines.yml
2021-07-06 09:12:10 +02:00
Bjarke BergandGitHub d86dbe4c9c V9/bugfix/pipeline fixes (#10601)
Added stage to determine build type, and use this info to check whether to build static code docs
2021-07-06 08:51:50 +02:00
Bjarke Berg 85a0441658 Merge remote-tracking branch 'origin/v9/dev' into v9/cyclehack/autogeneration_of_json_schema 2021-07-06 07:55:48 +02:00
Bjarke Berg d85266adc7 post merge cleanup in umbraco.web 2021-07-06 07:55:05 +02:00
Bjarke Berg d9bc404290 Fixed issue in Umbraco.Web project (post merge) 2021-07-06 07:39:45 +02:00
Bjarke Berg 98e78fc22d Removed core debug from schema files 2021-07-06 07:34:56 +02:00
Bjarke Berg ce22dcfe5b Merge remote-tracking branch 'origin/v9/dev' into v9/cyclehack/autogeneration_of_json_schema 2021-07-06 07:34:15 +02:00
Bjarke Berg 22d585b41c fix Umbraco.Web project 2021-07-06 07:04:18 +02:00
Shannon 9178e28485 Merge branch 'v9/dev' into v9/task/package-refactor
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/PackageController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs
2021-07-05 15:06:26 -06:00
Shannon 040b155454 Fixes benchmark project 2021-07-05 14:38:40 -06:00
Bjarke BergandGitHub 9560a2801e Merge pull request #10598 from umbraco/v9/feature/merge-v8-05072021
V9: Merge v8 05072021
2021-07-05 21:40:31 +02:00
Bjarke Berg 23293b77f6 Merge remote-tracking branch 'origin/v8/dev' into v9/feature/merge-v8-05072021
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Compose/RelateOnTrashComponent.cs
#	src/Umbraco.Core/Composing/Current.cs
#	src/Umbraco.Core/Constants-AppSettings.cs
#	src/Umbraco.Core/Constants-SqlTemplates.cs
#	src/Umbraco.Core/Dashboards/ContentDashboardSettings.cs
#	src/Umbraco.Core/Dashboards/IContentDashboardSettings.cs
#	src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs
#	src/Umbraco.Core/HealthChecks/Checks/Services/SmtpCheck.cs
#	src/Umbraco.Core/Models/IReadOnlyContentBase.cs
#	src/Umbraco.Core/Models/Mapping/MemberTabsAndPropertiesMapper.cs
#	src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs
#	src/Umbraco.Core/Models/ReadOnlyContentBaseAdapter.cs
#	src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
#	src/Umbraco.Core/PropertyEditors/IPropertyCacheCompression.cs
#	src/Umbraco.Core/PropertyEditors/IPropertyCacheCompressionOptions.cs
#	src/Umbraco.Core/PropertyEditors/MediaPicker3Configuration.cs
#	src/Umbraco.Core/PropertyEditors/NoopPropertyCacheCompressionOptions.cs
#	src/Umbraco.Core/PropertyEditors/PropertyCacheCompression.cs
#	src/Umbraco.Core/Routing/UrlProviderExtensions.cs
#	src/Umbraco.Core/Runtime/CoreRuntime.cs
#	src/Umbraco.Core/Services/ILocalizedTextService.cs
#	src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs
#	src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs
#	src/Umbraco.Examine/UmbracoContentIndex.cs
#	src/Umbraco.Infrastructure/Examine/GenericIndexDiagnostics.cs
#	src/Umbraco.Infrastructure/IPublishedContentQuery.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Models/MediaWithCrops.cs
#	src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/UmbracoDatabase.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MediaPicker3PropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MediaPickerWithCropsValueConverter.cs
#	src/Umbraco.Infrastructure/PublishedContentQuery.cs
#	src/Umbraco.Infrastructure/Search/UmbracoTreeSearcherFields.cs
#	src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs
#	src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/BTree.DictionaryOfPropertyDataSerializer.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentSourceDto.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs
#	src/Umbraco.Tests/App.config
#	src/Umbraco.Tests/Models/Mapping/ContentWebModelMappingTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentTypeControllerBase.cs
#	src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs
#	src/Umbraco.Web.BackOffice/Controllers/DataTypeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs
#	src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs
#	src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
#	src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs
#	src/Umbraco.Web.Common/Extensions/FriendlyImageCropperTemplateExtensions.cs
#	src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs
#	src/Umbraco.Web.Common/Macros/MacroRenderer.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI/Umbraco/config/lang/it.xml
#	src/Umbraco.Web.UI/web.Template.Debug.config
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/Compose/NotificationsComponent.cs
#	src/Umbraco.Web/Composing/ModuleInjector.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/Editors/CurrentUserController.cs
#	src/Umbraco.Web/Editors/DictionaryController.cs
#	src/Umbraco.Web/Editors/MediaTypeController.cs
#	src/Umbraco.Web/Editors/MemberController.cs
#	src/Umbraco.Web/Editors/MemberGroupController.cs
#	src/Umbraco.Web/Editors/MemberTypeController.cs
#	src/Umbraco.Web/Editors/NuCacheStatusController.cs
#	src/Umbraco.Web/Editors/UserGroupsController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/AbstractConfigCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/CompilationDebugCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/ConfigurationService.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/CustomErrorsCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/MacroErrorsCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/NotificationEmailCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/TraceCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Config/TrySkipIisCustomErrorsCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Permissions/FolderAndFilePermissionsCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Security/BaseHttpHeaderCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Security/ExcessiveHeadersCheck.cs
#	src/Umbraco.Web/HealthCheck/Checks/Security/HttpsCheck.cs
#	src/Umbraco.Web/HealthCheck/NotificationMethods/EmailNotificationMethod.cs
#	src/Umbraco.Web/Models/Trees/MenuItemList.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentCacheDataModel.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/SerializerBase.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs
#	src/Umbraco.Web/Runtime/WebRuntime.cs
#	src/Umbraco.Web/Search/ExamineComponent.cs
#	src/Umbraco.Web/Trees/ApplicationTreeController.cs
#	src/Umbraco.Web/Trees/MemberTreeController.cs
#	src/Umbraco.Web/UrlHelperRenderExtensions.cs
2021-07-05 20:58:04 +02:00
Warren Buckley 6b73ea767f Updates to Core.Configuration Models to use DefaultValue attribute to allow auto generated JSONSchema to give a default value in schema 2021-07-05 14:27:49 +01:00
Mads Rasmussen fbe61f65c6 remove anchors from content app 2021-07-05 14:26:33 +02:00
Mads Rasmussen 9bfa9f2e4b render tab bar in content section 2021-07-05 14:24:52 +02:00
Mole a3af9faad6 Add RazorCompileOnPublish property to UmbracoProject 2021-07-05 12:03:58 +02:00
Warren Buckley cd36d050c5 Merge remote-tracking branch 'origin/v9/cyclehack/autogeneration_of_json_schema' into v9/cyclehack/autogeneration_of_json_schema
# Conflicts:
#	src/JsonSchema/UmbracoJsonSchemaGeneratorSettings.cs
2021-07-05 09:26:03 +01:00
Mads Rasmussen f10bb51754 remove more test code 2021-07-05 09:27:48 +02:00
Mads Rasmussen c0b349625b remove test code 2021-07-05 09:17:25 +02:00
Bjarke Berg 641530df14 Introduced IProviderSpecificMapperFactory, to allow some NPoco mappers to only be applied for specific providers, e.g. SqlCe and the SqlCEImageMapper 2021-07-05 08:24:44 +02:00
Sebastiaan Janssen 6816ae7ca4 Fix dependencies to make 8.15 installable via NuGet
(cherry picked from commit 3e20890435)
2021-07-02 11:48:55 +02:00
Sebastiaan Janssen 3e20890435 Fix dependencies to make 8.15 installable via NuGet 2021-07-02 11:48:01 +02:00
Ronald Barendse c83fff3179 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-07-02 09:47:14 +02:00
MoleandGitHub 530da072b1 Merge pull request #10547 from umbraco/v9/bugfix/10459_show_cultures_with_english_names
V9: Show cultures in dropdown with english names
2021-07-02 09:02:15 +02:00
Bjarne FyrstenborgandNathan Woulfe e67d59a789 Adjust showLabels to be parsed as boolean 2021-07-02 08:20:10 +10:00
d6a27d6646 Color picker: Fix label view (#10445)
* Add missing focus styling

* Change width to ensure label does not get too wide

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-07-02 07:58:59 +10:00
leekelleherandNathan Woulfe 7afcd59037 Fixed "user-dialog" dashboard markup
The logic in the markup was previously incorrect.
I changed the check from `tab.length` to `dashboard.length`.

The custom dashboard's label isn't `.caption` and it's per dashboard,
not per "property".

Lastly, `.path` should be `.view`.

Resolves #6417
2021-07-02 07:53:36 +10:00
Bjarke BergandGitHub c365d5de4b Merge pull request #10534 from umbraco/v9/task/cleanup-validation-results
Streamlines response handling in controllers
2021-07-01 23:04:45 +02:00
Mads Rasmussen 63f3f8906f show overlay prompt when removing tabs, groups and properties 2021-07-01 22:32:51 +02:00
Mads Rasmussen cd84b46637 fix remove tabs and remove groups 2021-07-01 21:11:29 +02:00
Bjarke Berg adf6b5941b Fixed issue with pending migrations not using plan name. 2021-07-01 20:22:30 +02:00
Mole f8d357f992 Add UmbracoAuthorizedController 2021-07-01 15:52:09 +02:00
Bjarke BergandGitHub f1f7818c32 Merge pull request #10396 from Jeavon/task/add-urlhelper-crop-methods
Add missing UrlHelper GetCropUrl methods
2021-07-01 12:12:30 +02:00
Bjarke Berg c8788ba996 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-07-01 12:09:40 +02:00
Bjarke Berg 03146090ac Added missing friendly extension method 2021-07-01 12:08:06 +02:00
Mads Rasmussen 8ade4a24fd wire up server validation for properties on tabs 2021-07-01 11:50:25 +02:00
Ronald Barendse 2142c5cde0 Update XML format to support import/export of new property group data 2021-07-01 11:44:33 +02:00
Ronald Barendse 4356aa6f6b Allow adding and renaming property groups by key 2021-07-01 11:35:05 +02:00
Bjarke BergandGitHub 0aa54422f3 Merge pull request #10560 from umbraco/v9/bugfix/route-plugin-controllers-to-area
V9: Route plugin controllers by area
2021-07-01 10:25:13 +02:00
David ChallenerandNathan Woulfe 33e44181c1 Disable cached partials if in preview mode
We don't want unpublished items in cached views - possible leak to live site. Show previews using normal partial view instead.
2021-07-01 08:47:11 +10:00
Bjarke Berg b63b0682d6 Updated to use the new nuGetPackageId + translations 2021-06-30 21:42:50 +02:00
Sebastiaan Janssen e7f0ab2031 Merge branch 'v8/dev' into v8/contrib 2021-06-30 16:57:39 +02:00
Sebastiaan Janssen 9cc9ecf858 Merge branch 'v8/8.15' into v8/dev 2021-06-30 16:57:05 +02:00
Mads RasmussenandSebastiaan Janssen fc108511d2 #10520 Correct mandatory markers in nested content (#10563)
(cherry picked from commit c1a4e07e87)
2021-06-30 16:34:29 +02:00
Niels LyngsøandSebastiaan Janssen 3e226384c3 #10520 ensure property culture in Nested Content (#10562)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 0b3c4a726c)
2021-06-30 16:28:48 +02:00
0b3c4a726c #10520 ensure property culture in Nested Content (#10562)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-06-30 16:27:53 +02:00
Mads RasmussenandGitHub c1a4e07e87 #10520 Correct mandatory markers in nested content (#10563) 2021-06-30 15:41:07 +02:00
Ronald Barendse 64d98666ef Remove AngularJS testing code 2021-06-30 15:29:34 +02:00
Ronald Barendse 48d96ee918 Remove icon and fix group type enum values in AngularJS 2021-06-30 15:29:19 +02:00
Ronald Barendse 3ce0949626 Remove icon from property group 2021-06-30 14:49:10 +02:00
Ronald Barendse 68db8b9ea0 Update property group type enum 2021-06-30 14:39:31 +02:00
Mole 0835423e68 Replace surface with area name if surface controller has one 2021-06-30 14:36:34 +02:00
Ronald Barendse 2b6e87d1e2 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-06-30 14:33:59 +02:00
David ChallenerandSebastiaan Janssen a19b79553d Update contributing.md Visual Studio min version
Having had an older version of visual studio running I've been unable to build the source without making changes to the solution. However, upgrading to at least VS 16.8 has meant those changes haven't been required. This is to do with how the language target "latest" was working.  
Propose upping the min version listed here to avoid build issues being raised.
2021-06-30 10:06:16 +02:00
Bjarke Berg f1b91ab35d post merge fixes 2021-06-30 06:59:47 +02:00
Ronald Barendse 9bf7629034 Merge branch 'v8/contrib' into v8/bugfix/generic-blocklistitem 2021-06-29 15:54:00 +02:00
Bjarke Berg 9e4dead0f5 Merge remote-tracking branch 'origin/v9/dev' into v9/task/package-refactor
# Conflicts:
#	src/Umbraco.Core/Migrations/IMigration.cs
#	src/Umbraco.Core/Migrations/MigrationPlan.cs
#	src/Umbraco.Infrastructure/Migrations/IMigrationContext.cs
#	src/Umbraco.Infrastructure/Runtime/RuntimeState.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationTests.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
2021-06-29 14:23:08 +02:00
Sebastiaan Janssen dc27a31a6f Fix creating / editing datatype in infinite editing mode, related to #10163 2021-06-29 13:35:22 +02:00
Elitsa MarinovskaandSebastiaan Janssen 861fc40572 Ability to configure a remote URL for displaying different content on the content dashboard (#10257)
* Enabling configuration of remote URL for fetching content on the content dashboard and adding additional params indicating whether solution is running on Umbraco Cloud

* Determining if Umbraco is running on Umbraco Cloud by checking whether Umbraco.Deploy.Cloud.dll is present and making its value more accessible for other contexts. Passing a hosting parameter as string instead of boolean

* Changing from Unknown to OnPremises

* Updated content dashboard to use hard-coded URL but path derived from configuration.

Co-authored-by: Andy Butland <abutland73@gmail.com>
(cherry picked from commit 917c89cde7)
2021-06-29 11:47:46 +02:00
Sebastiaan Janssen 4f46edbaa9 Bump version to 8.15.0-rc 2021-06-29 11:47:16 +02:00
917c89cde7 Ability to configure a remote URL for displaying different content on the content dashboard (#10257)
* Enabling configuration of remote URL for fetching content on the content dashboard and adding additional params indicating whether solution is running on Umbraco Cloud

* Determining if Umbraco is running on Umbraco Cloud by checking whether Umbraco.Deploy.Cloud.dll is present and making its value more accessible for other contexts. Passing a hosting parameter as string instead of boolean

* Changing from Unknown to OnPremises

* Updated content dashboard to use hard-coded URL but path derived from configuration.

Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-06-29 11:46:07 +02:00
Elitsa MarinovskaandSebastiaan Janssen 3e89e46840 Nested content optimizations (#10236)
* Reducing the large amount of objects allocated and make use of the attemped dictionary cache

* Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted and adding faster way to lookup value editors

(cherry picked from commit 897cb11f00)
2021-06-29 09:56:45 +02:00
Elitsa MarinovskaandGitHub 897cb11f00 Nested content optimizations (#10236)
* Reducing the large amount of objects allocated and make use of the attemped dictionary cache

* Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted and adding faster way to lookup value editors
2021-06-29 09:55:02 +02:00
5d8fb9670b Textstring prevalue editor view: Set id attribute (#10453)
* Add missing focus styling

* Set id attribute

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
2021-06-29 08:37:19 +10:00
Bjarke Berg 451f98173f #10459 - Show cultures in dropdown with english names to make it consistent. 2021-06-28 18:43:46 +02:00
Bjarke BergandGitHub 73f8ed7e12 Merge pull request #10539 from nikcio/temp-fix-urls
Fix grid property editor view urls
2021-06-28 14:56:01 +02:00
Warren Buckley 1b9a00d2fd More JSONSchema config
We dont want to serialize anything with [Obsolete] attribute and any XML C# comments with <example></example> will get generated as examples in the JSON schema
2021-06-28 12:21:04 +01:00
Bjarke Berg c4bd991546 Only serialize writeable properties to the schema 2021-06-28 12:54:05 +02:00
Sebastiaan Janssen 31e9c875f5 Bump version to 8.15.0-rc 2021-06-28 09:36:09 +02:00
Sebastiaan Janssen c6832491b6 Merge branch 'v8/contrib' into v8/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/prevalueeditors/obsoletemediapickernotice.html
2021-06-28 09:34:26 +02:00
83ee9b4699 Reduce sql queries when rendering blocklists in the content panel (#10521)
Co-authored-by: Nikolaj <nel@umbraco.dk>
2021-06-28 09:32:42 +02:00
Ronald BarendseandGitHub 5b9cd1bd87 Improvements to media pickers/crop handling and URL generation (#10529) 2021-06-28 09:28:32 +02:00
Bjarke Berg 6e9abb17e7 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Tests/Services/MediaServiceTests.cs
#	src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
2021-06-28 08:57:38 +02:00
44c814a550 Fix Rollback feature not creating diffs when properties are moved between tabs in EditorModel events (#10376)
* Find the old property by alias instead of by indexes as if you move around properties in the EditorModel events Rollback breaks.

* optimise property lookup - avoids iterating entire property set

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-28 10:20:38 +10:00
Nikcio 5776007e95 Fix grid property editor view urls 2021-06-26 12:34:46 +02:00
Shannon 7f76884ba2 removes UmbracoNotificationSuccessResponse and use OK method 2021-06-25 10:42:09 -06:00
Shannon 055dacbb0e Streamlines validation response handling in controllers
This makes validation response handling more inline with aspnetcore patterns.
2021-06-25 10:29:18 -06:00
Bjarke Berg d92bfb48c0 Tell pipeline it is using UmbracoBuild 2021-06-25 15:25:00 +02:00
Bjarke Berg d60213a2f0 Added msbuild targets -
Before build:
* build belle
* generate json schema

After clean:
* Remove belle
* Remove json schema
2021-06-25 15:19:07 +02:00
Bjarke Berg 7449bf2947 Clean up 2021-06-25 10:56:49 +02:00
Mads Rasmussen d0cb5b9419 remove white space when there are no properties 2021-06-25 10:47:12 +02:00
Mads Rasmussen 2fd180393d add ungrouped properties for a tab 2021-06-25 10:43:06 +02:00
Bjarke Berg c170123f3a Clean up and fix for xml docs for forms (at least locally) 2021-06-25 09:35:39 +02:00
Bjarke Berg b80d72555f Merge remote-tracking branch 'origin/v9/dev' into v9/cyclehack/autogeneration_of_json_schema 2021-06-25 08:49:41 +02:00
Bjarke Berg 2e3239ce6b Fix Benchmark project 2021-06-25 08:45:03 +02:00
Bjarke Berg b1b677f8d3 Merge remote-tracking branch 'origin/v9/dev' into v9/cyclehack/autogeneration_of_json_schema 2021-06-25 08:18:39 +02:00
Bjarke BergandGitHub 3baafbe230 Merge pull request #10530 from umbraco/v9/task/v8-chad-merge
This is a merge PR which merges in #8376 to v9
2021-06-25 08:14:04 +02:00
Shannon 91547dda75 Fix UrlHelperExtensions to use correct base path 2021-06-24 16:38:13 -06:00
Shannon c7ad4a8d82 Fixes the acceptance tests "Content with contentpicker" 2021-06-24 13:36:54 -06:00
Shannon 3d5d04550a fix broken migration abstraction, fixes restart after upgrade so the runtimestate is correct, fixes sql alter column migration to actually run if its nullable. 2021-06-24 13:35:57 -06:00
Mads Rasmussen 8fb5ed9cc1 remove margin from add tab button when there are no tabs 2021-06-24 20:00:20 +02:00
Mads Rasmussen ce7836bd32 set overflow when name changes 2021-06-24 19:59:54 +02:00
Shannon d6a6016801 implement noop published snapshot service, splits tests models for published content, fixes sqlce image mapper to not have circular ref. 2021-06-24 10:25:23 -06:00
Shannon 72671dbca8 Merge commit '94d525d88f713b36419f28bfda4d82ee68637d83' into v9/dev
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/Umbraco.Core/Composing/Current.cs
#	src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
#	src/Umbraco.Core/Runtime/CoreRuntime.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/UmbracoDatabase.cs
#	src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/BTree.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentCacheDataModel.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentCacheDataSerializationResult.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentCacheDataSerializerEntityType.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentData.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentNestedData.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/CultureVariation.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/IContentCacheDataSerializer.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/IContentCacheDataSerializerFactory.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/IDictionaryOfPropertyDataSerializer.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/JsonContentNestedDataSerializer.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/JsonContentNestedDataSerializerFactory.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/LazyCompressedString.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/MsgPackContentNestedDataSerializer.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/MsgPackContentNestedDataSerializerFactory.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/PropertyData.cs
#	src/Umbraco.PublishedCache.NuCache/NuCacheSerializerComponent.cs
#	src/Umbraco.PublishedCache.NuCache/NuCacheSerializerComposer.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs
#	src/Umbraco.Tests/App.config
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI/web.Template.Debug.config
#	src/Umbraco.Web.UI/web.Template.config
#	src/Umbraco.Web/Composing/ModuleInjector.cs
#	src/Umbraco.Web/Editors/NuCacheStatusController.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentNestedData.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
#	src/Umbraco.Web/Runtime/WebRuntime.cs
2021-06-24 09:43:57 -06:00
Mads Rasmussen 6a97e22bb5 remove icon from tabs 2021-06-24 15:55:36 +02:00
Mads Rasmussen 2fd6864892 set auto resize width to auto when ngModel has a value but element is hidden 2021-06-24 15:54:27 +02:00
Warren Buckley b0f55bab69 Specify the outputFile argument in powershell build as path is relative to the build folder when run from there 2021-06-24 14:33:33 +01:00
Bjarke Berg cc99c3be16 Added forms config 2021-06-24 15:18:00 +02:00
Bjarke Berg f7bbef6efb Moved prepare json step 2021-06-24 14:55:16 +02:00
Bjarke Berg a071969fd2 More clean 2021-06-24 14:49:11 +02:00
Warren Buckley f2fd100267 Merge branch 'v9/cyclehack/autogeneration_of_json_schema' of https://github.com/umbraco/Umbraco-CMS into v9/cyclehack/autogeneration_of_json_schema 2021-06-24 13:37:24 +01:00
Warren Buckley 8b5fd0aa6e Update Azure pipeline for Build Artifacts to generate the JSON schema before needed in Nuget Packages 2021-06-24 13:37:20 +01:00
Warren Buckley 8bc3425910 Update Powershell build script
Runs dotnet run on the console app to genetate the schema & default location
2021-06-24 13:34:42 +01:00
Bjarke Berg a36489e8d3 Clean up + async fix 2021-06-24 13:37:57 +02:00
Mads Rasmussen 9b3f7f2653 add tabs to toolbar 2021-06-24 13:28:12 +02:00
Bjarke Berg 69cc340c5a Merge with official schema 2021-06-24 13:24:57 +02:00
Warren Buckley f402c8151a Updated dotnet new templates appsettings to our local stored JSON schema in Umbraco 2021-06-24 11:52:29 +01:00
Bjarke Berg b3b0c44deb Added schema by default and reference it from the appsettings files.
+ Do not suggest null values instead of objects
2021-06-24 10:06:57 +02:00
Bjarke Berg 16ada8a63f Merge remote-tracking branch 'origin/v9/cyclehack/autogeneration_of_json_schema' into v9/cyclehack/autogeneration_of_json_schema 2021-06-24 09:58:53 +02:00
Bjarke Berg 88bd437fce Default path and write to console location of file 2021-06-24 09:58:38 +02:00
Warren Buckley cb1676cbc8 Merge remote-tracking branch 'origin/v9/cyclehack/autogeneration_of_json_schema' into v9/cyclehack/autogeneration_of_json_schema 2021-06-24 08:55:42 +01:00
Warren Buckley bcbf71d87a Added an ignore for Umbraco.Web.UI.NetCore/umbraco/config/appsettings-schema.json
The console app and build script will generate this at build and ship it with Nuget releases
2021-06-24 08:54:04 +01:00
Bjarke Berg e439ebcd1d Refactor 2021-06-24 09:45:52 +02:00
Bjarke Berg 5a754e7e24 Fixes comment, that would break the schema. 2021-06-24 08:56:33 +02:00
Bjarke Berg 74e2b7aca2 Refactored the initialization of settings and started a json schema project 2021-06-24 08:47:37 +02:00
MoleandGitHub ea1091db7c Merge pull request #10235 from umbraco/v8/bugfix/AB10622-be-property-editor-caching
Optimizations related to BlockEditorPropertyEditor.ToEditor()
2021-06-24 08:39:12 +02:00
Shannon d9f92ec91d Merge branch 'nzdev-v8/bugfix/localizedtextservice-memory' into v8/contrib 2021-06-23 13:15:32 -06:00
Shannon 30d57125ce Adds notes, obsoletes old localize methods 2021-06-23 13:14:22 -06:00
Shannon 3b4e645c63 Merge branch 'v8/bugfix/localizedtextservice-memory' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/bugfix/localizedtextservice-memory 2021-06-23 12:50:47 -06:00
Shannon ae379cb1e0 Merge branch 'nzdev-v8/feature/examine-select' into v8/contrib 2021-06-23 12:47:50 -06:00
Shannon 76d206a4ba Fixes back office searching 2021-06-23 12:46:50 -06:00
Shannon 37685e3b77 Merge branch 'v8/feature/examine-select' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/examine-select 2021-06-23 11:23:58 -06:00
Shannon 56b7b0df69 fix build, re-adds braces after merge 2021-06-23 11:13:19 -06:00
Shannon 8edff13448 Merge branch 'v8/bugfix/btree-serializer-array-size' of https://github.com/nzdev/Umbraco-CMS into v8/contrib 2021-06-23 11:04:29 -06:00
Shannon 3ad85d9eb4 Merge branch 'nzdev-v8/bugfix/btree-serializer-array-size' into v8/contrib 2021-06-23 11:02:49 -06:00
Shannon 2c59da91b6 fix merge 2021-06-23 11:02:36 -06:00
Warren BuckleyandGitHub 4c89d036ac Merge pull request #10519 from umbraco/v9/bugfix/10394_nucache_rebuild_issue
V9: Fixes issue with "Rebuild" nucache not doing anything
2021-06-23 13:33:58 +01:00
Bjarke Berg df43b87f43 https://github.com/umbraco/Umbraco-CMS/issues/10394 - Fixes issue with "Rebuild" not really doing anything, because the "null" injected was not handled like "All", but instead ignored the type. 2021-06-23 11:31:08 +02:00
Bjarke BergandGitHub cc495d66b1 Merge pull request #10512 from bjarnef/v9/feature/grid-partial-async
Render grid editor partial async
2021-06-23 10:45:40 +02:00
Bjarke BergandGitHub 8dc2cb3b52 Merge pull request #10511 from bjarnef/v9/feature/block-list-partial-async
Render Block List component partial async
2021-06-23 10:30:58 +02:00
9382f6c32d Add the ability to convert Media Picker v2 to v3 progressively (#10517)
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-06-23 10:10:28 +02:00
Bjarke BergandGitHub 10781b8250 Merge pull request #10516 from umbraco/v8/bugfix/fix_acceptance_tests
Fixes the acceptance tests "Content with contentpicker"
2021-06-23 10:01:17 +02:00
Bjarke BergandGitHub 40dbfa7b88 Merge pull request #8376 from umbraco/v8/feature/nucache-perf
Performance improvements mainly around front-end caching
2021-06-23 09:32:29 +02:00
Bjarke Berg 6bd2f7f696 Fixes the acceptance tests "Content with contentpicker" 2021-06-23 09:10:40 +02:00
RussellandSebastiaan Janssen ec65a6c99b Add lang to extended valid elements for span
Resolution to https://github.com/umbraco/Umbraco-CMS/issues/10505
2021-06-23 08:53:25 +02:00
Shannon 94d525d88f small changes based on review. 2021-06-22 15:12:07 -06:00
Shannon 88ef1e081f merges v8 healthcheck changes from #5557 into netcore branch. 2021-06-22 15:02:34 -06:00
Shannon DeminickandGitHub 74e12b5c3d Merge pull request #10509 from umbraco/v9/feature/updated_nuget_dependencies
V9: Updated nuget dependencies
2021-06-23 04:21:33 +10:00
Bjarne Fyrstenborg 83eed4c70f Formatting 2021-06-22 19:49:11 +02:00
Bjarne Fyrstenborg 44e9fb92e8 Adjust some whitespace 2021-06-22 19:42:42 +02:00
Bjarne Fyrstenborg a7c5bdafe4 Render base grid editor partial async 2021-06-22 19:37:46 +02:00
Bjarne Fyrstenborg ff65a333e1 Render grid partials async 2021-06-22 19:33:48 +02:00
Bjarne Fyrstenborg b0657318c3 Render Block List component partial async 2021-06-22 19:07:24 +02:00
Ronald Barendse 18e6f8cccc Fix merging groups by name 2021-06-22 16:29:43 +02:00
Bjarke Berg 1775b21591 Updated nuget dependencies 2021-06-22 15:41:24 +02:00
Sebastiaan Janssen f04e27ca19 Bump version to 8.14.1 2021-06-22 14:16:05 +02:00
Ronald Barendse 740de049fd Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-06-22 13:33:37 +02:00
Ronald Barendse a5c3847937 Ensure groups are grouped on name, parent key and type when mapped 2021-06-22 13:21:16 +02:00
Sebastiaan Janssen d8b7e24b7f Merge branch 'v8/8.14' into v8/dev 2021-06-22 12:24:18 +02:00
Ronald Barendse 2560804493 Update migration plan 2021-06-22 12:02:03 +02:00
Ronald Barendse 17d2c4cab9 Convert level into group type and ensure names are unique again 2021-06-22 11:45:23 +02:00
Patrick de MooijandSebastiaan Janssen 797a06e721 10429: Make sure to set filtered variable on media item
(cherry picked from commit 8a810e698c)
2021-06-22 10:46:39 +02:00
Patrick de MooijandSebastiaan Janssen 8a810e698c 10429: Make sure to set filtered variable on media item 2021-06-22 10:45:23 +02:00
Mole 1d0a1cb7a9 Merge branch 'v8/dev' into v8/bugfix/AB10622-be-property-editor-caching 2021-06-22 10:43:58 +02:00
Sebastiaan JanssenandGitHub bb79544e2a Update 01_bug_report.yml 2021-06-22 09:35:41 +02:00
Bjarke Berg c41d05f6a6 Merge remote-tracking branch 'origin/v9/9.0-beta004' into v9/9.0-beta004 2021-06-21 22:23:24 +02:00
Shannon DeminickandGitHub 8cf8fb43a4 Merge pull request #10503 from umbraco/v9/task/smidge-update
Updates to latest smidge and changes how debug assets work
2021-06-22 06:22:03 +10:00
Shannon a0cc6d904c Updates to latest Examine on nuget 2021-06-21 14:17:17 -06:00
Shannon d818d3bc36 Updates to latest smidge and changes how debug assets work 2021-06-21 13:51:57 -06:00
Bjarke Berg 1b1a1f1f59 Fixed issue with MemberPicker not working if searching for specific member types. 2021-06-21 21:47:40 +02:00
Bjarne FyrstenborgandSebastiaan Janssen a69d4349d1 Support custom SVG icon in Nested Content (#10368)
* Use custom SVG icon in Nested Content

* Get icon once

* Assign value instead of compare

(cherry picked from commit 340273a604)
2021-06-21 19:34:09 +02:00
Bjarne FyrstenborgandSebastiaan Janssen d0220c01f9 Use custom SVG icon in user group filter
(cherry picked from commit 57cc3d5da2)
2021-06-21 19:33:41 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 5f94cb83ed Support custom SVG icon in grid editor row configuration (#10361)
* Use custom svg icon in grid editor row configuration

* Use umb-icon in grid editor placeholder

* Use control icon in grid editor placeholder

* use umb-icon in itempicker to ensure svg icons are displayed

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
(cherry picked from commit f0e13e87d5)
2021-06-21 19:32:23 +02:00
Warren BuckleyandSebastiaan Janssen ee348be8a5 Merge pull request #10496 from umbraco/v8/fix/10483
Fixes clashing aliases when new mediatypes had been installed

(cherry picked from commit f69cee87f9)
2021-06-21 19:27:31 +02:00
Warren BuckleyandSebastiaan Janssen 79fc804a9b Merge pull request #10500 from umbraco/v8/fix/10423
Don't obsolete the v2 pickers, renamed them and they're able to be created again, without config changes

(cherry picked from commit 69383d3dea)
2021-06-21 19:27:13 +02:00
Warren BuckleyandGitHub f69cee87f9 Merge pull request #10496 from umbraco/v8/fix/10483
Fixes clashing aliases when new mediatypes had been installed
2021-06-21 17:59:01 +01:00
Warren BuckleyandGitHub 69383d3dea Merge pull request #10500 from umbraco/v8/fix/10423
Don't obsolete the v2 pickers, renamed them and they're able to be created again, without config changes
2021-06-21 17:47:02 +01:00
Warren BuckleyandGitHub 7d53659fac Update src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs 2021-06-21 17:27:34 +01:00
Shannon 060e78f8e1 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-06-21 10:15:09 -06:00
Bjarke BergandGitHub 14c317012f Merge pull request #10498 from umbraco/v9/task/package-migrations-backoffice
Package migrations back office updates
2021-06-21 17:50:37 +02:00
Shannon 99362bbca0 resolve package name from folder name 2021-06-21 09:24:32 -06:00
330a8e082e Update src/Umbraco.Core/Manifest/PackageManifest.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-22 01:03:33 +10:00
MoleandGitHub 60df2ae34b Merge pull request #10415 from umbraco/v8/feature/packages-update
Added "certified to work on Umbraco Cloud" indicator to packages section in the back-office
2021-06-21 14:13:22 +02:00
Sebastiaan Janssen 809bb3b5d3 Fixes #10423
Don't obsolete the v2 pickers, renamed them and they're able to be created again, without config changes
2021-06-21 14:01:50 +02:00
Mole ed79bd65f2 Fix certified to verified refactoring 2021-06-21 13:38:49 +02:00
Bjarke Berg ff99e6c6fd https://github.com/umbraco/Umbraco-CMS/issues/10461 Removes hardcoded "Default" from view 2021-06-21 09:08:25 +02:00
Christian TricaricoandGitHub 32a1870d80 Backoffice Italian localization improvements (#10371)
* Italian translations in localization xml.

* Italian translations in localization xml.

* restore previous package-lock version
2021-06-20 02:32:10 +02:00
Shannon 7c6eb461ca fix build after merge 2021-06-18 13:32:04 -06:00
Shannon 21228943be Cleanup 2021-06-18 13:27:26 -06:00
Shannon 4b9d2413de add overload to AutomaticPackageMigrationPlan 2021-06-18 13:22:58 -06:00
Shannon b1c6b02dd7 Merge remote-tracking branch 'origin/v9/task/package-refactor' into v9/task/package-migrations-backoffice
# Conflicts:
#	src/Umbraco.Core/Extensions/XmlExtensions.cs
#	src/Umbraco.Core/Packaging/PackageMigrationPlan.cs
#	src/Umbraco.Infrastructure/Runtime/RuntimeState.cs
2021-06-18 12:48:44 -06:00
Shannon 8b7f7b9e13 Gets package options working. 2021-06-18 12:45:22 -06:00
Shannon c503a16dae Updates back office to run pending migrations 2021-06-18 11:28:21 -06:00
Sebastiaan JanssenandGitHub 3265fbb473 Fix the build 2021-06-18 16:15:32 +02:00
Sebastiaan Janssen 0bc2ff17d7 Yeah okay, #h5is I broke the build 🤦‍♂️ - fixed here for this PR, will also fix in the contrib branch 2021-06-18 16:14:01 +02:00
Bjarke Berg fb15205f5f Merge remote-tracking branch 'origin/v9/task/package-refactor' into v9/task/package-refactor 2021-06-18 13:36:18 +02:00
Warren BuckleyandSebastiaan Janssen 3645539fe2 Run npm update caniuse-lite
(cherry picked from commit e70c362851)
2021-06-18 13:21:31 +02:00
Bjarke Berg 1ef72d2522 Merge remote-tracking branch 'origin/v9/dev' into v9/task/package-refactor
# Conflicts:
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs
#	src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs
#	src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
2021-06-18 13:19:48 +02:00
Sebastiaan Janssen 499d0ff5c1 Fix hardcoded aliases 2021-06-18 12:32:01 +02:00
Sebastiaan Janssen e95b57ca1f Fixed friendly name of Vector graphics 2021-06-18 11:44:26 +02:00
Sebastiaan Janssen 70590ce993 Invert the previous change so querying with these constants will give the same results as in 8.14.0 2021-06-18 11:42:09 +02:00
Sebastiaan Janssen 64ebbae5b8 Keep the old constants as they were and add new "Name" constants, in case people were already using the old constants to query by alias 2021-06-18 11:37:32 +02:00
Sebastiaan Janssen 2c7413693b Prefix the new media types to stop them from clashing when people make document types with that alias (#10483) 2021-06-18 11:03:21 +02:00
Sebastiaan JanssenandGitHub f303fa0cc3 Make sure we can build in VS2022 2021-06-18 09:51:23 +02:00
Shannon fa9c79c9b5 adds endpoint 2021-06-17 16:56:51 -06:00
Bjarke BergandGitHub 43af29f139 Merge pull request #10393 from umbraco/v9/feature/email-display-name-in-notifiaction
V9: Add new email Model for notifications
2021-06-17 15:39:14 +02:00
MoleandGitHub 5822af4510 Merge pull request #10489 from umbraco/v9/bugfix/fixed_extension_methods_to_use_IHtmlHelper_instead_of_HtmlHelper
Moves extension methods from HtmlHelper to IHtmlHelper
2021-06-17 15:33:24 +02:00
Bjarke Berg 5eb9473657 https://github.com/umbraco/Umbraco-CMS/issues/10479
https://github.com/umbraco/Umbraco-CMS/issues/10427

fixes issue with with saving data types
2021-06-17 14:55:36 +02:00
Bjarke BergandGitHub 2bbaec6c2a Merge pull request #10491 from umbraco/v9/feature/v8_dev_latest
V9: Merge v8/dev
2021-06-17 14:53:08 +02:00
Bjarke Berg 97a2318db2 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Runtime/CoreRuntime.cs
2021-06-17 14:01:32 +02:00
Bjarke Berg 6a35e0c62b Moves extension methods from HtmlHelper to IHtmlHelper 2021-06-17 11:04:16 +02:00
Ronald Barendse 0e63edb375 Update IContentTypeBase to use group names as property groups (no parent/level 1) for backwards compatibility 2021-06-17 10:05:21 +02:00
Ronald Barendse 70403cf8b0 Fix setting property type group default level to 1 2021-06-17 10:02:55 +02:00
d7c0c6a932 Adjust the runtime state and keep disabling unattended package migrations simple (#10486)
* 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.

* Update dictionary package data to use GUID

* Ensures macros are packaged and used with their GUID

* Ensures the GUID for doc types and media types remains consistent for package installation based on what is in the xml.

* fix automatic migrations to not validate initial state, fixes packaging GUIDs for multiple entities.

* Added guids to embedded test packages (Some tests are still failing)

* Fix one more test

* Fixes up Key vs Id, moves tests to correct namespace, fix tests

* Fixes Dictionary packaging to ensure an xml hierarchy

* Fixes tests

* fixes package xml

* Removes the runtime PackageMigrations state, the state is just run if unattended migrations are disabled.

* change log level

* Small clean up and reuse of attribute

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-17 10:00:49 +02:00
585f7bb571 Make dashboards support deep linking (#10283)
Co-authored-by: Ronald Barendse <ronald@barend.se>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-06-17 09:40:07 +02:00
Ronald Barendse b87ead60d7 Fix order of property group inserts 2021-06-17 09:12:56 +02:00
Ronald Barendse 5fd09b43f3 Set property type group default level to 1 2021-06-17 09:12:00 +02:00
ca72fb01ec Fixes packager to ensure the GUIDs are used for all entities where possible (#10477)
* 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.

* Update dictionary package data to use GUID

* Ensures macros are packaged and used with their GUID

* Ensures the GUID for doc types and media types remains consistent for package installation based on what is in the xml.

* fix automatic migrations to not validate initial state, fixes packaging GUIDs for multiple entities.

* Added guids to embedded test packages (Some tests are still failing)

* Fix one more test

* Fixes up Key vs Id, moves tests to correct namespace, fix tests

* Fixes Dictionary packaging to ensure an xml hierarchy

* Fixes tests

* fixes package xml

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-17 08:15:38 +02:00
Shannon a155393af5 little bit more progress, next to create the endpoint. 2021-06-16 15:43:36 -06:00
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 DeminickandGitHub 53728d652d Merge pull request #10185 from umbraco/netcore/feature/get_rid_of_ICoreComposer
Get rid of ICoreComposer
2021-06-17 05:41:10 +10: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
Mads Rasmussen ac69bf1448 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-06-16 16:24:37 +02:00
Mads Rasmussen 9444db2a0e if a doc type has tabs set the first to active 2021-06-16 16:24:24 +02:00
Ronald Barendse d11babe79a Merge groups based on level and name 2021-06-16 16:19:35 +02:00
Ronald Barendse 91574882a3 Add generic properties as group 2021-06-16 16:18:03 +02:00
Ronald Barendse 14d84db8e5 Add missing property group icon mapping 2021-06-16 16:17:23 +02:00
Ronald Barendse e5dd3df78d Add tabs hierarchy to content model 2021-06-16 15:26:05 +02:00
Ronald Barendse 2733bd89f4 Only enforce unique group names per level 2021-06-16 14:41:17 +02:00
Ronald Barendse f58a134f23 Correctly save/delete tabs and groups hierarchy 2021-06-16 14:40:24 +02:00
Bjarke Berg c783da68ca Fix one more test 2021-06-16 11:40:18 +02:00
Mads Rasmussen 8cf540f405 update doc type editor with levels 2021-06-16 11:30:21 +02:00
Bjarke Berg 64233466b7 Added guids to embedded test packages (Some tests are still failing) 2021-06-16 11:23:12 +02:00
dc334c1015 Automated install user with Environment Variables & unattended.user.json (#9930)
* Try to update admin user unattended

This will fail because we're not in install runtime state

* Create a new user instead of trying to update the default admin

* Create a new user instead of trying to update the default admin

* Use same logic from NewInstallStep to modify the SuperUser aka -1

* Add back stuff after merge conflict from v8/dev

* Add event to be raised

* Trying to wire up events

* Remove commented out code - just need to figure out why event is not hit/triggered

* Read Appsettings as opposed to ENV variables

* Use a JSON file that deletes itself as storing secrets in web.config will be accidently committed

* Remove component based event - Component were only initialized after DB creation

* Move UnattendedInstall down after _factory

* Remove commented out code

* Fixed issue where upgrader UI would show up - needed to recheck the Runtimelevel after UnattenedInstall

* Apply suggestions from code review - Thanks Marc :)

Co-authored-by: Marc Goodson <marc@moriyama.co.uk>

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Marc Goodson <marc@moriyama.co.uk>
2021-06-16 10:00:29 +01:00
Bjarke Berg c7af87d075 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-06-16 08:32:46 +02:00
Bjarke Berg 355ee2e450 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs
#	src/Umbraco.Web/Cache/DistributedCacheBinder.cs
2021-06-16 08:30:37 +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
Andy ButlandandGitHub 0f6732f03c Made the AppendQueryStringToUrl method public to allow use from packages. (#10476)
* Made the AppendQueryStringToUrl method public to allow use from packages.

* Removed AssemblyInfo.cs file.
2021-06-15 19:33:34 +02:00
Bjarke Berg 575e66b8eb Merge remote-tracking branch 'origin/v9/dev' into netcore/feature/get_rid_of_ICoreComposer
# Conflicts:
#	src/Umbraco.Examine.Lucene/ExamineLuceneComposer.cs
#	src/Umbraco.Examine.Lucene/ExamineLuceneConfigureIndexes.cs
#	src/Umbraco.Examine.Lucene/ExamineLuceneFinalComposer.cs
#	src/Umbraco.Examine.Lucene/ExamineLuceneStarting.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
#	src/Umbraco.PublishedCache.NuCache/Compose/NotificationsComposer.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
2021-06-15 19:13:06 +02:00
Andy ButlandandSebastiaan Janssen 348d1676cd Handle only single content type event to avoid reloading the content and media cache multiple times after a deployment containing more than one changed document type. 2021-06-15 16:06:11 +02:00
Warren BuckleyandGitHub 067395b0ff Fix for #10401 to allow you to chaneg your own password if using user section & fixes notification errors to be displayed in the UI (#10422) 2021-06-15 13:57:14 +02:00
0c3db013d5 Approve member when created with built-in macros (#10428)
* Allow members created with built-in macros to be approved

* Cleanup

* Newly created members are always approved like in v8.

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-15 13:51:39 +02:00
Ronald Barendse 412028865f Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-06-15 13:26:11 +02:00
Ronald Barendse c53c7d1fb4 Map new properties from database to back-office models 2021-06-15 13:22:19 +02:00
Ronald Barendse f7f22dda42 Use parentKey and level to store tabs/property groups 2021-06-15 13:14:36 +02:00
Warren BuckleyandGitHub c63b14a52e Merge pull request #10475 from umbraco/v9/bugfix/10438_missing_datacontract_on_FileExtensionConfigItem
V9 - Adds missing DataContract to FileExtensionConfigItem
2021-06-15 12:03:01 +01:00
Andy ButlandandGitHub 22de16a691 Added two further notifications to the boot process for custom functionality that may need to run at different stages. (#10471) 2021-06-15 12:43:03 +02:00
Bjarke Berg 6403d29b4e Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/10438_missing_datacontract_on_FileExtensionConfigItem 2021-06-15 12:08:01 +02:00
Bjarke Berg e75656b9a9 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-06-15 12:07:28 +02:00
Bjarke Berg f2c1c30e76 Remove zips from azure build 2021-06-15 12:07:11 +02:00
Bjarke Berg 0c34770695 https://github.com/umbraco/Umbraco-CMS/issues/10438 - Adds missing DataContract to FileExtensionConfigItem 2021-06-15 11:06:07 +02:00
Bjarke BergandGitHub e0a9397d92 V9: Fix issue with recurring services that executes too often (#10473)
* Fix exception in ReportSiteTask.cs, when running multiple times..
Also fixes issue with how often the tasks are executed

* Fix timeout
2021-06-15 11:02:55 +02:00
Bjarke Berg 418ba569f1 remove comments as build script cannot use these in json 2021-06-15 10:47:04 +02:00
Warren BuckleyandGitHub ceb4db4f45 Adds dotnetRunMessages flag to launch settings for Kestrel (#10472)
https://github.com/dotnet/sdk/issues/12227
https://github.com/dotnet/sdk/pull/12581
https://github.com/dotnet/aspnetcore/blob/v6.0.0-preview.5.21301.17/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Properties/launchSettings.json#L22
2021-06-15 09:54:46 +02:00
8d3434d7d8 dotnet new template - Escape JSON special characters for password & connection string (#10467)
* Fix sourceName to match UmbracoProject and use a generated symbol to replace the Umbraco.Cms.Web.UI.NetCore in Program and Startup files

* Update template.json

* Run `npm update caniuse-lite`

* Regex replacement for Password & Connection strings that gets placed into AppSettings.Development.json So escaping \ and " for JSON strings

* Escaping input and handle namespace replacing. + Updated to beta004

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-15 09:42:52 +02:00
Shannon DeminickandGitHub 6f3a83c507 Fix interface inheritance (#10470) 2021-06-15 07:12:39 +02:00
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
patrickdemooij9andGitHub efeda47e30 10430: Fix typo (#10440)
* 10430: Fix typo

* 10430: ng-disabled instead of disabled
2021-06-15 09:22:18 +10:00
Lucas MichaelsenandGitHub b97f6dcb2f HTML Symantic error UL > LI >LI changes to UL > LI > UL > LI (#10455)
* HTML Symantic error UL > LI >LI changes to UL > LI > UL > LI - ScreenReader reads propperly

* ensurce render if condition is meet. If any child render a subset of unorder list withs is list-items
2021-06-15 09:09:26 +10: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
Sebastiaan Janssen 2b71951889 Merge branch 'v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.Client/package.json
2021-06-14 14:15:07 +02:00
Warren BuckleyandSebastiaan Janssen e70c362851 Run npm update caniuse-lite 2021-06-14 14:06:34 +02: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 DeminickandGitHub 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
Mads Rasmussen 22ac52e85a update save model with key, parentKey and icon 2021-06-11 16:53:40 +02:00
Mads Rasmussen 2c36b60bb6 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-06-11 15:35:33 +02:00
Mads Rasmussen aa9d09094b Update doc type validation to match new data structure 2021-06-11 15:35:27 +02:00
Jose MarcenaroandGitHub 20f3b223c5 Use default( ) instead of null for model value (#10435) 2021-06-11 14:17:12 +02:00
0b3eeafb47 fixed a typo in the UmbracoProject template (#10432)
* fixed a typo in the UmbracoProject template

* Update build/templates/UmbracoProject/UmbracoProject.csproj

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-11 14:09:41 +02:00
Ronald Barendse 89c9d34553 Add icon column to migration 2021-06-11 09:56:30 +02: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
Elitsa Marinovska 990fc118cb Optimization by returning the same instance 2021-06-10 15:36:39 +02:00
Elitsa Marinovska 6910399c32 Reverting optimization by passing data from a higher level - not really possible to achieve what we wanted 2021-06-10 15:33:29 +02:00
Mads Rasmussen 06b7d2fb5a disable tab icon button when sorting 2021-06-10 15:14:14 +02:00
Ronald Barendse e15ed2c509 Update database structure to hierarchical property groups 2021-06-10 15:11:32 +02:00
Elitsa Marinovska b4e6222f32 Fix up linq issues and lookup 2021-06-10 14:56:03 +02:00
Shannon c9ac62995d fixing tests 2021-06-10 05:10:19 -06:00
Bjarke Berg cfdf11b195 Renamed build to buildTransitive 2021-06-10 12:18:10 +02:00
Mads Rasmussen 55219530b4 update group builder to support parentKey data structure 2021-06-10 11:27:06 +02: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 DeminickandGitHub 99ff3552c2 Update src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/KeyValueServiceTests.cs 2021-06-10 00:55:03 +10:00
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
c7c2b1dfd4 Update src/Umbraco.Core/Services/IKeyValueService.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-10 00:53:17 +10:00
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
Warren BuckleyandGitHub 7d6defd443 Adds in missing overload for IsAllowedTemplate using only template alias which was available in V8 (#10425) 2021-06-09 15:17:54 +02:00
Bjarke Berg 26515117b0 Fix build issue after merge.. 2021-06-09 08:48:32 +02:00
Bjarke BergandGitHub e616332bc8 Merge branch 'v9/task/package-refactor' into v9/task/package-refactor-startup-checks 2021-06-09 08:26:54 +02:00
Shannon DeminickandGitHub 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
40c4c875c4 Link picker: Make link input full width if anchor option is disabled (#10313)
* Add missing focus styling

* Add width modifier to link input

* same result without adding new classes

Co-authored-by: BatJan <jaskov@gmail.com>
Co-authored-by: Jan Skovgaard Olsen <jso@co3.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-09 09:02:37 +10:00
Shannon 7d0572f2d1 streamline runtime level checks 2021-06-08 16:32:26 -06:00
NikcioandNathan Woulfe 4e60e7dec1 Translation added
Added some danish translations and fixed a translation problem in the copy document.
2021-06-09 08:01:02 +10: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
Sebastiaan JanssenandGitHub b63ee6e7bf Update config.yml 2021-06-08 13:00:40 +02:00
Sebastiaan JanssenandGitHub ef20264df6 Delete 02_feature_request.yml 2021-06-08 12:47:44 +02:00
Sebastiaan JanssenandGitHub b06f902865 Update config.yml 2021-06-08 12:45:21 +02:00
Andy Butland b5dad01fdc Update localisation alias to match default phrase. 2021-06-08 12:09:55 +02:00
Andy Butland 87eb224e5c Updated package listing to use umb-icon directive. 2021-06-08 11:55:58 +02:00
Andy Butland dfae0adf3d Amended phrase for Cloud confirmed packages from "certified" to "verified". 2021-06-08 11:50:16 +02:00
Bjarne FyrstenborgandGitHub e9c3c9fea6 Fix styling issues with listview sorting in overlay. (#10351)
Remove margin bottom at input fields
2021-06-08 10:19:26 +02:00
Andy Butland 97bc301bf8 Adds the "works on Cloud" indicator to the package list and details screen in the back-office. 2021-06-08 10:08:27 +02:00
Andy Butland c01b2c5807 Removed the "Umbraco Pro" category. 2021-06-08 07:51:08 +02: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
inetzoandSebastiaan Janssen 1e37410578 Convert date to datetime
Datetime values where always converted to date(102) so sorting by time does not work.
By converting to 120 (yyyy-mm-dd hh:mi:ss (24h)) the time is respected.
2021-06-07 15:38:45 +02:00
Shannon DeminickandGitHub 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
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 28316d1ba8.

* 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 be48db9653.

* 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 DeminickandGitHub 2825ec6693 Removes CallContext (#10398) 2021-06-07 13:10:50 +02:00
Ronald Barendse 36b4a994e1 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-06-07 10:58:37 +02:00
0e70416e27 Update connect color in noUiSlider (#10349)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 11:32:01 +10:00
patrickdemooij9andNathan Woulfe 31c0faa54e Updated umbtable.directive.js for a working example
I noticed that the example on https://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.directives.directive:umbTable is actually not working. items should be replaced with vm.items.
2021-06-07 10:41:27 +10:00
Bjarne FyrstenborgandGitHub 340273a604 Support custom SVG icon in Nested Content (#10368)
* Use custom SVG icon in Nested Content

* Get icon once

* Assign value instead of compare
2021-06-07 10:40:14 +10:00
Bjarne FyrstenborgandNathan Woulfe 57cc3d5da2 Use custom SVG icon in user group filter 2021-06-07 10:31:14 +10:00
f0e13e87d5 Support custom SVG icon in grid editor row configuration (#10361)
* Use custom svg icon in grid editor row configuration

* Use umb-icon in grid editor placeholder

* Use control icon in grid editor placeholder

* use umb-icon in itempicker to ensure svg icons are displayed

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 10:28:47 +10:00
5517a86972 Support custom SVG icon in listview (#10345)
* Fix custom SVG icons in listview layouts

* Fix icon in content grid

* Fix icon in umb-folder-grid

* Fix SVG icons in create dialogs

* Get icon once

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-06-07 09:33:52 +10:00
Bjarne FyrstenborgandGitHub c2c6413eb7 Support custom SVG icon in umb-child-selector component (#10344)
* Use umb-icon component

* Specify button type attribute

* Use umb-search-filter component

* Adjust styling of item picker

* Replace trash icons with umb-icon

* Replace a few icons in umb-grid-selector as well

* Use umb-icon in datatype picker

* Ensure icons are styles correct in legacy format

* Use umb-icon component in macro parameter editors and fix wrong end closing tag from button element

* Use umb-icon in macro parameter editor overlay
2021-06-07 08:27:02 +10:00
Jeavon Leopold 6d97cbd954 Add missing UrlHelper GetCropUrl methods 2021-06-04 19:44:01 +01: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 DeminickandGitHub 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
Mole 96f88ac990 Apply suggestions from PR 2021-06-04 15:47:34 +02:00
Mole a56de298a3 Allow fallback to configured email 2021-06-04 14:18:49 +02:00
Mole baf13adef8 Don't convert to MimeMessage 2021-06-04 13:10:28 +02:00
Andy ButlandandGitHub ec3bc95809 Fixed typo in AddUnattendedInstallInstallCreateUser(this method name. (#10388) 2021-06-04 12:48:43 +02:00
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
Mole ba129b045b Add unit tests 2021-06-04 11:39:25 +02:00
Mole 3d0a72c39b Allow fallback to configured sender 2021-06-04 11:17:35 +02:00
Mole cd284fd263 Include IsBodyHtml in NotificationEmailModel 2021-06-04 11:06:59 +02:00
Mole d2dae7f35b Add null check when sending SendEmailNotification 2021-06-04 10:57:14 +02:00
Mole 91b59c6c67 Send NotificationEmailModel with notification 2021-06-04 10:42:33 +02:00
Mole 8a02118300 Create notification email models 2021-06-04 10:41:17 +02:00
Mole 6a79053a9f Move email models into a folder 2021-06-04 09:50:49 +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-WiseandGitHub 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
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
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 FyrstenborgandGitHub 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 FyrstenborgandNathan Woulfe 0990599c63 Support custom SVG icon in content app 2021-06-02 10:50:16 +10:00
Andy ButlandandGitHub 1f97ee8bcf Adds fields to unit test model builder for data editors. (#10363) 2021-06-01 08:15:59 +02:00
MoleandGitHub 40c8bf62f7 Enable email sender to publish an event if smtp is not configured (#10352) 2021-06-01 06:41:56 +02:00
Shannon DeminickandGitHub 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 LayugandSebastiaan Janssen 1c630e3c5f inject clearAddUserForm() to inviteUser condition 2021-05-28 09:35:49 +02:00
Bjarne FyrstenborgandNathan Woulfe 2697431de6 Fix issue with extend of object in keyboard service 2021-05-28 17:10:21 +10:00
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
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 LayugandNathan Woulfe 38f5d8329d added cdata on sectionMandatoryDesc for other languages 2021-05-27 08:27:08 +10:00
Bjarke Berg 7a63e26785 Add missing IMigrationContext to RebuildPublishedSnapshot ctor 2021-05-26 18:31:03 +02:00
Warren BuckleyandGitHub 9ef806d4e9 Rename Media Picker 3 and make current Media Picker Obsolete (#10332) 2021-05-26 16:13:25 +02:00
Mads RasmussenandSebastiaan Janssen 008e76c08f fixes #10297 8.14-RC - A few areas where focus lock doesn't work properly 2021-05-26 14:32:59 +02:00
Sebastiaan Janssen 046cbfc230 Merge branch 'v8/8.13' into v8/8.14 2021-05-26 14:21:40 +02:00
Sebastiaan Janssen 15f9814322 Merge branch 'v8/8.12' into v8/8.13 2021-05-26 13:47:01 +02:00
Sebastiaan Janssen e0958e3b6b Merge branch 'v8/8.11' into v8/8.12 2021-05-26 13:44:45 +02:00
Niels LyngsøandSebastiaan Janssen 1ac44542f6 Complex validation for RTE property editor (#10328)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 0a9c1c7c8e)

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
2021-05-26 13:10:18 +02:00
0a9c1c7c8e Complex validation for RTE property editor (#10328)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-26 13:08:25 +02:00
b07f6519e7 Rename models builder modes (#10272)
* Renaming AppData Models Builder mode

* Renaming PureLive Models Builder mode to Runtime

* ModelsBuilderAssembly attribute flags if models are "Live" or not

* Updated ModelsMode names

* Only add tag if it is not a pull request. Apparently this is not allowed when it is from a fork.

* Revert "Only add tag if it is not a pull request. Apparently this is not allowed when it is from a fork."

This reverts commit 92b33f3c

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-05-26 08:36:21 +02:00
Warren BuckleyandGitHub 0358e2aff7 Merge pull request #10320 from umbraco/v9/bugfix/10295-fix_issue_with_determining_the_uploaded_media_type
V9: Fix issue with determining the uploaded media type
2021-05-25 15:04:40 +01:00
Niels LyngsøandSebastiaan Janssen 630fa6a989 dont remove outline 2021-05-25 15:07:42 +02:00
Niels LyngsøandSebastiaan Janssen a68a6b2ac2 added windowResizeListener 2021-05-25 15:06:58 +02:00
Niels LyngsøandSebastiaan Janssen ecdc687e39 use label 2021-05-25 15:05:45 +02:00
Bjarke Berg 3b8f9d5e33 https://github.com/umbraco/Umbraco-CMS/issues/10295 - Use FileUploadConfigurationEditor in FileUploadPropertyEditor 2021-05-25 08:53:13 +02:00
Bjarke BergandGitHub 2ab02f9afa Merge pull request #10314 from umbraco/v9/bugfix/safe-template-namespace
NETCore: Fix dotnet new template for safe namespaces
2021-05-25 08:05:26 +02:00
Shannon a9508886bf Merge branch 'v8/bugfix/8893-examine-startup' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Sync/DatabaseServerMessenger.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.Tests/TestHelpers/TestSyncBootStateAccessor.cs
#	src/Umbraco.Web/Compose/DatabaseServerRegistrarAndMessengerComponent.cs
#	src/Umbraco.Web/PublishedCache/NuCache/NuCacheComposer.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
2021-05-24 13:55:07 -07:00
Shannon eba3c82a86 Changes startup logic, no more "Boot" method, the component just handles events 2021-05-24 12:51:40 -07:00
Shannon be3bfe1b63 Removes Booting event, backports lazy changes for PublishedSnapshotService from v9. 2021-05-24 12:32:57 -07:00
Shannon 43ee6f288e fixes initialize flag 2021-05-24 11:25:03 -07:00
Warren Buckley e02ccebf75 No need for a specific namespace replacer it seems sourceName prop is used for that 2021-05-24 14:39:06 +01:00
Warren Buckley 6aca1ca12e Fix for invalid chars used in dotnet new templates creations to ensure namespace is valid & compiles 2021-05-23 13:33:28 +01:00
Sebastiaan Janssen 2de635abb0 Merge branch 'v8/dev' into v8/contrib 2021-05-21 15:07:28 +02:00
Sebastiaan Janssen 9f51de5373 Merge branch 'v8/8.14' into v8/dev 2021-05-21 15:06:49 +02:00
Sebastiaan Janssen 0a9325c3d6 Merge branch 'v8/8.13' into v8/8.14
# Conflicts:
#	src/SolutionInfo.cs
2021-05-21 15:06:28 +02:00
Sebastiaan Janssen 008480a17b Can't use optimized version of this method call until 8.14 2021-05-21 15:01:51 +02:00
Andy ButlandandSebastiaan Janssen 12328ba2f7 Fixed issue with data types not being cleared in cache refresh operations.
(cherry picked from commit 71a1817a06)
2021-05-21 14:27:13 +02:00
Andy ButlandandSebastiaan Janssen 71a1817a06 Fixed issue with data types not being cleared in cache refresh operations. 2021-05-21 14:26:33 +02:00
Bjarke Berg 761c7dcfc6 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/Umbraco.Core/Dashboards/DashboardCollectionBuilder.cs
#	src/Umbraco.Examine/Umbraco.Examine.csproj
#	src/Umbraco.Examine/UmbracoExamineIndex.cs
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComposer.cs
#	src/Umbraco.TestData/LoadTestController.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/CollectionBuildersTests.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.Client/package.json
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Editors/KeepAliveController.cs
#	src/Umbraco.Web/Routing/PublishedContentNotFoundHandler.cs
2021-05-21 12:32:39 +02:00
Bjarke BergandGitHub 34519c7233 Merge pull request #10302 from nathanwoulfe/nathanwoulfe-patch-2
Fix getBlueprintScaffold endpoint
2021-05-21 11:11:29 +02:00
Bjarke BergandGitHub 3aaf53ce0e Merge pull request #10299 from umbraco/v9/feature/allow-custom-notification-publisher-in-scope
V9: Allow custom notification publisher in scope
2021-05-21 11:07:32 +02:00
Nathan WoulfeandGitHub edef73fd39 Fix getBlueprintScaffold endpoint 2021-05-21 11:21:44 +10:00
Bjarke BergandGitHub 9aee6919d7 Merge pull request #10286 from umbraco/v9/feature/do_not_restart_doing_simple_installs_without_package_installation
V9: Do not restart doing simple installs without package installation
2021-05-20 21:36:55 +02:00
Bjarke Berg 9b2cf8422d Removed unused ctor (just for tests) + Fixed a couple of handlers that is not intended to execute before runtime level = run. 2021-05-20 13:16:50 +02:00
Mole ee66455057 Add unit tests for custom scoped notification publisher 2021-05-20 13:00:59 +02:00
Bjarke Berg 0a3b39cc38 Merge remote-tracking branch 'origin/v9/dev' into v9/feature/do_not_restart_doing_simple_installs_without_package_installation 2021-05-20 12:56:41 +02:00
Bjarke BergandGitHub 35f439f5c5 Merge pull request #10294 from umbraco/v9/feature/update-nuget-packages
Update nuget packages
2021-05-20 12:55:03 +02:00
Mole 6596bcf557 Inject notification publisher from CreateScope 2021-05-20 12:36:57 +02:00
Sebastiaan Janssen 9bf01741b6 Fix invalid XML 2021-05-20 09:29:45 +02:00
Bjarne FyrstenborgandGitHub 710ecf2537 Add option to remove/cancel added crops (#10267)
* Add option to remove/cancel added crops

* Move vm functions to top

* Only show cancel button for empty/new crop
2021-05-20 09:00:23 +10:00
Bjarke Berg 025a7aca29 Updated nuget packages 2021-05-19 21:44:33 +02:00
Bjarke BergandGitHub 3af19b43d0 Merge pull request #10291 from umbraco/v9/bugfix/fix_unattended_installs
Bugfix: Acquire the maindom before we do unattended installs
2021-05-19 21:08:37 +02:00
Bjarke Berg 80ee7b398c Acquire the maindom before we do unattended installs 2021-05-19 20:40:06 +02:00
Bjarke Berg cb6f74774d No not use explicit nuspec file for Examine.Lucene anymore :) 2021-05-19 19:12:13 +02:00
Sebastiaan Janssen 3f596e27cc Bump version to 8.13.1 2021-05-19 16:31:52 +02:00
Bjarke Berg df6d4a603e Fix lucene reference for linux too 2021-05-19 15:05:30 +02:00
Sebastiaan JanssenandGitHub a2c461bcdb Update CONTRIBUTING.md 2021-05-19 13:30:53 +02:00
Sebastiaan JanssenandGitHub 779c94c66f Update CONTRIBUTING.md 2021-05-19 13:29:02 +02:00
Niels LyngsøandSebastiaan Janssen 9730a18c9b #10274 Variant sorting should take into account that there might not be any language (#10278) (#10284)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit 017b56eee1)
2021-05-19 12:12:58 +02:00
Sebastiaan Janssen 7b77d21d1b Merge branch 'v8/8.13' into v8/8.14
# Conflicts:
#	src/SolutionInfo.cs
2021-05-19 12:12:35 +02:00
Mike ChambersandSebastiaan Janssen 7c2f956130 Update ModelsBuilderComposer.cs
issue #10186

typo in IsExternalModelsBuilderInstalled -> Umbraco.ModelsBuider

(cherry picked from commit b783399c5c)
2021-05-19 12:11:51 +02:00
Niels LyngsøandSebastiaan Janssen 36c49b0a25 #10274 Variant sorting should take into account that there might not be any language (#10278)
* Variant sorting should take into account that there might not be any language available

* fix languages

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
(cherry picked from commit e19a5989e9)
2021-05-19 12:11:06 +02:00
017b56eee1 #10274 Variant sorting should take into account that there might not be any language (#10278) (#10284)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-19 12:06:17 +02:00
Sebastiaan JanssenandGitHub 14558aea06 Update CONTRIBUTING.md 2021-05-19 10:21:44 +02:00
Sebastiaan JanssenandGitHub 92cdf4e6e8 Update CONTRIBUTING.md 2021-05-19 10:20:01 +02:00
Bjarke Berg 972d9d94f4 Fixed tests 2021-05-18 19:49:50 +02:00
Bjarke Berg 8131d1a9c9 Added xml docs 2021-05-18 19:33:54 +02:00
Bjarke Berg da895ae65b Added RestartAsync to IRuntime instead of cancellation token 2021-05-18 19:30:07 +02:00
Bjarke Berg 4c78702da0 Do not restart after install, instead stop and restart the runtime. Also signin the admin user after install. 2021-05-18 19:19:58 +02:00
Bjarke BergandGitHub f63c85a16c Update version and artifact name generated by azure pipeline (#10277)
* Update version and artifact name generated by azure pipeline

* Fix issue with version

* Add build tags

* test nightly builds

* fix negation + Prefix with Umbraco

* use updatereleasename instead

* test if build number is the issue

* determine releases by tags

* use date and rev instead of build nuber

* build id

* more testing

* more test

* more test

* build without buildId if ResourceTrigger is reason

* more test

* more trials

* determine build type from source branch regex

* test

* test

* test

* test

* test

* test

* test

* use date in nightlies/previews

* use date in nightlies/previews

* addd build id to nightlies
2021-05-18 19:07:17 +02:00
Sebastiaan Janssen 04326364b2 New issue forms 2021-05-18 15:47:27 +02:00
Bjarke BergandGitHub 65b20572b7 V9: Resolve virtual view paths from DataEditorAttribute in DataValueEditor (#10279)
* https://github.com/umbraco/Umbraco-CMS/issues/10265
Resolve virtual view paths from DataEditorAttribute in DataValueEditor + Introduced an IDataValueEditorFactory, so we don't need to inject nested dependencies every time we introduce a new dependency in DataValueEditor..

* Cleanup + xml doc
2021-05-18 12:40:24 +02:00
Bjarke Berg 2c10fd7034 update and add mock 2021-05-18 11:38:54 +02:00
Bjarke Berg 15e5e6b339 Remove reference to Umbraco.Tests from Umbraco.Tests.Benchmarks 2021-05-18 11:23:19 +02:00
e19a5989e9 #10274 Variant sorting should take into account that there might not be any language (#10278)
* Variant sorting should take into account that there might not be any language available

* fix languages

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-18 11:08:00 +02:00
eba6373a12 Examine 2.0 integration (#10241)
* Init commit for examine 2.0 work, most old umb examine tests working, probably a lot that doesn't

* Gets Umbraco Examine tests passing and makes some sense out of them, fixes some underlying issues.

* Large refactor, remove TaskHelper, rename Notifications to be consistent, Gets all examine/lucene indexes building and startup ordered in the correct way, removes old files, creates new IUmbracoIndexingHandler for abstracting out all index operations for umbraco data, abstracts out IIndexRebuilder, Fixes Stack overflow with LiveModelsProvider and loading assemblies, ports some changes from v8 for startup handling with cold boots, refactors out LastSyncedFileManager

* fix up issues with rebuilding and management dashboard.

* removes old files, removes NetworkHelper, fixes LastSyncedFileManager implementation to ensure the machine name is used, fix up logging with cold boot state.

* Makes MainDom safer to use and makes PublishedSnapshotService lazily register with MainDom

* lazily acquire application id (fix unit tests)

* Fixes resource casing and missing test file

* Ensures caches when requiring internal services for PublishedSnapshotService, UseNuCache is a separate call, shouldn't be buried in AddWebComponents, was also causing issues in integration tests since nucache was being used for the Id2Key service.

* For UmbracoTestServerTestBase enable nucache services

* Fixing tests

* Fix another test

* Fixes tests, use TestHostingEnvironment, make Tests.Common use net5, remove old Lucene.Net.Contrib ref.

* Fixes up some review notes

* Fixes issue with doubly registering PublishedSnapshotService meanig there could be 2x instances of it

* Checks for parseexception when executing the query

* Use application root instead of duplicating functionality.

* Added Examine project to netcore only solution file

* Fixed casing issue with LazyLoad, that is not lowercase.

* uses cancellationToken instead of bool flag, fixes always reading lastId from the LastSyncedFileManager, fixes RecurringHostedServiceBase so that there isn't an overlapping thread for the same task type

* Fix tests

* remove legacy test project from solution file

* Fix test

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-05-18 10:31:38 +02:00
Shannon eb2f1e55fd adds msgpack format to the default web.config 2021-05-17 16:10:35 -07:00
Shannon 2739e049a6 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.TestData/LoadTestComposer.cs
2021-05-17 11:56:11 -07:00
Andy ButlandandGitHub 9b7b1a7c8e Merge pull request #10275 from umbraco/v9/feature/remove-data-contract-for-deploy-base-class
Updated serialization defaults for ArtifactBase
2021-05-17 13:29:04 +02:00
Andy Butland 130be8b303 Added comment explaining use of ShouldSerialize... method in ArtifactBase. 2021-05-17 12:49:08 +02:00
Andy Butland 63670bbd34 Removed the [DataContract] attribute added on ArtifactBase in the migration from V8 to V9, which has the effect of making all properties on derived artifacts opt-in.
Handled the omission of the checksum value from the serialized string without taking a Json.Net dependency.
2021-05-17 12:09:36 +02:00
Sebastiaan Janssen df8b2d5580 Bump version to 8.14.0-rc 2021-05-17 10:50:25 +02:00
dependabot[bot]andSebastiaan Janssen cce3c49e78 Bump underscore from 1.9.1 to 1.12.1 in /src/Umbraco.Web.UI.Client
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.9.1 to 1.12.1.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.9.1...1.12.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 10:47:40 +02:00
69a507e5db V9 - Include models folder in the project (#10250)
* fixes #10213. When models folder is included in project the models have a Build Action of C# Compiler

* models directory comment indicates correct models location

* added PureLive files to App_Data/Temp

* changed PureLive directory

* include generated models in project

* https://github.com/umbraco/Umbraco-CMS/pull/10250/ - Cleanup in csproj file and fix the generated template too

Co-authored-by: Mario Lopez <mario@monkii.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-05-17 09:50:58 +02:00
Paul SealandNathan Woulfe aaf5cd5fae Added a link to 404 documentation
I think it will be useful to include a link to the documentation on how to create a custom 404
2021-05-16 07:48:05 +10:00
Chad CurrieandNathan Woulfe 474a76fd2b Use ContainsKey for Dictionaries. O(1) 2021-05-15 19:18:37 +10:00
Andy ButlandandGitHub 0ae3a2d7ef Merge pull request #10266 from umbraco/v9/feature/further-file-service-methods
Re-implemented various file service methods from V8 required in Deploy.
2021-05-12 22:07:25 +02:00
Andy Butland 01643e494a Removed unecessary second calls to retrieve the file system in TemplateRepository. 2021-05-12 14:53:43 +02:00
Bjarke Berg 9507ba84f2 Updated version to beta003 2021-05-12 14:35:06 +02:00
Andy Butland fd9faf5a99 Re-implemented various file service methods from V8 required in Deploy. 2021-05-12 11:58:36 +02:00
Bjarke Berg de0929762c Fix issue with build number as part of the version 2021-05-12 09:49:41 +02:00
Bjarke Berg a0fd6ad293 Fix issue with build number as part of the version 2021-05-12 09:41:40 +02:00
980d9ad5cf #10193 The listview search within a dialog (eg. minilistview) shows the loading indicator forever for zero results (#10202)
* The listview search within a dialog (eg. minilistview) shows the loading indicator forever for zero results #10193

* Updated comment.

* Another updated comment.

Co-authored-by: Adam Nelson <anelson@bauerxcelmedia.com.au>
2021-05-12 12:36:13 +10:00
MoleandGitHub 2bf86acf38 V9: Place notifications in the same namespace (#10231)
* Gather all notifications in Umbraco.Cms.Core.Notifications

* Rename notifications to match convention

* Move and rename missed notifications

* Move the three remaining public notification into Umbraco.Cms.Core.Notifications
2021-05-11 14:33:49 +02:00
Andy ButlandandGitHub 2e7d405687 Merge pull request #10260 from umbraco/v9/bugfix/10251-Cannot_schedule_content_when_logged_in_as_Administrator
V9: Fix issue with scheduling
2021-05-11 13:43:58 +02:00
MoleandGitHub 11ca2c5d04 Merge pull request #10262 from umbraco/v9/feature/validate-credentials
Creates a method allowing validation of a user's credentials without actually logging them in.
2021-05-11 13:42:34 +02:00
Andy ButlandandGitHub 0a5911c1a3 Merge pull request #10248 from umbraco/v9/bugfix/fix_ordering_when_finding_views
V9: Fix search ordering of view locations
2021-05-11 13:39:39 +02:00
Bjarke Berg 9254e7883b Fixed casing issue.. 2021-05-11 12:46:03 +02:00
Bjarke Berg fe36c80ba0 Merge remote-tracking branch 'origin/v8/dev' into v9/dev
# Conflicts:
#	src/Umbraco.Core/Cache/UserGroupCacheRefresher.cs
#	src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryCacheKeys.cs
#	src/Umbraco.Core/PropertyEditors/MediaPickerWithCropsValueConverter.cs
#	src/Umbraco.Core/PropertyEditors/Validators/FileExtensionConfigItem.cs
#	src/Umbraco.Core/PropertyEditors/Validators/FileUploadConfiguration.cs
#	src/Umbraco.Core/PropertyEditors/Validators/FileUploadConfigurationEditor.cs
#	src/Umbraco.Core/PropertyEditors/Validators/IFileExtensionConfig.cs
#	src/Umbraco.Core/PropertyEditors/Validators/IFileExtensionConfigItem.cs
#	src/Umbraco.Core/PropertyEditors/Validators/MediaPicker3Configuration.cs
#	src/Umbraco.Core/PropertyEditors/Validators/MediaPicker3ConfigurationEditor.cs
#	src/Umbraco.Core/PropertyEditors/Validators/MediaPicker3PropertyEditor.cs
#	src/Umbraco.Infrastructure/Cache/DefaultRepositoryCachePolicy.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaTypeRepositoryTest.cs
#	src/Umbraco.Tests/Composing/TypeLoaderTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs
#	src/Umbraco.Tests/Services/MediaServiceTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
#	src/Umbraco.Web.Common/Extensions/FriendlyImageCropperTemplateExtensions.cs
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/fileupload/fileupload.controller.js
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web/Cache/MemberCacheRefresher.cs
#	src/Umbraco.Web/PropertyEditors/FileUploadPropertyEditor.cs
#	src/Umbraco.Web/UrlHelperRenderExtensions.cs
2021-05-11 12:33:31 +02:00
Andy Butland 3e19824be2 Creates a method available in V8 allowing validation of a user's credentials without actually logging them in. 2021-05-11 11:29:40 +02:00
Sebastiaan Janssen 809fd81982 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
2021-05-11 10:57:57 +02:00
Bjarke Berg 2c665e897e https://github.com/umbraco/Umbraco-CMS/issues/10251
Fixed issue with scheduling that was not possible.
2021-05-11 08:36:31 +02:00
Patrick de MooijandNathan Woulfe 499d22aa20 Move the SetWeight logic to WeightedCollectionBuilderBase so other collections can use it too 2021-05-11 14:56:25 +10:00
Bjarne FyrstenborgandNathan Woulfe 17e43a6b09 Update to noUiSlider v14.6.4 2021-05-11 14:45:00 +10:00
ShannonandNathan Woulfe f5406b9b2f Updates to Examine 1.2.0
and removes ExecutionContext workaround since it's part of Examine now.
2021-05-11 14:42:29 +10:00
ChadandGitHub 96d37a5e64 Fix copy button inactive, nodeSelectHandler had too many args passed. (#10158) 2021-05-11 14:32:27 +10:00
dependabot[bot]andNathan Woulfe 8ff88f47de Bump lodash from 4.17.19 to 4.17.21 in /src/Umbraco.Web.UI.Client
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 08:58:15 +10:00
patrickdemooij9andGitHub ed62f7d672 Add "Insert Macro" as language key (#10164)
* Add "Insert Macro" as language key

* Remove "a" as it wasn't in the original

* Formatting

* add label in FR lanuage  file
2021-05-09 11:42:29 +02:00
Anders BjernerandMichael Latouche 68fdc80b6a Added target="_blank" to "Update available" link 2021-05-09 01:29:42 +02:00
Niels Lyngsø f1e2ef89d1 Merge branch 'v8/bugfix/always-ignorer-validation-when-saving' into v8/dev 2021-05-07 10:59:35 +02:00
Bjarke Berg 10341a8d62 Fix ordering of views so the ordering is the same as v8 2021-05-07 10:34:39 +02:00
aaa13303b2 Adjust grid editor layout configuration (#9887)
* Fix wrong end closing tag

* Add button type attribute

* Assign null instead of undefined

* Left align text in row button

* Assign temporary rows to currentLayout

* Cleanup output

* Register functions in vm

* Move nameChanged property to init function

* Don't set toggled as checked when switching columns in row

* Use existing behaviour to set allowAll

* Remove vm.layout again

* copy rows when adding new section + clean up rows on submit and close

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-07 10:23:19 +02:00
Andy ButlandandGitHub 2eb84f7d00 Merge pull request #10244 from umbraco/v9/bugfix/do-not-save-runtime_level_in_ctors
V9: Do not save runtime level in ctors
2021-05-07 08:10:22 +02:00
Bjarke Berg 145a0fabe7 Fixed issues where RuntimeState.Level was used in ctors. This is not a good idea, as these ctors are executed before the level are determined. 2021-05-07 07:40:08 +02:00
Warren BuckleyandGitHub cb01e11586 Deterministic Builds for Sourcelink (#10237)
* Remove the properties from each .CSProj

* Move this into Directory.Build.props so all CSProj can get all these extra properties

* Add conditional to only add extra property to get the Deterministic green checkmark when running on Azure Pipleine
2021-05-06 19:56:43 +02:00
Warren BuckleyandGitHub dabecbf7af V9 Netcore: Fix missing launch browser param for dotnet run from template (#10238)
* Adds in launchBrowser for Kestrel/Propject profile so running dotnet run from CLI will launch browser

* Keep in sync with the template file that will we ship
2021-05-06 19:56:04 +02:00
Andy ButlandandGitHub 6e75006f0b Merge pull request #10234 from umbraco/v9/bugfix/10232_bugfix_for_modelsbuilder_when_having_inherited_doctypes
V9: Bugfix for modelsbuilder when having inherited doctypes
2021-05-06 15:26:38 +02:00
Mole 222d1e708a Complete scope after invoking GetEmpty. 2021-05-06 14:44:22 +02:00
Bjarne FyrstenborgandGitHub a464fadf2c Update spectrum color picker to latest v2.0.8 (#10225)
* Update spectrum color picker to latest v2.0.8

* Update package-lock.json
2021-05-06 12:54:07 +02:00
Bjarke Berg 205c111dbc https://github.com/umbraco/Umbraco-CMS/issues/10232
Fixes issue with modelsbuilder when doctypes are inheriting from other doc types.
2021-05-06 10:58:45 +02:00
Elitsa Marinovska 06d6133fcd Fix tests 2021-05-06 10:58:27 +02:00
Elitsa Marinovska 7bcfd8dad9 Introduce getScaffoldByKeys that makes use of GetEmptyByKeys 2021-05-06 10:58:13 +02:00
Elitsa Marinovska 051be40eb0 Introduce GetEmptyByKeys and add explicit scope so everything is handled in 1 scope 2021-05-06 10:57:30 +02:00
Elitsa Marinovska 658616252d Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/AB10622-be-property-editor-caching 2021-05-06 10:54:55 +02:00
Elitsa Marinovska aef9aff4a6 BlockEditorPropertyEditor.ToEditor improvements - reduce the large amount of objects allocated and make use of the dictionary cache 2021-05-06 10:54:17 +02:00
Bjarke BergandGitHub 261730f530 V9: Reintroduce missing friendly get crop url extensions (#10233)
* Adds missing extension methods of `GetCropUrl` that uses the service locator og inject the required services.

* Xml docs updated
2021-05-06 10:06:22 +02:00
Warren BuckleyandGitHub 0bdeda378a Merge pull request #10205 from umbraco/v9/feature/replace-system-drawing-with-imagesharp
Replaces System.Drawing with ImageSharp, and thereby fix TODO.
2021-05-05 14:57:01 +01:00
Andy ButlandandGitHub 811377b2e5 Fixes FileUploadCleanupFilterAttribute when incomimg model is not provided (#10162). (#10230) 2021-05-05 15:41:45 +02:00
6e16550b84 Dont let validation issues prevent saving (#9691)
* skipValidation for content save

* Correcting merge

* Use warning style when saving

* final corrections

* skip client side validation

* remove log

* show invariant property validation issues in the save dialog

* use warning color for .show-validation-type-warning

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-05-05 11:18:46 +02:00
Niels Lyngsø c1dd004604 use warning color for .show-validation-type-warning 2021-05-05 11:15:23 +02:00
Niels Lyngsø f8c38942f4 Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/always-ignorer-validation-when-saving
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/validation/valformmanager.directive.js
2021-05-05 10:37:27 +02:00
Harikrishna ParmarandGitHub 857997b5d4 Bugfix/umbraco backoffice icon #10192 (#10212)
* Umbraco backoffice icon #10192

Added umbraco icon

* Update icon-umbraco.svg

updated viewbox
2021-05-05 02:10:26 +02:00
Bjarke Berg 8891edc7d5 also copy snupkg files to artifacts (symbol nuget) 2021-05-04 19:51:46 +02:00
Warren BuckleyandGitHub f43f37dc35 Umbraco V9 Adds SourceLink package from Microsoft for people to debug into the relevent build commit with GitHub source code (#10224)
We had this previously in Umbraco V8
2021-05-04 18:58:50 +02:00
7ab09cb404 Ensure BlockObjects have references to a working current property editor. (#10195)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-04 16:58:31 +02:00
Martin Amsinck AndersenandGitHub 7d4a76bad4 appsettings "WebRouting:DisableRedirectUrlTracking" should be a bool not a string (#10207) 2021-05-04 13:42:31 +02:00
comstyleandGitHub 8705b067c1 Update CompiledPackageXmlParser.cs (#10209)
Fix issue with hardcoded '\' as directory separator char. This caused all files in packages to be restored in the root folder with '\' in the filename on Linux.
2021-05-04 13:41:12 +02:00
Martin Amsinck AndersenandGitHub 2bc1c46e57 Casing in appsettings:umbraco:cms:contentMacroErrors and using MacroErrorBehaviour Enum (#10208)
* appsettings "WebRouting:DisableRedirectUrlTracking" should be a bool not a string

* Casing in appsettings "Umbraco:CMS:Content:MacroErrors" + Using MacroErrorBehaviour enum
2021-05-04 13:40:53 +02:00
Kenn JacobsenandGitHub b7b3eeb143 Do not change function and class names when minifying JS (#10223) 2021-05-04 13:40:35 +02:00
a721f92aed Accessibility: Add focus lock for the infinite editor (#8522)
* Toggle the inert attribute when adding or removing the first/last editor

* Add focus lock directive for the editor

* Increase timeout period so infinite editors transclusions will also have time to finish

* Make sure elements containing .ng-hide are not part of the possible focusable elements

* Update comments

* Conditionally add umb-focus-lock and inert attributes

* Hook into the evenservice to reinitialize the onInit method if the last editor has not been closed when the lock is used in infinite mode

* Don't try to add focus to something that does not exist

* Minor code refactor placing some variables outside the init method

* Refactoring code to make things a bit more clean

* Remove the event listener when the directive is destroyed

* Add mutationObserver to watch for attribute changes and then trigger the getFocusableElements method

* Fetch focusable elements on domChange

* Ensure that args exists before trying to read the properties

* Refactor to use mutationobserver when overlays are closed passing the correct target and re-initialising the directive to activate the focus lock

* Change ng-hide to ng-if so the focusable elements inside the hidden div are not being selected

* Narrow attributes to look for down to the bare minimum of the umb-focus-lock

* Refactor to using good ol' for loop (Fastest)

* Disconnect the observer once the init function has been called - Massive performance improvement

* Event handler cleanup

* Refactor the code to re-initialize the init method on destroy in case infinite editors still exists in the DOM

* Align codestyle

* Add logic to deal with "lastKnowFocused" elements in infinite editing mode

* Re-add attributes after merge with contrib branch

* Correct spelling mistake

* Move onInit into the $includeContentLoaded event and set the timeout to 0

* Make sure to add focus to elements with role="button" as well

* Add comments and remove timeout / delay settings

* Debouce domObserver

* Wrap init function in safeApply

* Add comments to help remember / understand what things are intended to be doing and add missing event param as well as getting rid of some unused code

* Adding more comments

* Move setting of first and last focusable elements into the setElement function

* Remove todo

* Move the setup of first and last focusable elements back to where they were...

Co-authored-by: Joe Glombek <gh@joe.gl>
2021-05-04 10:08:02 +01:00
c8a98a670c Review AB11194 — Improve media selector UX (#10157)
* set input file accept

* Use PreValue file extensions for limiting the files to be chosen in file input

* Current state for Warren to review

* This should fix up what you need Niels

* update csproj

* use empty string if fileExtensions is undefined

* public interface

* initial work

* local crops

* translations

* translation correction

* fix misspeling

* some progress

* filter media picker

* align media card grid items correctly

* responsive media cropper

* always be able to scale 3 times smallest scale

* making image cropper property editor responsive

* scroll to scale

* adjust slider look

* rearrange parts of mediaentryeditor

* test helper

* styling

* move controls inside umb-image-crop

* seperate umg-cropper-gravity styling

* corrected layout

* more ui refinement

* keep the idea of mandatory out for now.

* remove double ;

* removed testing code

* JSON Property Value Convertor now has an array of property editors to exclude

* Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops

* Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items

* Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it

* Update extension methods to take an ImageCropperValue model (localCropData)

* Forgot to update CSProj for new ValueConvertor

* New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true)

* Remove dupe item in CSProj

* Use a contains as an opposed to Array.IndexOf

* various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication

* mediapicker v3

* correct version

* fixing file ext label text color

* clipboard features for MediaPicker v3

* highlight not allowed types

* highlight trashed as an error

* Media Types Video, Sound, Document and Vector Image

* Rename to Audio and VectorGraphics

* Add (SVG) in the name for Vector Graphics

* adding CSV to Documents

* remove this commented code.

* remove this commented code

* number range should not go below 0, at-least as default until we make that configurable.

* use min not ng-min

* description for local crops

* Error/Limits highlighting reactive

* visual adjustments

* Enabling opening filtered folders + corrected select hover states

* Varous fixes to resolve issues with unit tests.

* Refactor MediaType Documents to only contain Article file type

* mark as build-in

* predefined MediaPicker3 DataTypes, renaming v2 to "old"

* set scale bar current value after min and max has been set

* added missing }

* update when focal point is dragged

* adjusted styling for Image Cropper property editor

* correcting comment

* remove todo - message for trashed media items works

* Changed parameter ordering

* Introduced new extension method on MediaWithCrops to get croppings urls in with full path

* Reintroducing Single Item Mode

* use Multiple instead of SingleMode

* renaming and adding multiple to preconfigured datatypes

* Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality.

* clean up unused clipboard parts

* adjusted to new amount

* correcting test

* Fix unit test

* Move MediaWithCrops to separate file and move to Core.Models

* parseContentForPaste

* clean up

* ensure crops is an array.

* actively enable focal points, so we dont set focal points that aren't used.

* only accept files that matches file extensions from Umbraco Settings

* Cleanup

* Add references from MediaPicker3 to media

* corrections from various feedback

* remove comment

* correct wording

* use windowResizeListener

* Show Media Type Selector if there is multiple types that matches the current upload batch

* clean-up and refactoring

* auto pick option

Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-05-04 11:06:52 +02:00
Warren BuckleyandGitHub f344479b40 Netcore: dotnet new template updates and change HideTopLevelNodeFromPath default value to true (#10222)
* As we always ship with config in V8 to set this to be true makes sense it now because default in code

* Explicitly add JSON Schema property incase user IDE does not automap it

* Escaping issue with example usages
2021-05-04 11:06:25 +02:00
Niels Lyngsø c2fd28810b show invariant property validation issues in the save dialog 2021-05-04 10:38:26 +02:00
ce34165e9d use formCtrl.$invalid instead of running angularHelper.countAllFormErrors, as this method is way too heavy to run in a $watch. (#10134)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-05-03 16:18:15 +02:00
Bjarke Berg ba2792b33e fix lowercase issue for packages 2021-05-03 15:54:25 +02:00
Niels Lyngsø 0b4be695cf Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/always-ignorer-validation-when-saving 2021-05-03 15:47:36 +02:00
Elitsa MarinovskaandGitHub 4bdb011b16 V9: Implementing Error Describers for translated error messages (#10216)
* Adding missing keys needed for the translation of the error describers' msgs

* Override all methods from IdentityErrorDescriber in order to provide our own translated error messages using our own translation engine (ILocalizedTextService)

* Fix tests

* Refactoring based on introducing an UmbracoErrorDescriberBase

* Remove unnecessary usings
2021-05-03 14:05:17 +02:00
Niels Lyngsø dcfdcb11de remove log 2021-05-03 11:29:52 +02:00
d8d4be9e8e Backport cache key fix and optimizations (#10199)
* Add GetKey<T, TId>

* Update Usages of GetKey and remove GetKey<T>(object)

We shouldn't have to retain this since RepositoryCacheKeys is internal.

* Apply changes to DefaultRepositoryCachePolicy

* Add check for default/less than -1 on UserRepository PerformGet

Co-authored-by: Nikolaj <nel@umbraco.dk>
2021-05-03 10:22:42 +02:00
Andy Butland 12c55dd605 Made the LocalDb class public for access from Deploy. 2021-04-30 16:45:26 +02:00
Andy Butland 1f8810ebb2 Made some further DTOs public so can be used in Deploy. 2021-04-30 16:20:53 +02:00
Chad Currie 03af45612c move to ILocalizedTextService2 2021-05-01 01:12:54 +12:00
Chad Currie f266afb909 Bugfix. Merge en-US. Handle noarea seperately 2021-05-01 00:30:47 +12:00
Chad Currie 85154e2c3f merge 2021-04-30 23:31:32 +12:00
Chad Currie 5d05b12f11 merge 2021-04-30 23:20:37 +12:00
Chad Currie 14513e34e3 Merge branch 'v8/contrib' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/btree-serializer-array-size 2021-04-30 23:18:24 +12:00
Andy ButlandandGitHub c4f594de12 Merge pull request #10203 from umbraco/v9/task/internals-visible-to-packages
Made a couple of internal classes public that Deploy has a dependency on.
2021-04-29 22:18:04 +02:00
Bjarke Berg a854959b85 Replaces System.Drawing with ImageSharp, and thereby fix TODO. 2021-04-29 20:32:26 +02:00
Bjarke Berg 743f4a6610 https://github.com/umbraco/Umbraco-CMS/issues/10201 - Fix duplicate xml end tag 2021-04-29 17:30:07 +02:00
Andy Butland b12c4b7d66 Aligned access modifier of related Dto. 2021-04-29 16:52:18 +02:00
Andy Butland 4ddc6ad868 Made a couple of internal classes public that Deploy has a dependency on. 2021-04-29 15:27:02 +02:00
Bjarne FyrstenborgandNathan Woulfe 727be420ff Use umb-icon component in listview dropdown 2021-04-29 08:40:00 +10:00
Bjarne FyrstenborgandNathan Woulfe 349c5ac3ab Fix issue with active style affected nested block list elements 2021-04-29 08:21:36 +10:00
Mike ChambersandSebastiaan Janssen b783399c5c Update ModelsBuilderComposer.cs
issue #10186

typo in IsExternalModelsBuilderInstalled -> Umbraco.ModelsBuider
2021-04-28 18:05:40 +02:00
Bjarke Berg 8a2c8f1c09 Update version to beta002 2021-04-28 10:11:41 +02:00
Bjarke Berg ae3fc84369 Fix templates by only allowing generated https ports withing the range 44300-44399 https://docs.microsoft.com/en-us/iis/extensions/using-iis-express/running-iis-express-without-administrative-privileges#summary 2021-04-28 09:30:05 +02:00
Bjarke Berg 5157d67485 Fix for template 2021-04-27 15:01:13 +02:00
Sebastiaan Janssen e7a3fd37ce Revert "Fixed copy preserving sort order (#10091)"
This reverts commit 26d11a8314.
2021-04-27 14:57:17 +02:00
3781c6b00f Remove a bunch of template related, unreferenced methods from file service and stylesheet repository (#9875)
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-27 12:30:38 +02:00
8674244e61 Remove a bunch of partial views related, unreferenced methods from file service and partial view repositories (#9879)
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-27 11:42:06 +02:00
4f0d4d1fcd Remove a bunch of script related, unreferenced methods from file service and script repository (#9878)
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-27 10:36:28 +02:00
Bjarke Berg 2afa7201ce Fix comment 2021-04-27 10:20:43 +02:00
Kenn JacobsenandGitHub 720e529474 Remove a bunch of template related, unreferenced methods from file service and template repository (#9876) 2021-04-27 09:59:51 +02:00
c9ebaadf23 Netcore: File systems rework (#10181)
* Allow IMediaFileSystem to be replace in the DI, or registered with inner filesystem

* Remove GetFileSystem from Filesystems

It was only used by tests.

* Make MediaFileSystem inherit from PhysicalFileSystem directly

* Remove FileSystemWrapper

* Remove inner filesystem from MediaFileSystem

* Add MediaFileManager and bare minimum to make it testable

* Remove MediaFileSystem

* Fix unit tests using MediaFileManager

* Remove IFileSystem and rely only on FileSystem

* Hide dangerous methods in FileSystems and do some cleaning

* Apply stylecop warnings to MediaFileManager

* Add FilesystemsCreator to Tests.Common

This allows you to create an instance if FileSystems with your own specified IFileSystem for testing purposes outside our own test suite.

* Allow the stylesheet filesystem to be replaced.

* Fix tests

* Don't save stylesheetWrapper in a temporary var

* refactor(FileSystems): change how stylesheet filesystem is registered

* fix(FileSystems): unable to overwrite media filesystem

SetMediaFileSystem added the MediaManager as a Singleton instead of
replacing the existing instance.

* fix(FileSystems): calling AddFileSystems replaces MediaManager

When calling AddFileSystems after SetMediaFileSystem the MediaManager
gets replaced by the default PhysicalFileSystem, so instead of calling
SetMediaFileSystem in AddFileSystems we now call TrySetMediaFileSystem
instead. This method will not replace any existing instance of the
MediaManager if there's already a MediaManager registered.

* Use SetMediaFileSystem instead of TrySet, and rename AddFilesystems to ConfigureFileSystems

Also don't call AddFileSystems again in ConfigureFilesystems

* Don't wrap CSS filesystem twice

* Add CreateShadowWrapperInternal to avoid casting

* Throw UnauthorizedAccessException isntead of InvalidOperationException

* Remove ResetShadowId

Co-authored-by: Rasmus John Pedersen <mail@rjp.dk>
2021-04-27 09:52:17 +02:00
eaa46fe190 Allows for structured logging with the IProfilingLogger (#9958)
* Allows for structured logging with the IProfilingLogger

* Review fixes

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-27 09:10:30 +02:00
51a720b16c Add references to Umbraco.Code as PrivateAsset (#10148)
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-27 09:07:10 +02:00
Bjarke Berg 941b234697 Clean up after reintroduction of examine composers 2021-04-27 07:50:05 +02:00
Bjarke Berg e52d4dda7e Clean up after reintroduction of examine composers 2021-04-27 07:43:18 +02:00
Bjarke Berg 80bd5257bc Revert examine to use composers, until we have migrated that to .net standard 2021-04-27 07:35:47 +02:00
Anders BjernerandNathan Woulfe 4ade2264d2 Minor Danish translations 2021-04-27 08:06:57 +10:00
Bjarke Berg a4400f04a5 Get rid of ICoreComposer 2021-04-26 21:09:06 +02:00
Warren BuckleyandGitHub 67f980fecb Merge pull request #10180 from umbraco/netcore/bugfix/10179_check_authorization_policies_on_nested_tree_requests
Fix check authorization policies on nested tree requests
2021-04-26 11:46:15 +01:00
Shannon 1a3165507e adds note 2021-04-26 18:26:49 +10:00
Shannon 053a56a45b Removes the callbacks from DatabaseServerMessenger, moves logic for cold boot into the components responsible for what needs to happen in cold boot. This is still not ideal but we are stuck with backwards compat. In netcore the initialization will be fixed up (if not already). Ensure examine rebuilds don't occur until the first http request is done instead of on a timer which could be problematic with cold boots. 2021-04-26 18:07:23 +10:00
Shannon DeminickandGitHub dccec91073 Merge pull request #9859 from nzdev/v8/bugfix/fix-cold-boot
Reduce cold boot times by loading content and media only once on cold boot
2021-04-26 15:52:41 +10:00
Shannon 22afe5e341 Adds cold boot restart to load test proj 2021-04-26 15:40:46 +10:00
Shannon ad10d86aaa Adds cold boot restart to load test proj 2021-04-26 12:39:00 +10:00
Bjarke Berg bc25e82767 https://github.com/umbraco/Umbraco-CMS/issues/10179
Execute AuthenticateAsync and AuthorizeAsync on nested requests
2021-04-23 13:32:42 +02:00
Andy ButlandandGitHub 7dd92efe25 Added additional addresses and attachments to core's email sending service. (#10178) 2021-04-23 08:59:10 +02:00
Shannon e434f77f2f uses const as config key 2021-04-23 15:40:36 +10:00
nzdev 306c82f871 Change log to Info 2021-04-23 17:03:32 +12:00
Shannon e418bc56c6 fix merge issue and add correct assembly binding attribute 2021-04-23 13:40:29 +10:00
Shannon 1020fa4231 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
2021-04-23 13:17:19 +10:00
Shannon DeminickandGitHub 9382500b1f Ensure we don't issue a write lock on member login (#10175)
If only the last login property has changed we can issue a SQL call without write locks to make that update.
2021-04-22 18:37:56 +02:00
Shannon DeminickandGitHub 57009be435 Stop allocating arrays for every scope lock (#10172)
This is left over from v8's APIs where we would pass in params int[] but in most cases we are just passing in a single value yet we are then allocating arrays everytime. There's no need to allocate these, it's just extra overhead.
2021-04-22 18:36:45 +02:00
Mads Rasmussen 4369747c72 skip client side validation 2021-04-22 16:55:18 +02:00
Sebastiaan Janssen c885831e02 Revert "use v8 branch as default for API Docs"
This reverts commit 0dfefb72cb.
2021-04-22 16:34:11 +02:00
Arkadiusz BielandSebastiaan Janssen 0dfefb72cb use v8 branch as default for API Docs 2021-04-22 16:12:20 +02:00
39aeec0f1f Implement password config storage for members (#10170)
* Getting new netcore PublicAccessChecker in place

* Adds full test coverage for PublicAccessChecker

* remove PublicAccessComposer

* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller

* Implements the required methods on IMemberManager, removes old migrated code

* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops

* adds note

* adds note

* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.

* Changes name to IUmbracoEndpointBuilder

* adds note

* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect

* fixing build

* Updates user manager to correctly validate password hashing and injects the IBackOfficeUserPasswordChecker

* Merges PR

* Fixes up build and notes

* Implements security stamp and email confirmed for members, cleans up a bunch of repo/service level member groups stuff, shares user store code between members and users and fixes the user identity object so we arent' tracking both groups and roles.

* Security stamp for members is now working

* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.

* adds note

* removes unused filter, fixes build

* fixes WebPath and tests

* Looks up entities in one query

* remove usings

* Fix test, remove stylesheet

* Set status code before we write to response to avoid error

* Ensures that users and members are validated when logging in. Shares more code between users and members.

* merge changes

* oops

* Reducing and removing published member cache

* Fixes RepositoryCacheKeys to ensure the keys are normalized

* oops didn't mean to commit this

* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy

* oops didn't mean to comit this

* bah, far out this keeps getting recommitted. sorry

* cannot inject IPublishedMemberCache and cannot have IPublishedMember

* splits out files, fixes build

* fix tests

* removes membership provider classes

* removes membership provider classes

* updates the identity map definition

* reverts commented out lines

* reverts commented out lines

* Implements members Password config in db, fixes members cookie auth to not interfere with the back office cookie auth, fixes Startup sequence, fixes startup pipeline

* commits change to Startup

* Rename migration from `MemberTableColumns2` to `AddPasswordConfigToMemberTable`

* Fix test

* Fix tests, but adding default passwordConfig to members

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-22 15:59:13 +02:00
Mads Rasmussen bfe45c44b1 collapse content apps navigation when split view is open 2021-04-22 13:51:28 +02:00
473bc53c66 dotnet new template - Support unattended (#10107)
* Remove trailing comma

* Remove duplicate property

* Logo is now transparent & not on a solid a white BG

* Adds in auto Nuget Restore with an option to skip auto restore if you wish to

https://github.com/dotnet/dotnet-template-samples/tree/master/08-restore-on-create

* Fix typo

* Rename from UmbracoSolution to UmbracoProject

Bit misleading as it only ever creates a CSProj & not a SLN

* Couple extra places that needed a rename

* Adds support for HTTP & HTTPS port that will autogenerate an available free port number

https://github.com/dotnet/templating/wiki/Available-Symbols-Generators#port

* Update build/templates/UmbracoProject/.template.config/template.json

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Update build/templates/UmbracoProject/.template.config/template.json

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Rather than COPY appsettings from Umbraco.Web.UI.NetCore we use these specific ones so we can add logic to them

* Support for unattended install with new CLI args

* Change order so all the long textboxes that are optional are together

* Apply suggestions from code review from Elitsa

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-04-22 13:22:01 +02:00
3792cafb9f Published members cleanup (#10159)
* Getting new netcore PublicAccessChecker in place

* Adds full test coverage for PublicAccessChecker

* remove PublicAccessComposer

* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller

* Implements the required methods on IMemberManager, removes old migrated code

* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops

* adds note

* adds note

* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.

* Changes name to IUmbracoEndpointBuilder

* adds note

* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect

* fixing build

* Updates user manager to correctly validate password hashing and injects the IBackOfficeUserPasswordChecker

* Merges PR

* Fixes up build and notes

* Implements security stamp and email confirmed for members, cleans up a bunch of repo/service level member groups stuff, shares user store code between members and users and fixes the user identity object so we arent' tracking both groups and roles.

* Security stamp for members is now working

* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.

* adds note

* removes unused filter, fixes build

* fixes WebPath and tests

* Looks up entities in one query

* remove usings

* Fix test, remove stylesheet

* Set status code before we write to response to avoid error

* Ensures that users and members are validated when logging in. Shares more code between users and members.

* merge changes

* oops

* Reducing and removing published member cache

* Fixes RepositoryCacheKeys to ensure the keys are normalized

* oops didn't mean to commit this

* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy

* oops didn't mean to comit this

* bah, far out this keeps getting recommitted. sorry

* cannot inject IPublishedMemberCache and cannot have IPublishedMember

* splits out files, fixes build

* fix tests

* removes membership provider classes

* removes membership provider classes

* updates the identity map definition

* reverts commented out lines

* reverts commented out lines

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-22 13:21:43 +02:00
Shannon DeminickandGitHub c991e83088 SiteDomainHelper cleanup (#10166)
* Fixes SiteDomainHelper = no more static weirdness and renames it.

* fix build
2021-04-22 12:25:25 +02:00
Mads Rasmussen fc8d24cc4c add validation badge to content apps more button 2021-04-22 12:20:33 +02:00
Mads Rasmussen d909c7b8c0 add null check 2021-04-22 11:33:03 +02:00
Mads Rasmussen 1621cb83e0 add icon picker to content type tab 2021-04-22 11:24:08 +02:00
1a5b88525b Media Picker v3 (#9461)
* set input file accept

* Use PreValue file extensions for limiting the files to be chosen in file input

* Current state for Warren to review

* This should fix up what you need Niels

* update csproj

* use empty string if fileExtensions is undefined

* public interface

* initial work

* local crops

* translations

* translation correction

* fix misspeling

* some progress

* filter media picker

* align media card grid items correctly

* responsive media cropper

* always be able to scale 3 times smallest scale

* making image cropper property editor responsive

* scroll to scale

* adjust slider look

* rearrange parts of mediaentryeditor

* test helper

* styling

* move controls inside umb-image-crop

* seperate umg-cropper-gravity styling

* corrected layout

* more ui refinement

* keep the idea of mandatory out for now.

* remove double ;

* removed testing code

* JSON Property Value Convertor now has an array of property editors to exclude

* Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops

* Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items

* Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it

* Update extension methods to take an ImageCropperValue model (localCropData)

* Forgot to update CSProj for new ValueConvertor

* New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true)

* Remove dupe item in CSProj

* Use a contains as an opposed to Array.IndexOf

* various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication

* mediapicker v3

* correct version

* fixing file ext label text color

* clipboard features for MediaPicker v3

* highlight not allowed types

* highlight trashed as an error

* Media Types Video, Sound, Document and Vector Image

* Rename to Audio and VectorGraphics

* Add (SVG) in the name for Vector Graphics

* adding CSV to Documents

* remove this commented code.

* remove this commented code

* number range should not go below 0, at-least as default until we make that configurable.

* use min not ng-min

* description for local crops

* Error/Limits highlighting reactive

* visual adjustments

* Enabling opening filtered folders + corrected select hover states

* Varous fixes to resolve issues with unit tests.

* Refactor MediaType Documents to only contain Article file type

* mark as build-in

* predefined MediaPicker3 DataTypes, renaming v2 to "old"

* set scale bar current value after min and max has been set

* added missing }

* update when focal point is dragged

* adjusted styling for Image Cropper property editor

* correcting comment

* remove todo - message for trashed media items works

* Changed parameter ordering

* Introduced new extension method on MediaWithCrops to get croppings urls in with full path

* Reintroducing Single Item Mode

* use Multiple instead of SingleMode

* renaming and adding multiple to preconfigured datatypes

* Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality.

* clean up unused clipboard parts

* adjusted to new amount

* correcting test

* Fix unit test

* Move MediaWithCrops to separate file and move to Core.Models

* parseContentForPaste

* clean up

* ensure crops is an array.

* actively enable focal points, so we dont set focal points that aren't used.

* only accept files that matches file extensions from Umbraco Settings

* Cleanup

* Add references from MediaPicker3 to media

* corrections from various feedback

* remove comment

* correct wording

* use windowResizeListener

Co-authored-by: Warren Buckley <warren@umbraco.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-04-22 10:28:53 +02:00
Mads Rasmussen 80897908fc add space to the right of node name input when in split view 2021-04-21 12:26:17 +02:00
Mads Rasmussen ba67e5905a wire up app model 2021-04-21 10:59:49 +02:00
Mole 181c8cbc34 Remove examine reference from Umbraco.Web.csproj 2021-04-21 10:58:02 +02:00
Mads Rasmussen 632b0baaf4 testing tabs as content apps 2021-04-21 10:12:22 +02:00
+18 7704d02883 Merge in #9859 to v8/feature/nucache-perf (#10152)
* load only once

* Bump version to 8.6.8

* Initial rework of Lock dictionaries

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop… (#9264)

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop down is identified as "link" - screen reader

* add new loacalization key

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

(cherry picked from commit da5351dfcf)

* Adjust unit tests and apply fixes to scope

* Add more unit tests, showing current issue

* Counting Umbraco.ModelsBuilder and ModelsBuilder.Umbraco namespaces as external providers

* Fix dead lock with TypeLoader

* Fix errors shown in unit tests

* Throw error if all scopes hasn't been disposed

* Clean

* Fixes and Updates for DB Scope and Ambient Context leaks (#9953)

* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Add copy logic to Media Picker (#9957)

* Add copy logic to Media Picker

* Add action for copy all

* Fix for selectable media item

* Wrap calls to map in scopes

* Autocomplete scopes

* Remove unnecessary aria-hidden attribute from <umb-icon>

* Remove scope from method that calls another method that has a scope

* Fixes #9993 - Cannot save empty image in Grid

* Clean

* Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)

* Use a hashset to keep track of acquired locks

This simplifies disposing/checking for locks greatly.

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>

* Only create the dicts and hashset when a lock is requested

* Clean

* Adds a config for configuring the access rules on the content dashboard - by default it granted for all user groups

* Adds additional params indicating whether user is admin

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit e2019777fb)

* Bump version to 8.12.2

* #9964 Removed unneeded check for HttpContext

* Fix for #9950 - HttpsCheck will now retry using the login background image if inital request returns 301/302. Excessvie Headers check will now check the root url instead of the backoffice

* Merge pull request #9994 from umbraco/v8/bugfix/9993

Fixes #9993 - Cannot save empty image in Grid

(cherry picked from commit 0ecc933921)

* Apply suggestions from review

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

(cherry picked from commit 45de0a101e)

* 8539: Allow alias in image cropper (#9266)

Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>

* Wrap dumping dictionaries in a method.

* Create method for generating log message

And remove forgotten comments.

* Fix swedish translation for somethingElse.

* Copy member type (#10020)

* Add copy dialog for member type

* Implement copy action for member type

* Create specific localization for content type, media type and member type

* Handle "foldersonly" querystring

* Add button type attribute

* Add a few missing changes of anchor to button element

* Null check on scope and options to ensure backward compatibility

* Improve performance, readability and handling of FollowInternalRedirects (#9889)

* Improve performance, readability and handling of FollowInternalRedirects

* Logger didn't like string param

Passing string param to _logger.Debug<PublishedRouter, int> wasn't happy. Changed to pass existing internalRedirectAsInt variable.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Update casing of listview layout name

* 9097 add contextual password helper (#9256)

* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Unbind listener

Listening for splitViewRequest was only unbound if the split view editor was opened. Not cleaning up the listener caused a memory leak when changing between nodes as the spit view editor was detached but not garbage-collected

* Replace icon in date picker with umb-icon component (#10040)

* Replace icon in date picker with <umb-icon> component

* Adjust height of clear button

* Update cypress and fix tests

* Listview config icons (#10036)

* Update icons to use <umb-icon> component

* Simplify markup and use disabled button

* Use move cursor style on sortable handle

* Add class for action column

* Update setting auto focus

* Increase font size of umb-panel-header-icon

* Anchor noopener (#10009)

* Set rel="noopener" for anchors with target="_blank"

* Reverted unwanted changes to Default.cshtml

* Align 'Add language' test to netcore

* Add new cypress tests

* Add indentation

* Getting rid of the config file and implementing an appSetting instead

* Implementation for IContentDashboardSettings

* Cleanup

* bool.Try

* Taking AllowContentDashboardAccessToAllUsers prop from GlobalSettings to ContentDashboardSettings and saving AccessRulesFromConfig into a backing field

* fix support for non run states

* Handling multiple values per field in Examine Management

* Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)

* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods

* Orders member type grouping of members alphabetically, matching the listing of member types.

* Revert updating deprecated WriterName/CreatorName refs

Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.

* Handle Invalid format for Upgrade check

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

* Allow to pass in boolean to preventEnterSubmit directive (#8639)

* Pass in value to preventEnterSubmit directive

* Set enabled similar to preventDefault and preventEnterSubmit directives

* Update prevent enter submit value

* Init value from controller

* Use a different default input id prefix for umb-search-filter

* Fix typo

* Check for truthly value

* Revert "Set enabled similar to preventDefault and preventEnterSubmit directives"

This reverts commit 536ce855c4.

* None pointer events when clicking icon

* Use color variable

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

(cherry picked from commit c881fa9e7d)

* Null check on scope and options to ensure backward compatibility

(cherry picked from commit fe8cd239d2)

* Fix validation of step size in integer/numeric field

* 9962: Use $allowedEditors instead of allowed (#10086)

* 9962: Use $allowedEditors instead of allowed

* 9962: Remove redundant statement

* fixes #10021 adds ng-form and val-form-manager to the documentation

* Improved accessibility of link picker (#10099)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added control ids for the link picker

* Add French translation

* Accessibility: Alerts the user how many results have been returned on a tree search (#10100)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Tree search details the number of search items returned

* Add French translations

* Updated LightInject to v6.4.0

* Remove HtmlSanitizer once more - see #9803

* Also make sure NuGet installs the correct version of the CodePages dependency

* Bump version to 8.13 RC

* Fixed copy preserving sort order (#10091)

* Revert "Updated LightInject to v6.4.0"

This reverts commit fc77252ec7.

* Revert "Add copy logic to Media Picker (#9957)"

This reverts commit f7c032af65.

* Reintroduce old constructor to make non-breaking

* Update cypress test to make macros in the grid work again

* Attributes could be multiple items, test specifically if `Directory` is an attribute

* Accessibility: Adding label fors and control ids for the macro picker (#10101)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added support for label fors for the macro picker and also gave the ,acro search box a title

* Now displays a count of the matching macros returned. Please note the language file amends shared with #10100

* Removed src-only class for the display of the count of messages

* Updating typo

* Removed top-margin from switcher icon

* Allow KeepAlive controller Ping method to be requested by non local requests (#10126)

* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references

* fix csproj

* fix merge

* btree serializer optimizations

* array pool and nametable optimizations

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Justin Shearer <justin.shearer@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Callum Whyte <hey@callumwhyte.com>
Co-authored-by: Shannon <sdeminick@gmail.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: patrickdemooij9 <patrickdemooij98@hotmail.com>
Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
Co-authored-by: Michael Latouche <michael@crossingpaths.be>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
Co-authored-by: Markus Johansson <markus@obviuse.se>
Co-authored-by: Jeavon Leopold <jeavon@crumpled-dog.com>
Co-authored-by: Benjamin Carleski <benjamin@proworks.com>
Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>
Co-authored-by: Jesper Löfgren <jesper.lofgren@sappa.se>
Co-authored-by: Martin Bentancour <mbe@umbraco.dk>
Co-authored-by: Ronald Barendse <ronald@panoramastudios.nl>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: BeardinaSuit <BeardInASuit@outlook.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Rachel Breeze <RachBreeze@users.noreply.github.com>
Co-authored-by: Dave de Moel <d.demoel@wearetriple.com>
Co-authored-by: ric <60885685+ricbrady@users.noreply.github.com>
Co-authored-by: Carole Rennie Logan <crgrieve@users.noreply.github.com>
Co-authored-by: Dennis Öhman <dennis.ohman@bjornmamman.se>
2021-04-21 09:05:37 +10:00
+18 98d8971ce9 Merge in v8/contrib to V8/feature/nucache perf sync (#10151)
* Bump version to 8.6.8

* Initial rework of Lock dictionaries

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop… (#9264)

* [Issue 5277-146] accessibility - Close 'X' icon next to language drop down is identified as "link" - screen reader

* add new loacalization key

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

* Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)

(cherry picked from commit da5351dfcf)

* Adjust unit tests and apply fixes to scope

* Add more unit tests, showing current issue

* Counting Umbraco.ModelsBuilder and ModelsBuilder.Umbraco namespaces as external providers

* Fix dead lock with TypeLoader

* Fix errors shown in unit tests

* Throw error if all scopes hasn't been disposed

* Clean

* Fixes and Updates for DB Scope and Ambient Context leaks (#9953)

* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>

* Add copy logic to Media Picker (#9957)

* Add copy logic to Media Picker

* Add action for copy all

* Fix for selectable media item

* Wrap calls to map in scopes

* Autocomplete scopes

* Remove unnecessary aria-hidden attribute from <umb-icon>

* Remove scope from method that calls another method that has a scope

* Fixes #9993 - Cannot save empty image in Grid

* Clean

* Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)

* Use a hashset to keep track of acquired locks

This simplifies disposing/checking for locks greatly.

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>

* Only create the dicts and hashset when a lock is requested

* Clean

* Adds a config for configuring the access rules on the content dashboard - by default it granted for all user groups

* Adds additional params indicating whether user is admin

* Add images in grid - fixes 9982 (#9987)

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit e2019777fb)

* Bump version to 8.12.2

* #9964 Removed unneeded check for HttpContext

* Fix for #9950 - HttpsCheck will now retry using the login background image if inital request returns 301/302. Excessvie Headers check will now check the root url instead of the backoffice

* Merge pull request #9994 from umbraco/v8/bugfix/9993

Fixes #9993 - Cannot save empty image in Grid

(cherry picked from commit 0ecc933921)

* Apply suggestions from review

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

* Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)

* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

(cherry picked from commit 45de0a101e)

* 8539: Allow alias in image cropper (#9266)

Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>

* Wrap dumping dictionaries in a method.

* Create method for generating log message

And remove forgotten comments.

* Fix swedish translation for somethingElse.

* Copy member type (#10020)

* Add copy dialog for member type

* Implement copy action for member type

* Create specific localization for content type, media type and member type

* Handle "foldersonly" querystring

* Add button type attribute

* Add a few missing changes of anchor to button element

* Null check on scope and options to ensure backward compatibility

* Improve performance, readability and handling of FollowInternalRedirects (#9889)

* Improve performance, readability and handling of FollowInternalRedirects

* Logger didn't like string param

Passing string param to _logger.Debug<PublishedRouter, int> wasn't happy. Changed to pass existing internalRedirectAsInt variable.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Update casing of listview layout name

* 9097 add contextual password helper (#9256)

* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>

* Unbind listener

Listening for splitViewRequest was only unbound if the split view editor was opened. Not cleaning up the listener caused a memory leak when changing between nodes as the spit view editor was detached but not garbage-collected

* Replace icon in date picker with umb-icon component (#10040)

* Replace icon in date picker with <umb-icon> component

* Adjust height of clear button

* Update cypress and fix tests

* Listview config icons (#10036)

* Update icons to use <umb-icon> component

* Simplify markup and use disabled button

* Use move cursor style on sortable handle

* Add class for action column

* Update setting auto focus

* Increase font size of umb-panel-header-icon

* Anchor noopener (#10009)

* Set rel="noopener" for anchors with target="_blank"

* Reverted unwanted changes to Default.cshtml

* Align 'Add language' test to netcore

* Add new cypress tests

* Add indentation

* Getting rid of the config file and implementing an appSetting instead

* Implementation for IContentDashboardSettings

* Cleanup

* bool.Try

* Taking AllowContentDashboardAccessToAllUsers prop from GlobalSettings to ContentDashboardSettings and saving AccessRulesFromConfig into a backing field

* Handling multiple values per field in Examine Management

* Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)

* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods

* Orders member type grouping of members alphabetically, matching the listing of member types.

* Revert updating deprecated WriterName/CreatorName refs

Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.

* Handle Invalid format for Upgrade check

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

* Allow to pass in boolean to preventEnterSubmit directive (#8639)

* Pass in value to preventEnterSubmit directive

* Set enabled similar to preventDefault and preventEnterSubmit directives

* Update prevent enter submit value

* Init value from controller

* Use a different default input id prefix for umb-search-filter

* Fix typo

* Check for truthly value

* Revert "Set enabled similar to preventDefault and preventEnterSubmit directives"

This reverts commit 536ce855c4.

* None pointer events when clicking icon

* Use color variable

* Fixes tabbing-mode remains active after closing modal #9790 (#10074)

(cherry picked from commit c881fa9e7d)

* Null check on scope and options to ensure backward compatibility

(cherry picked from commit fe8cd239d2)

* Fix validation of step size in integer/numeric field

* 9962: Use $allowedEditors instead of allowed (#10086)

* 9962: Use $allowedEditors instead of allowed

* 9962: Remove redundant statement

* fixes #10021 adds ng-form and val-form-manager to the documentation

* Improved accessibility of link picker (#10099)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added control ids for the link picker

* Add French translation

* Accessibility: Alerts the user how many results have been returned on a tree search (#10100)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Tree search details the number of search items returned

* Add French translations

* Updated LightInject to v6.4.0

* Remove HtmlSanitizer once more - see #9803

* Also make sure NuGet installs the correct version of the CodePages dependency

* Bump version to 8.13 RC

* Fixed copy preserving sort order (#10091)

* Revert "Updated LightInject to v6.4.0"

This reverts commit fc77252ec7.

* Revert "Add copy logic to Media Picker (#9957)"

This reverts commit f7c032af65.

* Reintroduce old constructor to make non-breaking

* Update cypress test to make macros in the grid work again

* Attributes could be multiple items, test specifically if `Directory` is an attribute

* Accessibility: Adding label fors and control ids for the macro picker (#10101)

* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added support for label fors for the macro picker and also gave the ,acro search box a title

* Now displays a count of the matching macros returned. Please note the language file amends shared with #10100

* Removed src-only class for the display of the count of messages

* Updating typo

* Removed top-margin from switcher icon

* Allow KeepAlive controller Ping method to be requested by non local requests (#10126)

* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references

* fix csproj

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Justin Shearer <justin.shearer@gmail.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Callum Whyte <hey@callumwhyte.com>
Co-authored-by: Shannon <sdeminick@gmail.com>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: patrickdemooij9 <patrickdemooij98@hotmail.com>
Co-authored-by: Bjarne Fyrstenborg <bjarne_fyrstenborg@hotmail.com>
Co-authored-by: Michael Latouche <michael@crossingpaths.be>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
Co-authored-by: Markus Johansson <markus@obviuse.se>
Co-authored-by: Jeavon Leopold <jeavon@crumpled-dog.com>
Co-authored-by: Benjamin Carleski <benjamin@proworks.com>
Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>
Co-authored-by: Jesper Löfgren <jesper.lofgren@sappa.se>
Co-authored-by: Martin Bentancour <mbe@umbraco.dk>
Co-authored-by: Ronald Barendse <ronald@panoramastudios.nl>
Co-authored-by: Andy Butland <abutland73@gmail.com>
Co-authored-by: BeardinaSuit <BeardInASuit@outlook.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Rachel Breeze <RachBreeze@users.noreply.github.com>
Co-authored-by: Dave de Moel <d.demoel@wearetriple.com>
Co-authored-by: ric <60885685+ricbrady@users.noreply.github.com>
Co-authored-by: Carole Rennie Logan <crgrieve@users.noreply.github.com>
Co-authored-by: Dennis Öhman <dennis.ohman@bjornmamman.se>
2021-04-21 09:05:01 +10:00
Bjarke Berg 5830204bbc Add retry to flaky test 2021-04-20 19:44:56 +02:00
Bjarke Berg 4caa4e9e1c Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2021-04-20 19:37:24 +02:00
Bjarke Berg b3a9730442 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Cache/MediaCacheRefresher.cs
#	src/Umbraco.Core/Composing/ComponentCollection.cs
#	src/Umbraco.Core/Composing/Composers.cs
#	src/Umbraco.Core/Composing/TypeFinder.cs
#	src/Umbraco.Core/Composing/TypeLoader.cs
#	src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
#	src/Umbraco.Core/Constants-SvgSanitizer.cs
#	src/Umbraco.Core/ContentApps/ContentAppFactoryCollection.cs
#	src/Umbraco.Core/Extensions/PublishedContentExtensions.cs
#	src/Umbraco.Core/Extensions/PublishedPropertyExtension.cs
#	src/Umbraco.Core/Extensions/StringExtensions.cs
#	src/Umbraco.Core/HealthChecks/Checks/Security/ExcessiveHeadersCheck.cs
#	src/Umbraco.Core/HealthChecks/HealthCheckResults.cs
#	src/Umbraco.Core/IO/FileSystems.cs
#	src/Umbraco.Core/IO/IOHelper.cs
#	src/Umbraco.Core/IO/MediaFileSystem.cs
#	src/Umbraco.Core/IO/PhysicalFileSystem.cs
#	src/Umbraco.Core/Logging/DebugDiagnosticsLogger.cs
#	src/Umbraco.Core/Logging/DisposableTimer.cs
#	src/Umbraco.Core/Logging/ILogger.cs
#	src/Umbraco.Core/Logging/LogProfiler.cs
#	src/Umbraco.Core/Logging/OwinLogger.cs
#	src/Umbraco.Core/Manifest/ManifestWatcher.cs
#	src/Umbraco.Core/Mapping/UmbracoMapper.cs
#	src/Umbraco.Core/Media/UploadAutoFillProperties.cs
#	src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/DataTypes/PreValueMigratorCollection.cs
#	src/Umbraco.Core/Models/Mapping/ContentPropertyBasicMapper.cs
#	src/Umbraco.Core/Models/Mapping/DataTypeMapDefinition.cs
#	src/Umbraco.Core/Models/Mapping/MacroMapDefinition.cs
#	src/Umbraco.Core/Models/Member.cs
#	src/Umbraco.Core/Packaging/PackageActionRunner.cs
#	src/Umbraco.Core/PropertyEditors/DataValueEditor.cs
#	src/Umbraco.Core/PropertyEditors/Validators/EyeDropperColorPickerConfigurationEditor.cs
#	src/Umbraco.Core/PropertyEditors/Validators/EyeDropperColorPickerPropertyEditor.cs
#	src/Umbraco.Core/Routing/DefaultUrlProvider.cs
#	src/Umbraco.Core/Runtime/CoreRuntime.cs
#	src/Umbraco.Core/Runtime/MainDom.cs
#	src/Umbraco.Core/RuntimeState.cs
#	src/Umbraco.Core/Scoping/ScopeProvider.cs
#	src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
#	src/Umbraco.Core/Templates/HtmlUrlParser.cs
#	src/Umbraco.Core/UriExtensions.cs
#	src/Umbraco.Examine.Lucene/UmbracoContentIndex.cs
#	src/Umbraco.Examine.Lucene/UmbracoExamineIndex.cs
#	src/Umbraco.Infrastructure/Examine/IndexRebuilder.cs
#	src/Umbraco.Infrastructure/Manifest/DataEditorConverter.cs
#	src/Umbraco.Infrastructure/Manifest/ManifestParser.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
#	src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypeMigration.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DropDownPropertyEditorsMigration.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/MergeDateAndDateTimePropertyEditor.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxPropertyEditorsMigration.cs
#	src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs
#	src/Umbraco.Infrastructure/Persistence/UmbracoDatabase.cs
#	src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerValueEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/GridValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs
#	src/Umbraco.Infrastructure/PublishedCache/PublishedContentTypeCache.cs
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Infrastructure/Scoping/Scope.cs
#	src/Umbraco.Infrastructure/Search/ExamineNotificationHandler.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs
#	src/Umbraco.Infrastructure/Services/Implement/LocalizedTextServiceFileSources.cs
#	src/Umbraco.Infrastructure/Services/Implement/MediaService.cs
#	src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs
#	src/Umbraco.Infrastructure/Sync/ServerMessengerBase.cs
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComposer.cs
#	src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs
#	src/Umbraco.PublishedCache.NuCache/ContentStore.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentEventsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Mapping/MappingTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs
#	src/Umbraco.Tests/Composing/TypeLoaderTests.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/DictionaryPublishedContent.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/PreviewContent.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMediaCache.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStoreFilePersister.cs
#	src/Umbraco.Tests/Services/ContentServicePerformanceTest.cs
#	src/Umbraco.Tests/Services/PerformanceTests.cs
#	src/Umbraco.Tests/TestHelpers/ConsoleLogger.cs
#	src/Umbraco.Tests/Testing/TestingTests/MockTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ExamineManagementController.cs
#	src/Umbraco.Web.BackOffice/HealthChecks/HealthCheckController.cs
#	src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs
#	src/Umbraco.Web.BackOffice/Services/IconService.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
#	src/Umbraco.Web.Common/Extensions/FormCollectionExtensions.cs
#	src/Umbraco.Web.Common/Install/InstallApiController.cs
#	src/Umbraco.Web.Common/Macros/MacroRenderer.cs
#	src/Umbraco.Web.Common/ModelsBuilder/PureLiveModelFactory.cs
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.Client/src/views/memberTypes/copy.controller.js
#	src/Umbraco.Web.UI.Client/src/views/memberTypes/copy.html
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/config/splashes/noNodes.aspx
#	src/Umbraco.Web/AspNet/AspNetHttpContextAccessor.cs
#	src/Umbraco.Web/Cache/DistributedCacheBinder.cs
#	src/Umbraco.Web/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/Binders/ContentModelBinderHelper.cs
#	src/Umbraco.Web/Editors/ContentControllerBase.cs
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/Editors/DictionaryController.cs
#	src/Umbraco.Web/Editors/MemberTypeController.cs
#	src/Umbraco.Web/Editors/PasswordChanger.cs
#	src/Umbraco.Web/Editors/RelationTypeController.cs
#	src/Umbraco.Web/Editors/TinyMceController.cs
#	src/Umbraco.Web/HealthCheck/Checks/Security/HttpsCheck.cs
#	src/Umbraco.Web/HtmlHelperRenderExtensions.cs
#	src/Umbraco.Web/HttpUrlHelperExtensions.cs
#	src/Umbraco.Web/HybridEventMessagesAccessor.cs
#	src/Umbraco.Web/ImageCropperTemplateExtensions.cs
#	src/Umbraco.Web/JavaScript/ClientDependencyConfiguration.cs
#	src/Umbraco.Web/Mvc/RenderMvcController.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
#	src/Umbraco.Web/Routing/ContentFinderByConfigured404.cs
#	src/Umbraco.Web/Routing/ContentFinderByIdPath.cs
#	src/Umbraco.Web/Routing/ContentFinderByRedirectUrl.cs
#	src/Umbraco.Web/Routing/ContentFinderByUrl.cs
#	src/Umbraco.Web/Routing/ContentFinderByUrlAlias.cs
#	src/Umbraco.Web/Routing/ContentFinderByUrlAndTemplate.cs
#	src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
#	src/Umbraco.Web/Routing/PublishedRouter.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
#	src/Umbraco.Web/Scheduling/KeepAlive.cs
#	src/Umbraco.Web/Scheduling/ScheduledPublishing.cs
#	src/Umbraco.Web/Scheduling/TempFileCleanup.cs
#	src/Umbraco.Web/Security/MembershipHelper.cs
#	src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
#	src/Umbraco.Web/Trees/MemberTreeController.cs
#	src/Umbraco.Web/Trees/MemberTypeAndGroupTreeControllerBase.cs
#	src/Umbraco.Web/Trees/MemberTypeTreeController.cs
#	src/Umbraco.Web/UmbracoApplicationBase.cs
#	src/Umbraco.Web/UmbracoInjectedModule.cs
#	src/Umbraco.Web/UmbracoModule.cs
#	src/Umbraco.Web/WebApi/AngularJsonMediaTypeFormatter.cs
#	src/Umbraco.Web/WebApi/Filters/FileUploadCleanupFilterAttribute.cs
#	src/Umbraco.Web/WebApi/UnhandledExceptionLogger.cs
2021-04-20 19:34:18 +02:00
MoleandGitHub 99c0341692 Merge pull request #10156 from umbraco/netcore/feature/cache_macros_per_member_and_make_render_macro_async
Netcore: Fix cache macros per member and make render macro async
2021-04-20 15:46:08 +02:00
Bjarke Berg 5afc509d5e Fix member cached macros and change macro rendering to be async 2021-04-20 14:26:25 +02:00
Mads Rasmussen 0d600ee310 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-04-20 13:28:37 +02:00
Chad Currie 5f45e6fd83 Provide capacity values for DictionaryOfPropertyDataSerializer 2021-04-20 22:42:24 +12:00
Andy ButlandandGitHub 25cb707e3e Merge pull request #10154 from umbraco/netcore/task/further-internals-public-for-package-use
Made two further classes public to provide access for Forms and other packages.
2021-04-20 12:32:19 +02:00
Andy Butland 7162d2f05f Made two further classes public to provide access for Forms and other packages. 2021-04-20 12:20:49 +02:00
8123fee867 Netcore: Migrate RepositoryBase and ContentTypeServiceBase events (#10141)
* Remove ScopeEntityRemove from ContentRepositoryBase and rely on "ing" notifications

* Remove old event handler from ContentEventsTests

* Remove ScopedVersionRemove from ContentRepositoryBase and rely on service notifications instead

* Remove unused ScopedVersionEventArgs from ContentRepositoryBase

* Migrate ScopeEntityRefresh to notification pattern

Unfortunately it's still published from the repository base

* Add simple content type notifications

* Publish Notifications instead of events in ContentTypeServiceBase for simple events

* Switch OnChanged to use Notifications for ContentTypeServices

* Publish notifications instead of raising ScopedRefreshedEntity on ContentTypeServiceBase

* Hook up to the new ContentType notifications

* Remove DistributedCacheBinderTests

There are no longer any events to really test on.

* Remove ContentTypeChange EventArgs

* Remove ContentService_Copied from DistributedCacheBinder

It's no longer used

* Cleanup

* Cleanup

* Removed uncommented code

* Fixed issue with unattented installs

* Re-add ContentTreeChangeNotification to DistributedCache

* Add new notification for ScopedEntityRemove

Marked as obsolete/hidden in editor, since this should only be used for nucache for now, and should really be changed in the future

* Mark Refresh notifications as obsolete/hidden

These should not be used anywhere outside Nucache, and should be changed to tree change at some point.

* Raise ScopedEntityRemoveNotification on repos and use in nucache

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-20 12:17:11 +02:00
Niels Lyngsø 021c0b82c1 final corrections 2021-04-20 11:35:40 +02:00
Niels Lyngsø eeb30db36d Merge remote-tracking branch 'origin/v8/bugfix/use-warning-message-style-when-saving' into v8/bugfix/always-ignorer-validation-when-saving
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
2021-04-20 11:16:20 +02:00
Niels Lyngsø 12cde0c571 Use warning style when saving 2021-04-20 11:10:07 +02:00
Shannon dc08997040 Removes usages of UpgradeableReadLock 2021-04-20 18:02:23 +10:00
Shannon bf7a3251d8 Ensure more ReaderWriterLockSlim are disposed or converted 2021-04-20 17:56:55 +10:00
Shannon 7e332b23c9 Fixes ConcurrentHashSet to just use a ConcurrentDictionary as it's underlying source and remove the ReaderWriterLockSlim since we are never disposing this. Makes IdkMap disposable. 2021-04-20 17:14:34 +10:00
6c660d5721 Security stamp implementation for members (#10140)
* Getting new netcore PublicAccessChecker in place

* Adds full test coverage for PublicAccessChecker

* remove PublicAccessComposer

* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller

* Implements the required methods on IMemberManager, removes old migrated code

* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops

* adds note

* adds note

* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.

* Changes name to IUmbracoEndpointBuilder

* adds note

* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect

* fixing build

* Updates user manager to correctly validate password hashing and injects the IBackOfficeUserPasswordChecker

* Merges PR

* Fixes up build and notes

* Implements security stamp and email confirmed for members, cleans up a bunch of repo/service level member groups stuff, shares user store code between members and users and fixes the user identity object so we arent' tracking both groups and roles.

* Security stamp for members is now working

* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.

* adds note

* removes unused filter, fixes build

* fixes WebPath and tests

* Looks up entities in one query

* remove usings

* Fix test, remove stylesheet

* Set status code before we write to response to avoid error

* Ensures that users and members are validated when logging in. Shares more code between users and members.

* merge changes

* oops

* Fixes RepositoryCacheKeys to ensure the keys are normalized

* oops didn't mean to commit this

* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy

* oops didn't mean to comit this

* bah, far out this keeps getting recommitted. sorry

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-20 09:13:40 +02:00
Shannon b75a786551 Ensures the ReaderWriterLockSlim within our caches are disposed at the end of the app 2021-04-20 16:41:11 +10:00
Shannon e775497c5e Removes ReaderWriterLockSlim from PropertyGroupCollection and PropertyTypeCollection. No lock should exist here at all not even sure why it's there (Based on 9yr old code). I'm pretty sure it's there because these entities used to be cached (and not cloned) which meant it was the same instance used between threads. 2021-04-20 16:09:52 +10:00
de28fbb0a4 Member password roll forward (#10138)
* Getting new netcore PublicAccessChecker in place

* Adds full test coverage for PublicAccessChecker

* remove PublicAccessComposer

* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller

* Implements the required methods on IMemberManager, removes old migrated code

* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops

* adds note

* adds note

* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.

* Changes name to IUmbracoEndpointBuilder

* adds note

* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect

* fixing build

* Updates user manager to correctly validate password hashing and injects the IBackOfficeUserPasswordChecker

* Merges PR

* Fixes up build and notes

* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.

* adds note

* removes unused filter, fixes build

* fixes WebPath and tests

* Looks up entities in one query

* remove usings

* Fix test, remove stylesheet

* Set status code before we write to response to avoid error

* Ensures that users and members are validated when logging in. Shares more code between users and members.

* Fixes RepositoryCacheKeys to ensure the keys are normalized

* oops didn't mean to commit this

* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy

* oops didn't mean to comit this

* bah, far out this keeps getting recommitted. sorry

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-20 07:45:35 +02:00
a1624d26a3 Implements Public Access in netcore (#10137)
* Getting new netcore PublicAccessChecker in place

* Adds full test coverage for PublicAccessChecker

* remove PublicAccessComposer

* adjust namespaces, ensure RoleManager works, separate public access controller, reduce content controller

* Implements the required methods on IMemberManager, removes old migrated code

* Updates routing to be able to re-route, Fixes middleware ordering ensuring endpoints are last, refactors pipeline options, adds public access middleware, ensures public access follows all hops

* adds note

* adds note

* Cleans up ext methods, ensures that members identity is added on both front-end and back ends. updates how UmbracoApplicationBuilder works in that it explicitly starts endpoints at the time of calling.

* Changes name to IUmbracoEndpointBuilder

* adds note

* Fixing tests, fixing error describers so there's 2x one for back office, one for members, fixes TryConvertTo, fixes login redirect

* fixing build

* Fixes keepalive, fixes PublicAccessMiddleware to not throw, updates startup code to be more clear and removes magic that registers middleware.

* adds note

* removes unused filter, fixes build

* fixes WebPath and tests

* Looks up entities in one query

* remove usings

* Fix test, remove stylesheet

* Set status code before we write to response to avoid error

* Ensures that users and members are validated when logging in. Shares more code between users and members.

* Fixes RepositoryCacheKeys to ensure the keys are normalized

* oops didn't mean to commit this

* Fix casing issues with caching, stop boxing value types for all cache operations, stop re-creating string keys in DefaultRepositoryCachePolicy

* bah, far out this keeps getting recommitted. sorry

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-04-20 07:11:45 +02:00
Sebastiaan Janssen a3e3e83a3d Bump version to 8.13.0 2021-04-19 17:34:01 +02:00
Sebastiaan Janssen f1e4fec4c4 Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)"
This reverts commit 52b670973d.
2021-04-19 17:31:53 +02:00
Sebastiaan Janssen 57ed4698f0 Revert "Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)"
This reverts commit 156c1c9416.
2021-04-19 17:31:09 +02:00
MoleandGitHub 385cc62523 Merge pull request #10142 from umbraco/netcore/feature/migrate-database-schema-creator-events
Netcore: Migrate DatabaseSchemaCreation events to notifications
2021-04-19 08:09:10 +02:00
Mole d98141244e Add EventMessages 2021-04-16 15:00:27 +02:00
Mole d31a9859b2 Make DatabaseSchema notifications stateful 2021-04-16 14:51:56 +02:00
Bjarke BergandGitHub 02b03a45f2 Merge pull request #10124 from umbraco/netcore/feature/AB11314-migrate-content-service-events
Netcore: Migrate ContentService events
2021-04-16 14:04:45 +02:00
MoleandGitHub 0c3788eba1 Merge pull request #10061 from umbraco/v8/feature/AB10632-recycle-bin-smells-caching
RecycleBinSmells caching
2021-04-16 13:14:33 +02:00
Mole 44c59db649 Migrate DatabaseCreation events to notifications 2021-04-16 11:58:29 +02:00
Andy ButlandandGitHub a8cdbc8697 Merge pull request #10136 from umbraco/netcore/feature/make-internal-classes-public
Removed project configuration to expose internals to Forms and made the two used internal dependencies public.
2021-04-15 14:36:10 +02:00
Andy Butland 19a9caf47b Removed project configuration to expose internals to Forms and made the two used internal dependencies public. 2021-04-15 12:49:47 +02:00
Andy Butland 12d5bdc552 Temporary commit to remove exposing of internals to Forms. 2021-04-15 12:06:13 +02:00
Elitsa Marinovska 7d09de6d0f Removing unused param 2021-04-15 10:33:21 +02:00
Bjarke Berg f1dbf6584b Adds separate call for css assets 2021-04-15 09:52:55 +02:00
Elitsa Marinovska 8e14543616 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB10632-recycle-bin-smells-caching 2021-04-15 09:02:53 +02:00
Elitsa Marinovska 038afa5664 Fixing tests after adding the new event related to EmptiedRecycleBin 2021-04-15 09:00:58 +02:00
Elitsa Marinovska 2534f99cdb Adding new RecycleBin event handlers 2021-04-14 16:55:37 +02:00
Warren Buckley f6e4089581 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-04-13 08:46:26 +01:00
Warren Buckley 01b4094753 Merge branch 'v8/prototype/doctype-tabs' of https://github.com/umbraco/Umbraco-CMS into v8/prototype/doctype-tabs 2021-04-13 08:46:12 +01:00
Bjarke BergandGitHub 03002e16d3 Merge pull request #10117 from umbraco/netcore/task/member-macros-10577
Members working on the front-end with macro updates
2021-04-13 07:14:33 +02:00
Bjarke BergandGitHub 0da145950e Merge pull request #10123 from umbraco/netcore/bugfix/only-process-cache-notification-once
Netcore: Only process each cache instruction from DatabaseServerMessenger once.
2021-04-13 07:07:21 +02:00
Shannon c2d5ab99d7 Adds explicit scopes for single transactions in member controllers 2021-04-13 11:53:42 +10:00
JeavonandGitHub c8b6841ef1 Allow KeepAlive controller Ping method to be requested by non local requests (#10126)
* Allow KeepAlive controller Ping method to be requested by non local requests and accept head requests

* removed unused references
2021-04-13 03:10:44 +02:00
Bjarke BergandGitHub 9e2546191d Merge pull request #10125 from umbraco/netcore/bugfix/AB11317-mb-issue
NetCore: Types from MB-generated models are not recognized without namespace value
2021-04-12 19:09:35 +02:00
Bjarke Berg 9b5513ae4f AB11317 - Fix tests by adding the namespace 2021-04-12 18:19:04 +02:00
Elitsa Marinovska 201bac8c37 Setting the default value for the namespace of the generated models by MB 2021-04-12 16:21:08 +02:00
Mole 6f29eb7dc2 Change ContentEventsTests to support the new notification pattern. 2021-04-12 16:13:22 +02:00
de4a7eff85 Fixes some property editors ensuring ngModelController(#10013)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-04-12 15:19:32 +02:00
Mole 3ecf8eb9ea Migrate TreeChanged to notification in ContentService 2021-04-12 15:03:40 +02:00
18fa631f1c use paste-resolvers (#10121)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-04-12 14:38:52 +02:00
Mole 8206defcf2 Add ContentTreeChangeNotification 2021-04-12 14:27:00 +02:00
Mole b117f006c0 Only process each CacheInstruction once. 2021-04-12 13:27:25 +02:00
8d8fb2d15c Dont show block catalogue if only one block is available. Enable ente… (#9575)
* Dont show block catalogue if only one block is available. Enable entering clipboard directly.

* corrected button states

* jump clipboard icon when adding items to the clipboard.

* fix merge issue

* add missing eventsService

* correcting missing parts from Merge

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-04-12 12:27:12 +02:00
Shannon 5d9cf8254e removes tests that were just testing the framework 2021-04-12 18:23:53 +10:00
Shannon 237e26da1e fix tests 2021-04-12 18:02:43 +10:00
Bjarke Berg 028396a0f5 Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2021-04-12 09:54:51 +02:00
Bjarke Berg a91b44e299 Moved extensions for website from Umbraco.Web to Umbraco.Web.Website 2021-04-12 09:54:16 +02:00
Shannon 88aebb44ad Fixes up tests and adds tests for updating member 2021-04-12 17:50:05 +10:00
Shannon 5ed5f0cacb Fixes test 2021-04-12 16:42:25 +10:00
Dennis ÖhmanandMichael Latouche 4f49e57573 Removed top-margin from switcher icon 2021-04-12 02:29:05 +02:00
Carole Rennie LoganandMichael Latouche 3b6de9cb9e Updating typo 2021-04-10 02:47:49 +02:00
Rachel BreezeandGitHub e21cc6f97e Accessibility: Adding label fors and control ids for the macro picker (#10101)
* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added support for label fors for the macro picker and also gave the ,acro search box a title

* Now displays a count of the matching macros returned. Please note the language file amends shared with #10100

* Removed src-only class for the display of the count of messages
2021-04-10 02:34:18 +02:00
MoleandGitHub 3dd6fcf782 Merge pull request #10118 from umbraco/netcore/feature/move-notifications-to-core
Move notifications to core instead of infrastructure
2021-04-09 15:09:26 +02:00
Bjarke Berg ba6eea4f6f Move notifications to core instead of infrastructure 2021-04-09 13:43:39 +02:00
Bjarke BergandGitHub 578c1d1c0f Merge pull request #9959 from umbraco/netcore/bugfix/typeloader-deadlock
Fix dead lock with TypeLoader
2021-04-09 12:27:10 +02:00
Bjarke BergandGitHub c2273b0d47 Merge pull request #10092 from umbraco/netcore/feature/media-tree-changed-notification
Netcore: Migrate MediaService tree changed notification
2021-04-09 12:25:45 +02:00
Bjarke Berg 4405b219c9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/media-tree-changed-notification
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
2021-04-09 11:42:15 +02:00
MoleandGitHub 3c481074d0 Merge pull request #10080 from umbraco/netcore/feature/fileservice-events
Netcore: Migrate fileservice events
2021-04-09 10:45:21 +02:00
Mole b4f9dc7b66 Make CreateTemplateForContentType non nullable and default to false. 2021-04-09 09:59:53 +02:00
Mole 7405191e03 Store dictionary keys as constants 2021-04-09 09:43:50 +02:00
Mole 13a6e11783 Re add check for CreateTemplateForContentType in ModelsBuilderNotificationHandler 2021-04-09 09:39:49 +02:00
Mole a04320aaa1 Clean up the old stuff in FileService 2021-04-09 09:27:17 +02:00
Mole 2eaf73d0e6 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/fileservice-events 2021-04-09 09:12:53 +02:00
Mole 1ea9a0196e Store additional data for TemplateSaving/ed in state 2021-04-09 09:10:59 +02:00
Shannon 5ce7127beb Fixes remapping the key, allows for including/excluding custom properties on profile editing too. 2021-04-09 16:49:17 +10:00
Shannon a745ef54a7 fix model binding and more stuff in views 2021-04-09 16:31:03 +10:00
Shannon 8ea88a980a Fixes anti-forgery, fixes tempdata, adds front-end security/identity, gets member macro snippets and controllers all working, removes old code, adds more props to the member identity 2021-04-09 15:24:12 +10:00
Bjarke Berg 4eb7f255d8 Fixed missing registration after merge of members 2021-04-08 12:05:07 +02:00
Sebastiaan Janssen b0592f1126 Merge branch 'v8/dev' into v8/contrib 2021-04-07 16:27:34 +02:00
Sebastiaan Janssen 8c20e252dc Merge branch 'v8/8.13' into v8/dev 2021-04-07 16:26:48 +02:00
Sebastiaan Janssen ecf67669ce Attributes could be multiple items, test specifically if Directory is an attribute 2021-04-07 16:25:46 +02:00
Sebastiaan Janssen 9fdbbb54fb Update cypress test to make macros in the grid work again 2021-04-07 15:44:28 +02:00
MoleandGitHub f6eb8c9dbb Merge pull request #9995 from umbraco/v8/feature/10615-mappers-with-explicit-scope
Create explicit scope for mappers in UmbracoMapper
2021-04-07 14:58:39 +02:00
Bjarke Berg 1106728693 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/fileservice-events
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
#	src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs
2021-04-07 14:34:34 +02:00
Bjarke BergandGitHub a9a64ff3d1 Merge pull request #10089 from umbraco/netcore/feature/relationservice-events
Netcore: Migrate relationservice events
2021-04-07 14:25:34 +02:00
Mole 8b6fc762b5 Reintroduce old constructor to make non-breaking 2021-04-07 13:54:42 +02:00
Sebastiaan Janssen 9d5a5d886e Merge branch 'v8/dev' into v8/contrib 2021-04-07 13:45:38 +02:00
Sebastiaan Janssen 2d2a89f216 Revert "Add copy logic to Media Picker (#9957)"
This reverts commit f7c032af65.
2021-04-07 13:42:46 +02:00
Bjarke Berg d4dd6427ba Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/relationservice-events
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
2021-04-07 13:33:46 +02:00
Bjarke BergandGitHub a184271196 Merge pull request #10090 from umbraco/netcore/feature/domainservice-events
Netcore: Migrate domainservice events
2021-04-07 13:24:03 +02:00
Bjarke Berg ac7754c911 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/domainservice-events
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
2021-04-07 12:45:18 +02:00
Bjarke Berg 89fe65d45c Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/domainservice-events 2021-04-07 12:43:43 +02:00
Bjarke BergandGitHub c8884acbfa Merge pull request #10075 from umbraco/netcore/feature/macroservice-notifications
Netcore: Migrate macroservice events
2021-04-07 12:36:28 +02:00
Shannon 461be27bb1 Merge remote-tracking branch 'origin/netcore/dev' into netcore/task/member-macros-10577 2021-04-07 18:24:57 +10:00
Shannon DeminickandGitHub 7a5f348659 Merge pull request #9985 from emmagarland/netcore/members-signin-manager
Netcore/members signin manager [merge after roles]
2021-04-07 16:58:14 +10:00
Shannon 23aadbd335 Merge remote-tracking branch 'umbraco/netcore/dev' into netcore/members-signin-manager 2021-04-07 15:53:11 +10:00
Bjarke Berg 18be347333 Fix todo by checking explicitly for Umbraco Core assembly names instead of "Umbraco.", to avoid special case forms, deploy etc. 2021-04-06 18:46:38 +02:00
Sebastiaan Janssen d85d0d75f3 Revert "Updated LightInject to v6.4.0"
This reverts commit fc77252ec7.
2021-04-06 16:13:40 +02:00
ricandGitHub 26d11a8314 Fixed copy preserving sort order (#10091) 2021-04-06 13:44:49 +01:00
Sebastiaan Janssen 89b881e98e Bump version to 8.13 RC 2021-04-06 10:11:46 +02:00
Sebastiaan Janssen 3358ab2604 Also make sure NuGet installs the correct version of the CodePages dependency 2021-04-06 10:08:10 +02:00
Sebastiaan Janssen c84f616a17 Remove HtmlSanitizer once more - see #9803 2021-04-06 10:08:10 +02:00
Dave de MoelandSebastiaan Janssen fc77252ec7 Updated LightInject to v6.4.0 2021-04-06 09:35:12 +02:00
Bjarke Berg 32e1b8361f Fix for members build issue 2021-04-06 08:23:07 +02:00
Bjarke Berg ab39f9635c Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2021-04-06 07:54:02 +02:00
Bjarke Berg 8bc79f9234 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/ConfigsExtensions.cs
#	src/Umbraco.Core/Configuration/GlobalSettings.cs
#	src/Umbraco.Core/Constants-AppSettings.cs
#	src/Umbraco.Core/Dashboards/ContentDashboard.cs
#	src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Web.BackOffice/Controllers/DashboardController.cs
2021-04-06 07:53:17 +02:00
Rachel BreezeandGitHub db6d572235 Accessibility: Alerts the user how many results have been returned on a tree search (#10100)
* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Tree search details the number of search items returned

* Add French translations
2021-04-06 03:50:14 +02:00
Rachel BreezeandGitHub 739d9a8188 Improved accessibility of link picker (#10099)
* Added support for screeen reader alerts on the embed so that assitive technology knows when a url retrieve has been succesfull.
Added labels for the controls
Preview reload only triggered if the values for height and width change

* Added control ids for the link picker

* Add French translation
2021-04-06 03:44:14 +02:00
Mads RasmussenandNathan Woulfe f549a36593 fixes #10021 adds ng-form and val-form-manager to the documentation 2021-04-06 07:42:05 +10:00
patrickdemooij9andGitHub f8e280e0b4 9962: Use $allowedEditors instead of allowed (#10086)
* 9962: Use $allowedEditors instead of allowed

* 9962: Remove redundant statement
2021-04-04 02:16:02 +02:00
Bjarne FyrstenborgandMichael Latouche f83f465211 Fix validation of step size in integer/numeric field 2021-04-03 02:59:24 +02:00
Andy Butland aae7fc955f Made web layer internals visible to Umbraco Forms assemblies. 2021-04-02 11:48:21 +02:00
Andy ButlandandGitHub 838f0f57d2 Merge pull request #10093 from umbraco/netcore/feature/forms-internals-visible
Netcore: Made internals visible to Umbraco Forms assemblies
2021-04-01 08:01:58 +02:00
Andy Butland 1d9dbff72e Removed unnecessary V9 suffixes. 2021-03-31 19:49:54 +02:00
Andy Butland 9381c2e915 Added internals visible to configuration for Umbraco Forms. 2021-03-31 19:45:48 +02:00
Sebastiaan Janssen d428a4543f Merge branch 'v8/dev' into v8/contrib 2021-03-31 17:27:13 +02:00
Sebastiaan Janssen d7519e29d0 Merge branch 'v8/8.12' into v8/dev 2021-03-31 17:26:25 +02:00
Mole 572da4b466 Define TreeChange as the type in TreeChangeNotification instead of MediaTreeChangeNotification 2021-03-31 15:41:06 +02:00
Mole 6d751fc6e5 Move TreeChangeNotification to core 2021-03-31 15:32:41 +02:00
Mole 14739478b2 Use constructor to create TreeChange objects 2021-03-31 15:25:59 +02:00
Mole a4ce1f0ba3 Changed treechanged to use notification pattern 2021-03-31 15:23:39 +02:00
Bjarne FyrstenborgandSebastiaan Janssen 72e468428a Null check on scope and options to ensure backward compatibility
(cherry picked from commit fe8cd239d2)
2021-03-31 14:42:05 +02:00
Mole e651742887 Migrate events 2021-03-31 13:30:55 +02:00
Mole addf3326dc Add notification classes 2021-03-31 13:19:00 +02:00
Sebastiaan Janssen e8a9c4da2e Merge branch 'v8/dev' into v8/contrib 2021-03-31 13:01:25 +02:00
Sebastiaan Janssen 2f60a471b3 Merge branch 'v8/8.12' into v8/dev 2021-03-31 13:00:32 +02:00
Sebastiaan Janssen acaf1941fe Merge branch 'v8/8.11' into v8/8.12 2021-03-31 12:59:56 +02:00
Mads RasmussenandSebastiaan Janssen 15923aafc7 Fixes tabbing-mode remains active after closing modal #9790 (#10074)
(cherry picked from commit c881fa9e7d)
2021-03-31 12:55:48 +02:00
Mole a7072277ba Migrate events 2021-03-31 12:49:37 +02:00
Bjarne FyrstenborgandGitHub d08b84d28f Allow to pass in boolean to preventEnterSubmit directive (#8639)
* Pass in value to preventEnterSubmit directive

* Set enabled similar to preventDefault and preventEnterSubmit directives

* Update prevent enter submit value

* Init value from controller

* Use a different default input id prefix for umb-search-filter

* Fix typo

* Check for truthly value

* Revert "Set enabled similar to preventDefault and preventEnterSubmit directives"

This reverts commit 536ce855c4.

* None pointer events when clicking icon

* Use color variable
2021-03-31 10:01:33 +01:00
Mole b740d962d0 Merge branch 'netcore/dev' into netcore/feature/macroservice-notifications
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
2021-03-31 09:55:04 +02:00
Mole 0be2459ab6 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/fileservice-events
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComposer.cs
#	src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs
2021-03-31 09:51:08 +02:00
Mole cc24273124 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/relationservice-events 2021-03-31 09:46:47 +02:00
Mole 317363977e Migrate Deleting/ed relation 2021-03-31 09:46:05 +02:00
Mole 10c888bdfe Add IEnumerable constructor to DeleteNotification 2021-03-31 09:45:19 +02:00
MoleandGitHub 4c98b28520 Merge pull request #10069 from umbraco/netcore/notifications/datatypeservice
Events to Notifications Migration: DataType Service
2021-03-31 09:29:03 +02:00
Mole b211beb84a Add notification classes 2021-03-31 08:50:39 +02:00
Mads RasmussenandGitHub c881fa9e7d Fixes tabbing-mode remains active after closing modal #9790 (#10074) 2021-03-30 17:03:56 +02:00
BeardinaSuitandSebastiaan Janssen e7ce6a307e Handle Invalid format for Upgrade check 2021-03-30 15:08:00 +02:00
Mole dc9e60c36a Add null check for AdditionalData 2021-03-30 15:06:46 +02:00
Mole d844b62f84 TemplateSaved not TemplateSaving 2021-03-30 14:59:10 +02:00
Mole 7e3d0ecebc Migrate more events 2021-03-30 14:33:44 +02:00
Mole 52e31435cd Use notifications for saving and saved template
This was was a bit more interesting.
2021-03-30 14:01:37 +02:00
Nathan WoulfeandSebastiaan Janssen 958e25d4ba Revert updating deprecated WriterName/CreatorName refs
Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.
2021-03-30 13:22:04 +02:00
Mole 5c4a6b8f6e Use notifications instead of events. 2021-03-30 13:10:43 +02:00
Mole 84d98f48c7 Register notifications for DistributedCacheBinder 2021-03-30 11:14:50 +02:00
Warren Buckley 7b34b495af Implement the events now as notifications for DataType Service 2021-03-30 09:25:34 +01:00
Mole 1b3468303c Add notification classes 2021-03-30 10:01:42 +02:00
Warren Buckley e64a7818ad Merge remote-tracking branch 'origin/netcore/dev' into netcore/notifications/datatypeservice
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs
2021-03-30 08:53:18 +01:00
Warren Buckley 4c50c57c1f Remove unused eventAggregator 2021-03-30 08:48:45 +01:00
Andy ButlandandNathan Woulfe 6299ea0862 Orders member type grouping of members alphabetically, matching the listing of member types. 2021-03-30 17:31:46 +10:00
Mole f345589149 Switch MacroService to use Notifications and make it internal. 2021-03-29 15:09:26 +02:00
Mole 48a4620e1b Add macro notifications 2021-03-29 14:39:02 +02:00
MoleandGitHub 98784a62d1 Merge pull request #10070 from kjac/netcore/feature/membergroupservice-without-static-events
Remove static events from MemberGroupService
2021-03-29 14:14:39 +02:00
Mole 3029a85bc2 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/membergroupservice-without-static-events
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs
2021-03-29 13:46:06 +02:00
Mole ed2e79fa28 Merge branch 'netcore/dev' into netcore/feature/membergroupservice-without-static-events 2021-03-29 13:38:56 +02:00
Mole 62f62518f0 Make MemberGroupService internal 2021-03-29 13:38:46 +02:00
MoleandGitHub e72c98928a Merge pull request #9981 from kjac/netcore/feature/member-publicaccess-user-services-without-static-events
Remove static events from MemberService, UserService and PublicAccessService
2021-03-29 13:07:07 +02:00
Warren Buckley 44b90d5993 Implment a Renaming & Renamed notification for DataType Container 2021-03-29 11:08:14 +01:00
Mole b4cbf0cf5d Remove obsolete static events 2021-03-29 11:39:04 +02:00
Warren Buckley 6d73051bea Fixup failing unit test - we no longer using the EventArgs 2021-03-29 09:19:45 +01:00
Warren BuckleyandGitHub 01f3c93097 Merge branch 'netcore/dev' into netcore/notifications/datatypeservice 2021-03-29 08:57:44 +01:00
Warren Buckley 4ef6c798fc Remove leftover comments from migrating this over 2021-03-29 08:48:42 +01:00
Shannon 9fac0a1470 Fixes tests 2021-03-29 18:05:13 +11:00
Shannon 5f4818263f Fixes BackOfficeClaimsPrincipalFactory to use the correct auth type. Uses the correct UmbracoIdentityRole class, fixes up MemberSignInManagerTests, new MemberClaimsPrincipalFactory 2021-03-29 17:37:58 +11:00
Shannon eb8a180f1e Moves base signin manager logic to a base class 2021-03-29 16:24:55 +11:00
Shannon 9b8088f08b Merge remote-tracking branch 'umbraco/netcore/dev' into netcore/members-signin-manager 2021-03-29 15:43:52 +11:00
Shannon DeminickandGitHub 705b3bf775 Merge pull request #9946 from emmagarland/netcore/members-roles-save
Member group (identity role) and store
2021-03-29 15:40:03 +11:00
Ronald BarendseandGitHub dcc07fd612 Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)
* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods
2021-03-29 09:13:53 +10:00
Callum WhyteandNathan Woulfe 121ae2e8a9 Handling multiple values per field in Examine Management 2021-03-29 08:34:55 +10:00
Kenn Jacobsen 3f0539cf83 Remove static events from MemberGroupService 2021-03-26 18:47:06 +01:00
Kenn Jacobsen c113ca8eda Fixed merge conflicts 2021-03-26 16:49:16 +01:00
MoleandGitHub 59a3903168 Merge pull request #10067 from umbraco/netcore/feature/migrate-localization-service-events
Netcore: Migrate localization service events
2021-03-26 14:55:43 +01:00
Mole 32419835e2 Move DeletingNotification and make LocalizationService internal 2021-03-26 14:28:19 +01:00
Warren Buckley 3cd2d97226 Move last events to notifications 2021-03-26 12:23:27 +00:00
Warren Buckley e78b877619 Remove reference to old events 2021-03-26 12:18:10 +00:00
Warren Buckley 022c5feaf6 Notifications for EntityContainers in DataTypeService aka Folders for DataTypes 2021-03-26 10:44:07 +00:00
Warren Buckley 03782bca86 New generic Deleting Notification to match the DeletedNotification and Saving/Saved ones 2021-03-26 10:43:07 +00:00
Mads Rasmussen ecda94fa86 check for tabs overflow 2021-03-26 10:07:44 +01:00
Shannon 005a23958c remove todo 2021-03-26 16:52:42 +11:00
Shannon 29b1aa1b33 Refactor MemberRoleStore to not be generic and use our own UmbracoIdentityRole which has support for change tracking, uses builders for models in test 2021-03-26 16:43:49 +11:00
Shannon 48a2a0a357 remove httpcontext requirement from mapper 2021-03-26 15:54:45 +11:00
Shannon db3dc01321 removes todos, reverts tree controller, fixes up review notes. 2021-03-26 14:18:41 +11:00
nzdev 5f9d126ab7 fix support for non run states 2021-03-26 16:13:47 +13:00
Shannon 33b5f402b4 reverts MemberGroupController and removes TODOs 2021-03-26 14:06:17 +11:00
Bjarke Berg fbcaa6adea https://github.com/umbraco/Umbraco-CMS/issues/10060 - Fixed issue where appsettings section for modelsbuilder was not used. 2021-03-25 16:17:46 +01:00
Mole 6a81b31d84 Tentative fix for ScopedRepositoryTests
Caches are getting cleared because we can't unbind from events :(
2021-03-25 15:54:43 +01:00
Mole c8471b096c Switch to INotificationHandler 2021-03-25 14:51:00 +01:00
Shannon 2d2feb86bb Starts converting member macros 2021-03-26 00:22:11 +11:00
Elitsa Marinovska 05e9710ca6 Using an atomic operation when calling GetCacheItem - a callback is specified when the item isn't found 2021-03-25 13:29:27 +01:00
Elitsa Marinovska 19c17836aa Adding recycle bin smells caches at repository level 2021-03-25 12:54:46 +01:00
MoleandGitHub 499e4f0c42 Merge pull request #9999 from umbraco/v8/feature/AB10891-content-dashboard-config
Granting access to the content dashboard for all user groups
2021-03-25 12:03:33 +01:00
Elitsa Marinovska d2a26bf4da Caching RecycleBinSmells 2021-03-25 11:49:38 +01:00
Elitsa Marinovska f68d4d6968 Taking AllowContentDashboardAccessToAllUsers prop from GlobalSettings to ContentDashboardSettings and saving AccessRulesFromConfig into a backing field 2021-03-25 11:11:41 +01:00
MoleandGitHub 4993b93ef7 Merge pull request #10059 from umbraco/netcore/bugfix/add_tree_alias_to_tree_notifications
Added `TreeAlias` to tree notifications
2021-03-25 11:05:17 +01:00
Mole 18083b7155 Switch LocalizationService over to event aggregator 2021-03-25 09:00:38 +01:00
Bjarke Berg 8d61b3f067 https://github.com/umbraco/Umbraco-CMS/issues/10054 - Added TreeAlias to the remaining tree notifications 2021-03-25 07:05:08 +01:00
Bjarke Berg 69548e0b33 Fixed new tests to match namespaces from v9 2021-03-24 18:37:26 +01:00
Elitsa Marinovska 56d5704167 bool.Try 2021-03-24 16:15:21 +01:00
Bjarke Berg 202beba1bc Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Content/content.ts
2021-03-24 16:05:10 +01:00
Bjarke BergandGitHub bfc3068d6a Merge pull request #10056 from umbraco/v8/feature/new-cypress-content-tests
Add new cypress tests
2021-03-24 16:03:29 +01:00
Elitsa Marinovska 91ce071271 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/AB10891-content-dashboard-config 2021-03-24 15:43:33 +01:00
Elitsa Marinovska 61f486ebea Cleanup 2021-03-24 15:36:29 +01:00
Elitsa Marinovska 6e54c6fefd Implementation for IContentDashboardSettings 2021-03-24 15:34:05 +01:00
Elitsa Marinovska eabfa7f414 Getting rid of the config file and implementing an appSetting instead 2021-03-24 15:28:06 +01:00
Mole 64724ac85b Add indentation 2021-03-24 15:11:26 +01:00
Mole 70a582d1f0 Add new cypress tests 2021-03-24 15:04:34 +01:00
Bjarke Berg ef9dc447cd Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/languages.ts
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/templates.ts
#	src/Umbraco.Tests.AcceptanceTest/cypress/integration/Tour/backofficeTour.ts
#	src/Umbraco.Tests.AcceptanceTest/package.json
2021-03-24 15:03:03 +01:00
Mole 7a699c3fa9 Add notification classes 2021-03-24 14:29:15 +01:00
Bjarke BergandGitHub b723b4d377 Merge pull request #10045 from umbraco/v8/feature/update-cypress-and-fix-tests
Update cypress and fix tests
2021-03-24 14:26:06 +01:00
Bjarke BergandGitHub c41b05413a Merge pull request #10044 from umbraco/netcore/feature/acceptance_tests_on_azure
Netcore: Run acceptance tests on azure pipelines
2021-03-24 12:30:57 +01:00
Bjarke Berg efb9aacfe2 Bump version to beta001 2021-03-24 12:30:08 +01:00
Bjarke Berg 55354b969b Added continueOnError: true so the acceptance tests are not blocking a merge 2021-03-24 11:43:33 +01:00
Bjarke Berg f59d36624d Do not copy umbraco folder content to output folder. Only relevant for publish folder (as far as we know) 2021-03-24 11:05:50 +01:00
Mole f0b39ce890 Align 'Add language' test to netcore 2021-03-24 10:57:02 +01:00
Mole bffe1576d1 Try a fix for language tests 2021-03-24 10:06:15 +01:00
MoleandGitHub f3d1f39302 Merge pull request #10022 from umbraco/netcore/feature/package-dotnet-template
Netcore: Add package dotnet template and improved the templates
2021-03-24 09:42:19 +01:00
Bjarke Berg 68430c196e Do not copy umbraco folder content to output folder. Only relevant for publish folder (as far as we know) 2021-03-24 09:41:29 +01:00
Bjarke Berg 36ed141065 Add Linux acceptance tests - Trial 25 2021-03-24 08:02:35 +01:00
Bjarke Berg 4e2072af63 Add Linux acceptance tests - Trial 24 2021-03-24 08:00:31 +01:00
Bjarke Berg 68a3b5bc8c Add Linux acceptance tests - Trial 23 2021-03-24 07:47:19 +01:00
Bjarke Berg 6246d8e32d Add Linux acceptance tests - Trial 22 2021-03-24 07:22:31 +01:00
Bjarke Berg 9394a08c21 Add Linux acceptance tests - Trial 21 2021-03-24 07:16:47 +01:00
Bjarke Berg 3b4a14a615 Add Linux acceptance tests - Trial 20 2021-03-24 07:13:43 +01:00
Bjarke Berg 7210022068 Add Linux acceptance tests - Trial 19 2021-03-24 07:06:04 +01:00
Bjarke Berg 5fbacaf3c5 Add Linux acceptance tests - Trial 18 2021-03-24 06:52:28 +01:00
Bjarke Berg b4b5f211f3 Add Linux acceptance tests - Trial 17 2021-03-24 06:24:08 +01:00
Bjarke Berg 9f9c1ffbb0 Add Linux acceptance tests - Trial 16 2021-03-24 06:13:40 +01:00
Bjarke Berg fae00eb6d2 Add Linux acceptance tests - Trial 15 2021-03-24 05:58:40 +01:00
Bjarke Berg 7ef572c555 Add Linux acceptance tests - Trial 14 2021-03-24 05:50:49 +01:00
Martin BentancourandGitHub 9ac4eacdbd Anchor noopener (#10009)
* Set rel="noopener" for anchors with target="_blank"

* Reverted unwanted changes to Default.cshtml
2021-03-24 02:43:20 +01:00
Bjarne FyrstenborgandGitHub 11f123e7c4 Listview config icons (#10036)
* Update icons to use <umb-icon> component

* Simplify markup and use disabled button

* Use move cursor style on sortable handle

* Add class for action column

* Update setting auto focus

* Increase font size of umb-panel-header-icon
2021-03-24 08:04:33 +10:00
Bjarke Berg 17689bd6b3 Add Linux acceptance tests - Trial 13 2021-03-23 21:53:53 +01:00
Bjarke Berg 19ae71ea3f Add Linux acceptance tests - Trial 12 2021-03-23 21:50:54 +01:00
Bjarke Berg 5a77a097af Add Linux acceptance tests - Trial 11 2021-03-23 21:46:29 +01:00
Bjarke Berg 02cb808474 Add Linux acceptance tests - Trial 10 2021-03-23 21:45:20 +01:00
Bjarke Berg bb03d24458 Add Linux acceptance tests - Trial 9 2021-03-23 21:42:10 +01:00
Bjarke Berg 9ce54fa45b Add Linux acceptance tests - Trial 8 2021-03-23 21:36:58 +01:00
Bjarke Berg d399d2c46c Add Linux acceptance tests - Trial 7 2021-03-23 21:22:43 +01:00
Bjarke Berg 74dff277c3 Add Linux acceptance tests - Trial 6 2021-03-23 21:17:35 +01:00
Bjarke Berg fd4c12a448 Add Linux acceptance tests - Trial 5 2021-03-23 21:13:10 +01:00
Bjarke Berg 3d88203d7b Add Linux acceptance tests - Trial 4 2021-03-23 21:07:44 +01:00
Bjarke Berg c569232350 Add Linux acceptance tests - Trial 3 2021-03-23 21:00:50 +01:00
Bjarke Berg d534493c70 Add Linux acceptance tests - Trial 2 2021-03-23 20:58:50 +01:00
Bjarke Berg e49f8a0edf Add Linux acceptance tests - Trial 1 2021-03-23 20:52:45 +01:00
Bjarke Berg fdc1635399 More explicit about what folders to clear 2021-03-23 19:53:28 +01:00
Bjarke Berg d3d2571477 indentation 2021-03-23 19:28:15 +01:00
Bjarke Berg 782e7dfc90 Better descriptions 2021-03-23 19:16:44 +01:00
Bjarke Berg 876f4be7e6 Dont reuse variable. 2021-03-23 19:13:04 +01:00
Bjarke Berg 5be59da0a8 Dont reuse variable. 2021-03-23 18:40:20 +01:00
Bjarke Berg 4a8d033d24 Update version in both templates 2021-03-23 18:29:07 +01:00
MoleandGitHub 1d8f9fc1e0 Merge pull request #10028 from kjac/netcore/feature/avoid-css-minification-runtime
Do not apply runtime optimization to core CSS and CSS libraries
2021-03-23 15:27:45 +01:00
Bjarke Berg c6eefeb2d7 Always post test result 2021-03-23 14:04:55 +01:00
Mole 14c2bb4aa2 Update cypress and fix tests 2021-03-23 13:03:01 +01:00
Bjarke Berg da539b27c9 Updated targets to allow clear 2021-03-23 12:48:37 +01:00
Bjarke Berg cad4e9a0fe Fix wrong test result output file 2021-03-23 12:29:34 +01:00
Bjarke Berg 04df87984f Change test reporter to junit 2021-03-23 12:00:28 +01:00
Bjarke Berg 0f3bed13d5 Potential optimization - Build as part of run (in background process) 2021-03-23 11:54:02 +01:00
Mole 347ab9ffec Only publish artifacts on failed 2021-03-23 11:39:13 +01:00
Mole 25de77a8be Up retries to 5 and set language name back to Afrikaans 2021-03-23 09:55:14 +01:00
MoleandGitHub c487937f1d Merge pull request #10042 from umbraco/netcore/bugfix/10030-Fix-no-authenticationSchema-was-specified-bugs
Netcore: Fix no authentication schema was specified bugs
2021-03-23 09:51:46 +01:00
Mole f3aa3812c4 Remove videos if no test failed 2021-03-23 09:30:30 +01:00
Bjarke Berg ab9d31e01c https://github.com/umbraco/Umbraco-CMS/issues/10030 - Fixed the two issues reported. 2021-03-23 08:58:18 +01:00
Mole d8555d501c Add retries, fix two failing tests, and uncomment tablet & mobile tests 2021-03-23 08:51:48 +01:00
Bjarke Berg fa37ebc107 Changed default value of FlagOutOfDateModels to true (Like in v8) 2021-03-23 08:39:03 +01:00
Bjarke Berg df43f91396 Update azure-pipelines.yml for Azure Pipelines 2021-03-23 06:50:57 +01:00
Bjarke Berg b84e3e3bbc use condition istead of continueonerror 2021-03-23 06:47:51 +01:00
Bjarne FyrstenborgandGitHub ebd504e8c1 Replace icon in date picker with umb-icon component (#10040)
* Replace icon in date picker with <umb-icon> component

* Adjust height of clear button
2021-03-23 03:06:44 +01:00
Nathan WoulfeandMichael Latouche 95bf10e11b Unbind listener
Listening for splitViewRequest was only unbound if the split view editor was opened. Not cleaning up the listener caused a memory leak when changing between nodes as the spit view editor was detached but not garbage-collected
2021-03-23 02:46:39 +01:00
88611f30b5 9097 add contextual password helper (#9256)
* update back-office forms

* Display tip on reset password page as well

* add directive for password tip

* integrate directove in login screen

* forgot the ng-keyup :-)

* adapt tooltip directive to potential different Members and Users password settings

* remove watcher

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-23 08:07:50 +10:00
Bjarne FyrstenborgandNathan Woulfe 3d05bd6917 Update casing of listview layout name 2021-03-23 07:56:51 +10:00
f8f2029637 Improve performance, readability and handling of FollowInternalRedirects (#9889)
* Improve performance, readability and handling of FollowInternalRedirects

* Logger didn't like string param

Passing string param to _logger.Debug<PublishedRouter, int> wasn't happy. Changed to pass existing internalRedirectAsInt variable.

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-23 07:53:21 +10:00
Bjarke Berg 124dbd528b fix path 2021-03-22 21:03:44 +01:00
Bjarke Berg f5bd29a8a3 continue on error 2021-03-22 20:09:02 +01:00
Bjarke Berg 5ef26997a0 use npm run again , but with custom params 2021-03-22 19:44:59 +01:00
Bjarke Berg ab9f7bb151 try using npx 2021-03-22 19:26:59 +01:00
Bjarke Berg 3ac15011c8 Update azure-pipelines.yml for Azure Pipelines 2021-03-22 19:12:31 +01:00
Bjarke Berg 31c786d9fd changed slash vs backslash 2021-03-22 18:51:59 +01:00
Bjarke Berg b60fffe8e5 Run cypress with custom commands 2021-03-22 18:29:26 +01:00
Mole eeb5c1db7c Remove call website 2021-03-22 16:34:00 +01:00
Mole c1d701efff Try using -SkipCertificateCheck 2021-03-22 15:49:16 +01:00
Mole 0b2a3753bd Try hack to get around ssl 2021-03-22 15:23:15 +01:00
Mole 7d9efb014c Run site in separate process again. 2021-03-22 15:03:17 +01:00
Bjarke Berg 9cd33c1dd4 Update azure-pipelines.yml for Azure Pipelines 2021-03-22 14:51:40 +01:00
Bjarke Berg 74bfe97357 are \\ wrong for connectionstring.. 2021-03-22 14:43:27 +01:00
Bjarke Berg 0e14ab6b9f Update azure-pipelines.yml for Azure Pipelines 2021-03-22 14:34:03 +01:00
Bjarke Berg 3c3e22f7ff test with hardcoded values 2021-03-22 14:28:29 +01:00
Bjarke Berg 204c476486 syntax fix 2021-03-22 14:20:30 +01:00
Bjarke Berg cc221c684b nested variables names and create database 2021-03-22 14:11:09 +01:00
Bjarke Berg e9a3ed44cf test other connectionstring 2021-03-22 13:31:15 +01:00
Bjarke Berg 6b79ef18bc casing of local db instance name 2021-03-22 13:18:11 +01:00
Bjarke Berg 95724e24f4 remove jobs for acceptance tests 2021-03-22 13:06:14 +01:00
Bjarke Berg b921d5b770 Update azure-pipelines.yml for Azure Pipelines 2021-03-22 12:42:33 +01:00
Bjarke Berg b1e354778d Update azure-pipelines.yml for Azure Pipelines 2021-03-22 12:22:08 +01:00
Bjarke Berg 131f731b4c sleep and invoke web request 2021-03-22 11:59:50 +01:00
Bjarke Berg ff51b477eb Move dotnet run 2021-03-22 11:22:23 +01:00
Bjarke Berg 9317e45dc6 Move dotnet run 2021-03-22 11:20:23 +01:00
Bjarke Berg 38772e71b9 Merge remote-tracking branch 'origin/netcore/feature/acceptance_tests_on_azure' into netcore/feature/acceptance_tests_on_azure 2021-03-22 11:19:23 +01:00
Mole 804e8853a7 Run install_client and install_cypress while building 2021-03-22 11:13:31 +01:00
Bjarke Berg b0195864ce Merge remote-tracking branch 'origin/netcore/feature/acceptance_tests_on_azure' into netcore/feature/acceptance_tests_on_azure
# Conflicts:
#	build/azure-pipelines.yml
2021-03-22 11:10:37 +01:00
Mole f86275e77d Fix dependsOn 2021-03-22 11:08:48 +01:00
Mole 7dd7d4a5b8 Fix indentation 2021-03-22 11:07:09 +01:00
Mole 0e07a898ce Add start local db and prefix jobs with Windows 2021-03-22 11:05:30 +01:00
Bjarke Berg 3936ca070f Start localdb 2021-03-22 10:51:33 +01:00
Mole dba80e1c8a Add vmImage 2021-03-22 10:39:25 +01:00
Mole db0e3b3aff Merge remote-tracking branch 'origin/netcore/feature/acceptance_tests_on_azure' into netcore/feature/acceptance_tests_on_azure 2021-03-22 10:31:33 +01:00
Mole 76049b9f05 Merge branch 'netcore/feature/acceptance_tests_on_azure' of https://github.com/umbraco/Umbraco-CMS into netcore/feature/acceptance_tests_on_azure
# Conflicts:
#	build/azure-pipelines.yml
2021-03-22 10:31:28 +01:00
Bjarke Berg 0a76b7fb03 Right folder 2021-03-22 10:31:03 +01:00
Mole 64926795bf Split Acceptance_Tests into jobs 2021-03-22 10:29:58 +01:00
Bjarke Berg a5cf66c25b Better displayNames 2021-03-22 10:23:45 +01:00
Bjarke Berg b2a62c83bb Update port 2021-03-22 10:14:45 +01:00
Bjarke Berg 7ce2bc4a56 run cypress 2021-03-22 10:09:50 +01:00
Bjarke Berg 911e0f3837 added environment variables 2021-03-22 09:58:02 +01:00
Bjarke Berg 2abdc8178f Try to run dotnet run in process 2021-03-22 09:26:40 +01:00
Bjarke BergandGitHub f8d50694dd Added TreeAlias to TreeNodesRenderingNotification (#10024) 2021-03-22 08:59:17 +01:00
Bjarke Berg c9ba15ebd4 fix indentation 2021-03-22 08:54:27 +01:00
Bjarke Berg 80aaf8b7f6 Added new stage 2021-03-22 08:52:48 +01:00
Kenn Jacobsen a55a0c9e2d Do not minify bundled CSS at runtime 2021-03-22 08:29:31 +01:00
Bjarne FyrstenborgandNathan Woulfe fe8cd239d2 Null check on scope and options to ensure backward compatibility 2021-03-22 10:20:40 +10:00
Bjarke Berg 0e4da70e23 Added nuget info 2021-03-21 12:58:39 +01:00
Bjarke Berg 2a134cf425 Clean up 2021-03-21 12:55:33 +01:00
Bjarne FyrstenborgandGitHub 046d6351d2 Copy member type (#10020)
* Add copy dialog for member type

* Implement copy action for member type

* Create specific localization for content type, media type and member type

* Handle "foldersonly" querystring

* Add button type attribute

* Add a few missing changes of anchor to button element
2021-03-21 03:09:20 +01:00
Bjarke Berg 260d0dc1da Added a new package template to the dotnet template, nad added better info for cli and vs 2021-03-19 22:06:54 +01:00
Jesper LöfgrenandMichael Latouche 691c5d38a2 Fix swedish translation for somethingElse. 2021-03-19 19:03:53 +01:00
Bjarke Berg d55a484c56 Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Configuration/GlobalSettings.cs
#	src/Umbraco.Core/IO/SystemDirectories.cs
#	src/Umbraco.Core/Runtime/MainDom.cs
#	src/Umbraco.Core/Scoping/ScopeProvider.cs
#	src/Umbraco.Core/Services/IIconService.cs
#	src/Umbraco.Examine.Lucene/UmbracoExamineIndex.cs
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Infrastructure/Scoping/Scope.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs
#	src/Umbraco.Tests/Scoping/ScopeTests.cs
#	src/Umbraco.Tests/Services/ThreadSafetyServiceTest.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.BackOffice/Controllers/IconController.cs
#	src/Umbraco.Web.BackOffice/Services/IconService.cs
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/BackOfficeModel.cs
#	src/Umbraco.Web/Editors/BackOfficePreviewModel.cs
#	src/Umbraco.Web/Editors/PreviewController.cs
2021-03-19 16:18:32 +01:00
Bjarke BergandGitHub 3c9fb71894 Merge pull request #9979 from umbraco/v8/feature/10613-distributed-locks
Scope locking rework
2021-03-19 13:51:05 +01:00
Mole 507c821f66 Create method for generating log message
And remove forgotten comments.
2021-03-19 13:19:39 +01:00
Warren Buckley 44c955cccc Rename variable to groupId as opposed to tabId as this is what it actually is 2021-03-19 11:52:38 +00:00
Warren Buckley 0e356b8b93 More DB schema stuff 2021-03-19 11:52:00 +00:00
Warren Buckley 886de83a7c DTOs and Migration Plan to add new table 2021-03-19 11:17:13 +00:00
Mads Rasmussen 88c39ad630 add tabs to save model 2021-03-19 11:50:21 +01:00
MoleandGitHub f5fe3086a3 Merge pull request #10012 from umbraco/netcore/feature/seperate-nuget-for-static-assets
Netcore: Separate NuGet package for the static assets
2021-03-19 10:23:51 +01:00
Bjarke BergandGitHub 0e654338a1 Merge pull request #10001 from benjaminc/netcore/bugfix/startup-emptydb
#9843 - Allow install with DB string pre-configured
2021-03-19 09:38:25 +01:00
Bjarke BergandGitHub 82c3f92b36 Merge pull request #9980 from kjac/netcore/feature/gulp-comments-and-sourcemap-dependencies
Add gulp comments and sourcemap dependencies
2021-03-19 09:13:13 +01:00
Bjarke BergandGitHub e0878e0511 Merge pull request #9977 from umbraco/netcore/support-third-party-recurring-hosted-services
Made recurring hosted service base class PerformExecuteAsync method public.
2021-03-19 08:59:17 +01:00
Mole 95f42487d4 Wrap dumping dictionaries in a method. 2021-03-19 08:37:23 +01:00
Bjarke Berg baacedd57d Fixed bug where indexes was build before application was in run state + Moved the logic to the application started event 2021-03-19 08:09:00 +01:00
Bjarke Berg f668bf060a move static assets and the target+props file to a seperate nuget. Now the root package is only referencing other packages 2021-03-19 08:08:00 +01:00
7f1d5fe7cc 8539: Allow alias in image cropper (#9266)
Co-authored-by: Owain Williams <owaingdwilliams@gmail.com>
2021-03-18 22:04:03 +00:00
Benjamin Carleski fe803697be Re-add runtime level check, only make calls in Run mode 2021-03-18 08:34:24 -07:00
bfb78e937f Netcore: Update code docs generation (#9885)
* Updated the code docs to work with new assemblies and namespaces+added conditional build to default pipeline

* updated script that generate docs to use .NET 5

* Increased timeout of docs generation + changed to 5.x instead of 5.0.x

Fixed wrong namespace, that would be we not have docs for it.

* Fixed names in toc, so they are not that long and changed ordering

* try custom hack https://github.com/dotnet/docfx/issues/1254#issuecomment-294080535

* revert nonworking hack - Divide prep steps into two.

* Changed ordering

* Try to generate docs without the build.ps1 script

* Try to generate docs without the build.ps1 script

* Try to generate docs without the build.ps1 script

* Try to remove the examine one, to test if that is the reason it fails on azure pipeline

* Try to remove the sqlce one, to test if that is the reason it fails on azure pipeline

* Reintroduce Examine and SqlCE docs, as these was not the reason it will not work on azure pipeline.

* Test if azure wanna build the docs without explicit version

* Fixed two malformed xml docs

* hardcode version of docfx, to hopefully let it pass on azure pipeline

* hardcode version of docfx, to hopefully let it pass on azure pipeline

* Restructure azure pipeline yaml to have stages as areas instead of OS

* Restructure azure pipeline yaml to have stages as areas instead of OS

* yml restructure

* yml restructure

* yml restructure

* Not hardcoding docfx as the old versions also fail on azure

* Fixed Badly formed XML comments

* moved condition from job to stage

* split build and metadata

* indentation

* removed wrong char

* Try to add more loging on azure pipeline

* include less

* include less projects

* add one more project

* More azure pipeline test

* indentation

* All except infrastructure

* publish tasks

* Fix link on logo

* Extensions also included

* Less links

* re-introduced infrastructure to the list of projects for generate docfx for.

* Add filter

* Remove single warning for xmldocs

* more logging?

* skip some things from the metadata

* test using other image

* Test if exclude filter works

* Test with more explict filters, allowing some docs from Infrastructure

* binary search for the file that is the issue

* binary search for the file that is the issue

* binary search for the file that is the issue

* Exclude more folders

* Exclude more folders and files

* Only exclude files in root of namespace?

* more filter trials

* more filter trials

* add 2 nested folders

* all cs files?

* Remove test projects

* Toc

* Update build/azure-pipelines.yml

* move display name element

* Update build/azure-pipelines.yml

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-03-18 14:48:22 +01:00
Mads Rasmussen 386d5e2c4f remove list style when sorting + add placeholder styling for tabs 2021-03-18 13:48:48 +01:00
Sebastiaan Janssen 73439d4cba Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)
* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now

(cherry picked from commit 45de0a101e)
2021-03-18 13:08:33 +01:00
Sebastiaan JanssenandGitHub 45de0a101e Fixes #9983 - Getting kicked, if document type has a Umbraco.UserPicker property (#10002)
* Fixes #9983

Temporary fix for this issue. using the entityservice like before.

* Needed to remove the call to usersResource here as well for displaying the picked items

* Don't need usersResource for now
2021-03-18 13:01:46 +01:00
Bjarke BergandGitHub 48eff10696 Merge pull request #9990 from umbraco/netcore/feature/in-memory-runtime-minifier
Ability to have an in-memory runtime minifier cache and configurable cache busters
2021-03-18 11:36:28 +01:00
Mole 8f50bdbef4 Apply suggestions from review 2021-03-18 11:24:14 +01:00
Mads Rasmussen 35c672530c Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-03-18 11:21:26 +01:00
Bjarke BergandSebastiaan Janssen e17bf386a4 Merge pull request #9994 from umbraco/v8/bugfix/9993
Fixes #9993 - Cannot save empty image in Grid

(cherry picked from commit 0ecc933921)
2021-03-18 10:59:36 +01:00
Bjarke BergandGitHub 6b7cc065e9 Merge pull request #9996 from umbraco/netcore/notifications/packaging-service
Events to Notifications Migration: Packaging Service
2021-03-18 10:32:40 +01:00
Bjarke Berg c6d647149c Moved files to core to enable reuse + use them 2021-03-18 09:43:00 +01:00
Bjarke BergandGitHub 0ecc933921 Merge pull request #9994 from umbraco/v8/bugfix/9993
Fixes #9993 - Cannot save empty image in Grid
2021-03-18 09:28:58 +01:00
MoleandGitHub 4b244686b0 Merge pull request #9951 from umbraco/netcore/feature/database-server-messenger-service-repo
Netcore: create service/repo and remove SQL calls from DatabaseServerMessenger
2021-03-18 08:41:06 +01:00
Bjarke Berg 7193486b77 Fix unit tests 2021-03-18 08:38:57 +01:00
Bjarke Berg 6ce3a5f2a9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/members-roles-save
# Conflicts:
#	src/Umbraco.Infrastructure/Security/MemberUserStore.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/MemberControllerUnitTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
2021-03-18 08:27:17 +01:00
Bjarke Berg ed931a9629 Fix build 2021-03-18 08:26:28 +01:00
Shannon DeminickandGitHub 8c66470d65 Merge pull request #9902 from emmagarland/netcore/members-passwordchange-temp
Update to enable members to use the same password change as users
2021-03-18 17:40:19 +11:00
Shannon eccbb32f42 Fixes build and tests 2021-03-18 16:36:23 +11:00
Shannon 3350611b16 removes section check since it's already handled by authz policies 2021-03-18 16:03:04 +11:00
Shannon 36f911b66f Ensure IsApproved is persisted with MembersUserStore, Update member done in a trans and in specific steps, calls to SetLockoutEndDateAsync more safely with time before now. 2021-03-18 15:57:53 +11:00
Jeavon LeopoldandMichael Latouche 2b9eaeee8a Fix for #9950 - HttpsCheck will now retry using the login background image if inital request returns 301/302. Excessvie Headers check will now check the root url instead of the backoffice 2021-03-18 02:54:07 +01:00
Markus JohanssonandMichael Latouche 3004e00b4f #9964 Removed unneeded check for HttpContext 2021-03-18 02:16:08 +01:00
Benjamin Carleski 3be00ceb4f #9843 - Allow install with DB string pre-configured 2021-03-17 11:50:23 -07:00
Emma Garland 88820d082b Setup for mocking 2021-03-17 18:28:56 +00:00
Emma Garland 72f83e50d8 Changed param for UserManager 2021-03-17 18:04:54 +00:00
Emma Garland e7e5e18b19 Fixed merge issues 2021-03-17 17:44:49 +00:00
Sebastiaan Janssen 548435dcc3 Bump version to 8.12.2 2021-03-17 17:40:47 +01:00
Nathan WoulfeandSebastiaan Janssen e7a1db5604 Add images in grid - fixes 9982 (#9987)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
(cherry picked from commit e2019777fb)
2021-03-17 17:38:55 +01:00
Mads Rasmussen 3a4f72ed91 add auto-resize back to locked field 2021-03-17 16:09:07 +01:00
Mads Rasmussen dc08183796 add missing data-elements 2021-03-17 16:03:37 +01:00
Andy Butland 0c4b2604ff Revert "Updated "messaging" repositories (NotificationsRepository and CacheInstructionRepository) to use scopes provided as method parameters."
This reverts commit b69b4ad7b8.
2021-03-17 15:56:22 +01:00
Mads Rasmussen c803f64fe3 update create document type in "getting started"-tour 2021-03-17 15:51:28 +01:00
Mads Rasmussen d4f2edfaf5 add correct data-elements 2021-03-17 15:36:18 +01:00
Mads Rasmussen f7f9f1cd99 add support for updating the sort order input value 2021-03-17 14:17:24 +01:00
Elitsa Marinovska 3393ac8d03 Adds additional params indicating whether user is admin 2021-03-17 14:05:47 +01:00
Elitsa Marinovska ab16a408a8 Adds a config for configuring the access rules on the content dashboard - by default it granted for all user groups 2021-03-17 14:04:48 +01:00
Warren Buckley 2901cb10f8 Remove last static event and implement canceable notification where users are able to cancel the import process 2021-03-17 12:57:24 +00:00
Mole c504e3ab7e Clean 2021-03-17 13:40:14 +01:00
Mole 9bd1b06eaf Only create the dicts and hashset when a lock is requested 2021-03-17 13:09:45 +01:00
e2019777fb Add images in grid - fixes 9982 (#9987)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2021-03-17 12:54:38 +01:00
Kenn Jacobsen 7a5af55cac Reintroduce and obsolete static events for use in the distributed cache + added some accidentally removed scope completions 2021-03-17 12:47:16 +01:00
Warren Buckley 8563643e80 Imported & Importing events. Only the Importing event can be cancelled & stop execution in package service 2021-03-17 10:18:56 +00:00
Warren Buckley 657fc2d83b Cant cancel an Uninstall so make it a normal notification 2021-03-17 10:17:56 +00:00
Warren Buckley 9c42d4792e Remove old events 2021-03-17 10:17:05 +00:00
Mole 54a4a76efb Use a hashset to keep track of acquired locks
This simplifies disposing/checking for locks greatly.
2021-03-17 11:10:34 +01:00
Warren Buckley 1b12e368b2 Adds ImportPackageNotification/Event 2021-03-17 09:51:43 +00:00
Michael LatoucheandGitHub 156c1c9416 Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989) 2021-03-17 10:29:31 +01:00
Mole 3b83b7409e Clean 2021-03-17 10:08:08 +01:00
Sebastiaan Janssen cf4c163131 Fixes #9993 - Cannot save empty image in Grid 2021-03-17 09:58:17 +01:00
Mole aa6d046efe Remove scope from method that calls another method that has a scope 2021-03-17 09:43:36 +01:00
Mads Rasmussen f67d52a0ef align icons and sort order inputs 2021-03-17 09:33:39 +01:00
Andy Butland 9465a46605 Removed unnecessary private setters. 2021-03-17 09:03:49 +01:00
Shannon DeminickandGitHub 22f78ff154 Merge pull request #9968 from umbraco/netcore/feature/9623-external-login-token-store
New table and service to store auth tokens
2021-03-17 18:04:42 +11:00
Shannon DeminickandGitHub cb3ea50a37 Merge branch 'netcore/dev' into netcore/feature/in-memory-runtime-minifier 2021-03-17 18:00:26 +11:00
Shannon a3b4bb7bd9 oops didn't mean to commit that 2021-03-17 17:56:40 +11:00
Shannon 1a2d8623e6 oops didn't mean to commit that 2021-03-17 17:55:45 +11:00
Shannon eba659b9ee Gets in-memory runtime minifiy cache working, ensures no files can be accessed at the root, adds config to enable in-memory and configure a cache buster including a timestamp cache buster. 2021-03-17 17:44:52 +11:00
Bjarne FyrstenborgandNathan Woulfe 1570d49d05 Remove unnecessary aria-hidden attribute from <umb-icon> 2021-03-17 07:21:39 +10:00
Mads Rasmussen b7b7b7916d dont show add property when sorting 2021-03-16 21:22:04 +01:00
Mads Rasmussen 3747bb47dc only show tab bar, when sorting, if there are tabs 2021-03-16 21:20:44 +01:00
Mads Rasmussen 0cf02a2b20 remove non componetized code 2021-03-16 21:13:56 +01:00
Mads Rasmussen 59e04bbf39 align val server fields 2021-03-16 21:06:28 +01:00
Mads Rasmussen ef27a2c273 refactor content type tab to component 2021-03-16 21:01:46 +01:00
Mads Rasmussen 9570da8d06 we dont need these components 2021-03-16 21:01:04 +01:00
Emma Garland 92c8901b58 Merge branch 'netcore/members-roles-save' into netcore/members-signin-manager
# Conflicts:
#	src/Umbraco.Web.Common/Security/MemberManager.cs
2021-03-16 17:55:24 +00:00
Emma Garland fa1499333f Merge branch 'netcore/dev' into netcore/members-roles-save
# Conflicts:
#	.gitignore
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Security/MemberIdentityUserManagerTests.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Common/Security/MemberManager.cs
2021-03-16 17:48:40 +00:00
Emma Garland b1a955f444 Merge branch 'netcore/dev' into netcore/members-passwordchange-temp
# Conflicts:
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
2021-03-16 17:46:04 +00:00
Andy Butland b69b4ad7b8 Updated "messaging" repositories (NotificationsRepository and CacheInstructionRepository) to use scopes provided as method parameters. 2021-03-16 17:30:00 +01:00
Warren Buckley b60c0377fb Uninstall package event/notificiation ported 2021-03-16 16:13:15 +00:00
Kenn Jacobsen 3018e1ba89 Removed events from integration test 2021-03-16 16:45:26 +01:00
Mads Rasmussen 3d23d9574f add shortcuts for adding tabs, groups and properties 2021-03-16 15:16:40 +01:00
Mole 637e85ebbb Autocomplete scopes 2021-03-16 14:23:09 +01:00
Mole 68c4ce2008 Wrap calls to map in scopes 2021-03-16 14:18:17 +01:00
Bjarke Berg 1a573fcb75 Review fixes https://github.com/umbraco/Umbraco-CMS/pull/9968 2021-03-16 10:44:55 +01:00
Kenn Jacobsen 152dc7a5b9 A little reformatting and removal of unused usings 2021-03-16 09:59:44 +01:00
Kenn Jacobsen ef178c5606 Use explicitly typed notifications instead of generic ones 2021-03-16 09:21:27 +01:00
Shannon 2d14d0bd4a oops didn't mean to commit that 2021-03-16 19:20:29 +11:00
Shannon ecbd6d1c81 Adds better support for app_plugins loading assets in a safer way and without having to pass refs 2021-03-16 19:19:03 +11:00
Bjarke BergandGitHub 836f4a9203 Merge branch 'netcore/dev' into netcore/feature/9623-external-login-token-store 2021-03-16 09:15:53 +01:00
Bjarke Berg a356584eb6 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/9623-external-login-token-store
# Conflicts:
#	src/Umbraco.Infrastructure/Configuration/JsonConfigManipulator.cs
2021-03-16 09:14:05 +01:00
Bjarke BergandGitHub 55de69b647 Merge pull request #9961 from umbraco/netcore/feature/appsettings-local
Allow for having appsettings.local.json
2021-03-16 09:12:13 +01:00
Kenn Jacobsen 0db4e30fcf Merged with netcore/dev 2021-03-16 08:53:32 +01:00
Kenn Jacobsen 93b6d31d71 Include sourcemaps for minified dependencies 2021-03-16 08:22:07 +01:00
Kenn Jacobsen 84d71a1237 Add a few comments about why we're renaming JS files during un-minified build 2021-03-16 08:21:09 +01:00
Bjarke BergandGitHub 375609bc6e Update src/Umbraco.Web.UI.NetCore/appsettings.json 2021-03-16 08:05:33 +01:00
Shannon 670bea81d1 Merge branch 'netcore/dev' into netcore/feature/in-memory-runtime-minifier
# Conflicts:
#	src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs
2021-03-16 17:49:05 +11:00
Bjarke BergandGitHub c30f5084d7 Merge pull request #9937 from kjac/netcore/feature/content-and-media-services-without-static-events
Remove static events from ContentService and MediaService
2021-03-16 07:48:57 +01:00
Shannon bd08adf2c7 Merge branch 'netcore/dev' of https://github.com/umbraco/Umbraco-CMS into netcore/dev 2021-03-16 17:23:55 +11:00
Shannon cec1440b64 Merge branch 'kjac-netcore/bug/minify-plugins' into netcore/dev 2021-03-16 17:23:21 +11:00
Shannon e993410d2c Merge branch 'netcore/bug/minify-plugins' of https://github.com/kjac/Umbraco-CMS into kjac-netcore/bug/minify-plugins
# Conflicts:
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
2021-03-16 17:22:25 +11:00
Shannon 193bf6c51e starts getting the in-memory runtime min working 2021-03-16 17:15:40 +11:00
Kenn Jacobsen 7593ddfaa8 Explicitly typed notifications instead of generic ones 2021-03-16 06:55:55 +01:00
Bjarke BergandGitHub 604cf69275 Merge pull request #9974 from umbraco/netcore/feature/migrate-cache-refresher-events-to-event-aggregator-pattern
Netcore: Migrate cache refresher events to IEventAggregator pattern
2021-03-16 06:44:26 +01:00
patrickdemooij9andGitHub f7c032af65 Add copy logic to Media Picker (#9957)
* Add copy logic to Media Picker

* Add action for copy all

* Fix for selectable media item
2021-03-16 09:28:51 +10:00
Kenn Jacobsen 2e8f5fef6a Fix typo 2021-03-15 18:36:13 +01:00
Andy Butland 622127c19f Removed some commented out code. 2021-03-15 17:19:18 +01:00
Andy Butland b52f437c4f Removed unused variable. 2021-03-15 17:16:03 +01:00
b3578b0cb8 Apply suggestions from code review
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-03-15 17:13:12 +01:00
Bjarke BergandGitHub ed5fffac0c Merge pull request #9922 from kjac/netcore/feature/remove-backofficeusermanager-static-events
Replace static backoffice user manager events with IEventAggregator notifications
2021-03-15 15:49:09 +01:00
Bjarke Berg d8c7193eef Fixed issue with multiple threads reading the appSettings file at the same time, by locking (Found when site has to upgrade) 2021-03-15 15:00:58 +01:00
Bjarke Berg f47298d2db Removed unused code 2021-03-15 15:00:01 +01:00
Warren Buckley fa11a812a0 Fix karma.conf JS test for folder names to make UNIX tests pass 2021-03-15 13:41:14 +00:00
Bjarke Berg b82ea437b7 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/remove-backofficeusermanager-static-events 2021-03-15 14:35:46 +01:00
653bf52a1c Adds additional error checking and reporting to MainDom/SqlMainDomLock (#9954)
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-15 13:49:37 +01:00
Mole d1afb6eabc Merge remote-tracking branch 'origin/v8/dev' into v8/feature/10613-distributed-locks 2021-03-15 13:19:36 +01:00
d0f047e729 Fixes and Updates for DB Scope and Ambient Context leaks (#9953)
* Adds some scope tests (ported back from netcore) and provides a much better error message, ensure execution context is not flowed to child tasks that shouldn't leak any current ambient context

* updates comment

* Ensure SqlMainDomLock suppresses execution context too

* Since we're awaiting a task in a library method, ConfigureAwait(false)

* missing null check

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-15 12:56:38 +01:00
Emma Garland 3fd7869948 Merge branch 'netcore/members-roles-save' into netcore/member-signin-manager 2021-03-15 10:58:04 +00:00
Mole 92fd9ff685 Clean 2021-03-15 11:31:23 +01:00
Bjarke Berg 64131f3de4 Merge remote-tracking branch 'origin/netcore/dev' into netcore/dev 2021-03-15 11:17:46 +01:00
Bjarke Berg 4ad48321b9 Remove debugger break/launch 2021-03-15 11:17:23 +01:00
Emma Garland b863e3f21d Merge branch 'netcore/dev' into netcore/members-roles-save 2021-03-15 10:12:28 +00:00
Emma Garland 4ae086bf20 Merge branch 'netcore/dev' into netcore/members-passwordchange-temp 2021-03-15 10:12:08 +00:00
Emma Garland 5c6b8fe2bc Added security logic previously added to PasswordChanger 2021-03-15 09:01:10 +00:00
Mole ef59829489 Throw error if all scopes hasn't been disposed 2021-03-15 08:54:52 +01:00
Mole cee33e863e Fix errors shown in unit tests 2021-03-15 08:38:23 +01:00
Andy Butland 5fc9b2e259 Made recurring hosted service base class PerformExecuteAsync method public to support use of this class by packages nad custom solutions. 2021-03-15 07:49:33 +01:00
0374f6c2f5 Update src/Umbraco.Web.Common/ModelsBuilder/DependencyInjection/UmbracoBuilderDependencyInjectionExtensions.cs
Co-authored-by: Shannon Deminick <sdeminick@gmail.com>
2021-03-15 06:32:40 +01:00
Shannon DeminickandGitHub ada5599a83 Merge pull request #9839 from kjac/netcore/feature/minify-js-resources
Do not apply runtime optimization to core scripts and script libraries
2021-03-15 15:08:35 +11:00
Shannon db863b3250 missing namespace after file split. 2021-03-15 13:45:09 +11:00
Shannon 4071df322a Adds missing null check on tagHelperOutput.TagName which can be null 2021-03-15 13:40:00 +11:00
Shannon f03fc25b4c Splits into files, adds ICacheRefresherNotificationFactory, removes Init method 2021-03-15 13:39:34 +11:00
ShannonandMichael Latouche b7c1ad2298 Fix dead lock with TypeLoader 2021-03-15 02:23:55 +01:00
Shannon DeminickandGitHub 71e59e2ba8 Update .gitignore 2021-03-15 11:35:09 +11:00
emmagarland 76e0f84748 Amendments to tests for mocking 2021-03-14 22:19:27 +00:00
emmagarland a260bc37a8 Fixed unit tests to use correct store, added IPResolver 2021-03-14 21:59:30 +00:00
Callum WhyteandNathan Woulfe 5ee0f310c9 Counting Umbraco.ModelsBuilder and ModelsBuilder.Umbraco namespaces as external providers 2021-03-15 07:46:58 +10:00
emmagarland de390be2b8 Added SignInManager for members and related unit tests (in progress) 2021-03-14 18:58:33 +00:00
emmagarland dccce92cb3 Updated the user and roles to throw exceptions instead of being caught, as per PR feedback 2021-03-14 15:14:53 +00:00
Bjarke Berg 86eb87a885 Clean up 2021-03-12 22:09:51 +01:00
Bjarke Berg e77d2d58c2 Clean up 2021-03-12 22:03:30 +01:00
Bjarke Berg abf11c2d62 Fixed issue with BackOfficeIdentity. Previews did not work, because we did not check for multiple identities on the priciple, after the move the pure ClaimsIdentity 2021-03-12 21:50:47 +01:00
Bjarke Berg 06a202e30e Migrated CacheRefresher events to IEventAggregator pattern. 2021-03-12 21:49:42 +01:00
Emma Garland 8535a2915c Changed wording, PR feedback 2021-03-12 15:21:56 +00:00
Emma Garland 9e867eeeef Changes as per PR comments from Scott Brady 2021-03-12 15:05:50 +00:00
Emma Garland 8ed67aa14a Merge branch 'netcore/members-passwordchange-temp' into netcore/members-roles-save 2021-03-12 14:39:24 +00:00
Emma Garland aa4947913e Merge branch 'netcore/dev' into netcore/members-passwordchange-temp
# Conflicts:
#	src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs
2021-03-12 14:29:35 +00:00
Bjarke Berg 57386c8fbc change table name prefix for LogViewerQuery 2021-03-12 13:33:38 +01:00
Mole ea816e8110 Add more unit tests, showing current issue 2021-03-12 13:30:25 +01:00
Bjarke Berg e20f73ba71 post merge fix 2021-03-12 13:10:55 +01:00
Mole 5c7e4f8dde Adjust unit tests and apply fixes to scope 2021-03-12 13:10:17 +01:00
Bjarke Berg b94cc517fc Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/9623-external-login-token-store
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
2021-03-12 13:04:46 +01:00
Bjarke BergandGitHub fca6fb2a44 Merge pull request #9970 from umbraco/netcore/feature/reintroduce-friendly-bun-untestable-published-content-extensions
Netcore: Reintroduce friendly bun untestable published content extensions
2021-03-12 13:02:41 +01:00
Bjarke Berg ba1ea34b4b Merge remote-tracking branch 'origin/netcore/feature/reintroduce-friendly-bun-untestable-published-content-extensions' into netcore/feature/reintroduce-friendly-bun-untestable-published-content-extensions 2021-03-12 11:58:08 +01:00
Bjarke Berg 8332b3219b bugfix in snippet 2021-03-12 11:57:56 +01:00
9a180c1685 Update src/Umbraco.Web.Common/DependencyInjection/StaticServiceProvider.cs
Co-authored-by: Andy Butland <abutland73@gmail.com>
2021-03-12 11:48:23 +01:00
Bjarke Berg aa34f32990 bugfix 2021-03-12 11:38:28 +01:00
Bjarke Berg b71e469854 Added missing extensions 2021-03-12 11:25:58 +01:00
Sebastiaan Janssen 9b39bfbf51 Merge branch 'v8/dev' into v8/contrib 2021-03-12 09:30:30 +01:00
Sebastiaan Janssen ef60a98fe1 Merge branch 'v8/8.12' into v8/dev 2021-03-12 09:29:44 +01:00
Bjarke BergandSebastiaan Janssen 83719f3505 Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973)
(cherry picked from commit da5351dfcf)
2021-03-12 09:28:45 +01:00
Bjarke BergandGitHub da5351dfcf Fix issue with SqlMainDomLock that cannot use implicit lock timeouts … (#9973) 2021-03-12 09:23:32 +01:00
Justin ShearerandGitHub 85e6a1149e [Issue 5277-146] accessibility - Close 'X' icon next to language drop… (#9264)
* [Issue 5277-146] accessibility - Close 'X' icon next to language drop down is identified as "link" - screen reader

* add new loacalization key
2021-03-12 09:18:32 +01:00
Shannon 8c7abc60aa inject lazy service just to be safe 2021-03-12 16:50:29 +11:00
Shannon 1ab73b35a4 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-03-12 16:50:00 +11:00
Shannon e6b56d9a3c missing null check 2021-03-12 16:33:37 +11:00
Shannon a62112ab82 Don't call the same method over and over 2021-03-12 16:33:09 +11:00
Shannon 37abae83b3 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
2021-03-12 16:32:21 +11:00
Shannon 890972c3b9 Merge branch 'nzdev-v8/feature/nucache-perf-auto-rebuild' into v8/feature/nucache-perf 2021-03-12 14:11:10 +11:00
Shannon 394372d614 Merge branch 'v8/feature/nucache-perf-auto-rebuild' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/nucache-perf-auto-rebuild 2021-03-12 14:10:18 +11:00
Shannon DeminickandGitHub efbfa0ba30 Reverting accidental change 2021-03-12 14:02:48 +11:00
Shannon DeminickandGitHub b606b925dd Reverting accidental change 2021-03-12 14:01:51 +11:00
Shannon DeminickandGitHub 097a46189f Reverting accidental change 2021-03-12 14:01:04 +11:00
Shannon DeminickandGitHub 92d11845f5 Reverting accidental change 2021-03-12 14:00:25 +11:00
Shannon 141af1fd4f Adds logic to remove duplicates before adding the unique indexes. 2021-03-12 13:24:35 +11:00
Mole 498a5e0c66 Initial rework of Lock dictionaries 2021-03-11 15:52:14 +01:00
Sebastiaan Janssen e0604e0a53 Merge branch 'v8/8.11' into v8/8.12 and bump version to 8.12.1
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:55:13 +01:00
Sebastiaan Janssen e5aaa20863 Merge branch 'v8/8.10' into v8/8.11 and bump version to 8.11.2
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:52:58 +01:00
Sebastiaan Janssen 3a5327a84d Merge branch 'v8/8.9' into v8/8.10 and bump version to 8.10.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:50:35 +01:00
Sebastiaan Janssen e75895ce48 Merge branch 'v8/8.8' into v8/8.9 and bump version to 8.9.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:47:33 +01:00
Sebastiaan Janssen 0479ee41dd Merge branch 'v8/8.7' into v8/8.8 and bump version to 8.8.4
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:45:46 +01:00
Sebastiaan Janssen 1c5d95def4 Merge branch 'v8/8.6' into v8/8.7 and bump version to 8.7.3
# Conflicts:
#	src/SolutionInfo.cs
2021-03-11 14:42:10 +01:00
Sebastiaan Janssen 21bee00518 Bump version to 8.6.8 2021-03-11 14:38:19 +01:00
Bjarke BergandGitHub 1b7cc659aa Merge pull request #9942 from umbraco/netcore/feature/individual-nuget-pr-assembly
Netcore: Individual nuget  packages for each assembly
2021-03-11 14:19:24 +01:00
Bjarke Berg d777d7dded Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/individual-nuget-pr-assembly 2021-03-11 13:48:14 +01:00
Mole c69a89baf1 Merge branch 'v8/dev' into v8/feature/10613-distributed-locks 2021-03-11 13:43:07 +01:00
Bjarke Berg 774ea529f5 Fxi version 2021-03-11 13:36:04 +01:00
Bjarke Berg 89cc2d31d5 Fix build script after removale of old nuspec files 2021-03-11 13:29:31 +01:00
2b89839724 Netcore: Get rid of default files in config folder (#9966)
* TourController now uses the core tours from embedded resources

* Moved tinyMceConfig.*.config to IOptions

* Embedded the default grid.editors.config.js

* Fixed issue when saving grid with an empty media cell

* Logviewer now uses sql as database instead of file.

* Remove config folder from build script and nuget pacakges.

* Removing auto-generated Id added to appsettings.json

* Update src/Umbraco.Web.BackOffice/Controllers/TourController.cs

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-03-11 13:20:46 +01:00
Bjarke Berg 77be21d2d9 Merge remote-tracking branch 'origin/netcore/feature/individual-nuget-pr-assembly' into netcore/feature/individual-nuget-pr-assembly 2021-03-11 13:15:46 +01:00
Bjarke Berg 9ce475afa5 Do not reference System.Configuration.ConfigurationManager just because of an exception. And moved the reference to lucene to be safe 2021-03-11 13:14:28 +01:00
77fc623c9a Update src/Umbraco.Examine.Lucene/Umbraco.Examine.Lucene.csproj
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-03-11 11:35:54 +01:00
Bjarke Berg 1b5eb1ec20 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/reintroduce-friendly-bun-untestable-published-content-extensions 2021-03-11 11:35:48 +01:00
Bjarke Berg c9bd3ed653 Change namespace 2021-03-11 11:35:41 +01:00
Bjarke Berg 8d743cbe2c Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/individual-nuget-pr-assembly 2021-03-11 10:33:48 +01:00
Kenn Jacobsen 98c1fedcd9 Merged with netcore/dev 2021-03-11 10:12:22 +01:00
Shannon e4807c2430 New table and service to store auth tokens
Implements the auth token retrieval and storage for the identity implementation. This is now automatically done for providers and the back office user manager can be used to retreive and store all tokens.

Fixes locking on the config writer.

Removes the abstract NodeObjectTypeId from the base repo since it shouldn't be there.
2021-03-11 19:35:43 +11:00
Bjarke BergandGitHub 91e877cebe Merge pull request #9849 from kjac/netcore/bug/preview
Preview does display draft versions
2021-03-11 08:41:21 +01:00
Shannon DeminickandGitHub e6f73b26ce Update src/Umbraco.Web.UI.NetCore/appsettings.json 2021-03-11 14:09:23 +11:00
Bjarke Berg 78d8f0bacf Fix Deserialization of defaultConfig from package.manifest 2021-03-10 21:13:13 +01:00
Bjarke Berg 88e92a0360 Fix Deserialization of defaultConfig from package.manifest 2021-03-10 19:32:56 +01:00
Bjarke BergandGitHub 8cd41ab36a Merge pull request #9924 from umbraco/v8/feature/10613-distributed-locks
Change scope to only acquire distributed locks once in a scope chain.
2021-03-10 15:51:04 +01:00
Bjarke BergandGitHub 5a8d3d167a Merge pull request #9965 from umbraco/netcore/bugfix/AB10799-fix-authorization-policies-bound-to-translation-section
NetCore: Fix authorization policies bound to Translation section
2021-03-10 15:32:32 +01:00
Elitsa Marinovska 63d7d23cd7 Revert changes to default appsettings.json 2021-03-10 14:42:31 +01:00
Elitsa Marinovska 1e480abfc8 Remove duplicated TreeAccessDocumentTypes policy and fixed the one for TreeAccessDictionary 2021-03-10 14:40:25 +01:00
Bjarke BergandGitHub 8bc637090e Error handling issue fix
Add the option to configure some pipeline that executes before Umbraco in the StartupFilter. AB10786
2021-03-10 12:50:27 +01:00
Bjarke BergandGitHub d33bc12fd1 Merge pull request #9943 from umbraco/netcore/feature/merge-v8-05032021
Netcore: Merge v8 05032021
2021-03-10 08:07:53 +01:00
Bjarke BergandGitHub bec0e09aed Update src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeSecurityStampValidatorOptions.cs 2021-03-10 07:26:46 +01:00
Shannon 52812672fc Allow for having appsettings.Local.json
this file is not checked in and can be used to overwrite any custom settings that are in the repo without worrying about accidentally checking in developer settings as you work.
2021-03-10 15:22:45 +11:00
Shannon a94c35ccc0 Fix dead lock with TypeLoader 2021-03-10 14:56:19 +11:00
Shannon 87749b5078 Ensures claims continue to flow even after the security stamp validator executes. 2021-03-10 14:46:51 +11:00
Shannon 52182ebbf5 Fixes logging for PublishedRouter 2021-03-10 12:08:20 +11:00
Mads Rasmussen 4fc27e4e56 move content type tab validation to directive to support client side validation 2021-03-09 21:05:33 +01:00
Andy Butland 3767ba41e9 Reworked initialization to keep all file read/write within the lock. 2021-03-09 18:00:31 +01:00
Mads Rasmussen 4fbc7c5285 add validation marker to a tab when there is server side errors within it 2021-03-09 16:21:08 +01:00
Sebastiaan Janssen a997f0c1e5 Merge branch 'v8/dev' into v8/contrib
# Conflicts:
#	src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
2021-03-09 15:02:46 +01:00
Sebastiaan Janssen 44e68543d4 Merge branch 'v8/8.12' into v8/dev 2021-03-09 14:56:26 +01:00
Sebastiaan Janssen e43ff6cff1 Merge branch 'v8/8.11' into v8/8.12 2021-03-09 14:55:50 +01:00
Sebastiaan Janssen 5582b09614 Merge branch 'v8/8.10' into v8/8.11 2021-03-09 14:55:25 +01:00
Sebastiaan Janssen 8f59bbc3b3 Merge branch 'v8/8.9' into v8/8.10 2021-03-09 14:55:05 +01:00
Sebastiaan Janssen c474f41b86 Merge branch 'v8/8.8' into v8/8.9 2021-03-09 14:54:31 +01:00
Sebastiaan Janssen 41283aead9 Fix wrong version reference 2021-03-09 14:54:13 +01:00
Sebastiaan Janssen 7dc95b55d3 Merge branch 'v8/8.11' into v8/8.12
# Conflicts:
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:51:54 +01:00
Sebastiaan Janssen edab3507ec Merge branch 'v8/8.10' into v8/8.11 2021-03-09 14:49:08 +01:00
Sebastiaan Janssen 1d3d83466c Merge branch 'v8/8.9' into v8/8.10 2021-03-09 14:48:22 +01:00
Sebastiaan Janssen 4481e90f10 Merge branch 'v8/8.8' into v8/8.9
# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
2021-03-09 14:33:01 +01:00
Kenn JacobsenandSebastiaan Janssen b7553e311a Cache the SVG icons serverside to boost performance (#9200)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
(cherry picked from commit 8e01ac30d6)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:22:22 +01:00
ChadandSebastiaan Janssen 16573446db Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856) 2021-03-09 13:54:45 +01:00
Mads Rasmussen b1c4ba1449 Merge branch 'v8/dev' into v8/prototype/doctype-tabs 2021-03-09 13:36:37 +01:00
8e01ac30d6 Cache the SVG icons serverside to boost performance (#9200)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-09 12:58:10 +01:00
Bjarke Berg d5fb31b3a2 Reintroduce tests 2021-03-09 11:32:23 +01:00
Bjarke Berg 9153715432 Post merge fixes 2021-03-09 11:15:55 +01:00
Emma Garland 216d6349d9 Merge branch 'netcore/dev' into netcore/members-roles-save 2021-03-09 10:15:02 +00:00
Emma Garland 4873ecc0f9 Deleted unwanted extra method 2021-03-09 10:13:44 +00:00
Bjarke Berg 1aa8d3aa09 Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/merge-v8-05032021
# Conflicts:
#	src/SolutionInfo.cs
#	src/Umbraco.Web/Editors/Filters/UserGroupValidateAttribute.cs
#	src/Umbraco.Web/Editors/PasswordChanger.cs
#	src/Umbraco.Web/Editors/UserGroupsController.cs
2021-03-09 10:08:53 +01:00
Mole adf504c20c Fix IncrementRequestedWriteLock 2021-03-09 09:33:34 +01:00
Bjarke Berg d81874aee3 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/merge-v8-05032021
# Conflicts:
#	src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs
#	src/Umbraco.Infrastructure/Search/ExamineComponent.cs
2021-03-09 09:31:55 +01:00
Bjarke BergandGitHub 5fee73f50d Merge pull request #9926 from umbraco/netcore/bugfix/10196-ambient-scope
Fixes ExecutionContext flowing to child threads (Ambient Scope issues)
2021-03-09 09:12:43 +01:00
Shannon a40b754636 merge issue 2021-03-09 18:30:20 +11:00
b554aa9484 Apply suggestions from code review
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-03-09 08:22:16 +01:00
Mole 6898fd2784 Only lock once when decrementing 2021-03-09 08:19:40 +01:00
Kenn Jacobsen 239edaa952 Missing file commit 2021-03-09 08:01:19 +01:00
Kenn Jacobsen 5bca41a51c Merge branch 'netcore/feature/content-and-media-services-without-static-events' into netcore/temp/member-publicaccess-user-services-without-static-events 2021-03-09 07:59:05 +01:00
Kenn Jacobsen 5a12255a4a Merge branch 'netcore/dev' into netcore/feature/content-and-media-services-without-static-events 2021-03-09 07:54:30 +01:00
Kenn Jacobsen eb74f74c91 Replace static events with notifications in MemberService, PublicAccessService and UserService, and clean up unused components etc. 2021-03-09 07:52:32 +01:00
Shannon 0b6d99c23a oops, forgot commit 2021-03-09 17:50:43 +11:00
Shannon a668e9aa07 Fixup package refs and nuspecs, remove IDisposeOnRequestEnd 2021-03-09 13:12:52 +11:00
Shannon 6dd5714923 Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/10196-ambient-scope
# Conflicts:
#	src/Umbraco.Web.Common/UmbracoContext/UmbracoContext.cs
2021-03-09 12:52:15 +11:00
Shannon DeminickandGitHub 32d75b16af Merge pull request #9916 from umbraco/netcore/bugfix/AB10710_UmbracoContext_should_not_use_IBackOfficeSecurity
Netcore: Fix coupling between IBackOfficeSecurity and IUmbracoContext
2021-03-09 12:49:53 +11:00
e8cc0fcac5 Update src/Umbraco.Web.Common/Cache/HttpContextRequestAppCache.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-03-09 12:47:13 +11:00
Shannon 78f5b2f0d7 removes double httpcontextaccessor registration and updates test notes. 2021-03-09 12:45:51 +11:00
Bjarke Berg 6d293c6ffd Fixed null ref exception 2021-03-08 21:37:31 +01:00
Bjarke Berg 49bb5ee4b7 Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/AB10710_UmbracoContext_should_not_use_IBackOfficeSecurity 2021-03-08 21:27:40 +01:00
Mads Rasmussen d7608f514e update sort order on drag and drop 2021-03-08 21:25:01 +01:00
Emma Garland 1a7bc6aa75 Corrected formatting and removed unwanted commented out code 2021-03-08 17:26:53 +00:00
Emma Garland 1df78c1321 Updates to unit store tests and managing null username in members user store 2021-03-08 17:12:30 +00:00
Andy Butland 6422a9a58c Further integration tests for CacheInstructionService. 2021-03-08 17:39:41 +01:00
Andy Butland a8ff1952c3 Added integration tests for CacheInstructionService. 2021-03-08 17:23:01 +01:00
745014a4c3 User manager related updates (#9935)
* Only allow not-admins to assign groups they have themselves

* Only admins is allowed to change password of other admins

* Fixed issue with deep clone of UserGroup. The Allowed sections was not cloned. This resulted in the allowed sections of the object stored in cache was updated, everytime we changed the allowed sections on an object cloned from the cache. Even if we did not save it.

* Only Admins are allowed to add sections to a user group, that they don't have access to themselves

* Align backend code with UI. User managers that is are not admin, can only assign the same groups new users, that they have themselves.

* Make existingGroupAliases and empty array when creating a new user

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2021-03-08 13:26:52 +01:00
Sebastiaan Janssen 4916c64848 Merge branch 'v8/dev' into v8/contrib 2021-03-08 12:29:14 +01:00
Sebastiaan Janssen 4a8a73f03d Merge branch 'v8/8.12' into v8/dev 2021-03-08 12:28:55 +01:00
Sebastiaan Janssen 49435708a5 Merge branch 'v8/8.11' into v8/8.12 2021-03-08 12:28:21 +01:00
Sebastiaan Janssen 8b04c32dff Merge branch 'v8/8.10' into v8/8.11 2021-03-08 12:27:42 +01:00
Lars-Erik AabechandSebastiaan Janssen fc447bb101 Should allow grid editors to use hash based settings (#9837)
* Should allow grid editors to use hash based settings

* Swap to using vm in grid config controller, as well as showing button when there's map settings

* Included keys for styles in empty state check for grid settings

* converted the code into more AngularJS performant code

* Remove rogue change to grid.editors.config

* use watchCollection instead

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit 008827f785)
2021-03-08 12:27:06 +01:00
008827f785 Should allow grid editors to use hash based settings (#9837)
* Should allow grid editors to use hash based settings

* Swap to using vm in grid config controller, as well as showing button when there's map settings

* Included keys for styles in empty state check for grid settings

* converted the code into more AngularJS performant code

* Remove rogue change to grid.editors.config

* use watchCollection instead

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-03-08 12:23:03 +01:00
Kenn Jacobsen 78bb319c79 Re-introduce state in notifications and utilize it in content and media service 2021-03-08 11:01:14 +01:00
Bjarke Berg cf5d000d90 Raise UmbracoApplicationStarting after unattended upgrade 2021-03-08 10:19:17 +01:00
Sebastiaan Janssen 64105be274 Merge branch 'v8/dev' into v8/contrib 2021-03-08 10:09:08 +01:00
Sebastiaan Janssen b59026ae5c Merge branch 'v8/8.12' into v8/dev 2021-03-08 10:08:36 +01:00
Sebastiaan Janssen c36a2bced6 Merge branch 'v8/8.11' into v8/8.12 2021-03-08 10:08:01 +01:00
Sebastiaan Janssen 0386a311d7 Merge branch 'v8/8.10' into v8/8.11 2021-03-08 10:07:40 +01:00
Sebastiaan Janssen 5825aa5dee Merge branch 'v8/8.9' into v8/8.10 2021-03-08 10:07:08 +01:00
Sebastiaan Janssen ac41c5451e Merge branch 'v8/8.8' into v8/8.9 2021-03-08 10:06:37 +01:00
Niels LyngsøandSebastiaan Janssen cef1a73a2e no need to prevent or stop propagation on this. (#9933)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
(cherry picked from commit af65810048)
2021-03-08 10:05:46 +01:00
Bjarke Berg 72411aa1a1 Add nice error page for boot, like in v8 2021-03-08 10:03:36 +01:00
af65810048 no need to prevent or stop propagation on this. (#9933)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-03-08 09:44:33 +01:00
Shannon a07728f8db Starts removing usage of CallContext and some cleanup 2021-03-08 17:08:15 +11:00
Bjarke Berg a86054e487 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/merge-v8-05032021 2021-03-08 07:01:19 +01:00
Shannon 29901f9ecf minor cleanup 2021-03-08 13:42:51 +11:00
Shannon 8c88c3e00f Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/10196-ambient-scope
# Conflicts:
#	src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs
2021-03-08 13:33:07 +11:00
Shannon 455181dbb4 Fixing tests 2021-03-08 12:31:17 +11:00
Bjarke BergandGitHub e7176164b1 Merge pull request #9934 from umbraco/netcore/unattended-user-create
Unattended Install - Automated User Creation
2021-03-07 20:25:40 +01:00
Andy Butland dc21e9ee8a Added integration tests for CacheInstructionRepository. 2021-03-07 19:35:36 +01:00
Bjarke Berg 24d4b4c9fb Added validation and moved Unattended Settings into their own model. + Added DataAnnonation validation on all our settings 2021-03-07 19:20:16 +01:00
emmagarland a53688c503 Fixed logic for groups. 2021-03-07 15:58:11 +00:00
emmagarland 401f713ca5 Updated logic in member group controller to ensure group is saved when new 2021-03-07 15:21:49 +00:00
Andy Butland 6db390e1d5 Broke out SQL calls in DatabaseServerMessenger and BatchedDatabaseServerMessenger into a service and repository layer. 2021-03-07 12:30:40 +01:00
Emma Garland abd92baffd Merge branch 'netcore/dev' into netcore/members-roles-save 2021-03-07 10:50:29 +00:00
b770bdb93e Make properties full width in small infinite editors (#9812)
* Make properties in small infinite editors full width

* bump specificity

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-07 09:39:48 +10:00
emmagarland 5051f8160f Remove unecessary check for int 2021-03-06 23:13:15 +00:00
Ronald BarendseandNathan Woulfe 678434a561 Remove orderBy filter for languages/variants 2021-03-07 09:09:41 +10:00
emmagarland 4e9423687c Changed controller to use role manager. Updated mapping. Don't commit test database. 2021-03-06 23:09:19 +00:00
4f823093f3 9940: Make sure that ordering is correct (#9944)
* 9940: Make sure that ordering is correct

* 9940: Removed unnecessary ordering

* replace i with umb-icon directive

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-03-07 08:35:41 +10:00
emmagarland fa684222e8 Updated unit tests 2021-03-06 18:57:54 +00:00
emmagarland df25e6ea53 Fixed test 2021-03-06 13:53:09 +00:00
emmagarland b1685905e3 Added delete tests 2021-03-06 13:51:41 +00:00
emmagarland 05ccb9e8bb Extended and updated unit tests. Put store methods into try and catch where accessing a service. Added more identity results and try/catches where needed.
Updated memberuserstore. Ignore temporary test cached files.
2021-03-06 13:44:02 +00:00
Emma Garland 3d53690048 Add role store to service collection. Updated tests with new role methods. 2021-03-06 10:53:34 +00:00
Warren Buckley c57a9b9d3b Merge remote-tracking branch 'origin/netcore/dev' into netcore/unattended-user-create 2021-03-05 17:25:57 +00:00
Warren Buckley 820be3c063 Remove the extra whitespace I added 2021-03-05 17:18:32 +00:00
Warren BuckleyandGitHub 254d88e3c8 Update src/Umbraco.Web.Common/Install/CreateUnattendedUserNotificationHandler.cs 2021-03-05 17:16:05 +00:00
Warren BuckleyandGitHub e11079c568 Update src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs 2021-03-05 17:15:59 +00:00
Warren BuckleyandGitHub 86fff278c6 Update src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs 2021-03-05 17:15:53 +00:00
Warren Buckley ea05685db6 Revert changes as not needed 2021-03-05 17:13:09 +00:00
Mads Rasmussen 35653bd8d5 remove unused code 2021-03-05 16:06:15 +01:00
Mads Rasmussen 2863930a17 add todo 2021-03-05 16:04:26 +01:00
Mads Rasmussen b403a2bee4 remove fieldsets and add tabs to model instead 2021-03-05 16:03:39 +01:00
Bjarke Berg ec1d3dd43d Revert test values 2021-03-05 15:47:33 +01:00
Bjarke Berg 37ed84871a Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
# Conflicts:
#	build/NuSpecs/UmbracoCms.Core.nuspec
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/SolutionInfo.cs
#	src/Umbraco.Core/Cache/CacheKeys.cs
#	src/Umbraco.Core/Composing/TypeFinder.cs
#	src/Umbraco.Core/Configuration/GlobalSettings.cs
#	src/Umbraco.Core/Configuration/GlobalSettingsExtensions.cs
#	src/Umbraco.Core/Configuration/IGlobalSettings.cs
#	src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs
#	src/Umbraco.Core/Configuration/UmbracoSettings/ContentSectionExtensions.cs
#	src/Umbraco.Core/Constants-AppSettings.cs
#	src/Umbraco.Core/Editors/UserEditorAuthorizationHelper.cs
#	src/Umbraco.Core/Extensions/StringExtensions.cs
#	src/Umbraco.Core/Extensions/UriExtensions.cs
#	src/Umbraco.Core/IO/IOHelper.cs
#	src/Umbraco.Core/IO/PhysicalFileSystem.cs
#	src/Umbraco.Core/Media/Exif/MathEx.cs
#	src/Umbraco.Core/Media/UploadAutoFillProperties.cs
#	src/Umbraco.Core/Models/Mapping/UserMapDefinition.cs
#	src/Umbraco.Core/Models/Membership/User.cs
#	src/Umbraco.Core/Models/UserExtensions.cs
#	src/Umbraco.Core/Packaging/PackageDefinitionXmlParser.cs
#	src/Umbraco.Core/PropertyEditors/ListViewConfiguration.cs
#	src/Umbraco.Core/PropertyEditors/ValueConverters/MediaPickerValueConverter.cs
#	src/Umbraco.Core/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs
#	src/Umbraco.Core/Routing/AliasUrlProvider.cs
#	src/Umbraco.Core/Routing/DefaultUrlProvider.cs
#	src/Umbraco.Core/Routing/UriUtility.cs
#	src/Umbraco.Core/Routing/UrlProviderExtensions.cs
#	src/Umbraco.Core/Runtime/CoreRuntime.cs
#	src/Umbraco.Core/RuntimeOptions.cs
#	src/Umbraco.Core/RuntimeState.cs
#	src/Umbraco.Core/Security/BackOfficeUserStore.cs
#	src/Umbraco.Core/Security/ContentPermissions.cs
#	src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
#	src/Umbraco.Core/Trees/TreeNode.cs
#	src/Umbraco.Core/Udi.cs
#	src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs
#	src/Umbraco.Examine/Umbraco.Examine.csproj
#	src/Umbraco.Infrastructure/Examine/ContentValueSetValidator.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
#	src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs
#	src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs
#	src/Umbraco.Infrastructure/Scoping/Scope.cs
#	src/Umbraco.Infrastructure/Search/ExamineComponent.cs
#	src/Umbraco.Infrastructure/Security/IdentityMapDefinition.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MediaService.cs
#	src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs
#	src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/UserExtensionsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Editors/UserEditorAuthorizationHelperTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Examine/UmbracoContentValueSetValidatorTests.cs
#	src/Umbraco.Tests/Configurations/UmbracoSettings/ContentElementTests.cs
#	src/Umbraco.Tests/Configurations/UmbracoSettings/umbracoSettings.config
#	src/Umbraco.Tests/TestHelpers/SettingsForTests.cs
#	src/Umbraco.Tests/Testing/TestDatabase.cs
#	src/Umbraco.Tests/Web/Controllers/ContentControllerUnitTests.cs
#	src/Umbraco.Tests/Web/Controllers/FilterAllowedOutgoingContentAttributeTests.cs
#	src/Umbraco.Tests/Web/Controllers/MediaControllerUnitTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.BackOffice/Controllers/CodeFileController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MacrosController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PackageInstallController.cs
#	src/Umbraco.Web.BackOffice/Controllers/TourController.cs
#	src/Umbraco.Web.BackOffice/Controllers/UserGroupEditorAuthorizationHelper.cs
#	src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs
#	src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingMediaAttribute.cs
#	src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
#	src/Umbraco.Web.BackOffice/Services/IconService.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeControllerBase.cs
#	src/Umbraco.Web.BackOffice/Trees/FileSystemTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs
#	src/Umbraco.Web.Common/Extensions/FormCollectionExtensions.cs
#	src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js
#	src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/editors/media.controller.js
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
#	src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
#	src/Umbraco.Web.UI/config/umbracoSettings.Release.config
#	src/Umbraco.Web/Cache/MemberCacheRefresher.cs
#	src/Umbraco.Web/Composing/ModuleInjector.cs
#	src/Umbraco.Web/Editors/BackOfficeController.cs
#	src/Umbraco.Web/Editors/Binders/ContentModelBinderHelper.cs
#	src/Umbraco.Web/Editors/ContentTypeController.cs
#	src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs
#	src/Umbraco.Web/Editors/Filters/MediaItemSaveValidationAttribute.cs
#	src/Umbraco.Web/Editors/Filters/UserGroupAuthorizationAttribute.cs
#	src/Umbraco.Web/Editors/TinyMceController.cs
#	src/Umbraco.Web/Editors/UserGroupsController.cs
#	src/Umbraco.Web/Editors/UsersController.cs
#	src/Umbraco.Web/ImageCropperTemplateExtensions.cs
#	src/Umbraco.Web/Logging/WebProfiler.cs
#	src/Umbraco.Web/Logging/WebProfilerProvider.cs
#	src/Umbraco.Web/Macros/PublishedContentHashtableConverter.cs
#	src/Umbraco.Web/Mvc/EnsurePublishedContentRequestAttribute.cs
#	src/Umbraco.Web/Mvc/JsonNetResult.cs
#	src/Umbraco.Web/Mvc/MemberAuthorizeAttribute.cs
#	src/Umbraco.Web/Mvc/RenderRouteHandler.cs
#	src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
#	src/Umbraco.Web/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
#	src/Umbraco.Web/RoutableDocumentFilter.cs
#	src/Umbraco.Web/Routing/ContentFinderByUrlAlias.cs
#	src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
#	src/Umbraco.Web/Routing/PublishedRouter.cs
#	src/Umbraco.Web/Runtime/WebInitialComposer.cs
#	src/Umbraco.Web/Scheduling/KeepAlive.cs
#	src/Umbraco.Web/Security/AppBuilderExtensions.cs
#	src/Umbraco.Web/Security/BackOfficeClaimsIdentityFactory.cs
#	src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
#	src/Umbraco.Web/Trees/DictionaryTreeController.cs
#	src/Umbraco.Web/Trees/LanguageTreeController.cs
#	src/Umbraco.Web/Trees/LogViewerTreeController.cs
#	src/Umbraco.Web/Trees/PackagesTreeController.cs
#	src/Umbraco.Web/UmbracoApplication.cs
#	src/Umbraco.Web/UmbracoApplicationBase.cs
#	src/Umbraco.Web/UmbracoInjectedModule.cs
#	src/Umbraco.Web/WebApi/Filters/AdminUsersAuthorizeAttribute.cs
#	src/Umbraco.Web/WebApi/Filters/CheckIfUserTicketDataIsStaleAttribute.cs
#	src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForContentAttribute.cs
#	src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForMediaAttribute.cs
#	src/Umbraco.Web/WebApi/MemberAuthorizeAttribute.cs
2021-03-05 15:36:27 +01:00
Mole d505c85551 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/individual-nuget-pr-assembly 2021-03-05 14:07:16 +01:00
Mole 2dbc206ce0 Set template default value to 9.0.0-alpha004 2021-03-05 14:06:30 +01:00
Mole f5df05d685 Add metadata to all packages and rename UmbracoCms.Lucene.nuspec to UmbracoCms.Examine.Lucene.nuspec 2021-03-05 13:56:41 +01:00
Mole a3c8638636 Create nuspec for Examine.Lucene
Need to do this to be able to add the Examine/Lucene dlls.

You can actually create and run a site with the template \o/
2021-03-05 10:03:32 +01:00
Mads Rasmussen 751b5ab859 make tabs droppable 2021-03-05 09:54:24 +01:00
Shannon 1094ae3723 fix test 2021-03-05 15:37:34 +11:00
Shannon 283130e349 fix build 2021-03-05 15:35:20 +11:00
Shannon df333ec8cb Updates scopes in execution context to use a Stack so we know which is the top Scope/Context. Fixes disposing things on end request, fixes ensuring orphaned scopes are disposed at end request. 2021-03-05 15:27:45 +11:00
Emma Garland e124ee336a Deleted MembersRoleProvider. Switched to role store. Made everything single not plural. Fixed formatting. 2021-03-04 17:29:11 +00:00
Mads Rasmussen 992b23939c add tab sort input 2021-03-04 15:48:08 +01:00
Mads Rasmussen 1915009c33 clean up sorting options a bit with default options 2021-03-04 15:31:55 +01:00
Mads Rasmussen c77ab4735b use other view model for easier sorting 2021-03-04 15:24:44 +01:00
Emma Garland 4cb9923c24 Updated errors and unit tests 2021-03-04 13:46:12 +00:00
Mole 390cf6ca66 Pack all projects as individual packages and add them as dependency
Only have to add Umbraco.Cms.Web.Website and Umbraco.Cms.Web.BackOffice, rest will be indirect dependencies.
2021-03-04 14:10:55 +01:00
Shannon 7d45a585ee adds tests 2021-03-04 23:59:41 +11:00
Kenn Jacobsen fb6ee032a4 Made all notifications sealed 2021-03-04 13:01:35 +01:00
Kenn Jacobsen 893c325191 Marked the TreeChange events as internal for now (until they can be rewritten) 2021-03-04 12:25:43 +01:00
Kenn Jacobsen 500ca7b31e Refactor RedirectTrackingHandler to remove duplicate code 2021-03-04 11:58:45 +01:00
Sebastiaan Janssen 475f7e6c3b Bump version to 8.12.0 2021-03-04 09:40:23 +01:00
Kenn Jacobsen 27c5c1b461 Added some copyright notices and updated a few TODOs 2021-03-04 07:14:54 +01:00
Shannon e4115acae6 removes duplicate root namespace 2021-03-04 17:02:14 +11:00
Shannon d72c11821f Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/10196-ambient-scope
# Conflicts:
#	src/Umbraco.Core/HybridAccessorBase.cs
#	src/Umbraco.Core/Security/IBackOfficeSecurityFactory.cs
#	src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Common/Security/BackofficeSecurityFactory.cs
2021-03-04 16:57:32 +11:00
Shannon DeminickandGitHub 0daad54d7f Merge pull request #9915 from umbraco/netcore/task/9726-fixing-macros
Fixing macro rendering with forms
2021-03-04 16:48:24 +11:00
Shannon 1ef60a7c7d removes unneeded ctor dependency on UmbracoContext 2021-03-04 16:44:09 +11:00
Shannon a41323f389 Fixing build and weird protected fields in UmbracoIntegrationTest 2021-03-04 16:18:57 +11:00
Shannon df9da835b3 fixing tests 2021-03-04 16:04:45 +11:00
Shannon e0a224e0b0 Fixing tests 2021-03-04 15:54:51 +11:00
Shannon d986311459 removes commented out code 2021-03-04 15:38:22 +11:00
Shannon 38ac99e46f adds notes 2021-03-04 15:19:52 +11:00
Shannon efb84409f5 kill UmbracoWebsiteSecurityFactory and UmbracoRoutedRequest, simplify all this. 2021-03-04 15:12:58 +11:00
Shannon ed5116664f kill IBackOfficeSecurityFactory and fix the broken dependency chain 2021-03-04 15:07:54 +11:00
Shannon 1163e7aa3b Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/10196-ambient-scope 2021-03-04 14:49:56 +11:00
Shannon 089d147917 Fix namespaces 2021-03-04 14:49:19 +11:00
Shannon 2d0389d53c Updates project dependencies to latest patch releases, removes Umbraco.Code from Umbraco.Web since it was causing conflicts for some reason - finally these conflict errors are gone. 2021-03-04 14:10:10 +11:00
Bjarke Berg 008fd4271c Fix unattented admin install 2021-03-03 19:48:01 +01:00
Emma Garland c9229880da Renamed and added initial member role store methods, and initial unit tests 2021-03-03 17:33:57 +00:00
Sebastiaan Janssen 7d0b5ecd14 Merge branch 'v8/dev' into v8/contrib 2021-03-03 17:57:00 +01:00
Sebastiaan Janssen e75178e8a6 Merge branch 'v8/8.12' into v8/dev 2021-03-03 17:56:32 +01:00
Warren Buckley aa9ff2e670 The event fires and hits the Handle in the notification/event handler
But it implodes when I inject/add UserManager to this
2021-03-03 16:31:17 +00:00
Kenn Jacobsen 527d726e82 Merge branch 'netcore/dev' into netcore/temp/content-service-without-static-events 2021-03-03 17:17:04 +01:00
Kenn Jacobsen d3d4da0d57 Merge branch 'netcore/temp/content-service-without-static-events' of https://github.com/kjac/Umbraco-CMS into netcore/temp/content-service-without-static-events 2021-03-03 17:12:50 +01:00
Kenn Jacobsen 8e745eb13c Create scoped notification publishing - particularly for "ed" notifications that must run after the current scope has completed 2021-03-03 17:11:42 +01:00
Kenn Jacobsen 1f9a46f6b3 Create scoped notification publishing - particularly for "ed" notifications that must run after the current scope has completed 2021-03-03 17:08:21 +01:00
Warren Buckley b0f078fa4b Trying to get the event/notification handler setup & happy :S 2021-03-03 16:04:28 +00:00
Sebastiaan Janssen c82f379dd9 Merge branch 'v8/8.11' into v8/8.12 2021-03-03 16:35:53 +01:00
Sebastiaan Janssen 8e759d2dfe Merge branch 'v8/8.10' into v8/8.11 2021-03-03 16:35:28 +01:00
Sebastiaan Janssen c10ed3693d Merge branch 'v8/8.9' into v8/8.10 2021-03-03 16:34:58 +01:00
Sebastiaan Janssen 62ac5434ff Merge branch 'v8/8.8' into v8/8.9 2021-03-03 16:34:02 +01:00
Sebastiaan Janssen 5d8eed3eac Merge branch 'v8/8.7' into v8/8.8 2021-03-03 16:33:43 +01:00
Sebastiaan Janssen cf3bef8017 Merge branch 'v8/8.6' into v8/8.7 2021-03-03 16:33:13 +01:00
Bjarke BergandSebastiaan Janssen 0b5bace2f7 Bugfix: Members not locked out after failed login attempts (#9921)
* https://github.com/umbraco/Umbraco-CMS/issues/9861
Added test that shows the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fixed test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
More fix of test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fix issue by raise event and thereby update caches.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
(cherry picked from commit 1bac97e0b0)
2021-03-03 16:32:28 +01:00
Warren Buckley 20d6c7e536 Adds a new empty event with no extra data so we can subscribe when an Unattended install has completed 2021-03-03 15:09:42 +00:00
Warren Buckley f7439a8903 New config settings to use for Unattended install user update 2021-03-03 14:41:07 +00:00
1bac97e0b0 Bugfix: Members not locked out after failed login attempts (#9921)
* https://github.com/umbraco/Umbraco-CMS/issues/9861
Added test that shows the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fixed test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
More fix of test that shows the error. Caches needs to be active, otherwise it do not show the error

* https://github.com/umbraco/Umbraco-CMS/issues/9861
Fix issue by raise event and thereby update caches.

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
2021-03-03 15:00:45 +01:00
Mads Rasmussen b91477ac88 pass in name for server validation 2021-03-03 13:53:16 +01:00
Kenn Jacobsen 134a92e4d9 Use request cache to preserve state between events for redirect tracking 2021-03-03 12:02:29 +01:00
Kenn Jacobsen 6c942f26c8 Let the file upload and image cropper editors clean up files themselves 2021-03-03 10:11:00 +01:00
Kenn Jacobsen 60241f5f51 A little renaming for consistency 2021-03-03 09:16:48 +01:00
Kenn Jacobsen a6b4115675 Moved notification handlers out of the Compose namespace 2021-03-03 09:15:52 +01:00
Kenn Jacobsen f8db15dcc7 Wire up notification handlers in a composer 2021-03-03 09:02:29 +01:00
Mole f072387096 Wrap access to dictionaries in locks and make dictionaries internal readonly 2021-03-03 08:55:14 +01:00
Bjarke Berg c3d6cc0dcd Revert test view component 2021-03-03 07:09:49 +01:00
Bjarke Berg e7b96a5214 Change static fields to instance, in singleton 2021-03-03 06:05:42 +01:00
Bjarke Berg bad576f175 Merge remote-tracking branch 'origin/netcore/task/9726-fixing-macros' into netcore/task/9726-fixing-macros 2021-03-03 05:59:20 +01:00
Shannon 48c4c235d2 fixing tests, updating nunit 2021-03-03 15:36:10 +11:00
Shannon 46c073aaf6 removes CallContextTests 2021-03-03 14:12:14 +11:00
Shannon 6ea5dcd540 Fixes up TaskHelper with notes and tests, fixes up lots of other tests and adds more, ensure the exception from Scope is verbose 2021-03-03 13:43:27 +11:00
Shannon a70a739d62 security accessors should not be hybrid, ensures call context isn't flowed to child set/forget threads, renames TaskHelper and adds a test, removes GenericDictionaryRequestAppCache in favor of HttpContextRequestAppCache that relies on HttpContext and fixes http locks since there was a deadlock problem. Removes SafeCallContext, we just use ExecutionContext.SuppressFlow instead 2021-03-03 10:40:16 +11:00
Shannon dfc202a6c8 init code cleanup 2021-03-03 09:56:34 +11:00
cf6d33f843 Update src/Umbraco.Core/Security/IBackOfficeSecurityFactory.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-03-03 09:38:02 +11:00
Kenn Jacobsen b3ab0c15e3 Don't look for removed events in distributed cache event test 2021-03-02 19:50:40 +01:00
Kenn Jacobsen 22680a741c Make integration tests run again + revert to weird logic in test 2021-03-02 19:11:39 +01:00
Bjarke Berg 1c50ece986 Use c#9 + namespace fix 2021-03-02 16:20:44 +01:00
Kenn Jacobsen 1462e6c3af Split notifications into separate classes + move namespace 2021-03-02 14:30:57 +01:00
Kenn Jacobsen 6ae822588c Fix tests and clean up some 2021-03-02 14:15:26 +01:00
Mole c01fab97b8 Count requested locks in child scopes with the existing dictionaries.
This way we don't have to have a two dictionaries AND two lists.
2021-03-02 13:55:30 +01:00
Mole 8c99a8e8a7 Combine the two lock inner methods into one
And add a couple of more unit tests
2021-03-02 13:07:04 +01:00
Mole e75edbcaf0 Add more tests. 2021-03-02 10:53:55 +01:00
Emma Garland 7ff96d3ed3 Merge branch 'netcore/dev' into netcore/members-roles-save 2021-03-02 09:18:35 +00:00
Mole 65f2c5ee70 Bit of cleaning in Scope 2021-03-02 08:48:09 +01:00
Kenn Jacobsen 1fd909e435 Simplify auditer (make sure it can survive boot with no DB) 2021-03-02 08:14:37 +01:00
Kenn Jacobsen 335a62164c Audit the last few backoffice user events 2021-03-02 08:13:59 +01:00
Mole 37f6e007ba Merge remote-tracking branch 'origin/v8/dev' into v8/feature/10613-distributed-locks 2021-03-02 08:13:42 +01:00
Shannon DeminickandGitHub 52b670973d The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)
* The Value() method for IPublishedContent was not working with the defaultValue parameter

* Update src/Umbraco.Web/PublishedContentExtensions.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs
2021-03-02 01:23:26 +01:00
Kenn Jacobsen 67bd36e950 Merge branch 'netcore/dev' into netcore/temp/remove-backofficeusermanager-static-events 2021-03-01 20:15:54 +01:00
Kenn Jacobsen c3048193c1 Removed most of the static events in MediaService 2021-03-01 20:12:36 +01:00
Kenn Jacobsen ab2b35904f Remove a bunch more events from ContentService 2021-03-01 17:05:59 +01:00
Mole 400b436d98 Fir stab/POC
This still need ALOT of work, but is just an attempt to get my head around things.
2021-03-01 16:06:16 +01:00
Sebastiaan Janssen ece7008ce7 Merge branch 'v8/dev' into v8/contrib 2021-03-01 16:06:12 +01:00
Sebastiaan Janssen dafca1486a Merge branch 'v8/8.12' into v8/dev 2021-03-01 16:05:25 +01:00
Sebastiaan Janssen 03b6f1ba7f Merge branch 'v8/8.11' into v8/8.12 2021-03-01 16:04:49 +01:00
Sebastiaan Janssen 22dee4e8d7 Merge branch 'v8/8.10' into v8/8.11 2021-03-01 16:04:13 +01:00
Sebastiaan Janssen aaa8b0b4b2 Merge branch 'v8/8.9' into v8/8.10 2021-03-01 16:03:42 +01:00
Sebastiaan Janssen 7bc220b4b5 Merge branch 'v8/8.8' into v8/8.9 2021-03-01 16:03:18 +01:00
Sebastiaan Janssen d5ee6c828d Merge branch 'v8/8.7' into v8/8.8 2021-03-01 16:02:37 +01:00
Sebastiaan Janssen d4da9bdcb5 Merge branch 'v8/8.6' into v8/8.7 2021-03-01 16:02:11 +01:00
Bjarke BergandSebastiaan Janssen 8004c8dfd3 Merge pull request #9441 from umbraco/v8/bugfix/explicit-scope-examine
Ensure there's explicit scopes used for all service access in the Examine indexing logic

(cherry picked from commit 3e7f912fcd)
2021-03-01 15:55:36 +01:00
Bjarke BergandGitHub 4d5c7988cf Merge pull request #9892 from kjac/netcore/feature/remove-editormodel-static-events
Replace static editor model events events with IEventAggregator notifications
2021-03-01 14:15:54 +01:00
Bjarke BergandGitHub ef5cd07e5c Merge pull request #9900 from kjac/netcore/feature/emailsender-without-statics
Remove static methods and events from EmailSender
2021-03-01 14:15:09 +01:00
Kenn Jacobsen 87f8039497 Merge branch 'netcore/dev' into netcore/temp/content-service-without-static-events 2021-03-01 13:42:49 +01:00
Kenn Jacobsen e407d083c2 Resolved merge conflicts with netcore/dev 2021-03-01 13:26:34 +01:00
Sebastiaan Janssen e848e396af Don't auto focus on the third menu item 2021-03-01 13:20:58 +01:00
Kenn Jacobsen 0bdd1cc874 Replaced if/else with switch 2021-03-01 13:17:24 +01:00
ShannonandBjarke Berg 7bb18f1cc3 Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space. 2021-03-01 13:16:32 +01:00
Kenn Jacobsen 22ec42a5ab Play it safe - revert to sending emails synchronous 2021-03-01 13:13:37 +01:00
Kenn Jacobsen 03cc342c10 WIP on content service events 2021-03-01 13:10:37 +01:00
Bjarke BergandGitHub 7625857a14 Merge pull request #9870 from umbraco/v8/bugfix/ensure-custom-claims
Keep custom claims that are flowed during security stamp validation
2021-03-01 11:57:53 +01:00
Bjarke BergandGitHub a67f7fad6f Merge pull request #9881 from kjac/netcore/feature/remove-treecontroller-static-events
Replace static events in TreeControllerBase with IEventAggregator notifications
2021-03-01 10:24:20 +01:00
Bjarke Berg 2e4b31d8f6 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/10710
No not use IBackOfficeSecurity in UmbracoContext. Not we use IHttpContextAccessor to get the info about whether the current user is null or not. It is expected to be null in background jobs.
2021-03-01 10:07:20 +01:00
Shannon c1f14de943 fix build 2021-03-01 14:20:15 +11:00
Shannon 9408a90d14 left over namespace 2021-03-01 14:17:03 +11:00
Shannon fa3f66aa07 removes comments 2021-03-01 13:01:28 +11:00
Shannon 70caa227e2 notes 2021-03-01 12:57:04 +11:00
Shannon 6148336d04 Adds new event so we know when umbraco routes a value, ensure the IUmbracoWebsiteSecurity is initialized for front-end requests, cleans up some of the routing middleware, adds lots of notes 2021-03-01 12:51:07 +11:00
emmagarland d67f4d7ec1 Added failed password test result 2021-02-28 19:09:02 +00:00
emmagarland c84564f0d6 Merge branch 'netcore/dev' into netcore/members-passwordchange-temp 2021-02-28 17:05:59 +00:00
emmagarland f5593b1b14 Fixed membercontroller unit tests 2021-02-28 17:02:05 +00:00
Patrick de MooijandMichael Latouche 187db95368 9826: Make sure to set mculture after switching sections 2021-02-27 20:26:04 +01:00
berg cb8fbb9c85 Removed the modelsbuilder project (that is deleted) from the netcore only sln file 2021-02-27 19:35:37 +01:00
berg d7d99e5c00 Fixed issue found by cypress test. script/css folders was not deleted because it search in contentroot and not wwwroot 2021-02-27 19:26:36 +01:00
berg 80a2b4c238 Fixed cypress test 2021-02-27 18:29:59 +01:00
Kenn Jacobsen 90031b83b0 Replaced static events in BackOfficeUserManager with IEventAggregator notifications and removed various unused or obsolete events (i.e. user invitation events) 2021-02-26 16:37:34 +01:00
Emma Garland dee74f4c44 Updated member after password changed on identity member 2021-02-26 15:29:44 +00:00
Emma Garland 034b080c41 Don't rename, too many file changes 2021-02-26 14:52:54 +00:00
Emma Garland bce27c1fe4 Reverted name change 2021-02-26 14:33:27 +00:00
Emma Garland 525d14ed25 Updated to set correct properties 2021-02-26 14:21:23 +00:00
Emma Garland c36aaabd0e Updated to move the logic for whether the password change can occur, into the controller, 2021-02-26 12:42:18 +00:00
Emma Garland 8f392c252a Merge branch 'netcore/dev' into netcore/members-passwordchange-temp
# Conflicts:
#	src/Umbraco.Core/Models/ChangingPasswordModel.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/MemberControllerUnitTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
#	src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs
2021-02-26 11:12:34 +00:00
Mads Rasmussen 7031dbdce3 add keyboard shortcut to add tab 2021-02-26 10:49:30 +01:00
Mads Rasmussen 2de64e3ca3 add demo label 2021-02-26 10:36:41 +01:00
Bjarke BergandGitHub 5b88fbe970 Merge pull request #9899 from umbraco/netcore/bugfix/packages-with-actions
Netcore: Fix packages with actions
2021-02-26 10:34:14 +01:00
Mads Rasmussen 6174914d58 add a temp id to groups 2021-02-26 09:05:21 +01:00
Shannon abb5911b24 WIP fixing issue with macro forms 2021-02-26 16:53:53 +11:00
Shannon f6cf089357 Fix a missed namespace change 2021-02-26 15:14:42 +11:00
Shannon 3113efd122 Adds common.views to view imports 2021-02-26 14:11:00 +11:00
Shannon b21db82929 missed change for default namespace in the UI project 2021-02-26 14:08:57 +11:00
Shannon a597f5d473 removes perfolizer dll reference - it has a package reference 2021-02-26 13:42:03 +11:00
Patrick de MooijandMichael Latouche 3139eb310e 9842: Fix for defaultConfig not working without prevalues 2021-02-26 00:22:50 +01:00
Mads Rasmussen 13a548aedb add new init property after a property has been added 2021-02-25 16:25:27 +01:00
Mads Rasmussen 258d8b98fc add server val field as prop 2021-02-25 16:20:25 +01:00
Mads Rasmussen 5c334243e8 add validation messages to tabs 2021-02-25 15:50:04 +01:00
Kenn Jacobsen 3769e8108c Remove static methods and events from EmailSender 2021-02-25 15:08:56 +01:00
Mads Rasmussen 1f16f0f3f6 only allow change tab title when it is active 2021-02-25 14:33:40 +01:00
Mads Rasmussen 43540a0ab1 allow adding properties to a group before title is added 2021-02-25 14:10:09 +01:00
Mole 70b04e8a8a Merge remote-tracking branch 'origin/netcore/dev' into netcore/bugfix/packages-with-actions 2021-02-25 13:48:16 +01:00
Mads Rasmussen 8f7d9a3067 translude label to group placeholder 2021-02-25 13:48:13 +01:00
Mads Rasmussen cc962b4b90 wire up edit and delete on content-type-property component 2021-02-25 13:35:13 +01:00
Mole f4787f9ae5 Add undo actions to the root node instead of appending them
also fix minor UI bug
2021-02-25 12:36:28 +01:00
Mads Rasmussen 9182d64e5f logic for remove fieldset 2021-02-25 10:40:33 +01:00
Mads Rasmussen d8bdb5cfb4 adjust padding on tabs 2021-02-25 10:05:43 +01:00
Mads Rasmussen 8864a3d8f4 fix property and fieldset filters 2021-02-25 10:05:30 +01:00
Mads Rasmussen 810dc0ee0a wire up content type group component 2021-02-25 10:04:58 +01:00
Mads Rasmussen 02e4c784cb wire up property placeholder component 2021-02-25 10:04:23 +01:00
Bjarke BergandGitHub 01bf937497 Merge pull request #9741 from umbraco/netcore/feature/AB10074-fix-createmember-and-createcontent
NetCore: Fix CreateMember and CreateContent methods
2021-02-25 09:47:57 +01:00
MoleandGitHub 7644f5c415 Merge pull request #9893 from umbraco/netcore/bugfix/installing-packages
Netcore: Fix installing packages
2021-02-25 09:22:22 +01:00
Bjarke Berg 0c5a1fb648 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB10074-fix-createmember-and-createcontent
# Conflicts:
#	src/Umbraco.Infrastructure/Services/Implement/MemberService.cs
2021-02-25 08:14:42 +01:00
Bjarke Berg 1399fbabe4 Reuse save methods.. 2021-02-25 08:08:02 +01:00
Anders BjernerandNathan Woulfe 3e081f1039 Minor adjustments to ngdocs in editor.service.js 2021-02-25 08:33:10 +10:00
Patrick de MooijandNathan Woulfe c0842c7216 Don't show configuration header if there is none 2021-02-25 08:25:41 +10:00
patrickdemooij9andGitHub 6b3202e37b 9841: Don't focus on nested content node at page load (#9863)
Tested and can confirm that this fixes the focus issue.
2021-02-24 22:16:40 +00:00
Aaron SadlerandNathan Woulfe b019bc0ccf Fix for Grid placeholder breaking out of container 2021-02-25 08:11:28 +10:00
Mads Rasmussen 2470ee96ec init doc type with tabs prototype 2021-02-24 14:25:03 +01:00
Mole 0a2efc252f Re introduce cookie check, but adding return statement 2021-02-24 13:20:53 +01:00
Mole 2fcae1cc28 Fix installing packages. 2021-02-24 12:54:30 +01:00
Kenn Jacobsen 0393a54abf Postfixed notifications with "Notifications" for improved discoverability 2021-02-24 08:56:41 +01:00
Kenn Jacobsen 06c5ce5bb8 Replace static editor model events events with IEventAggregator notifications 2021-02-24 08:43:50 +01:00
Bjarke BergandGitHub 3e7f912fcd Merge pull request #9441 from umbraco/v8/bugfix/explicit-scope-examine
Ensure there's explicit scopes used for all service access in the Examine indexing logic
2021-02-24 08:17:49 +01:00
Bjarke BergandGitHub 4e1c25363d Merge pull request #9891 from umbraco/v8/bugfix/lock-timeout-fix
Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space.
2021-02-24 07:32:27 +01:00
Shannon 82545e3185 Fixes the Sql server SET LOCK_TIMEOUT call which was missing a space. 2021-02-24 16:55:00 +11:00
Kenn Jacobsen b1aabade55 Formatting and comments 2021-02-23 16:20:22 +01:00
Kenn Jacobsen b05d71f76c Replaced static events in TreeControllerBase with IEventAggregator notifications 2021-02-23 16:09:36 +01:00
Bjarke Berg 23f2b091ad Updated v8 version number in js docs 2021-02-23 13:42:52 +01:00
Bjarke BergandGitHub e068c0c4fc Merge pull request #9820 from umbraco/netcore/feature/align-infrastructure-namespaces
Netcore: Align infrastructure namespaces
2021-02-23 13:29:34 +01:00
Bjarke Berg ef4e2eb511 Renamed service implementations namespace to Core 2021-02-23 12:24:51 +01:00
Bjarke Berg dc4595b16a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs
#	src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs
#	src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs
2021-02-23 12:07:22 +01:00
Bjarke BergandGitHub d641e375c5 Merge pull request #9833 from umbraco/9622-remove-backofficeidentity
Netcore: Remove UmbracoBackOfficeIdentity
2021-02-23 11:29:23 +01:00
Bjarke Berg bc17b7463d Added test of AddOrUpdateClaim 2021-02-23 10:52:55 +01:00
Bjarke Berg bbaba0c542 Add or update the TicketExpiresClaimType claim, to ensure its not added multiple times, now that is can be there after a clone. 2021-02-23 10:07:17 +01:00
Mole 36d6ab2213 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Expressions/Rename/Expressions/RenameColumnExpression.cs
#	src/Umbraco.Infrastructure/Migrations/IMigrationExpression.cs
2021-02-23 09:06:31 +01:00
Mole 20a70ec133 Fix merge 2021-02-23 09:05:06 +01:00
Bjarke BergandGitHub 7ecb141581 Merge pull request #9855 from kjac/netcore/feature/clean-up-umbraco-builder-extensions
Remove obsolete method in UmbracoBuilderExtensions
2021-02-23 08:54:37 +01:00
Bjarke BergandGitHub 73010dece5 Merge pull request #9852 from kjac/netcore/feature/umbraco-version-current-rename
Rename UmbracoVersion.Current to UmbracoVersion.Version
2021-02-23 08:53:19 +01:00
Bjarke BergandGitHub f0ad6ca1d5 Merge pull request #9854 from kjac/netcore/feature/cleanup-migration-expression
Removed unused method from migration expression interface
2021-02-23 08:51:48 +01:00
Mole 159747ab61 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs
#	src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComponent.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs
#	src/Umbraco.Infrastructure/Security/IBackOfficeUserManager.cs
#	src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs
#	src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs
#	src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs
#	src/Umbraco.Infrastructure/Security/UserInviteEventArgs.cs
#	src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeLookupNormalizerTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
#	src/Umbraco.Web/Security/IBackOfficeUserPasswordChecker.cs
#	src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs
2021-02-23 08:51:09 +01:00
Bjarke BergandGitHub d91621282c Merge pull request #9853 from kjac/netcore/feature/io-helper-cleanup
Clean up the IO Helper interface
2021-02-23 08:50:02 +01:00
Bjarke BergandGitHub f57e9393b9 Merge pull request #9851 from kjac/netcore/feature/clean-up-obsolete-config
Remove obsolete configuration references
2021-02-23 08:47:23 +01:00
Bjarke BergandGitHub 55eb64de17 Merge pull request #9850 from kjac/netcore/feature/remove-legacy-cache-refresher
Remove legacy member cache refresher and unused base class
2021-02-23 08:45:49 +01:00
Mole f1128d7d70 Replace usage of Thread.CurrentPrincipal with IBackofficeSecurityAccessor 2021-02-23 08:38:27 +01:00
Mole 9d0493d38f Merge remote-tracking branch 'origin/netcore/dev' into 9622-remove-backofficeidentity
# Conflicts:
#	src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs
2021-02-23 08:29:03 +01:00
Shannon DeminickandGitHub 1bc8dbaaf2 Merge pull request #9472 from emmagarland/netcore/members-userstore
Initial creation of vertical slice for create member
2021-02-23 13:10:31 +11:00
Shannon 2bb8b02233 adds notes 2021-02-23 11:28:42 +11:00
Shannon 27d94f1ca6 removes testing timeout so it stays as it was 2021-02-23 11:25:27 +11:00
Shannon e3dc017d7e Keep custom claims that are flowed from autolinking
When auto linking with callbacks such as OnExternalLogin, custom claims can be added to the user which are flowed to the auth ticket/identity.
However, when the security stamp validator executes, the identity is re-created manually without any knowledge of those custom claims so
they are lost. This ensures that those custom claims flow through to the re-generated identity during the security stamp validation phase.
2021-02-23 10:41:00 +11:00
Emma Garland c35af99030 Reverted appsettings 2021-02-22 20:57:41 +00:00
Emma Garland 2109bee83b Merge branch 'netcore/dev' into netcore/members-userstore
# Conflicts:
#	src/Umbraco.Core/Models/Membership/IMembershipUser.cs
#	src/Umbraco.Core/Models/Membership/IUser.cs
#	src/Umbraco.Core/Services/IMembershipRoleService.cs
#	src/Umbraco.Infrastructure/Compose/AuditEventsComponent.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
#	src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeIdentityUser.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs
#	src/Umbraco.Infrastructure/Security/IBackOfficeUserPasswordChecker.cs
#	src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs
#	src/Umbraco.Infrastructure/Security/IdentityMapDefinition.cs
#	src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs
#	src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs
#	src/Umbraco.Infrastructure/Services/Implement/MemberService.cs
#	src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs
#	src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/UmbracoBackOfficeServiceCollectionExtensionsTests.cs
#	src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeClaimsPrincipalFactoryTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/BackOffice/BackOfficeLookupNormalizerTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Security/NoOpLookupNormalizerTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
#	src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/ServiceCollectionExtensions.cs
#	src/Umbraco.Web.BackOffice/Filters/CheckIfUserTicketDataIsStaleAttribute.cs
#	src/Umbraco.Web.BackOffice/Mapping/MemberMapDefinition.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficePasswordHasher.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidator.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSessionIdValidator.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSignInManager.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeUserManagerAuditer.cs
#	src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeIdentityOptions.cs
#	src/Umbraco.Web.BackOffice/Security/ExternalSignInAutoLinkOptions.cs
#	src/Umbraco.Web.BackOffice/Security/IBackOfficeSignInManager.cs
#	src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs
#	src/Umbraco.Web.Common/DependencyInjection/ServiceCollectionExtensions.cs
#	src/Umbraco.Web.Common/Middleware/BootFailedMiddleware.cs
#	src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs
#	src/Umbraco.Web/Security/MembershipHelper.cs
#	src/Umbraco.Web/Security/MembershipProviderBase.cs
#	src/Umbraco.Web/Security/Providers/MembersMembershipProvider.cs
#	src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs
#	src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
2021-02-22 20:55:12 +00:00
Sebastiaan Janssen 5ee98919bc Fix test where selector wasn't specific enough 2021-02-22 17:22:04 +01:00
Sebastiaan Janssen 2cedf435a9 Fix error where the SQL for setting the timeout was missing a crucial space. 2021-02-22 16:41:44 +01:00
Mole 8f21fb5492 Fix Merge 2021-02-22 15:46:46 +01:00
Mole 1c1394e0bf Replace usages of ClaimsIdentityExtensions.Issuer with Constants.Security.BackOfficeAuthenticationType
Also remove todo and cases of using ClaimsIdentityExtensions = Umbraco.Extensions.ClaimsIdentityExtensions;
2021-02-22 15:31:25 +01:00
Mole 405d0e704d Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/ModelsBuilder/PublishedElementExtensions.cs
#	src/Umbraco.Web.Common/ModelsBuilder/DependencyInjection/UmbracoBuilderDependencyInjectionExtensions.cs
#	src/Umbraco.Web.Common/ModelsBuilder/ModelsBuilderNotificationHandler.cs
2021-02-22 15:18:04 +01:00
Bjarke Berg 9123c06aec Fixed issue with /~ folder created doing install 2021-02-22 12:51:17 +01:00
Bjarke BergandGitHub b4fd47e3a8 Merge pull request #9838 from umbraco/netcore/feature/AB10314-mb-embedded-dependencies
NetCore: Moving MB.Embedded into the other existing assemblies
2021-02-22 10:57:41 +01:00
Bjarke Berg bf936cbd65 Fix namespaces when building MB models 2021-02-22 10:32:09 +01:00
Bjarke Berg 890cd45677 Fix namespace 2021-02-22 10:09:20 +01:00
ChadandSebastiaan Janssen 388e0283bc Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856)
(cherry picked from commit a6e1c2e901)
2021-02-22 09:56:13 +01:00
ChadandGitHub a6e1c2e901 Fixes #9615 - Upgrade to Htmlsanitizer v5 (#9856) 2021-02-22 09:53:53 +01:00
Bjarke Berg c453719c2d Fix the register of the IModelsBuilderDashboardProvider 2021-02-22 09:49:24 +01:00
Bjarke Berg 6e89e9a8a9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB10314-mb-embedded-dependencies
# Conflicts:
#	src/Umbraco.Infrastructure/ModelsBuilder/ApiVersion.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/Builder.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/ModelsGenerator.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/PropertyModel.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/TextBuilder.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/TextHeaderWriter.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/TypeModel.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/Building/TypeModelHasher.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/LiveModelsProvider.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/ModelsBuilderAssemblyAttribute.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/ModelsBuilderDashboard.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/ModelsGenerationError.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/OutOfDateModelsStatus.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/PublishedElementExtensions.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/PublishedModelUtility.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/RoslynCompiler.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/TypeExtensions.cs
#	src/Umbraco.Infrastructure/ModelsBuilder/UmbracoServices.cs
#	src/Umbraco.ModelsBuilder.Embedded/ImplementPropertyTypeAttribute.cs
#	src/Umbraco.ModelsBuilder.Embedded/Umbraco.ModelsBuilder.Embedded.csproj
#	src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/UmbracoApplicationTests.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/ContentTypeModelValidator.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/ContentTypeModelValidatorBase.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/DashboardReport.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/DisableModelsBuilderNotificationHandler.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/MediaTypeModelValidator.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/MemberTypeModelValidator.cs
#	src/Umbraco.Web.BackOffice/ModelsBuilder/ModelsBuilderDashboardController.cs
#	src/Umbraco.Web.Common/ModelsBuilder/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Common/ModelsBuilder/ModelsBuilderNotificationHandler.cs
#	src/Umbraco.Web.Common/ModelsBuilder/PureLiveModelFactory.cs
#	src/Umbraco.Web.Common/ModelsBuilder/RefreshingRazorViewEngine.cs
#	src/Umbraco.Web.Common/ModelsBuilder/UmbracoAssemblyLoadContext.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
#	src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs
2021-02-22 09:00:33 +01:00
Mole 63c8365e6a Fix merge and consolidate ClaimsIdentityExtensions into one file. 2021-02-22 08:51:37 +01:00
Mole d413bf49f9 Merge remote-tracking branch 'origin/netcore/dev' into 9622-remove-backofficeidentity
# Conflicts:
#	src/Umbraco.Core/Security/AuthenticationExtensions.cs
#	src/Umbraco.Core/Security/UmbracoBackOfficeIdentity.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/UmbracoBackOfficeIdentityTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Extensions/ClaimsPrincipalExtensionsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Security/BackOfficeAntiforgeryTests.cs
#	src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSecureDataFormat.cs
#	src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeCookieOptions.cs
#	src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs
2021-02-22 08:38:12 +01:00
b8540ca128 Improve speed and reduce allocations by implementing logger overloads to avoid params [] allocation (#8917)
* Implement logger overloads to avoid params [] allocation

* Implement console logger ILogger

* Call correct signature

* Fix exceptions

* Introduce ILogger2

* fix logger reference

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-22 08:22:49 +10:00
mcl-szandGitHub 6eb260001d Ensure that upload file(s) in the MediaPicker is returned (#9367)
The onUploadComplete function returns the last files that are added to a mediafolder. While this works correct by default and in most situations, it doesn't work as expected when a diffrent sorting is used for Media-items. For example, we've added events to sort Media-items automatically by name alphabetically when they are created/uploaded to keep them better organised. 
By sorting the $scope.files array by the Id-property, it ensures that the function returns the uploaded files, instead of the last files in the folder.
2021-02-21 17:22:28 +01:00
Matthew-WiseandGitHub d85b6694fe Make models builder properties virtual to allow mocking (#9335) 2021-02-21 17:19:48 +01:00
6aaefe160b Decimal step size validation (#9334)
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2021-02-21 17:17:10 +01:00
Callum WhyteandGitHub 40f0fbe939 Make abstract FileSystemWrapper class methods virtual (#9528) 2021-02-21 17:03:37 +01:00
Callum WhyteandGitHub 1235520325 Fix consistency in translation files for the term backoffice, Umbraco and several entity types (#9526) 2021-02-21 17:01:49 +01:00
Callum WhyteandGitHub 6cc005315d Unhelpful unsupported property message in Block Editor (#9525) 2021-02-21 16:57:23 +01:00
vidyesh-phasesandGitHub 033a245a21 Added UmbracoAuthorize attribute for BackOfficeController.ExternalLinkLoginCallback (#9500) 2021-02-21 16:52:43 +01:00
Malthe PetersenandGitHub 01e572b742 Change access level for TreeChanged event in Media and ContentService (#9487) 2021-02-21 16:51:03 +01:00
Rachel BreezeandGitHub c11d07dede Performance and accessibility improvements on the embed screen (#9810) 2021-02-21 13:00:48 +01:00
Bjarne FyrstenborgandGitHub 821cba5cd3 Make sorting in media consistent with sorting in content (#9756) 2021-02-21 12:52:42 +01:00
Bjarne FyrstenborgandGitHub 01991db257 Fixes #9625 - Searching icons for "box" returns all icons (#9848) 2021-02-21 12:42:20 +01:00
Bjarne FyrstenborgandGitHub 82701fbacd Fixes #9824 - Filtering in block picker doesn't work (#9831) 2021-02-21 12:37:51 +01:00
jesperweberandGitHub 1906ef0278 Updating danish translations (#9832) 2021-02-21 12:35:50 +01:00
Shannon DeminickandSebastiaan Janssen 64117921ea Fixes: After deleting a member, a reindex is attempted, which fails (#9807)
(cherry picked from commit fa49d6ed10)
2021-02-21 12:04:42 +01:00
Shannon DeminickandGitHub fa49d6ed10 Fixes: After deleting a member, a reindex is attempted, which fails (#9807) 2021-02-21 12:03:28 +01:00
Nathan WoulfeandGitHub f167f022c1 9769 - shift index increment before tryget to allow loop to continue if current iteration exits early (#9799) 2021-02-21 12:00:22 +01:00
patrickdemooij9andGitHub 43a77dc1e4 9569: Fix image cropper buttons (#9777) 2021-02-21 11:52:49 +01:00
Jakob BagterpandGitHub f4e1b46968 Fix: Verify that grid model is JSON object and not IPublishedContent (#9774) 2021-02-21 11:47:35 +01:00
Bjarne FyrstenborgandGitHub 63b417477b Replace tree icon in section picker with umb-icon component (#9760) 2021-02-21 11:42:06 +01:00
Çağatay UNCUandGitHub 616992332a Clean Code and use async methed (#9747) 2021-02-21 11:40:51 +01:00
Bjarne FyrstenborgandGitHub d966e89fd9 Block editor cleanup (#9664) 2021-02-21 11:36:18 +01:00
Andrey KarandashovandGitHub 46ace7dc22 added swedish translations for media picker (#9730) 2021-02-21 11:15:32 +01:00
rbottemaandGitHub e554ef0445 Fix some exceptions being logged the wrong way (#9693)
In these statements, the exception was passed as a log message parameter instead of as the exception. This meant the exception and including stack trace was not logged and thus lost.
2021-02-21 11:03:28 +01:00
ChadandSebastiaan Janssen ad0b70fc04 Speed up boot times and Improve Json (De)Serialization performance and reduce memory usage by reusing JsonSerializerSettings (#9670)
(cherry picked from commit 75ee3b9622)
2021-02-21 11:01:35 +01:00
ChadandGitHub 75ee3b9622 Speed up boot times and Improve Json (De)Serialization performance and reduce memory usage by reusing JsonSerializerSettings (#9670) 2021-02-21 11:00:00 +01:00
ChadandGitHub 596511b7a8 Merge branch 'v8/contrib' into v8/feature/examine-select 2021-02-21 22:43:52 +13:00
Sebastiaan Janssen f27a3be4e6 Fix unit tests after merging PR #9646 2021-02-21 10:30:17 +01:00
Bjarne FyrstenborgandGitHub 56938a7bdc Move relation type id and macro id to sidebar box (#9657) 2021-02-21 09:57:32 +01:00
Bjarne FyrstenborgandGitHub a466b49b2b Eye Dropper Color Picker (#9646) 2021-02-21 09:43:42 +01:00
Bjarne FyrstenborgandGitHub 4b387242f2 Ensure sub-view components are not self-closed elements (#9633) 2021-02-21 09:04:46 +01:00
Bjarne FyrstenborgandGitHub 451f3da8f4 Align datatype sidebar box properties (#9632) 2021-02-21 08:58:56 +01:00
nzdev 7d135899be load only once 2021-02-21 20:45:03 +13:00
Bjarne FyrstenborgandGitHub 5e4d326ec2 Use trim method as trim isn't a property (#9605) 2021-02-21 08:40:59 +01:00
emmagarland f62b7cbf4a Merged from dev 2021-02-20 19:56:35 +00:00
Emma Garland 0a10d3176d Initial changes to password model 2021-02-20 19:16:31 +00:00
Sebastiaan Janssen ea5da426e9 Bump version to 8.12.0-rc 2021-02-20 17:20:35 +01:00
Sebastiaan Janssen 980acafbeb Merge branch 'v8/contrib' into v8/dev 2021-02-20 17:17:27 +01:00
f064c074d1 Fix for Issue #135 - Variation < null >, < null> is not supported by the property type (#9524)
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
2021-02-20 14:37:11 +01:00
2c54adacf2 Add the ability to change the SQL Write Lock TimeOut (#9750)
Co-authored-by: Shannon <sdeminick@gmail.com>
2021-02-20 13:44:15 +01:00
Nathan WoulfeandGitHub b9b75b3794 Fix 'Do something else' button position in create dialog (#9846)
* fixes do something else button position in create dialog for doc types and media types

* adds type attribute to buttons
2021-02-20 02:30:20 +01:00
Emma Garland 0fe7ad826d Updated membership successful result as per PR comments 2021-02-19 17:03:48 +00:00
Kenn Jacobsen 7d1ecf5c22 Move implementation of obsolete method in UmbracoBuilderExtensions to TestHelper 2021-02-19 17:21:38 +01:00
Kenn Jacobsen 6b3041c1fb Removed unused Process() from IMigrationExpression 2021-02-19 17:14:57 +01:00
Kenn Jacobsen dd78fbd447 Clean up the IO Helper interface, obsolete/remove unused/deprecated methods 2021-02-19 16:50:05 +01:00
Kenn Jacobsen 764014fd63 Rename UmbracoVersion.Current to UmbracoVersion.Version 2021-02-19 14:26:55 +01:00
Kenn Jacobsen 71dacf474e Remove obsolete configuration references 2021-02-19 14:10:56 +01:00
Kenn Jacobsen 2f737fbbcd Remove legacy member cache refresher and unused typed cache refresher base class 2021-02-19 13:57:38 +01:00
Kenn Jacobsen 6c7316afcd Move preview authorization middleware to fix preview 2021-02-19 11:45:58 +01:00
Kenn Jacobsen 8dddf0c987 Fix build error after merge 2021-02-19 07:19:16 +01:00
Sebastiaan Janssen 81f1c2e7d6 Update to latest Examine 2021-02-18 22:08:12 +01:00
Sebastiaan JanssenandGitHub 02963e7b29 Remove HtmlSanitizer (#9803) 2021-02-18 17:50:00 +01:00
Mole 815d4fd226 Merge branch 'netcore/dev' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Core/Events/QueuingEventDispatcher.cs
#	src/Umbraco.Core/Logging/LogHttpRequestExtension.cs
#	src/Umbraco.Examine.Lucene/BackOfficeExamineSearcher.cs
#	src/Umbraco.Examine.Lucene/ExamineLuceneComposer.cs
#	src/Umbraco.Examine.Lucene/ExamineLuceneFinalComposer.cs
#	src/Umbraco.Examine.Lucene/Extensions/ExamineExtensions.cs
#	src/Umbraco.Examine.Lucene/ILuceneDirectoryFactory.cs
#	src/Umbraco.Infrastructure/Cache/DatabaseServerMessengerNotificationHandler.cs
#	src/Umbraco.Infrastructure/Cache/DefaultRepositoryCachePolicy.cs
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder.cs
#	src/Umbraco.Infrastructure/Cache/DistributedCacheBinder_Handlers.cs
#	src/Umbraco.Infrastructure/Cache/DistributedCacheExtensions.cs
#	src/Umbraco.Infrastructure/Cache/FullDataSetRepositoryCachePolicy.cs
#	src/Umbraco.Infrastructure/Cache/RepositoryCachePolicyBase.cs
#	src/Umbraco.Infrastructure/Cache/SingleItemsOnlyRepositoryCachePolicy.cs
#	src/Umbraco.Infrastructure/Compose/AuditEventsComponent.cs
#	src/Umbraco.Infrastructure/Compose/BlockEditorComponent.cs
#	src/Umbraco.Infrastructure/Compose/NestedContentPropertyComponent.cs
#	src/Umbraco.Infrastructure/Compose/NestedContentPropertyComposer.cs
#	src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs
#	src/Umbraco.Infrastructure/Compose/PublicAccessComponent.cs
#	src/Umbraco.Infrastructure/Compose/RelateOnCopyComponent.cs
#	src/Umbraco.Infrastructure/Compose/RelateOnTrashComponent.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.CoreServices.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.DistributedCache.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.MappingProfiles.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Repositories.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs
#	src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Uniques.cs
#	src/Umbraco.Infrastructure/Deploy/IGridCellValueConnector.cs
#	src/Umbraco.Infrastructure/EmailSender.cs
#	src/Umbraco.Infrastructure/Events/MigrationEventArgs.cs
#	src/Umbraco.Infrastructure/Examine/BaseValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs
#	src/Umbraco.Infrastructure/Examine/ContentValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Examine/ExamineExtensions.cs
#	src/Umbraco.Infrastructure/Examine/IBackOfficeExamineSearcher.cs
#	src/Umbraco.Infrastructure/Examine/IContentValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Examine/IIndexDiagnostics.cs
#	src/Umbraco.Infrastructure/Examine/IPublishedContentValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Examine/IndexRebuilder.cs
#	src/Umbraco.Infrastructure/Examine/MediaIndexPopulator.cs
#	src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Examine/MemberIndexPopulator.cs
#	src/Umbraco.Infrastructure/Examine/MemberValueSetBuilder.cs
#	src/Umbraco.Infrastructure/Examine/NoopBackOfficeExamineSearcher.cs
#	src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs
#	src/Umbraco.Infrastructure/Examine/UmbracoExamineExtensions.cs
#	src/Umbraco.Infrastructure/Examine/UmbracoIndexConfig.cs
#	src/Umbraco.Infrastructure/HostedServices/HealthCheckNotifier.cs
#	src/Umbraco.Infrastructure/HostedServices/LogScrubber.cs
#	src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
#	src/Umbraco.Infrastructure/HostedServices/ScheduledPublishing.cs
#	src/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTask.cs
#	src/Umbraco.Infrastructure/HostedServices/TempFileCleanup.cs
#	src/Umbraco.Infrastructure/IPublishedContentQuery.cs
#	src/Umbraco.Infrastructure/Install/FilePermissionHelper.cs
#	src/Umbraco.Infrastructure/Install/InstallHelper.cs
#	src/Umbraco.Infrastructure/Install/InstallStepCollection.cs
#	src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs
#	src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseInstallStep.cs
#	src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseUpgradeStep.cs
#	src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
#	src/Umbraco.Infrastructure/Install/InstallSteps/StarterKitDownloadStep.cs
#	src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestIdEnricher.cs
#	src/Umbraco.Infrastructure/Logging/Serilog/Enrichers/HttpRequestNumberEnricher.cs
#	src/Umbraco.Infrastructure/Logging/Serilog/LoggerConfigExtensions.cs
#	src/Umbraco.Infrastructure/Logging/Serilog/SerilogLogger.cs
#	src/Umbraco.Infrastructure/Logging/Viewer/ILogViewer.cs
#	src/Umbraco.Infrastructure/Logging/Viewer/LogViewerComposer.cs
#	src/Umbraco.Infrastructure/Logging/Viewer/SerilogLogViewerSourceBase.cs
#	src/Umbraco.Infrastructure/Manifest/DashboardAccessRuleConverter.cs
#	src/Umbraco.Infrastructure/Manifest/DataEditorConverter.cs
#	src/Umbraco.Infrastructure/Manifest/ManifestParser.cs
#	src/Umbraco.Infrastructure/Manifest/ValueValidatorConverter.cs
#	src/Umbraco.Infrastructure/Media/ImageDimensionExtractor.cs
#	src/Umbraco.Infrastructure/Migrations/Expressions/Create/Index/CreateIndexBuilder.cs
#	src/Umbraco.Infrastructure/Migrations/Expressions/Delete/KeysAndIndexes/DeleteKeysAndIndexesBuilder.cs
#	src/Umbraco.Infrastructure/Migrations/IMigrationContext.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
#	src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreatorFactory.cs
#	src/Umbraco.Infrastructure/Migrations/MigrationBase.cs
#	src/Umbraco.Infrastructure/Migrations/MigrationBase_Extra.cs
#	src/Umbraco.Infrastructure/Migrations/MigrationContext.cs
#	src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs
#	src/Umbraco.Infrastructure/Migrations/PostMigrations/ClearCsrfCookies.cs
#	src/Umbraco.Infrastructure/Migrations/PostMigrations/PublishedSnapshotRebuilder.cs
#	src/Umbraco.Infrastructure/Migrations/PostMigrations/RebuildPublishedSnapshot.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/Upgrader.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/AddContentNuTable.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/ConvertRelatedLinksToMultiUrlPicker.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypeMigration.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/DropDownFlexiblePreValueMigrator.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/RenamingPreValueMigrator.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/UmbracoSliderPreValueMigrator.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/DropDownPropertyEditorsMigration.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/FallbackLanguage.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/MergeDateAndDateTimePropertyEditor.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/Models/PropertyDataDto80.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/PropertyEditorsMigrationBase.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxPropertyEditorsMigration.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/TablesForScheduledPublishing.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_0_0/UpdatePickerIntegerValuesToUdi.cs
#	src/Umbraco.Infrastructure/Migrations/Upgrade/V_8_1_0/ConvertTinyMceAndGridMediaUrlsToLocalLink.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockEditorData.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockEditorDataConverter.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockItemData.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockListEditorDataConverter.cs
#	src/Umbraco.Infrastructure/Models/Blocks/BlockListLayoutItem.cs
#	src/Umbraco.Infrastructure/Models/Mapping/EntityMapDefinition.cs
#	src/Umbraco.Infrastructure/Models/PathValidationExtensions.cs
#	src/Umbraco.Infrastructure/Packaging/PackageDataInstallation.cs
#	src/Umbraco.Infrastructure/Packaging/PackageInstallation.cs
#	src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/DefinitionFactory.cs
#	src/Umbraco.Infrastructure/Persistence/DatabaseModelDefinitions/IndexColumnDefinition.cs
#	src/Umbraco.Infrastructure/Persistence/DbConnectionExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/Dtos/PropertyDataDto.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/AuditEntryFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/ConsentFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/ContentBaseFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/ContentTypeFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/DataTypeFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/DictionaryItemFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/DictionaryTranslationFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/ExternalLoginFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/LanguageFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/MacroFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/MemberGroupFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/PropertyFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/PropertyGroupFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/PublicAccessEntryFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/RelationFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/RelationTypeFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/ServerRegistrationFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/TagFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/TemplateFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/UserFactory.cs
#	src/Umbraco.Infrastructure/Persistence/Factories/UserGroupFactory.cs
#	src/Umbraco.Infrastructure/Persistence/ISqlContext.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/AccessMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/AuditEntryMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/AuditItemMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/BaseMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/ConsentMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/ContentMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/DomainMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/ExternalLoginMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MacroMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MapperCollectionBuilder.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MediaMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MediaTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MemberGroupMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MemberMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/MemberTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/PropertyMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/RelationMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/ServerRegistrationMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/SimpleContentTypeMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/TagMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/TemplateMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/UmbracoEntityMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/UserGroupMapper.cs
#	src/Umbraco.Infrastructure/Persistence/Mappers/UserMapper.cs
#	src/Umbraco.Infrastructure/Persistence/NPocoDatabaseExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/NPocoSqlExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/Querying/ExpressionVisitorBase.cs
#	src/Umbraco.Infrastructure/Persistence/Querying/ModelToSqlExpressionVisitor.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IContentRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IContentTypeRepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IDataTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IDocumentRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IEntityRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IMediaRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IMediaTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IMemberRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IMemberTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/IPublicAccessRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditEntryRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/AuditRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ConsentRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentRepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeCommonRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeContainerRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DataTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DictionaryRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentBlueprintRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentTypeContainerRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DomainRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityContainerRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/EntityRepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ExternalLoginRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/LanguageRepositoryExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MacroRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeContainerRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MediaTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberGroupRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/MemberTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/NotificationsRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PartialViewMacroRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PermissionRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/PublicAccessRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RedirectUrlRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RelationTypeRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/RepositoryBase.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimilarNodeName.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/SimpleGetRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TagRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TemplateRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserGroupRepository.cs
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/UserRepository.cs
#	src/Umbraco.Infrastructure/Persistence/SqlContext.cs
#	src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlServerSyntaxProvider.cs
#	src/Umbraco.Infrastructure/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs
#	src/Umbraco.Infrastructure/Persistence/SqlSyntaxExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseExtensions.cs
#	src/Umbraco.Infrastructure/Persistence/UmbracoDatabaseFactory.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockEditorPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockListConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/BlockListPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/CheckBoxListPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ColorPickerConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ColorPickerPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ComplexEditorValidator.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ComplexPropertyEditorContentEventHandler.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ConfigurationEditorOfTConfiguration.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ContentPickerConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ContentPickerPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/DateTimeConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/DateTimePropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexibleConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/DropDownFlexiblePropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/EmailAddressConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/EmailAddressPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/FileUploadPropertyValueEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/GridConfiguration.cs
#	src/Umbraco.Infrastructure/PropertyEditors/GridConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/GridPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/GridPropertyIndexValueFactory.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfiguration.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ImageCropperConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ImageCropperPropertyValueEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/LabelConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/LabelPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ListViewConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ListViewPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MarkdownConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MarkdownPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MediaPickerConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MediaPickerPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultiNodePickerConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultiNodeTreePickerPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultiUrlPickerValueEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultipleTextStringPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/MultipleValueEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/NestedContentConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComponent.cs
#	src/Umbraco.Infrastructure/PropertyEditors/PropertyEditorsComposer.cs
#	src/Umbraco.Infrastructure/PropertyEditors/RadioButtonsPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/RichTextConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/RichTextEditorPastedImages.cs
#	src/Umbraco.Infrastructure/PropertyEditors/RichTextPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/SliderConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/SliderPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TagConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TagsPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TextAreaConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TextAreaPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TextboxConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TextboxPropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TrueFalseConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/TrueFalsePropertyEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/UploadFileTypeValidator.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockEditorConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/BlockListPropertyValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ColorPickerValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/FlexibleDropdownPropertyValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/GridValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/JsonValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MarkdownEditorValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/MultiUrlPickerValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentManyValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentSingleValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/NestedContentValueConverterBase.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/RteMacroRenderingValueConverter.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueListConfigurationEditor.cs
#	src/Umbraco.Infrastructure/PropertyEditors/ValueListUniqueValueValidator.cs
#	src/Umbraco.Infrastructure/PublishedContentQuery.cs
#	src/Umbraco.Infrastructure/Routing/ContentFinderByConfigured404.cs
#	src/Umbraco.Infrastructure/Routing/NotFoundHandlerHelper.cs
#	src/Umbraco.Infrastructure/Routing/RedirectTrackingComponent.cs
#	src/Umbraco.Infrastructure/Runtime/CoreRuntime.cs
#	src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
#	src/Umbraco.Infrastructure/RuntimeState.cs
#	src/Umbraco.Infrastructure/Scoping/IScope.cs
#	src/Umbraco.Infrastructure/Scoping/IScopeProvider.cs
#	src/Umbraco.Infrastructure/Scoping/Scope.cs
#	src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs
#	src/Umbraco.Infrastructure/Scoping/ScopeReference.cs
#	src/Umbraco.Infrastructure/Search/BackgroundIndexRebuilder.cs
#	src/Umbraco.Infrastructure/Search/ExamineComponent.cs
#	src/Umbraco.Infrastructure/Search/ExamineComposer.cs
#	src/Umbraco.Infrastructure/Search/ExamineFinalComponent.cs
#	src/Umbraco.Infrastructure/Search/ExamineUserComponent.cs
#	src/Umbraco.Infrastructure/Search/UmbracoTreeSearcher.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeClaimsPrincipalFactory.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeIdentityUser.cs
#	src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs
#	src/Umbraco.Infrastructure/Security/IUmbracoUserManager.cs
#	src/Umbraco.Infrastructure/Security/SignOutAuditEventArgs.cs
#	src/Umbraco.Infrastructure/Security/UmbracoIdentityUser.cs
#	src/Umbraco.Infrastructure/Security/UmbracoUserManager.cs
#	src/Umbraco.Infrastructure/Security/UserInviteEventArgs.cs
#	src/Umbraco.Infrastructure/Serialization/ConfigurationEditorJsonSerializer.cs
#	src/Umbraco.Infrastructure/Services/IdKeyMap.cs
#	src/Umbraco.Infrastructure/Services/Implement/AuditService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ConsentService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentTypeBaseServiceProvider.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentTypeService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBase.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTItemTService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
#	src/Umbraco.Infrastructure/Services/Implement/DataTypeService.cs
#	src/Umbraco.Infrastructure/Services/Implement/DomainService.cs
#	src/Umbraco.Infrastructure/Services/Implement/EntityService.cs
#	src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs
#	src/Umbraco.Infrastructure/Services/Implement/ExternalLoginService.cs
#	src/Umbraco.Infrastructure/Services/Implement/FileService.cs
#	src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs
#	src/Umbraco.Infrastructure/Services/Implement/LocalizationService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MacroService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MediaService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MediaTypeService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MemberGroupService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MemberService.cs
#	src/Umbraco.Infrastructure/Services/Implement/MemberTypeService.cs
#	src/Umbraco.Infrastructure/Services/Implement/NotificationService.cs
#	src/Umbraco.Infrastructure/Services/Implement/PackagingService.cs
#	src/Umbraco.Infrastructure/Services/Implement/PropertyValidationService.cs
#	src/Umbraco.Infrastructure/Services/Implement/PublicAccessService.cs
#	src/Umbraco.Infrastructure/Services/Implement/RedirectUrlService.cs
#	src/Umbraco.Infrastructure/Services/Implement/RelationService.cs
#	src/Umbraco.Infrastructure/Services/Implement/RepositoryService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ScopeRepositoryService.cs
#	src/Umbraco.Infrastructure/Services/Implement/ServerRegistrationService.cs
#	src/Umbraco.Infrastructure/Services/Implement/TagService.cs
#	src/Umbraco.Infrastructure/Services/Implement/UserService.cs
#	src/Umbraco.Infrastructure/Suspendable.cs
#	src/Umbraco.Infrastructure/Sync/BatchedDatabaseServerMessenger.cs
#	src/Umbraco.Infrastructure/Sync/DatabaseServerMessenger.cs
#	src/Umbraco.Infrastructure/Sync/RefreshInstruction.cs
#	src/Umbraco.Infrastructure/Sync/RefreshInstructionEnvelope.cs
#	src/Umbraco.Infrastructure/Sync/ServerMessengerBase.cs
#	src/Umbraco.Infrastructure/TagQuery.cs
#	src/Umbraco.Infrastructure/Trees/TreeRootNode.cs
#	src/Umbraco.Infrastructure/WebAssets/BackOfficeJavaScriptInitializer.cs
#	src/Umbraco.Infrastructure/WebAssets/BackOfficeWebAssets.cs
#	src/Umbraco.Infrastructure/WebAssets/RuntimeMinifierExtensions.cs
#	src/Umbraco.Infrastructure/WebAssets/ServerVariablesParser.cs
#	src/Umbraco.Infrastructure/WebAssets/ServerVariablesParsing.cs
#	src/Umbraco.ModelsBuilder.Embedded/Building/Builder.cs
#	src/Umbraco.ModelsBuilder.Embedded/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.ModelsBuilder.Embedded/ModelsBuilderNotificationHandler.cs
#	src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
#	src/Umbraco.Persistence.SqlCe/SqlCeBulkSqlInsertProvider.cs
#	src/Umbraco.Persistence.SqlCe/SqlCeEmbeddedDatabaseCreator.cs
#	src/Umbraco.Persistence.SqlCe/SqlCeSyntaxProvider.cs
#	src/Umbraco.PublishedCache.NuCache/ContentStore.cs
#	src/Umbraco.PublishedCache.NuCache/DataSource/ContentNestedData.cs
#	src/Umbraco.PublishedCache.NuCache/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.PublishedCache.NuCache/MemberCache.cs
#	src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentRepository.cs
#	src/Umbraco.PublishedCache.NuCache/Persistence/NuCacheContentService.cs
#	src/Umbraco.PublishedCache.NuCache/PublishedSnapshotService.cs
#	src/Umbraco.PublishedCache.NuCache/PublishedSnapshotServiceEventHandler.cs
#	src/Umbraco.PublishedCache.NuCache/SnapDictionary.cs
#	src/Umbraco.TestData/LoadTestController.cs
#	src/Umbraco.TestData/UmbracoTestDataController.cs
#	src/Umbraco.Tests.Benchmarks/ModelToSqlExpressionHelperBenchmarks.cs
#	src/Umbraco.Tests.Benchmarks/SqlTemplatesBenchmark.cs
#	src/Umbraco.Tests.Common/Builders/DataTypeBuilder.cs
#	src/Umbraco.Tests.Common/TestHelperBase.cs
#	src/Umbraco.Tests.Common/TestHelpers/MockedValueEditors.cs
#	src/Umbraco.Tests.Common/TestHelpers/SolidPublishedSnapshot.cs
#	src/Umbraco.Tests.Integration/Cache/DistributedCacheBinderTests.cs
#	src/Umbraco.Tests.Integration/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Tests.Integration/Implementations/TestHelper.cs
#	src/Umbraco.Tests.Integration/TestServerTest/TestAuthHandler.cs
#	src/Umbraco.Tests.Integration/Testing/BaseTestDatabase.cs
#	src/Umbraco.Tests.Integration/Testing/TestUmbracoDatabaseFactoryProvider.cs
#	src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs
#	src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTestWithContent.cs
#	src/Umbraco.Tests.Integration/Umbraco.Core/Mapping/ContentTypeModelMappingTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Core/Packaging/PackageDataInstallationTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Migrations/AdvancedMigrationTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/DatabaseBuilderTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/LocksTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoBulkInsertTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoFetchTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/AuditRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DictionaryRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DocumentRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DomainRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/EntityRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/KeyValueRepositoryTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/LanguageRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MacroRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MediaTypeRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/MemberTypeRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/NotificationsRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PartialViewRepositoryTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/PublicAccessRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RedirectUrlRepositoryTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/RelationTypeRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ScriptRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ServerRegistrationRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/StylesheetRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TagRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TemplateRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserGroupRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/UserRepositoryTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SchemaValidationTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SqlServerTableByTableTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/SyntaxProvider/SqlServerSyntaxProviderTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/UnitOfWorkTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeFileSystemsTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopedRepositoryTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/AuditServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/CachedDataTypeServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentEventsTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceEventTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServicePerformanceTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTagsTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ContentTypeServiceVariantsTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/DataTypeServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/EntityServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ExternalLoginServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/LocalizationServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MacroServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MediaTypeServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/RedirectUrlServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/ThreadSafetyServiceTest.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/UserServiceTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Filters/ContentModelValidatorTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/UmbracoBackOfficeServiceCollectionExtensionsTests.cs
#	src/Umbraco.Tests.Integration/Umbraco.Web.Website/Routing/FrontEndRouteTests.cs
#	src/Umbraco.Tests.UnitTests/AutoFixture/AutoMoqDataAttribute.cs
#	src/Umbraco.Tests.UnitTests/TestHelpers/BaseUsingSqlSyntax.cs
#	src/Umbraco.Tests.UnitTests/TestHelpers/TestHelper.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/BackOffice/BackOfficeClaimsPrincipalFactoryTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/DefaultCachePolicyTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/FullDataSetCachePolicyTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Cache/SingleItemsOnlyCachePolicyTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Components/ComponentTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Composing/TypeLoaderTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Extensions/HealthCheckSettingsExtensionsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/Models/Validation/HealthChecksSettingsValidatorTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Configuration/NCronTabParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/CoreThings/UdiTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Manifest/ManifestParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Models/VariationTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockEditorComponentTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/BlockListPropertyValueConverterTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ConvertersTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/DataValueReferenceFactoryCollectionTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/PropertyEditorValueConverterTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/ConvertersTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/ReflectionUtilitiesTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Scoping/ScopeEventDispatcherTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Examine/UmbracoContentValueSetValidatorTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/HealthCheckNotifierTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/KeepAliveTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/LogScrubberTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ScheduledPublishingTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/InstructionProcessTaskTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/ServerRegistration/TouchServerTaskTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/HostedServices/TempFileCleanupTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Logging/LogviewerTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Media/ImageSharpImageUrlGeneratorTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/AlterMigrationTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationPlanTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/MigrationTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Migrations/PostMigrationTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Models/PathValidationTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/ContentTypeMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DataTypeMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/DictionaryTranslationMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/LanguageMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/MediaMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyGroupMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/PropertyTypeMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Mappers/RelationTypeMapperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlExtensionsTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTemplateTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoSqlTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ContentTypeRepositorySqlClausesTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/DataTypeDefinitionRepositorySqlClausesTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/ExpressionTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaRepositorySqlClausesTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/MediaTypeRepositorySqlClausesTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Persistence/Querying/QueryBuilderTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Serialization/JsonNetSerializerTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/AmbiguousEventTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Infrastructure/Services/PropertyValidationServiceTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.ModelsBuilder.Embedded/BuilderTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.PublishedCache.NuCache/SnapDictionaryTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.BackOffice/Controllers/UsersControllerTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/JsInitializationTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/AngularIntegration/ServerVariablesParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/ImageCropperTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Macros/MacroParserTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Website/Controllers/SurfaceControllerTests.cs
#	src/Umbraco.Tests/Cache/PublishedCache/PublishedMediaCacheTests.cs
#	src/Umbraco.Tests/Issues/U9560.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/DictionaryPublishedContent.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/LegacyBackgroundTask/BackgroundTaskRunner.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedContentCache.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMediaCache.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedMemberCache.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/PublishedSnapshot.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/SafeXmlReaderWriter.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedContent.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedProperty.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlPublishedSnapshotService.cs
#	src/Umbraco.Tests/LegacyXmlPublishedCache/XmlStore.cs
#	src/Umbraco.Tests/Models/MediaXmlTest.cs
#	src/Umbraco.Tests/Persistence/Mappers/MapperTestBase.cs
#	src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentDataTableTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentMoreTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentSnapshotTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
#	src/Umbraco.Tests/PublishedContent/PublishedContentTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedMediaTests.cs
#	src/Umbraco.Tests/PublishedContent/PublishedRouterTests.cs
#	src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs
#	src/Umbraco.Tests/Routing/BaseUrlProviderTest.cs
#	src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs
#	src/Umbraco.Tests/Routing/ContentFinderByAliasWithDomainsTests.cs
#	src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs
#	src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs
#	src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs
#	src/Umbraco.Tests/Routing/ContentFinderByUrlWithDomainsTests.cs
#	src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs
#	src/Umbraco.Tests/Routing/MediaUrlProviderTests.cs
#	src/Umbraco.Tests/Routing/UrlProviderWithoutHideTopLevelNodeFromPathTests.cs
#	src/Umbraco.Tests/Routing/UrlRoutesTests.cs
#	src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
#	src/Umbraco.Tests/Scoping/ScopedXmlTests.cs
#	src/Umbraco.Tests/Services/TestWithSomeContentBase.cs
#	src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs
#	src/Umbraco.Tests/TestHelpers/BaseWebTest.cs
#	src/Umbraco.Tests/TestHelpers/ControllerTesting/AuthenticateEverythingMiddleware.cs
#	src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedContent.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedContentTypes.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedMedia.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedMember.cs
#	src/Umbraco.Tests/TestHelpers/Entities/MockedPropertyTypes.cs
#	src/Umbraco.Tests/TestHelpers/Stubs/TestLastChanceFinder.cs
#	src/Umbraco.Tests/TestHelpers/Stubs/TestUserPasswordConfig.cs
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs
#	src/Umbraco.Tests/TestHelpers/TestObjects.cs
#	src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs
#	src/Umbraco.Tests/Testing/Objects/TestDataSource.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
#	src/Umbraco.Tests/UmbracoExamine/EventsTest.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexTest.cs
#	src/Umbraco.Tests/UmbracoExamine/SearchTests.cs
#	src/Umbraco.Tests/Web/PublishedContentQueryTests.cs
#	src/Umbraco.Web.BackOffice/Controllers/AuthenticationController.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ContentTypeController.cs
#	src/Umbraco.Web.BackOffice/Controllers/CurrentUserController.cs
#	src/Umbraco.Web.BackOffice/Controllers/EntityController.cs
#	src/Umbraco.Web.BackOffice/Controllers/ExamineManagementController.cs
#	src/Umbraco.Web.BackOffice/Controllers/LogController.cs
#	src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
#	src/Umbraco.Web.BackOffice/Controllers/MemberController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PreviewController.cs
#	src/Umbraco.Web.BackOffice/Controllers/PublishedSnapshotCacheStatusController.cs
#	src/Umbraco.Web.BackOffice/Controllers/SectionController.cs
#	src/Umbraco.Web.BackOffice/Controllers/TemplateQueryController.cs
#	src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/ServiceCollectionExtensions.cs
#	src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs
#	src/Umbraco.Web.BackOffice/Filters/CheckIfUserTicketDataIsStaleAttribute.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficePasswordHasher.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSecurityStampValidator.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSessionIdValidator.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeSignInManager.cs
#	src/Umbraco.Web.BackOffice/Security/BackOfficeUserManagerAuditer.cs
#	src/Umbraco.Web.BackOffice/Security/ConfigureBackOfficeIdentityOptions.cs
#	src/Umbraco.Web.BackOffice/Security/ExternalSignInAutoLinkOptions.cs
#	src/Umbraco.Web.BackOffice/Security/IBackOfficeSignInManager.cs
#	src/Umbraco.Web.BackOffice/Security/PasswordChanger.cs
#	src/Umbraco.Web.BackOffice/Trees/ApplicationTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/ContentTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/DataTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MediaTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MediaTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MemberTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/MemberTypeTreeController.cs
#	src/Umbraco.Web.BackOffice/Trees/TemplatesTreeController.cs
#	src/Umbraco.Web.Common/Controllers/PluginController.cs
#	src/Umbraco.Web.Common/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Common/Extensions/ApplicationBuilderExtensions.cs
#	src/Umbraco.Web.Common/Extensions/ImageCropperTemplateCoreExtensions.cs
#	src/Umbraco.Web.Common/Extensions/ImageCropperTemplateExtensions.cs
#	src/Umbraco.Web.Common/Extensions/UmbracoCoreServiceCollectionExtensions.cs
#	src/Umbraco.Web.Common/Install/InstallApiController.cs
#	src/Umbraco.Web.Common/Install/InstallController.cs
#	src/Umbraco.Web.Common/Middleware/UmbracoRequestLoggingMiddleware.cs
#	src/Umbraco.Web.Common/Middleware/UmbracoRequestMiddleware.cs
#	src/Umbraco.Web.Common/Security/BackOfficeUserManager.cs
#	src/Umbraco.Web.Common/UmbracoHelper.cs
#	src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/media.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Gallery.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/ListImagesFromMediaFolder.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/AuthorizeUpgrade.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
#	src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Preview.cshtml
#	src/Umbraco.Web.Website/Controllers/SurfaceController.cs
#	src/Umbraco.Web.Website/Controllers/UmbLoginController.cs
#	src/Umbraco.Web.Website/Controllers/UmbLoginStatusController.cs
#	src/Umbraco.Web.Website/Controllers/UmbProfileController.cs
#	src/Umbraco.Web.Website/Controllers/UmbRegisterController.cs
#	src/Umbraco.Web.Website/DependencyInjection/UmbracoBuilderExtensions.cs
#	src/Umbraco.Web.Website/Extensions/PublishedContentExtensions.cs
#	src/Umbraco.Web/Composing/Current.cs
#	src/Umbraco.Web/HttpContextUmbracoContextAccessor.cs
#	src/Umbraco.Web/Macros/MemberUserKeyProvider.cs
#	src/Umbraco.Web/Mvc/PluginController.cs
#	src/Umbraco.Web/Mvc/RenderRouteHandler.cs
#	src/Umbraco.Web/Mvc/RouteDefinition.cs
#	src/Umbraco.Web/Mvc/SurfaceController.cs
#	src/Umbraco.Web/Runtime/AspNetUmbracoBootPermissionChecker.cs
#	src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs
#	src/Umbraco.Web/Security/AuthenticationOptionsExtensions.cs
#	src/Umbraco.Web/Security/BackofficeSecurity.cs
#	src/Umbraco.Web/Security/Providers/MembersRoleProvider.cs
#	src/Umbraco.Web/Security/UmbracoMembershipProviderBase.cs
#	src/Umbraco.Web/UmbracoApplication.cs
#	src/Umbraco.Web/UmbracoApplicationBase.cs
#	src/Umbraco.Web/UmbracoContext.cs
#	src/Umbraco.Web/UmbracoContextFactory.cs
#	src/Umbraco.Web/UmbracoDbProviderFactoryCreator.cs
#	src/Umbraco.Web/UmbracoHttpHandler.cs
#	src/Umbraco.Web/UmbracoWebService.cs
#	src/Umbraco.Web/WebApi/UmbracoApiController.cs
#	src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs
#	src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs
#	src/Umbraco.Web/WebApi/UmbracoAuthorizedApiController.cs
2021-02-18 14:52:18 +01:00
Kenn Jacobsen da0b869229 Merged with netcore/dev 2021-02-18 14:21:57 +01:00
Kenn Jacobsen f5f6824629 Allow serving App_Plugins files to Smidge for minification 2021-02-18 14:07:24 +01:00
MoleandGitHub bf41c2eeaa Netcore: Align namespaces (#9801)
* Rename Umbraco.Core namespace to Umbraco.Cms.Core

* Move extension methods in core project to Umbraco.Extensions

* Move extension methods in core project to Umbraco.Extensions

* Rename Umbraco.Examine namespace to Umbraco.Cms.Examine

* Move examine extensions to Umbraco.Extensions namespace

* Reflect changed namespaces in Builder and fix unit tests

* Adjust namespace in Umbraco.ModelsBuilder.Embedded

* Adjust namespace in Umbraco.Persistence.SqlCe

* Adjust namespace in Umbraco.PublishedCache.NuCache

* Align namespaces in Umbraco.Web.BackOffice

* Align namespaces in Umbraco.Web.Common

* Ensure that SqlCeSupport is still enabled after changing the namespace

* Align namespaces in Umbraco.Web.Website

* Align namespaces in Umbraco.Web.UI.NetCore

* Align namespaces in Umbraco.Tests.Common

* Align namespaces in Umbraco.Tests.UnitTests

* Align namespaces in Umbraco.Tests.Integration

* Fix errors caused by changed namespaces

* Fix integration tests

* Undo the Umbraco.Examine.Lucene namespace change

This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows.

* Fix merge

* Fix Merge
2021-02-18 11:06:02 +01:00
Kenn Jacobsen cfa9adc87e Split backoffice core and extensions JS into two different bundles and disable minification for all core JS bundles 2021-02-18 10:07:09 +01:00
f1717a17f5 Fixes error trying to load Cosmos.CRTCompat.dll (System.BadImageForma… (#9834)
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-02-18 09:27:14 +01:00
Elitsa Marinovska a2cfd277ce Cleanup 2021-02-18 08:33:49 +01:00
Elitsa Marinovska 4bccb995ec Introducing IModelsBuilderDashboardProvider 2021-02-18 08:27:35 +01:00
Elitsa Marinovska 74a67bf8bc Migrating classes to Web.Common proj 2021-02-18 08:26:08 +01:00
Kenn Jacobsen 2ccd4a61f4 Minify client JS as part of the build conditionally (not for dev) and reference only minified JS libraries 2021-02-18 08:23:14 +01:00
Elitsa Marinovska 570d19f298 Migrating classes to Web.BackOffice proj 2021-02-18 08:21:48 +01:00
Elitsa Marinovska e74836cb48 Moving classes to Infrastructure proj 2021-02-18 08:14:27 +01:00
Mole ce5eaac5a4 Merge branch 'netcore/feature/align-namespaces' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Web/Mvc/EnsurePublishedContentRequestAttribute.cs
#	src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs
2021-02-17 15:44:36 +01:00
Mole 57f7a8432c Fix Merge 2021-02-17 15:41:54 +01:00
Mole 738150f5ad Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces
# Conflicts:
#	src/Umbraco.Core/IO/ViewHelper.cs
#	src/Umbraco.Core/Models/ContentModel.cs
#	src/Umbraco.Core/Models/ContentModelOfTContent.cs
#	src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/TemplateRepositoryTest.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Core/Templates/ViewHelperTests.cs
#	src/Umbraco.Tests.UnitTests/Umbraco.Web.Common/Views/UmbracoViewPageTests.cs
#	src/Umbraco.Web.Common/ApplicationModels/BackOfficeApplicationModelProvider.cs
#	src/Umbraco.Web.Common/ApplicationModels/BackOfficeIdentityCultureConvention.cs
#	src/Umbraco.Web.Common/ApplicationModels/UmbracoApiBehaviorApplicationModelProvider.cs
#	src/Umbraco.Web.Common/ApplicationModels/UmbracoJsonModelBinderConvention.cs
#	src/Umbraco.Web.Common/Controllers/RenderController.cs
#	src/Umbraco.Web.Common/Macros/PartialViewMacroPage.cs
#	src/Umbraco.Web.Common/Views/UmbracoViewPage.cs
#	src/Umbraco.Web.UI.NetCore/Views/Partials/blocklist/default.cshtml
#	src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml
#	src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml
#	src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/embed.cshtml
#	src/Umbraco.Web.UI.NetCore/Views/Partials/grid/editors/macro.cshtml
#	src/Umbraco.Web/Mvc/EnsurePublishedContentRequestAttribute.cs
#	src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs
2021-02-17 15:35:44 +01:00
Mole 8ba3f7ccb4 Remove UmbracoBackOfficeIdentity 2021-02-17 14:21:59 +01:00
Mole b9d61f3ad8 Gut UmbracoBackOfficeIdentity 2021-02-17 14:17:38 +01:00
Bjarke BergandGitHub 88acb07873 Merge pull request #9821 from umbraco/netcore/task/9716-custom-routes
Custom controller routes within an Umbraco context (i.e. virtual nodes)
2021-02-17 12:29:20 +01:00
Bjarke Berg 2ba3eb436c Fixed up small findings in refiew..
- Uses ILogger<T> instead of ILoggerFactory
- Uses the GetControllerName extension
- Fixes views
2021-02-17 12:00:57 +01:00
Mole 33a99df73f Remove usage of FromClaimsIdentity 2021-02-17 11:50:19 +01:00
Mole 80716a18d2 Fix mistaken use of GetId() 2021-02-17 10:16:00 +01:00
Mole a87075a941 Switch simple properties to extension methods 2021-02-17 10:11:04 +01:00
Mole d14aa007ea Add extension methods to replace UmbracoBackOfficeIdentity 2021-02-17 09:50:27 +01:00
Bjarke BergandGitHub 9c9734546c Merge pull request #9830 from umbraco/v8/bugfix/logging-for-9514
Fixes logging issue with Published Router and adds logging for Collision Detection
2021-02-17 08:26:33 +01:00
Shannon 16836951b4 Fixes logging for PublishedRouter 2021-02-17 12:45:59 +11:00
Mole fac0be1701 Remove clone
It's no longer needed
2021-02-16 15:43:15 +01:00
MoleandGitHub 0e16528db5 Merge pull request #9827 from umbraco/netcore/bugfix/fixed-build-script-to-use-Directory-build-props
Netcore: Fixed buildscripts to work with latest Umbraco.Build and Directory.Build.props
2021-02-16 14:55:26 +01:00
RobertandGitHub 9ffa1c9e0c Merge pull request #9818 from umbraco/v8/bugfix/added-more-extensions-to-disallowed-upload-files
Added more extensions to disallowed upload files
2021-02-16 14:46:35 +01:00
Bjarke Berg b0150dc8a3 Fixed tests 2021-02-16 14:20:20 +01:00
Warren BuckleyandGitHub 68ff157cf0 Ignores build.tmp folder at root as we don't want to analyze the tmp build output 2021-02-16 12:42:29 +00:00
Bjarke BergandGitHub 4aff5d38f8 Merge pull request #9778 from umbraco/v8/bugfix/broken-user-permissions-caches
Fixes issue with broken caches used for user permissions
2021-02-16 13:41:29 +01:00
Bjarke Berg e1b5212810 Fixed potential NullReferenceException when using obsolete ctor. 2021-02-16 12:56:07 +01:00
Bjarke Berg 02ac81d53f Fixed buildscripts to work with latest Umbraco.Build (0.2.17) and Directory.Build.props. Also updates the port (Now located in launchSettings.json) number if SetUmbracoVersion is called. 2021-02-16 12:28:37 +01:00
Bjarke Berg 176b10cf5d Added overloads to inject AppCaches + Fixed tests 2021-02-16 10:56:16 +01:00
MoleandGitHub e065ba593f Merge pull request #9822 from umbraco/netcore/bugfix/copy-static-files-to-publish-directory
Netcore: Copy static files to publish directory in dotnet template
2021-02-16 10:27:30 +01:00
nzdev bfa6bc43d8 Implement selectfields for examine 2021-02-16 20:56:44 +13:00
Mole aa7294d2b6 Merge branch 'netcore/feature/align-namespaces' into netcore/feature/align-infrastructure-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Examine/ContentIndexPopulator.cs
#	src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexTest.cs
#	src/Umbraco.Tests/UmbracoExamine/SearchTests.cs
2021-02-16 08:29:32 +01:00
Mole 60ecb9ffea Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces 2021-02-16 08:12:41 +01:00
Shannon 7e40a66fed Fixing tests 2021-02-16 18:04:32 +11:00
Shannon 9ef8de36e5 Ensures that we don't add duplicate UmbracoVirtualPageFilterAttribute and that we use the ActionExecutingContext as the context during the FindContent operation 2021-02-16 18:02:05 +11:00
Bjarke Berg 6fcfcb0003 https://github.com/umbraco/Umbraco-CMS/issues/9811 Copy static files to publish directory in dotnet template 2021-02-16 07:19:47 +01:00
Shannon 2477951493 Adds better logging for URL collision detection. 2021-02-16 17:07:12 +11:00
Shannon f40a6be9b6 Remove EnsurePublishedContentRequestAttribute 2021-02-16 12:19:25 +11:00
Bjarne FyrstenborgandNathan Woulfe 97ad14c895 Update to noUiSlider v14.6.3 2021-02-16 08:50:35 +10:00
Jim LöfgrenandNathan Woulfe fc8dc76d80 Changed grid view labels and values to display: inline instead of display: inline-block to fix weird line break. 2021-02-16 08:07:11 +10:00
Bjarke Berg 5188bb09ce Reintroduced temp SolutionInfo 2021-02-15 17:50:33 +01:00
Mole efe952f01c Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Examine/PublishedContentIndexPopulator.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
#	src/Umbraco.Tests/UmbracoExamine/IndexTest.cs
#	src/Umbraco.Tests/UmbracoExamine/SearchTests.cs
2021-02-15 15:55:16 +01:00
Mole 7213080b4e Merge branch 'netcore/feature/align-namespaces' into netcore/feature/align-infrastructure-namespaces 2021-02-15 15:48:09 +01:00
Bjarke Berg 285473d0e8 Fixed failing test 2021-02-15 15:47:59 +01:00
Mole 7e8c7fdc2b Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Search/ExamineComposer.cs
2021-02-15 15:45:03 +01:00
Mole efe4162027 Align Umbraco.Examine.Lucene to Umbraco.Cms.Infrastructure.Examine
The namespace has to be the same as in Infrastructure/Examine otherwise linux build fails.
2021-02-15 14:45:02 +01:00
Mole 9eea570edc Fix Builder and buildertests 2021-02-15 14:32:26 +01:00
Mole 964dd235b5 Align namespaces of missed extension methods. 2021-02-15 13:59:58 +01:00
Bjarke Berg 2fa5c8e3be Fixed registration of IIndexPopulators, to allow injection as IEnumerable<IIndexPopulator> 2021-02-15 13:54:01 +01:00
Bjarke Berg 9ba04c394b Added Directory.Build.props to replace SolutionInfo 2021-02-15 13:53:06 +01:00
Mole 7e791f3fe7 Align namespaces in Packaging to Umbraco.Cms.Core
And fix tests
2021-02-15 13:44:18 +01:00
Bjarke Berg 7ebfd0e63c Added Xamlx extension to the DisallowedUploadFiles 2021-02-15 13:19:16 +01:00
Mole eb091f8dcd Align namespaces in root of infrastructure 2021-02-15 13:14:18 +01:00
Mole 7f58b3479b Align namespaces in WebAssets to Umbraco.Cms.Infrastructure 2021-02-15 13:07:12 +01:00
Mole f0362d4790 Align namespaces in Trees to Umbraco.Cms.Core 2021-02-15 12:57:58 +01:00
Mole 9f012200dc Align namespaces in Sync to Umbraco.Cms.Infrastructure 2021-02-15 12:54:13 +01:00
Mole 33c8396ad2 Align namespaces in Services to Umbraco.Cms.Infrastructure 2021-02-15 12:51:42 +01:00
Mole 0cc3645146 Align namespaces in Serialization to Umbraco.Cms.Infrastructure
This seems like some very Newtonsoft specific things, so I put it infrastructure
2021-02-15 12:42:26 +01:00
Mole 30b086d5d0 Align namespaces in Security to Umbraco.Cms.Core 2021-02-15 12:01:12 +01:00
Mole 9733072f24 Align namespaces in Search to Umbraco.Cms.Infrastructure 2021-02-15 11:45:27 +01:00
Mole 48e1ba2127 Align namespaces in Scoping to Umbraco.Cms.Core 2021-02-15 11:41:12 +01:00
e6462eded6 V8/feature/10273 variant sorting (#9797)
Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-02-15 11:15:45 +01:00
Mole 66de3f4fef Align namespaces in Runtime to Umbraco.Cms.Infrastructure 2021-02-15 11:04:19 +01:00
Mole 3106c2ea7c Align namespaces in routing to Umbraco.Cms.Core 2021-02-15 10:59:52 +01:00
Mole 161f01bc1e Change namespace of PublishedContentTypeCache to Umbraco.Cms.Core.PublishedCache 2021-02-15 10:48:14 +01:00
Mole b17c3158c0 Align namespaces in PropertyEditors to Umbraco.Cms.Core.* 2021-02-15 10:42:35 +01:00
Mole 2ccb97b951 Merge branch 'netcore/feature/align-namespaces' into netcore/feature/align-infrastructure-namespaces 2021-02-15 08:50:30 +01:00
Shannon 4f2682678e Gets virtual page routing working, now just need to document. 2021-02-15 18:50:16 +11:00
Mole 5ef01d0e5c Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces
# Conflicts:
#	src/Umbraco.Infrastructure/Routing/RedirectTrackingComponent.cs
#	src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs
2021-02-15 08:46:46 +01:00
MoleandGitHub 1eac582649 Merge pull request #9814 from umbraco/netcore/bugfix/9813-DisableRedirectUrlTracking_value_cached
Netcore bugfix: DisableRedirectUrlTrackingValue was cached
2021-02-15 08:39:20 +01:00
Bjarke Berg 801c565bd5 https://github.com/umbraco/Umbraco-CMS/issues/9813 - Fixed issue with configuration value cached, even that the dashboard was updating its value. 2021-02-15 08:08:52 +01:00
Emma Garland a931f3c263 Renamed members manager method 2021-02-14 13:01:27 +00:00
Emma Garland 167811b23b Moving adding members services to correct project for use on the front-end, not just the back-office. 2021-02-14 12:57:48 +00:00
Emma Garland a4ee8055f9 Moved builder to corect location 2021-02-12 17:06:29 +00:00
Emma Garland d508bd21ff Fixed PR review comments 2021-02-12 17:03:53 +00:00
Emma Garland 2d00ece365 Renamed MembersUserManager 2021-02-12 14:38:20 +00:00
Mole 5bd8e32279 Align namespaces in Persistence
Made everything except for repository interface be in the Umbraco.Cms.Infrastructure.Persistence namespace
2021-02-12 13:36:50 +01:00
Mole 2d561c34e6 Align namespaces in Models to Umbraco.Cms.Core 2021-02-12 12:53:00 +01:00
Mole 7ab0c61284 Align namespaces in Migrations to Umbraco.Cms.Infrastructure 2021-02-12 12:40:08 +01:00
Mole 548bf27a0c Align namespaces in Media to Umbraco.Cms.Infrastructure 2021-02-12 12:33:52 +01:00
Mole 9979fe9bb1 Align namespaces in Manifest to Umbraco.Cms.Core
If we can ditch Newtonsoft, these could all be in the core project as far as I can see
2021-02-12 11:50:11 +01:00
Mole 07d04dafb8 Align namespaces in Logging to Umbraco.Cms.Core
I'm a bit uncertain about this, they do have a reference to Serilog, but the vast majority of logging already resides in Core, so I opted to move it to Umbraco.Cms.Core
2021-02-12 11:38:50 +01:00
Mole f13a961daa Align namespaces in Install 2021-02-12 11:11:44 +01:00
Mole c3e25c39a1 Align namespaces in HealthChecks and HostedServices 2021-02-12 11:03:28 +01:00
Mole 511a04a62c Align namespaces in Examine folder. 2021-02-12 10:57:50 +01:00
Mole 88f7abb72e Move Deploy and Events to Umbraco.Cms.Core.*
Also move QueuingEventDispatcher to the core project since it has 0 external references, and could be cut and pasted with 0 errors.
2021-02-12 10:54:42 +01:00
Mole b74abaf3af Align namespaces in DependencyInjection to Umbraco.Cms.Infrastructure.DependencyInjection
Even though Core also has this, then pretty much every project has their own DI namespace, and this one does reference third party dependencies as far as I can see
2021-02-12 10:41:07 +01:00
Mole abd5c5fe94 Move namespaces in Configuration folder to Ubmraco.Cms.Core.Compose 2021-02-12 10:35:40 +01:00
Mole 70ec17508f Move namespaces in Compose folder to Ubmraco.Cms.Core.Compose 2021-02-12 10:29:37 +01:00
Mole 9e4f05c0e9 Adjust namespaces in the Cache folder
I made these Umbraco.Cms.Core even though they have to reside in infrastructure.
2021-02-12 10:13:56 +01:00
Mole 47eb0837d4 Fix merge 2021-02-12 08:41:56 +01:00
Mole 9dcd4cb74a Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces
# Conflicts:
#	src/Umbraco.Web/Mvc/SurfaceController.cs
2021-02-12 08:40:36 +01:00
Shannon 996c2b4277 Changes namespace of UmbracoViewPage 2021-02-12 17:23:14 +11:00
Shannon af42af7425 Simplify UmbracoRouteValues since this is an http request feature which dictates what an Umbraco route is 2021-02-12 16:54:19 +11:00
Shannon DeminickandGitHub a5e7f4b434 Merge pull request #9804 from nzdev/v8/feature/nucache-perf-sql-fixes
Guid was not being mapped to Key
2021-02-12 16:15:48 +11:00
Shannon aeae2fcfd2 Removes old classes that merge viewdata and modelstate that are no longer necessary 2021-02-12 16:10:50 +11:00
ChadandGitHub 7c8432c679 Merge branch 'v8/feature/nucache-perf' into v8/feature/nucache-perf-sql-fixes 2021-02-12 18:08:53 +13:00
Shannon DeminickandGitHub bf9214a835 Merge pull request #9805 from nzdev/v8/feature/nucache-perf-sql-bulk-fixes
Support bulk insert of binary data into SQL CE
2021-02-12 14:39:49 +11:00
nzdev d425fbe05e rebuild nucache if serializer changes 2021-02-12 15:41:46 +13:00
nzdev 2a8d043445 support bulk insert for binary in sql ce. Fix column ordering in contentnudto. 2021-02-12 15:01:46 +13:00
nzdev fb93e15c10 fix key 2021-02-12 14:50:21 +13:00
Mole dda023c174 Undo the Umbraco.Examine.Lucene namespace change
This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows.
2021-02-11 15:29:18 +01:00
Mole 5129326005 Fix integration tests 2021-02-11 15:24:23 +01:00
Mole ebdc6a8155 Fix errors caused by changed namespaces 2021-02-11 13:27:19 +01:00
Mole d621174f31 Align namespaces in Umbraco.Tests.Integration 2021-02-11 08:30:27 +01:00
Shannon 55a39613c1 Merge remote-tracking branch 'origin/v8/contrib' into v8/feature/nucache-perf 2021-02-11 12:38:06 +11:00
Shannon 08339d444e Merge branch 'v8/dev' into v8/feature/nucache-perf 2021-02-11 12:23:25 +11:00
230bf1052c V8/feature/super doctype create menu (#9174)
* WIP - added options from superdoctypecreate package

resolve merge conflict in create html file

* fiddling with the wording but it will never be perfect

* looks like ng-if should be ng-show

* Update data-elements for uniqueness (I'm not sure what these are used for!)

* pass 'iscomposition' on the querystring when choosing the 'composition' option from the menu

Why? - in the future we could hide the 'Compositions...' button when choosing to create a composition

* Remove PostCreateCollection implementation now the Create Collection is removed in this PR from the DocType Create menu

resolve merge conflict in Remove PostCreateCollection implementation now the Create Collection is removed in this PR from the DocType Create menu

* Add translations

* Put back PostSave method. It's useful.

Co-authored-by: Kenn Jacobsen <post@kennjacobsen.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-11 09:25:38 +10:00
Mole eb2cf9b4da Align namespaces in Umbraco.Tests.UnitTests 2021-02-10 14:58:22 +01:00
Mole 476d60cc50 Align namespaces in Umbraco.Tests.Common 2021-02-10 14:45:44 +01:00
Mole 72117c1d52 Align namespaces in Umbraco.Web.UI.NetCore 2021-02-10 14:34:09 +01:00
Mole eb03671b52 Align namespaces in Umbraco.Web.Website 2021-02-10 14:30:14 +01:00
Mole 9dcc901395 Ensure that SqlCeSupport is still enabled after changing the namespace 2021-02-10 13:55:16 +01:00
Mole 55aa2edb72 Align namespaces in Umbraco.Web.Common 2021-02-10 11:42:04 +01:00
Emma Garland 89ef1aab37 Renamed Noop 2021-02-10 10:23:25 +00:00
Mole 428e80f515 Align namespaces in Umbraco.Web.BackOffice 2021-02-10 11:11:18 +01:00
Mole 737b471647 Adjust namespace in Umbraco.PublishedCache.NuCache 2021-02-10 10:46:52 +01:00
Mole 53622407b5 Adjust namespace in Umbraco.Persistence.SqlCe 2021-02-10 10:37:57 +01:00
Mole ade00997bc Adjust namespace in Umbraco.ModelsBuilder.Embedded 2021-02-10 10:34:27 +01:00
Jakob BagterpandMichael Latouche e9429cfe44 Separate remove button and label for settings and styles in Grid Layout
It's inconvenient that the click area for the remove button laps over the label of settings and styles in the Grid Layout property editor. Simply as the editor may remove the style/setting by accident – and especially since there isn't an undo option.

Known issue: Linebreak of long text labels doesn't appear pretty, but this is cosmetic and can be fixed.
2021-02-10 03:34:30 +01:00
nzdev 603b38bd6c implement lazy 2021-02-10 12:47:35 +13:00
Emma Garland 093548b933 Moved EmailConfirmed and SecurityStamp properties to shared IMembershipUser (for both IMember and IUser to use) 2021-02-09 16:14:32 +00:00
Emma Garland da2a0713cc Removed unwanted method to use property instead 2021-02-09 15:08:02 +00:00
Mole 24a56882cd Reflect changed namespaces in Builder and fix unit tests 2021-02-09 15:39:00 +01:00
Mole 16597469e6 Move examine extensions to Umbraco.Extensions namespace 2021-02-09 15:25:32 +01:00
Mole 7398a88d16 Rename Umbraco.Examine namespace to Umbraco.Cms.Examine 2021-02-09 15:22:57 +01:00
Mole 34f8766a3c Move extension methods in core project to Umbraco.Extensions 2021-02-09 15:14:56 +01:00
Emma Garland 5d51427858 PR Review: Renamed to Noop for consistency 2021-02-09 13:45:08 +00:00
Sebastiaan Janssen deb38d3f79 Clarification of the CoC 2021-02-09 14:42:55 +01:00
Emma Garland 19fcbf80f4 Merge branch 'netcore/dev' into netcore/members-userstore 2021-02-09 13:22:40 +00:00
Mole dd488a15f4 Move extension methods in core project to Umbraco.Extensions 2021-02-09 13:21:17 +01:00
Sebastiaan Janssen 6694690a11 Duh forgot to save latest version 2021-02-09 13:20:32 +01:00
Sebastiaan Janssen 4a10c99717 Adds CoC enforcement document 2021-02-09 13:17:28 +01:00
Mole 216fb87c79 Rename Umbraco.Core namespace to Umbraco.Cms.Core 2021-02-09 10:22:42 +01:00
Bjarke BergandGitHub 51986063dd Merge pull request #9780 from umbraco/v8/bugfix/fix-mini-profiler-content-apis
Fix mini profiler so that it actually profiles the Content APIs in the back office
2021-02-09 07:15:37 +01:00
Shannon 6b4f99394d Fix mini profiler so that it actually profiles the Content APIs in the back office 2021-02-09 15:30:39 +11:00
Shannon 3b3d55ca26 Fixes issue with broken caches used for user permissions
Calculating start nodes is expensive and this is supposed to be cached but the cache was not working.
2021-02-09 13:43:28 +11:00
Nathan WoulfeandGitHub f8de0fca8f 5596 allow editing alt text in grid (#9681)
* languages

* add service method for media crop details, might be useful elsewhere

* update UI to add buttons for changing image / editing existing

* update mediapicker controller to use named editor service method

* Update media.controller.js

undefined should be null, consistent use of arrow func

* move buttons to the top right - close to the grid toolbar, so more obvious
2021-02-09 02:43:59 +01:00
Daniël KnippersandGitHub fcd802ba47 V8/bugfix/9074 current urls segments (#9075) 2021-02-08 15:16:25 +01:00
Bjarne FyrstenborgandNathan Woulfe 3a9cc910a0 Add more constants for tree icons 2021-02-08 17:00:00 +10:00
Bjarne FyrstenborgandNathan Woulfe 044573d9f1 Use umb-icon component in tree item 2021-02-08 16:47:21 +10:00
5fc37dfeb4 Prevent overflow of searchresults with long urls (#9739)
* Prevent overflow of searchresults with long urls

Small css change to prevent overflow of searchresults with long url's

* fixes wrapping in node-picker search, stop icon shrinking

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-08 16:32:54 +10:00
Bjarne FyrstenborgandNathan Woulfe eb9c4e4d82 Document onChange in umbPagination 2021-02-08 10:13:03 +10:00
a76924f196 Stop using .length !== 0 when its not jQuery (#9715)
* stop using .length !== 0 as its causing errors.

* revert to only change native find()

Co-authored-by: Niels Lyngsø <nsl@umbraco.com>
2021-02-08 10:10:46 +10:00
Niels LyngsøandNathan Woulfe 2d4984d434 check for ´err´ 2021-02-08 10:01:11 +10:00
06e5d07650 Fix eventService memory leaks (#9752)
* fix leak by unbinding event from $rootscope

* destroy more events

* $scope unavailable

* no need to destroy in services as they are singletons

Co-authored-by: nzdev <nzdev@github.com>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-02-08 09:56:56 +10:00
Bjarne FyrstenborgandGitHub 55124fff81 Update icons in umb-tree-search-results component (#9757)
* Avoid use of ng-if

* Green class is not necessary

* Ensure button element use full width

* Left align text inside button element
2021-02-07 02:50:20 +01:00
nzdev 094029134d Bugfix app key 2021-02-07 00:06:32 +13:00
nzdev 3202fe445b Benchmark 2021-02-06 23:26:13 +13:00
nzdev e7baa08788 Improve getAllStoredValues. 2021-02-06 23:17:15 +13:00
nzdev 5edc7b8362 Merge branch 'v8/contrib' of https://github.com/umbraco/Umbraco-CMS into v8/bugfix/localizedtextservice-memory 2021-02-06 21:59:34 +13:00
nzdev 3dd84fa6ff bugfix 2021-02-06 21:57:48 +13:00
nzdev 9de4db358a Merge remote-tracking branch 'umbraco/v8/8.11' into v8/bugfix/localizedtextservice-memory 2021-02-06 21:38:17 +13:00
Sebastiaan JanssenandGitHub 37402c5ba4 Add the ability to change the SQL Write Lock TimeOut (#9744)
* Add the ability to change the SQL Write Lock TimeOut

* Needed to add a default setting to to the settings for tests
2021-02-02 15:17:59 +00:00
Nathan WoulfeandMichael Latouche 63cf3a489d fix history box label, destructure localization response 2021-02-02 02:27:05 +01:00
mcl-szandGitHub 4f3191fabe Fix for applying searchResultFormatter on found searchresults (#9738)
* Fix for applying searchResultFormatter on found searchresults

We found out that when the searchbox in the linkpicker is used, the URL of a page is not being shown anymore since Umbraco 8.7 and later. This is because of the searchResultFormatter wasn't applied correct.

* Changed ES6 arrow syntax as with the other functions.

Changed ES6 arrow syntax as with the other functions.

* Changed single qoutes to double qoutes for type
2021-02-02 09:33:31 +10:00
Elitsa Marinovska 5cd28c8711 Fixing CreateMemember and CreateContent to raise events and logging only when we persist the objs not when we only create them 2021-02-01 16:07:42 +01:00
Niels Lyngsø 3185a285d9 Correcting merge 2021-02-01 11:56:51 +01:00
Niels Lyngsø 352f49f15e Merge remote-tracking branch 'origin/v8/dev' into v8/bugfix/always-ignorer-validation-when-saving
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js
2021-02-01 11:40:32 +01:00
Bjarne FyrstenborgandNathan Woulfe 6e1c29232a Hide rollback button for content that hasn't been created yet 2021-02-01 09:48:07 +10:00
Mike ChambersandGitHub 3404f47cfe Update umb-tree-item.less (#9718)
* Update umb-tree-item.less

Icon sizing inconsistencies in tree

* Update umb-tree-item.less

* Revert "Update umb-tree-item.less"

This reverts commit 4729c39837.

* Revert "Update umb-tree-item.less"

This reverts commit a3d1136c9d.

* Flex-shrink on umb-tree-icon not umb-tree-item-icon
2021-02-01 09:26:09 +10:00
Sebastiaan Janssen 820b04faec Merge branch 'v8/dev' into v8/contrib 2021-01-28 16:10:52 +01:00
Sebastiaan Janssen febb15445a Merge branch 'v8/8.11' into v8/dev 2021-01-28 16:09:09 +01:00
Sebastiaan Janssen e62cef6151 Revert "Fixes wrong dependency in nuspec file"
This reverts commit 8642b61449.
2021-01-28 12:05:19 +01:00
Sebastiaan Janssen 2999a48a59 Bump version to 8.11.1 2021-01-28 11:48:32 +01:00
Sebastiaan Janssen abb469a404 Revert "Updated NPoco from 3.9.4 -> 4.0.2 (#9061)"
This reverts commit d9c6584d90.
2021-01-28 11:47:10 +01:00
Shannon 0688de7767 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf 2021-01-28 15:00:19 +11:00
Shannon 91830e5553 Adds error checking 2021-01-28 14:42:02 +11:00
Shannon 5a80b30289 Fixes SQL (oops), wasn't appending the joins 2021-01-28 14:28:09 +11:00
Shannon 32f88dba95 removes CompressedStorageAttribute, makes IPropertyCacheCompressionOptions which can be defined in DI to configure what properties can be compressed in memory and new IReadOnlyContentBase to provide some context to the IPropertyCacheCompressionOptions 2021-01-28 13:50:18 +11:00
Bjarne FyrstenborgandGitHub 7297bd5838 Adjust minimum width of main content (#9656)
* Adjust minimum width of main content

* Change min-width a bit further.
2021-01-28 09:33:25 +10:00
SteveVaneeckhoutandNathan Woulfe a40769de41 Add ellipsis to the Sort action in Content and Media 2021-01-28 07:44:47 +10:00
Poornima NayarandGitHub 1c65662c5f Replaced <i> with umb-icon directive in languages overview (#9557)
* replaced <i> with umb-icon directive in languages overview

* removed aria-hidden
2021-01-28 07:41:58 +10:00
Shannon 4bfba2eeba adds some notes 2021-01-27 15:31:40 +11:00
Shannon 57708960f0 reverts change for IsDecompressed 2021-01-27 15:16:22 +11:00
Shannon 1a92fdcca8 Merge branch 'nzdev-v8/feature/more-serialization' into v8/feature/nucache-perf 2021-01-27 15:13:53 +11:00
Shannon 0b057d0b3f Merge branch 'v8/feature/more-serialization' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/feature/more-serialization
# Conflicts:
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/LazyCompressedString.cs
2021-01-27 15:13:36 +11:00
Shannon 9200c46cd0 Ensure LazyCompressedString doesn't decompress when debugging 2021-01-27 15:11:16 +11:00
Lars G. SehestedandGitHub 935a8792e6 Fix typos in Danish translation (#9702)
Fixes couple of typos in the Danish translations
2021-01-26 21:16:45 +01:00
3cbae5e2fe Update da.xml (#9660)
* Update da.xml

Found som missing translations

* Update src/Umbraco.Web.UI/Umbraco/config/lang/da.xml

Co-authored-by: Anders Bjerner <abjerner@skybrud.dk>

* Update src/Umbraco.Web.UI/Umbraco/config/lang/da.xml

* Update da.xml

Co-authored-by: Anders Bjerner <abjerner@skybrud.dk>
2021-01-26 21:03:14 +01:00
Sebastiaan Janssen fe2c80fc2b Fix character encoding issues 2021-01-25 09:57:13 +01:00
Sebastiaan Janssen 061655182c Updated code of conduct 2021-01-25 09:27:16 +01:00
Shannon 0cb4952338 Don't keep re-creating serializer settings on deserialize 2021-01-25 15:56:01 +11:00
Shannon 808e58b60f fixes up inconsistencies 2021-01-22 16:14:25 +11:00
ChadandGitHub 0bd4dced0b Improve performance and reduce memory use and reduce array allocations by reusing char[] (#9166)
* Reduce array allocations by reusing char[]

* don't hide .Equals()

* Reduce memory use by reducing array allocations

* Revert "Reduce memory use by reducing array allocations"

This reverts commit faf6b60234.

* reuse char[] for string.split() to avoid params [] allocation
2021-01-22 12:02:25 +10:00
Shannon c5bd53770a fixes sql template 2021-01-22 01:13:03 +11:00
Shannon e01f8319f6 Updates the new nodedto index to include 2 cols as the key and update the includes, this is required for more optimal querying for nucache and others. 2021-01-22 01:12:26 +11:00
Shannon eec81a3890 updates sql usage in DatabaseDataSource 2021-01-22 00:15:07 +11:00
Shannon 4a400b125b Fixes merge issues and updates npoco to latest 4.x 2021-01-22 00:14:37 +11:00
Shannon DeminickandGitHub 382197c0a7 Merge pull request #9268 from nzdev/v8/feature/nucache-perf-count-query-optimization
Optimize content and media count queries when paging
2021-01-21 23:01:29 +11:00
Shannon 4c31fd176b Merge branch 'v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Constants-SqlTemplates.cs
2021-01-21 22:49:33 +11:00
Shannon DeminickandGitHub 335c6b17b9 Merge pull request #9669 from nzdev/v8/bugfix/nullableint-umbracohelper
Minor optimisation by passing int instead of int? to Umbraco.Content()
2021-01-21 22:07:42 +11:00
e0f00a8754 Added missing alt attributes to the images on the login screen and in avatars (#9597)
* Added missing alt text for login and avatar

* Added localisation for the avatar copy

* update alt avatar tag issue + translation

Co-authored-by: Michael <michael@crossingpaths.be>
2021-01-21 02:21:31 +01:00
Niels Lyngsø 97d20baecb skipValidation for content save 2021-01-20 15:30:41 +01:00
Sebastiaan Janssen f10616013f Merge branch 'v8/dev' into v8/contrib 2021-01-20 15:08:23 +01:00
Sebastiaan Janssen 3028159ac0 Merge branch 'v8/8.11' into v8/dev 2021-01-20 15:08:07 +01:00
Sebastiaan Janssen f48b88e84f Merge branch 'v8/8.10' into v8/8.11 2021-01-20 15:07:14 +01:00
Sebastiaan Janssen ef96b47899 Merge branch 'v8/8.9' into v8/8.10 2021-01-20 15:05:42 +01:00
Sebastiaan Janssen 092683ef7b Merge branch 'v8/8.8' into v8/8.9 2021-01-20 15:04:08 +01:00
Mads RasmussenandSebastiaan Janssen 0c9b4565f1 updates the css to support items with long titles
(cherry picked from commit 8e64fe54b1)
2021-01-20 15:03:06 +01:00
Sebastiaan Janssen ed3e0b0f6f Merge branch 'v8/dev' into v8/contrib 2021-01-20 14:49:59 +01:00
Niels LyngsøandGitHub da0c82aabd Call rebindCallback on errors as well (#9690) 2021-01-20 14:26:40 +01:00
Niels LyngsøandGitHub 6d712b0d16 Call rebindCallback on errors as well (#9688) 2021-01-20 14:11:12 +01:00
Sebastiaan Janssen 1c22ce9de0 Merge branch 'v8/dev' into v8/contrib 2021-01-20 11:31:28 +01:00
andreymkarandashovandNathan Woulfe 877640e600 up swedish lang config 2021-01-20 09:17:39 +10:00
14961e670d Improvements to validation and accessibility of relationship create view (#9154)
* Improved validation on save for relationships and also added support for accesibilty

* Moved the localisation into the radiobutton and added support for localisation using lavel-key in the UmbRadioButtonController

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-20 09:12:46 +10:00
Bjarne FyrstenborgandNathan Woulfe c501ef0b68 Inject missing localization service 2021-01-20 09:06:29 +10:00
9601dead7b V8: Angular Divorce: isFunction (#7861)
* Bye bye angular.isFunction & use Utilities.isFunction

* Utilities.js is not available on first load - replace isFunction detection with underscore equivalent

* found a stray isFunction

Co-authored-by: Kenn Jacobsen <post@kennjacobsen.dk>
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-20 08:40:21 +10:00
0822f0cbe5 V8: Angular Divorce: equals (#7860)
* Bye bye angular.equals & use Utilities.equals which is still using angular.equals under the hood for now

* Update umbvariantcontenteditors.directive.js

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-20 08:27:28 +10:00
Sebastiaan Janssen dcc832476f Merge branch 'v8/dev' into v8/contrib 2021-01-19 17:41:06 +01:00
aa5470a801 [AMEND] Updated the redirect URL Repository to search for entries wit… (#9653)
Co-authored-by: Nik Rimington <nrimington@spindogs.com>
2021-01-19 17:29:13 +01:00
Bjarne FyrstenborgandSebastiaan Janssen c1ebfc58cf Add back icon name in class attribute to work again with font icons 2021-01-19 17:18:14 +01:00
Shannon DeminickandGitHub 9f78427caf Merge pull request #9531 from umbraco/v8/feature/unattended-upgrade
Add support for unattended upgrades (and custom boot failed error page)
2021-01-18 15:36:15 +11:00
Shannon c5642fa513 change logging to profile loggin 2021-01-18 15:33:14 +11:00
nzdev 264259164e corrected comparer. 2021-01-17 22:07:35 +13:00
nzdev 2c2ffc671c Add back in check for empty alias. 2021-01-17 22:02:01 +13:00
nzdev befa789d23 Additional benchmarks 2021-01-17 21:56:40 +13:00
nzdev 69e8ee087e Remove debug code, set comparer StringComparer.InvariantCultureIgnoreCase 2021-01-17 21:38:52 +13:00
nzdev dd11122609 Huge improvement in speed and memory allocations for localized text service. 2021-01-17 21:33:35 +13:00
nzdev 5c5d0dad91 Pass int to Umbraco.Content instead of int? given we know _contentId has value. 2021-01-17 14:12:47 +13:00
Rasmus John Pedersen 9851c308f5 Add custom error page for BootFailedException 2021-01-15 09:25:16 +01:00
Rasmus John Pedersen 5efc1817d6 Add unattended upgrade support 2021-01-15 09:17:37 +01:00
Sebastiaan Janssen e8b8723f51 Merge branch 'v8/dev' into v8/contrib 2021-01-13 16:51:29 +01:00
0fdd599596 Nested content UI fixes (#9384)
* Fixing spacing of nested content header + icon

* Removing border from single Nested Content properties

* fix overlapping icon on nested content with multiple items

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2021-01-13 15:11:50 +01:00
Bjarne FyrstenborgandOwain Williams 16cd19ed9a Fix styling of search icon in search filter 2021-01-13 13:58:54 +00:00
Bjarne FyrstenborgandNathan Woulfe 1ccd3e6ec1 Fix issue with button didn't do anything 2021-01-13 22:10:11 +10:00
1d6d4aec56 ngDocs for contentresource (#9570)
* ngDocs for contentresource

* Update content.resource.js

typo: paramater => parameter

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-13 21:58:19 +10:00
Bjarne FyrstenborgandNathan Woulfe 2398c40720 Replace jQuery trim() using vanilla JS 2021-01-13 09:22:01 +10:00
David BrendelandNathan Woulfe 143d2e7e30 Check if urls is null
Check if node.urls is null and set scope.currentUrls to null and return
2021-01-13 09:17:04 +10:00
Sebastiaan Janssen f93e9e2fe0 Merge branch 'v8/dev' into v8/contrib 2021-01-12 13:54:53 +01:00
Sebastiaan Janssen 2b4be86fa6 Merge branch 'v8/dev' into v8/contrib 2021-01-12 13:07:44 +01:00
a62a96dd92 Allow use of infinite editors in list views (#9026)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2021-01-12 09:12:24 +10:00
Sebastiaan Janssen 5a6374086c Merge branch 'v8/dev' into v8/contrib 2021-01-11 12:23:09 +01:00
Sebastiaan Janssen f8692590d0 Fix legacy icons no longer displaying after changes in #9255 2021-01-11 10:25:43 +01:00
Shannon d6d197b159 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf 2020-12-23 14:11:14 +11:00
Shannon 025bcf2f4c notes 2020-12-16 17:50:34 +11:00
nzdev 697206188f use property 2020-12-16 19:23:14 +13:00
nzdev f8bb53ac03 changed isdecompressed to a property. Changed serializerbase to internal 2020-12-16 19:20:24 +13:00
Shannon c3656d3e58 Adds notes fixes tests 2020-12-16 16:52:43 +11:00
Shannon 78b563c79b Adds notes 2020-12-16 16:12:02 +11:00
Shannon 6b19dfe191 Fixing build 2020-12-16 15:45:10 +11:00
Shannon c62b3f4497 re-updates versions for db changes/migrations 2020-12-16 15:44:00 +11:00
Shannon 28b9b62781 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-12-16 15:26:57 +11:00
Shannon 348ae22d91 Fixing tests 2020-12-14 12:37:30 +11:00
nzdev f09fcfbdd4 Fix serialization of decompressed lazy strings 2020-11-27 14:45:44 +13:00
Shannon 7eee09758e Ensure there's explicit scopes used for all service access in the Examine indexing logic 2020-11-24 09:49:58 +11:00
nzdev e8195bfff0 fix deserialization order 2020-11-24 10:10:38 +13:00
nzdev 95fe8bea23 Serialize more primitives 2020-11-24 10:09:27 +13:00
nzdev da3d509333 bug fix. 2020-11-18 14:41:03 +13:00
nzdev e3fd9b72c5 Optimize content and media count queries when paging 2020-10-24 17:06:28 +13:00
Shannon a27e9a6b36 Merge branch 'v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
2020-10-13 16:36:42 +11:00
Shannon 67a9b5bb97 Refactors the serialization of the content data that is stored in the nucache table. This had to change because we need to resolve content type data in order to check if the property should be compressed and we cannot do that data lookup while the data is being processed since we get an open data reader exception. This is fixed now by using a serializer factory instead so the Create method can do any initialization needed prior to running any serialization operation. Renames a few things so we dont have ContentNested (whatever that meant ) 2020-09-25 00:32:11 +10:00
Shannon 780b2e573b Fixes a startup issue that doesn't bubble the underlying boot failed exception if the container fails. 2020-09-25 00:27:46 +10:00
Shannon 6bd6d97bda WIP (fixes migrations) 2020-09-24 18:37:24 +10:00
Shannon 8c4650951d Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
#	src/Umbraco.Core/Persistence/SqlSyntax/SqlCeSyntaxProvider.cs
2020-09-24 16:00:49 +10:00
Ronald Barendse 0613de2a09 Get settings model type from configuration (instead of data) 2020-09-08 23:47:08 +02:00
Shannon 880e5179bf Fixing tests 2020-08-26 16:11:58 +10:00
Shannon 9a06b6291a Simplifies compression implementation, adds compression options to target all complex editors, ensures the options are per document type/property type 2020-08-26 15:57:13 +10:00
Shannon ba8da3850e This gets things working with all compression levels - going to cleanup/simplify 2020-08-26 11:43:43 +10:00
Shannon 8ab5899db2 Adds another required DB index 2020-08-25 15:18:23 +10:00
Shannon 68c4e4f36b ObjectType and UniqueId indexes now cover all fields since anytime these are queried we return all data. 2020-08-25 14:49:13 +10:00
Shannon a078a30990 Re-adds the indexes removed 2020-08-25 14:19:44 +10:00
Shannon aec828098d adds MessagePack to nuspec 2020-08-25 12:33:47 +10:00
Shannon 77e5a41077 Updates indexes on umbracoNode and umbracoContentVersion which uses INCLUDE columns 2020-08-25 12:26:24 +10:00
Shannon DeminickandGitHub 5f2137c273 Merge pull request #8630 from nzdev/v8/feature/sql-server-include-index
Support include in sql server indexes
2020-08-25 10:41:59 +10:00
Shannon d84d305ae9 Changes our Expression visitor to not output NOT for boolean values 2020-08-25 10:38:49 +10:00
Shannon 6f2dccc2e2 Uses a more optimized COUNT query when rebuilding the in memory cache 2020-08-25 10:14:36 +10:00
nzdev 7379846597 SQL CE no support for includes. Add null check. 2020-08-14 18:03:51 +12:00
nzdev 23880b596f Fix formatting 2020-08-14 10:02:22 +12:00
Shannon 666d67e562 Merge remote-tracking branch 'origin/v8/dev' into v8/feature/nucache-perf
# Conflicts:
#	src/Umbraco.Core/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
2020-08-14 00:49:03 +10:00
Shannon c619e5a96a Fixes the property map, adds notes, updates tests data to include larger paragraphs 2020-08-14 00:45:58 +10:00
Shannon 7d689a6e11 adds notes, ensures that we optimize property data when using msgpack binary serialization too! 2020-08-13 23:32:05 +10:00
Shannon 9ac2c27110 Revert "removes the SQLDatabase enum value" and renames some stuff 2020-08-13 23:09:40 +10:00
Shannon 044585a4f3 removes the SQLDatabase enum value 2020-08-13 22:22:06 +10:00
Shannon 07de0876e7 Cleans up some code, adds code comments 2020-08-13 22:15:09 +10:00
nzdev cb69192678 Support include in sql server indexes 2020-08-13 23:11:03 +12:00
Shannon 0d159751b9 Cleans up code - removes tuples everywhere 2020-08-13 19:15:13 +10:00
Shannon DeminickandGitHub 8a2adf209d Merge pull request #8400 from nzdev/v8/feature/nucache-property-compression
WIP Option C - Compress custom properties for nucache to reduce memory consumption
2020-08-13 18:31:58 +10:00
nzdev e65f3a7e80 undo solution changes 2020-08-04 18:21:16 +12:00
nzdev 451eacf7cb Fix NuCache spelling 2020-08-04 18:03:08 +12:00
nzdev d4276dff58 Fix composition. Store compression options in map 2020-08-04 18:01:06 +12:00
nzdev d1449a0f5c Fix key mapping 2020-07-09 11:50:15 +12:00
nzdev c1c189d47f Wip support for compressing/decompressing nucache documents on a per property basis. Option for compressing the properties in sql/nucache.db. Option for immediate/lazy decompression of properties. Mapping support for shorter property alias.
TODO: config file for property map
TODO:  HasValue and IsValue on propertyvalueconverterbase
2020-07-09 00:17:31 +12:00
nzdev 8d96725345 Merge branch 'v8/feature/nucache-perf' of https://github.com/umbraco/Umbraco-CMS into v8/feature/nucache-perf 2020-07-08 11:32:19 +12:00
Shannon 1280235dcf Adds custom mapper for SqlCe for Image column, hopefully tests pass now. 2020-07-06 16:25:15 +10:00
Shannon a634c0b835 Merge branch 'v8/feature/nucache-perf' of https://github.com/umbraco/Umbraco-CMS into v8/feature/nucache-perf 2020-07-03 16:30:43 +10:00
Shannon e8717e6bf8 fixing tests and sqlce blob column 2020-07-03 16:30:20 +10:00
Shannon DeminickandGitHub 0d4f5c9ea7 Merge pull request #8378 from nzdev/v8/feature/nucache-perf
support uInt32
2020-07-03 16:03:03 +10:00
nzdev 76a718c5bc Merge branch 'v8/feature/nucache-perf' of https://github.com/umbraco/Umbraco-CMS into v8/feature/nucache-perf 2020-07-03 17:53:00 +12:00
Shannon c79b17cc48 fixing tests 2020-07-03 15:46:36 +10:00
Shannon 39625d94dd Adds migration for binary column on cmsContentNu 2020-07-03 15:41:25 +10:00
nzdev 40184c0c3c support uInt32 2020-07-03 16:56:08 +12:00
Shannon de67bdc2a2 Fixing build/tests 2020-07-03 14:50:21 +10:00
Shannon 9b827df11a Allows serializer to be configured 2020-07-03 13:30:40 +10:00
Shannon c63bfb866b Adds MessagePack serialization for nucache 2020-07-03 12:11:05 +10:00
Shannon e2ab2d2798 Merge branch 'nzdev-v8/nucache-serializer' into v8/feature/nucache-perf 2020-07-03 00:53:06 +10:00
Shannon dd6cebca82 Merge branch 'v8/nucache-serializer' of https://github.com/nzdev/Umbraco-CMS into nzdev-v8/nucache-serializer 2020-07-03 00:52:40 +10:00
Shannon e75c9d2273 Interns strings for aliases, etc... for when content is deserialized from the contentNu table so we aren't duplicating strings when cold booting. 2020-07-03 00:26:55 +10:00
Shannon d2042e28e1 Adds string interning for reading of property alias, culture and segment when reading from the content cache 2020-07-02 21:27:48 +10:00
Shannon bb2fe5d2d6 Adds notes about SQL call 2020-07-02 20:56:42 +10:00
Shannon 3735b6d391 Fixes paging size for querying the nucache table so it doesn't timeout 2020-07-02 16:21:54 +10:00
nzdev 7ad019c18a remove example nested content serializer as it is not production ready. 2020-07-01 17:49:34 +12:00
nzdev 578e1317a0 Introduce IContentNestedDataSerializer to allow injecting a custom serializer for nucache 2020-07-01 17:19:56 +12:00
6787 changed files with 526783 additions and 405287 deletions
+3
View File
@@ -0,0 +1,3 @@
**/*
!**/bin/**
!**/obj/**
+28
View File
@@ -0,0 +1,28 @@
# [Choice] .NET version: 6.0, 3.1, 6.0-bullseye, 3.1-bullseye, 6.0-focal, 3.1-focal
ARG VARIANT=6.0-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${VARIANT}
# [Choice] Node.js version: none, lts/*, 18, 16, 14
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
# Following added by Warren...
# Sets the global user for npm as 'root' due to some permission errors for gulp-imagemin creating binaries
# https://stackoverflow.com/a/45505787
#
# Needing to set unsafe-perm as root is the user setup
# https://docs.npmjs.com/cli/v6/using-npm/config#unsafe-perm
# Default: false if running as root, true otherwise (we are ROOT)
#RUN npm -g config set user vscode && npm -g config set unsafe-perm
# Generate and trust a local developer certificate for Kestrel
# This is needed for Kestrel to bind on https
RUN dotnet dev-certs https --trust
+43
View File
@@ -0,0 +1,43 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/main/containers/dotnet
{
"name": "C# (.NET) Umbraco & SMTP4Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspace",
// Set *default* container specific settings.json values on container create.
"settings": {
"omnisharp.defaultLaunchSolution": "umbraco.sln",
"omnisharp.enableDecompilationSupport": true,
"omnisharp.enableRoslynAnalyzers": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-dotnettools.csharp"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [9000, 5000, 25]
// [Optional] To reuse of your local HTTPS dev cert:
//
// 1. Export it locally using this command:
// * Windows PowerShell:
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
// * macOS/Linux terminal:
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
//
// 2. Uncomment these 'remoteEnv' lines:
// "remoteEnv": {
// "ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere",
// "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
// },
//
// 3. Next, copy your certificate into the container:
// 1. Start the container
// 2. Drag ~/.aspnet/https/aspnetapp.pfx into the root of the file explorer
// 3. Open a terminal in VS Code and run "mkdir -p /home/vscode/.aspnet/https && mv aspnetapp.pfx /home/vscode/.aspnet/https"
}
+98
View File
@@ -0,0 +1,98 @@
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
# [Choice] .NET version: 6.0, 3.1, 6.0-bullseye, 3.1-bullseye, 6.0-focal, 3.1-focal
VARIANT: 6.0-bullseye
# Options
NODE_VERSION: "lts/*"
volumes:
- ..:/workspace:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Uncomment the next line to use a non-root user for all processes.
# user: vscode
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
# DotNetCore ENV Variables
# https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-5.0#environment-variables
environment:
- ConnectionStrings__umbracoDbDSN=Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True
- ConnectionStrings__umbracoDbDSN_ProviderName=Microsoft.Data.Sqlite
- Umbraco__CMS__Unattended__InstallUnattended=true
- Umbraco__CMS__Unattended__UnattendedUserName=Admin
- Umbraco__CMS__Unattended__UnattendedUserEmail=test@umbraco.com
- Umbraco__CMS__Unattended__UnattendedUserPassword=password1234
- Umbraco__CMS__Global__Smtp__Host=smtp4dev
- Umbraco__CMS__Global__Smtp__Port=25
- Umbraco__CMS__Global__Smtp__From=noreply@umbraco.test
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
# Change the number before : to the port the web interface should be accessible on
- '5000:80'
# Change the number before : to the port the SMTP server should be accessible on
- '25:25'
# Change the number before : to the port the IMAP server should be accessible on
# - '143:143'
volumes:
# This is where smtp4dev stores the database..
- smtp4dev-data:/smtp4dev
environment:
# Uncomment to customise these settings
#Specifies the virtual path from web server root where SMTP4DEV web interface will be hosted. e.g. "/" or "/smtp4dev"
#- ServerOptions__BasePath=/smtp4dev
#Specifies the server hostname. Used in auto-generated TLS certificate if enabled.
- ServerOptions__HostName=smtp4dev
#Specifies the path where the database will be stored relative to APPDATA env var on Windows or XDG_CONFIG_HOME on non-Windows. Specify "" to use an in memory database.
#- ServerOptions__Database=database.db
#Specifies the number of messages to keep
#- ServerOptions__NumberOfMessagesToKeep=100
#Specifies the number of sessions to keep
#- ServerOptions__NumberOfSessionsToKeep=100
#Specifies the TLS mode to use. None=Off. StartTls=On demand if client supports STARTTLS. ImplicitTls=TLS as soon as connection is established.
#- ServerOptions__TlsMode=None
#Specifies the TLS certificate to use if TLS is enabled/requested. Specify "" to use an auto-generated self-signed certificate (then see console output on first startup)
#- ServerOptions__TlsCertificate=
#Sets the name of the SMTP server that will be used to relay messages or "" if messages should not be relayed
#- RelayOptions__SmtpServer=
#Sets the port number for the SMTP server used to relay messages.
#- RelayOptions__SmtpPort=25
#Specifies a comma separated list of recipient addresses for which messages will be relayed. An empty list means that no messages are relayed.
#- RelayOptions__AllowedEmailsString=
#Specifies the address used in MAIL FROM when relaying messages. (Sender address in message headers is left unmodified). The sender of each message is used if not specified.
#- RelayOptions__SenderAddress=
#The username for the SMTP server used to relay messages. If "" no authentication is attempted.
#- RelayOptions__Login=
#The password for the SMTP server used to relay messages
#- RelayOptions__Password=
#Specifies the port the IMAP server will listen on - allows standard email clients to view/retrieve messages
#"ServerOptions__ImapPort": 143
volumes:
smtp4dev-data:
+382 -26
View File
@@ -1,44 +1,400 @@
# editorconfig.org
# Version: 1.6.2 (Using https://semver.org/)
# Updated: 2020-11-02
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes.
# See https://github.com/RehanSaeed/EditorConfig for updates to this file.
# See http://EditorConfig.org for more information about .editorconfig files.
# top-most EditorConfig file
##########################################
# Common Settings
##########################################
# This file is the top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
# All Files
[*]
insert_final_newline = true
end_of_line = crlf
charset = utf-8
indent_style = space
indent_size = 4
# Trim trailing whitespace, limited support.
# https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces
insert_final_newline = true
trim_trailing_whitespace = true
[*.{cs,vb}]
dotnet_style_predefined_type_for_locals_parameters_members = true:error
##########################################
# File Extension Settings
##########################################
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
# Visual Studio Solution Files
[*.sln]
indent_style = tab
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
# dotnet_naming_symbols.private_fields.required_modifiers = abstract,async,readonly,static # all except const
# Visual Studio XML Project Files
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _
# XML Configuration Files
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
indent_size = 2
# JSON Files
[*.{json,json5,webmanifest}]
indent_size = 2
# YAML Files
[*.{yml,yaml}]
indent_size = 2
# Markdown Files
[*.md]
trim_trailing_whitespace = false
# Web Files
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
indent_size = 2
# Batch Files
[*.{cmd,bat}]
end_of_line = crlf
# Bash Files
[*.sh]
end_of_line = lf
# Makefiles
[Makefile]
indent_style = tab
# https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/ide/editorconfig-code-style-settings-reference.md
[*.cs]
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_prefer_braces = false : none
[*.js]
trim_trailing_whitespace = true
[*.less]
trim_trailing_whitespace = false
##########################################
# File Header (Uncomment to support file headers)
# https://docs.microsoft.com/visualstudio/ide/reference/add-file-header
##########################################
# [*.{cs,csx,cake,vb,vbx}]
file_header_template = Copyright (c) Umbraco.\nSee LICENSE for more details.
# SA1636: File header copyright text should match
# Justification: .editorconfig supports file headers. If this is changed to a value other than "none", a stylecop.json file will need to added to the project.
# dotnet_diagnostic.SA1636.severity = none
##########################################
# .NET Language Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions
##########################################
# .NET Code Style Settings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#net-code-style-settings
[*.{cs,csx,cake,vb,vbx}]
# "this." and "Me." qualifiers
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#this-and-me
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
# Language keywords instead of framework type names for type references
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#language-keywords
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning
# Modifier preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#normalize-modifiers
dotnet_style_require_accessibility_modifiers = always:warning
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:warning
dotnet_style_readonly_field = true:warning
# Parentheses preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#parentheses-preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
# Expression-level preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-level-preferences
dotnet_style_object_initializer = true:warning
dotnet_style_collection_initializer = true:warning
dotnet_style_explicit_tuple_names = true:warning
dotnet_style_prefer_inferred_tuple_names = true:warning
dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = false:suggestion
dotnet_style_prefer_conditional_expression_over_return = false:suggestion
dotnet_style_prefer_compound_assignment = true:warning
# Null-checking preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#null-checking-preferences
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
# Parameter preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#parameter-preferences
dotnet_code_quality_unused_parameters = all:warning
# More style options (Undocumented)
# https://github.com/MicrosoftDocs/visualstudio-docs/issues/3641
dotnet_style_operator_placement_when_wrapping = end_of_line
# https://github.com/dotnet/roslyn/pull/40070
dotnet_style_prefer_simplified_interpolation = true:warning
# C# Code Style Settings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-code-style-settings
[*.{cs,csx,cake}]
# Implicit and explicit types
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#implicit-and-explicit-types
csharp_style_var_for_built_in_types = never
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = false:warning
# Expression-bodied members
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-bodied-members
csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_accessors = true:suggestion
csharp_style_expression_bodied_lambdas = true:suggestion
csharp_style_expression_bodied_local_functions = true:suggestion
# Pattern matching
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#pattern-matching
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_pattern_matching_over_as_with_null_check = true:warning
# Inlined variable declarations
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#inlined-variable-declarations
csharp_style_inlined_variable_declaration = true:warning
# Expression-level preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-level-preferences
csharp_prefer_simple_default_expression = true:warning
# "Null" checking preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-null-checking-preferences
csharp_style_throw_expression = true:warning
csharp_style_conditional_delegate_call = true:warning
# Code block preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#code-block-preferences
csharp_prefer_braces = true:warning
# Unused value preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#unused-value-preferences
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
# Index and range preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#index-and-range-preferences
csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_range_operator = true:warning
# Miscellaneous preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences
csharp_style_deconstructed_variable_declaration = true:warning
csharp_style_pattern_local_over_anonymous_function = true:warning
csharp_using_directive_placement = outside_namespace:warning
csharp_prefer_static_local_function = true:warning
csharp_prefer_simple_using_statement = true:suggestion
##########################################
# .NET Formatting Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-code-style-settings-reference#formatting-conventions
##########################################
# Organize usings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#organize-using-directives
dotnet_sort_system_directives_first = true
# Newline options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = no_change
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false
# Spacing options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false
# Wrapping options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true
##########################################
# .NET Naming Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-naming-conventions
##########################################
[*.{cs,csx,cake,vb,vbx}]
##########################################
# Styles
##########################################
# camel_case_style - Define the camelCase style
dotnet_naming_style.camel_case_style.capitalization = camel_case
# pascal_case_style - Define the PascalCase style
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# first_upper_style - The first character must start with an upper-case character
dotnet_naming_style.first_upper_style.capitalization = first_word_upper
# prefix_interface_with_i_style - Interfaces must be PascalCase and the first character of an interface must be an 'I'
dotnet_naming_style.prefix_interface_with_i_style.capitalization = pascal_case
dotnet_naming_style.prefix_interface_with_i_style.required_prefix = I
# prefix_type_parameters_with_t_style - Generic Type Parameters must be PascalCase and the first character must be a 'T'
dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_case
dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T
# disallowed_style - Anything that has this style applied is marked as disallowed
dotnet_naming_style.disallowed_style.capitalization = pascal_case
dotnet_naming_style.disallowed_style.required_prefix = ____RULE_VIOLATION____
dotnet_naming_style.disallowed_style.required_suffix = ____RULE_VIOLATION____
# internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file
dotnet_naming_style.internal_error_style.capitalization = pascal_case
dotnet_naming_style.internal_error_style.required_prefix = ____INTERNAL_ERROR____
dotnet_naming_style.internal_error_style.required_suffix = ____INTERNAL_ERROR____
##########################################
# .NET Design Guideline Field Naming Rules
# Naming rules for fields follow the .NET Framework design guidelines
# https://docs.microsoft.com/dotnet/standard/design-guidelines/index
##########################################
# All public/protected/protected_internal constant fields must be PascalCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_accessibilities = public, protected, protected_internal, internal, private
dotnet_naming_symbols.public_protected_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.symbols = public_protected_constant_fields_group
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.severity = warning
# All public/protected/protected_internal static readonly fields must be PascalCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.symbols = public_protected_static_readonly_fields_group
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No other public/protected/protected_internal fields are allowed
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.other_public_protected_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.other_public_protected_fields_group.applicable_kinds = field
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.symbols = other_public_protected_fields_group
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.style = disallowed_style
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.severity = error
# This rule should never fire. However, it's included for at least two purposes:
# First, it helps to understand, reason about, and root-case certain types of issues, such as bugs in .editorconfig parsers.
# Second, it helps to raise immediate awareness if a new field type is added (as occurred recently in C#).
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_accessibilities = *
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_kinds = field
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.symbols = sanity_check_uncovered_field_case_group
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.style = internal_error_style
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.severity = error
##########################################
# Other Naming Rules
##########################################
# All of the following must be PascalCase:
# - Namespaces
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-namespaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Classes and Enumerations
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Delegates
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces#names-of-common-types
# - Constructors, Properties, Events, Methods
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-type-members
dotnet_naming_symbols.element_group.applicable_kinds = namespace, class, enum, struct, delegate, event, method, property
dotnet_naming_rule.element_rule.symbols = element_group
dotnet_naming_rule.element_rule.style = pascal_case_style
dotnet_naming_rule.element_rule.severity = warning
# Interfaces use PascalCase and are prefixed with uppercase 'I'
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.interface_group.applicable_kinds = interface
dotnet_naming_rule.interface_rule.symbols = interface_group
dotnet_naming_rule.interface_rule.style = prefix_interface_with_i_style
dotnet_naming_rule.interface_rule.severity = warning
# Generics Type Parameters use PascalCase and are prefixed with uppercase 'T'
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.type_parameter_group.applicable_kinds = type_parameter
dotnet_naming_rule.type_parameter_rule.symbols = type_parameter_group
dotnet_naming_rule.type_parameter_rule.style = prefix_type_parameters_with_t_style
dotnet_naming_rule.type_parameter_rule.severity = warning
# Function parameters use camelCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/naming-parameters
dotnet_naming_symbols.parameters_group.applicable_kinds = parameter
dotnet_naming_rule.parameters_rule.symbols = parameters_group
dotnet_naming_rule.parameters_rule.style = camel_case_style
dotnet_naming_rule.parameters_rule.severity = warning
# Instance fields use camelCase and are prefixed with '_'
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = warning
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
dotnet_naming_symbols.instance_fields.applicable_kinds = field
dotnet_naming_style.instance_field_style.capitalization = camel_case
dotnet_naming_style.instance_field_style.required_prefix = _
##########################################
# License
##########################################
# The following applies as to the .editorconfig file ONLY, and is
# included below for reference, per the requirements of the license
# corresponding to this .editorconfig file.
# See: https://github.com/RehanSaeed/EditorConfig
#
# MIT License
#
# Copyright (c) 2017-2019 Muhammad Rehan Saeed
# Copyright (c) 2019 Henry Gabryjelski
#
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject
# to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
##########################################
+2
View File
@@ -1,3 +1,4 @@
* text=auto
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
@@ -44,6 +45,7 @@
*.json text=auto
*.xml text=auto
*.resx text=auto
*.yml text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
*.csproj text=auto merge=union
*.vbproj text=auto merge=union
+102 -19
View File
@@ -1,33 +1,99 @@
# Umbraco CMS Build
# Umbraco CMS Build
## Are you sure?
In order to use Umbraco as a CMS and build your website with it, you should not build it yourself. If you're reading this then you're trying to contribute to Umbraco or you're debugging a complex issue.
- Are you about to create a pull request for Umbraco?
- Are you about to [create a pull request for Umbraco][contribution guidelines]?
- Are you trying to get to the bottom of a problem in your existing Umbraco installation?
If the answer is yes, please read on. Otherwise, make sure to head on over [to the download page](https://our.umbraco.com/download) and start using Umbraco CMS as intended.
**Table of contents**
## Table of contents
[Building from source](#building-from-source)
* [The quick build](#quick)
* [Build infrastructure](#build-infrastructure)
* [Properties](#properties)
* [GetUmbracoVersion](#getumbracoversion)
* [SetUmbracoVersion](#setumbracoversion)
* [Build](#build)
* [Build-UmbracoDocs](#build-umbracodocs)
* [Verify-NuGet](#verify-nuget)
* [Cleaning up](#cleaning-up)
↖️ You can jump to any section by using the "table of contents" button ( ![Table of contents icon](img/tableofcontentsicon.svg) ) above.
[Azure DevOps](#azure-devops)
[Quirks](#quirks)
* [Powershell quirks](#powershell-quirks)
* [Git quirks](#git-quirks)
## Debugging source locally
Did you read ["Are you sure"](#are-you-sure)?
[More details about contributing to Umbraco and how to use the GitHub tooling can be found in our guide to contributing.][contribution guidelines]
If you want to run a build without debugging, see [Building from source](#building-from-source) below. This runs the build in the same way it is run on our build servers.
#### Debugging with VS Code
In order to build the Umbraco source code locally with Visual Studio Code, first make sure you have the following installed.
* [Visual Studio Code](https://code.visualstudio.com/)
* [dotnet SDK v6.0.2+](https://dotnet.microsoft.com/en-us/download)
* [Node.js v14+](https://nodejs.org/en/download/)
* npm v7+ (installed with Node.js)
* [Git command line](https://git-scm.com/download/)
Open the root folder of the repository in Visual Studio Code.
To build the front end you'll need to open the command pallet (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>) and run `>Tasks: Run Task` followed by `Client Watch` and then run the `Client Build` task in the same way.
You can also run the tasks manually on the command line:
```
cd src\Umbraco.Web.UI.Client
npm install
npm run dev
```
or
```
cd src\Umbraco.Web.UI.Client
npm install
gulp dev
```
**The initial Gulp build might take a long time - don't worry, this will be faster on subsequent runs.**
You might run into [Gulp quirks](#gulp-quirks).
The caching for the back office has been described as 'aggressive' so we often find it's best when making back office changes to [disable caching in the browser (check "Disable cache" on the "Network" tab of developer tools)][disable browser caching] to help you to see the changes you're making.
To run the C# portion of the project, either hit <kbd>F5</kbd> to begin debugging, or manually using the command line:
```
dotnet watch --project .\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj
```
**The initial C# build might take a _really_ long time (seriously, go and make a cup of coffee!) - but don't worry, this will be faster on subsequent runs.**
When the page eventually loads in your web browser, you can follow the installer to set up a database for debugging. You may also wish to install a [starter kit][starter kits] to ease your debugging.
#### Debugging with Visual Studio
In order to build the Umbraco source code locally with Visual Studio, first make sure you have the following installed.
* [Visual Studio 2019 v16.8+ with .NET 6.0.2+](https://visualstudio.microsoft.com/vs/) ([the community edition is free](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15) for you to use to contribute to Open Source projects)
* [Node.js v14+](https://nodejs.org/en/download/)
* npm v7+ (installed with Node.js)
* [Git command line](https://git-scm.com/download/)
The easiest way to get started is to open `umbraco.sln` in Visual Studio.
To build the front end, you'll first need to run `cd src\Umbraco.Web.UI.Client && npm install` in the command line (or `cd src\Umbraco.Web.UI.Client; npm install` in PowerShell). Then find the Task Runner Explorer (View → Other Windows → Task Runner Explorer) and run the `build` task under `Gulpfile.js`. You may need to refresh the Task Runner Explorer before the tasks load.
If you're working on the backoffice, you may wish to run the `dev` command instead while you're working with it, so changes are copied over to the appropriate directories and you can refresh your browser to view the results of your changes.
**The initial Gulp build might take a long time - don't worry, this will be faster on subsequent runs.**
You might run into [Gulp quirks](#gulp-quirks).
The caching for the back office has been described as 'aggressive' so we often find it's best when making back office changes to [disable caching in the browser (check "Disable cache" on the "Network" tab of developer tools)][disable browser caching] to help you to see the changes you're making.
"The rest" is a C# based codebase, which is mostly ASP.NET Core MVC based. You can make changes, build them in Visual Studio, and hit <kbd>F5</kbd> to see the result.
**The initial C# build might take a _really_ long time (seriously, go and make a cup of coffee!) - but don't worry, this will be faster on subsequent runs.**
When the page eventually loads in your web browser, you can follow the installer to set up a database for debugging. You may also wish to install a [starter kit][starter kits] to ease your debugging.
## Building from source
@@ -38,13 +104,14 @@ Did you read ["Are you sure"](#are-you-sure)?
To build Umbraco, fire up PowerShell and move to Umbraco's repository root (the directory that contains `src`, `build`, `LICENSE.md`...). There, trigger the build with the following command:
build/build.ps1
If you only see a build.bat-file, you're probably on the wrong branch. If you switch to the correct branch (v8/contrib) the file will appear and you can build it.
You might run into [Powershell quirks](#powershell-quirks).
If it runs without errors; Hooray! Now you can continue with [the next step](CONTRIBUTING.md#how-do-i-begin) and open the solution and build it.
### Build Infrastructure
The Umbraco Build infrastructure relies on a PowerShell object. The object can be retrieved with:
@@ -145,7 +212,7 @@ To perform a more complete clear, you will want to also delete the content of th
The following command will force remove all untracked files and directories, whether they are ignored by Git or not. Combined with `git reset` it can recreate a pristine working directory.
git clean -xdf .
For git documentation see:
* git [clean](<https://git-scm.com/docs/git-clean>)
* git [reset](<https://git-scm.com/docs/git-reset>)
@@ -214,3 +281,19 @@ The best solution is to unblock the Zip file before un-zipping: right-click the
### Git Quirks
Git might have issues dealing with long file paths during build. You may want/need to enable `core.longpaths` support (see [this page](https://github.com/msysgit/msysgit/wiki/Git-cannot-create-a-file-or-directory-with-a-long-path) for details).
### Gulp Quirks
You may need to run the following commands to set up gulp properly:
```
npm cache clean --force
npm ci
npm run build
```
[ contribution guidelines]: CONTRIBUTING.md "Read the guide to contributing for more details on contributing to Umbraco"
[ starter kits ]: https://our.umbraco.com/packages/?category=Starter%20Kits&version=9 "Browse starter kits available for v9 on Our "
[ disable browser caching ]: https://techwiser.com/disable-cache-google-chrome-firefox "Instructions on how to disable browser caching in Chrome and Firefox"
-32
View File
@@ -1,32 +0,0 @@
# Code Of Conduct
Our informal code of conduct concentrates on the values we, as Umbraco HQ, have set for ourselves and for our community. We expect you to be a friend.
Instead of listing out all the exact "do's" and "don't's" we want to challenge you to think about our values and apply them:
If there's a need to talk to Umbraco HQ about anything, please make sure to send a mail to [Sebastiaan Janssen - sj@umbraco.dk](mailto:sj@umbraco.dk).
## Be a Friend
We welcome and thank you for registering at Our Umbraco. Find below the values that govern Umbraco and which you accept by using Our Umbraco.
## Trust
Assume positive intent and try to understand before being understood.
## Respect
Treat others as you would like to be treated.
This also goes for treating the HQ with respect. For example: dont promote products on [our.umbraco.com](https://our.umbraco.com) that directly compete with our commercial offerings which enables us to work for a sustainable Umbraco.
## Open
Be honest and straightforward. Tell it as it is. Share thoughts and knowledge and engage in collaboration.
## Hungry
Don't rest on your laurels and never accept the status quo. Contribute and give back to fellow Umbracians.
## Friendly
Dont judge upon mistakes made but rather upon the speed and quality with which mistakes are corrected. Friendly posts and contributions generate smiles and build long lasting relationships.
+247 -199
View File
@@ -1,199 +1,247 @@
# Contributing to Umbraco CMS
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
The following is a set of guidelines, for contributing to Umbraco CMS.
These are mostly guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a pull request.
Remember, we're a friendly bunch and are happy with whatever contribution you might provide. Below are guidelines for success that we've gathered over the years. If you choose to ignore them then we still love you 💖.
**Code of conduct**
This project and everyone participating in it, is governed by the [our Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [Sebastiaan Janssen - sj@umbraco.dk](mailto:sj@umbraco.dk).
**Table of contents**
[Contributing code changes](#contributing-code-changes)
* [Guidelines for contributions we welcome](#guidelines-for-contributions-we-welcome)
* [What can I start with?](#what-can-i-start-with)
* [How do I begin?](#how-do-i-begin)
* [Pull requests](#pull-requests)
[Reviews](#reviews)
* [Styleguides](#styleguides)
* [The Core Contributors](#the-core-contributors-team)
* [Questions?](#questions)
[Working with the code](#working-with-the-code)
* [Building Umbraco from source code](#building-umbraco-from-source-code)
* [Working with the source code](#working-with-the-source-code)
* [Making changes after the PR is open](#making-changes-after-the-pr-is-open)
* [Which branch should I target for my contributions?](#which-branch-should-i-target-for-my-contributions)
* [Keeping your Umbraco fork in sync with the main repository](#keeping-your-umbraco-fork-in-sync-with-the-main-repository)
## Contributing code changes
This document gives you a quick overview on how to get started.
### Guidelines for contributions we welcome
Not all changes are wanted, so on occasion we might close a PR without merging it. We will give you feedback why we can't accept your changes and we'll be nice about it, thanking you for spending your valuable time.
We have [documented what we consider small and large changes](CONTRIBUTION_GUIDELINES.md). Make sure to talk to us before making large changes, so we can ensure that you don't put all your hard work into something we would not be able to merge.
Remember, it is always worth working on an issue from the `Up for grabs` list or even asking for some feedback before you send us a PR. This way, your PR will not be closed as unwanted.
### What can I start with?
Unsure where to begin contributing to Umbraco? You can start by looking through [these `Up for grabs` issues](https://github.com/umbraco/Umbraco-CMS/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Acommunity%2Fup-for-grabs+)
### How do I begin?
Great question! The short version goes like this:
* **Fork** - create a fork of [`Umbraco-CMS` on GitHub](https://github.com/umbraco/Umbraco-CMS)
![Fork the repository](img/forkrepository.png)
* **Clone** - when GitHub has created your fork, you can clone it in your favorite Git tool
![Clone the fork](img/clonefork.png)
* **Switch to the correct branch** - switch to the `v8/contrib` branch
* **Build** - build your fork of Umbraco locally as described in [building Umbraco from source code](BUILD.md)
* **Change** - make your changes, experiment, have fun, explore and learn, and don't be afraid. We welcome all contributions and will [happily give feedback](#questions)
* **Commit** - done? Yay! 🎉 **Important:** create a new branch now and name it after the issue you're fixing, we usually follow the format: `temp-12345`. This means it's a temporary branch for the particular issue you're working on, in this case `12345`. When you have a branch, commit your changes. Don't commit to `v8/contrib`, create a new branch first.
* **Push** - great, now you can push the changes up to your fork on GitHub
* **Create pull request** - exciting! You're ready to show us your changes (or not quite ready, you just need some feedback to progress - you can now make use of GitHub's draft pull request status, detailed [here](https://github.blog/2019-02-14-introducing-draft-pull-requests/)). GitHub has picked up on the new branch you've pushed and will offer to create a Pull Request. Click that green button and away you go.
![Create a pull request](img/createpullrequest.png)
### Pull requests
The most successful pull requests usually look a like this:
* Fill in the required template (shown when starting a PR on GitHub), and link your pull request to an issue on the [issue tracker,](https://github.com/umbraco/Umbraco-CMS/issues) if applicable.
* Include screenshots and animated GIFs in your pull request whenever possible.
* Unit tests, while optional, are awesome. Thank you!
* New code is commented with documentation from which [the reference documentation](https://our.umbraco.com/documentation/Reference/) is generated.
Again, these are guidelines, not strict requirements. However, the more information that you give to us, the more we have to work with when considering your contributions. Good documentation of a pull request can really speed up the time it takes to review and merge your work!
## Reviews
You've sent us your first contribution - congratulations! Now what?
The [pull request team](#the-pr-team) can now start reviewing your proposed changes and give you feedback on them. If it's not perfect, we'll either fix up what we need or we can request that you make some additional changes.
We have [a process in place which you can read all about](REVIEW_PROCESS.md). The very abbreviated version is:
- Your PR will get a reply within 48 hours
- An in-depth reply will be added within at most 2 weeks
- The PR will be either merged or rejected within at most 4 weeks
- Sometimes it is difficult to meet these timelines and we'll talk to you if this is the case.
### Styleguides
To be honest, we don't like rules very much. We trust you have the best of intentions and we encourage you to create working code. If it doesn't look perfect then we'll happily help clean it up.
That said, the Umbraco development team likes to follow the hints that ReSharper gives us (no problem if you don't have this installed) and we've added a `.editorconfig` file so that Visual Studio knows what to do with whitespace, line endings, etc.
### The Core Contributors team
The Core Contributors team consists of one member of Umbraco HQ, [Sebastiaan](https://github.com/nul800sebastiaan), who gets assistance from the following community members who have comitted to volunteering their free time:
- [Nathan Woulfe](https://github.com/nathanwoulfe)
- [Joe Glombek](https://github.com/glombek)
- [Laura Weatherhead](https://github.com/lssweatherhead)
- [Michael Latouche](https://github.com/mikecp)
- [Owain Williams](https://github.com/OwainWilliams)
These wonderful people aim to provide you with a first reply to your PR, review and test out your changes and on occasions, they might ask more questions. If they are happy with your work, they'll let Umbraco HQ know by approving the PR. Hq will have final sign-off and will check the work again before it is merged.
### Questions?
You can get in touch with [the core contributors team](#the-core-contributors-team) in multiple ways; we love open conversations and we are a friendly bunch. No question you have is stupid. Any question you have usually helps out multiple people with the same question. Ask away:
- If there's an existing issue on the issue tracker then that's a good place to leave questions and discuss how to start or move forward.
- Unsure where to start? Did something not work as expected? Try leaving a note in the ["Contributing to Umbraco"](https://our.umbraco.com/forum/contributing-to-umbraco-cms/) forum. The team monitors that one closely, so one of us will be on hand and ready to point you in the right direction.
## Working with the code
### Building Umbraco from source code
In order to build the Umbraco source code locally, first make sure you have the following installed.
* [Visual Studio 2019 v16.3+ (with .NET Core 3.0)](https://visualstudio.microsoft.com/vs/)
* [Node.js v10+](https://nodejs.org/en/download/)
* npm v6.4.1+ (installed with Node.js)
* [Git command line](https://git-scm.com/download/)
The easiest way to get started is to open `src\umbraco.sln` in Visual Studio 2019 (version 16.3 or higher, [the community edition is free](https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15) for you to use to contribute to Open Source projects). In Visual Studio, find the Task Runner Explorer (in the View menu under Other Windows) and run the build task under the gulpfile.
Alternatively, you can run `build.ps1` from the Powershell command line, which will build both the backoffice (also known as "Belle") and the Umbraco core. You can then easily start debugging from Visual Studio, or if you need to debug Belle you can run `gulp dev` in `src\Umbraco.Web.UI.Client`. See [this page](BUILD.md) for more details.
![Gulp build in Visual Studio](img/gulpbuild.png)
After this build completes, you should be able to hit `F5` in Visual Studio to build and run the project. A IISExpress webserver will start and the Umbraco installer will pop up in your browser. Follow the directions there to get a working Umbraco install up and running.
### Working with the source code
Some parts of our source code are over 10 years old now. And when we say "old", we mean "mature" of course!
There are two big areas that you should know about:
1. The Umbraco backoffice is a extensible AngularJS app and requires you to run a `gulp dev` command while you're working with it, so changes are copied over to the appropriate directories and you can refresh your browser to view the results of your changes.
You may need to run the following commands to set up gulp properly:
```
npm cache clean --force
npm install
npm run build
```
The caching for the back office has been described as 'aggressive' so we often find it's best when making back office changes to disable caching in the browser to help you to see the changes you're making.
2. "The rest" is a C# based codebase, which is mostly ASP.NET MVC based. You can make changes, build them in Visual Studio, and hit `F5` to see the result.
To find the general areas for something you're looking to fix or improve, have a look at the following two parts of the API documentation.
* [The AngularJS based backoffice files](https://our.umbraco.com/apidocs/ui/#/api) (to be found in `src\Umbraco.Web.UI.Client\src`)
* [The C# application](https://our.umbraco.com/apidocs/csharp/)
### Which branch should I target for my contributions?
We like to use [Gitflow as much as possible](https://jeffkreeftmeijer.com/git-flow/), but don't worry if you are not familiar with it. The most important thing you need to know is that when you fork the Umbraco repository, the default branch is set to something, usually `v8/contrib`. If you are working on v8, this is the branch you should be targetting. For v7 contributions, please target 'v7/dev'.
Please note: we are no longer accepting features for v7 but will continue to merge bug fixes as and when they arise.
![Which branch should I target?](img/defaultbranch.png)
### Making changes after the PR is open
If you make the corrections we ask for in the same branch and push them to your fork again, the pull request automatically updates with the additional commit(s) so we can review it again. If all is well, we'll merge the code and your commits are forever part of Umbraco!
### Keeping your Umbraco fork in sync with the main repository
We recommend you to sync with our repository before you submit your pull request. That way, you can fix any potential merge conflicts and make our lives a little bit easier.
Also, if you have submitted a pull request three weeks ago and want to work on something new, you'll want to get the latest code to build against of course.
To sync your fork with this original one, you'll have to add the upstream url. You only have to do this once:
```
git remote add upstream https://github.com/umbraco/Umbraco-CMS.git
```
Then when you want to get the changes from the main repository:
```
git fetch upstream
git rebase upstream/v8/contrib
```
In this command we're syncing with the `v8/contrib` branch, but you can of course choose another one if needed.
(More info on how this works: [http://robots.thoughtbot.com/post/5133345960/keeping-a-git-fork-updated](http://robots.thoughtbot.com/post/5133345960/keeping-a-git-fork-updated))
### And finally
We welcome all kinds of contributions to this repository. If you don't feel you'd like to make code changes here, you can visit our [documentation repository](https://github.com/umbraco/UmbracoDocs) and use your experience to contribute to making the docs we have, even better. We also encourage community members to feel free to comment on others' pull requests and issues - the expertise we have is not limited to the Core Contributors and HQ. So, if you see something on the issue tracker or pull requests you feel you can add to, please don't be shy.
# Contributing to Umbraco CMS
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
These contribution guidelines are mostly just that - guidelines, not rules. This is what we've found to work best over the years, but if you choose to ignore them, we still love you! 💖 Use your best judgement, and feel free to propose changes to this document in a pull request.
## Coding not your thing? Or want more ways to contribute?
This document covers contributing to the codebase of the CMS but [the community site has plenty of inspiration for other ways to get involved.][get involved]
If you don't feel you'd like to make code changes here, you can visit our [documentation repository][docs repo] and use your experience to contribute to making the docs we have, even better.
We also encourage community members to feel free to comment on others' pull requests and issues - the expertise we have is not limited to the Core Collaborators and HQ. So, if you see something on the issue tracker or pull requests you feel you can add to, please don't be shy.
## Table of contents
- [Before you start](#before-you-start)
* [Code of Conduct](#code-of-conduct)
* [What can I contribute?](#what-can-i-contribute)
+ [Making larger changes](#making-larger-changes)
+ [Pull request or package?](#pull-request-or-package)
+ [Ownership and copyright](#ownership-and-copyright)
- [Finding your first issue: Up for grabs](#finding-your-first-issue-up-for-grabs)
- [Making your changes](#making-your-changes)
+ [Keeping your Umbraco fork in sync with the main repository](#keeping-your-umbraco-fork-in-sync-with-the-main-repository)
+ [Style guide](#style-guide)
+ [Questions?](#questions)
- [Creating a pull request](#creating-a-pull-request)
- [The review process](#the-review-process)
* [Dealing with requested changes](#dealing-with-requested-changes)
+ [No longer available?](#no-longer-available)
* [The Core Collaborators team](#the-core-collaborators-team)
## Before you start
### Code of Conduct
This project and everyone participating in it, is governed by the [our Code of Conduct][code of conduct].
### What can I contribute?
We categorise pull requests (PRs) into two categories:
| PR type | Definition |
| --------- | ------------------------------------------------------------ |
| Small PRs | Bug fixes and small improvements - can be recognized by seeing a small number of changes and possibly a small number of new files. |
| Large PRs | New features and large refactorings - can be recognized by seeing a large number of changes, plenty of new files, updates to package manager files (NuGets packages.config, NPMs packages.json, etc.). |
Were usually able to handle small PRs pretty quickly. A community volunteer will do the initial review and flag it for Umbraco HQ as “community tested”. If everything looks good, it will be merged pretty quickly [as per the described process][review process].
We would love to follow the same process for larger PRs but this is not always possible due to time limitations and priorities that need to be aligned. We dont want to put up any barriers, but this document should set the correct expectations.
Not all changes are wanted, so on occasion we might close a PR without merging it but if we do, we will give you feedback why we can't accept your changes. **So make sure to [talk to us before making large changes][making larger changes]**, so we can ensure that you don't put all your hard work into something we would not be able to merge.
#### Making larger changes
[making larger changes]: #making-larger-changes
Please make sure to describe your larger ideas in an [issue (bugs)][issues] or [discussion (new features)][discussions], it helps to put in mock up screenshots or videos. If the change makes sense for HQ to include in Umbraco CMS we will leave you some feedback on how wed like to see it being implemented.
If a larger pull request is encouraged by Umbraco HQ, the process will be similar to what is described in the small PRs process above, we strive to feedback within 14 days. Finalizing and merging the PR might take longer though as it will likely need to be picked up by the development team to make sure everything is in order. Well keep you posted on the progress.
#### Pull request or package?
[pr or package]: #pull-request-or-package
If you're unsure about whether your changes belong in the core Umbraco CMS or if you should turn your idea into a package instead, make sure to [talk to us][making larger changes].
If it doesnt fit in CMS right now, we will likely encourage you to make it into a package instead. A package is a great way to check out popularity of a feature, learn how people use it, validate good usability and fix bugs. Eventually, a package could "graduate" to be included in the CMS.
#### Ownership and copyright
It is your responsibility to make sure that you're allowed to share the code you're providing us. For example, you should have permission from your employer or customer to share code.
Similarly, if your contribution is copied or adapted from somewhere else, make sure that the license allows you to reuse that for a contribution to Umbraco-CMS.
If you're not sure, leave a note on your contribution and we will be happy to guide you.
When your contribution has been accepted, it will be [MIT licensed][MIT license] from that time onwards.
## Finding your first issue: Up for grabs
Umbraco HQ will regularly mark newly created issues on the issue tracker with [the `community/up-for-grabs` tag][up for grabs issues]. This means that the proposed changes are wanted in Umbraco but the HQ does not have the time to make them at this time. We encourage anyone to pick them up and help out.
If you do start working on something, make sure to leave a small comment on the issue saying something like: "I'm working on this". That way other people stumbling upon the issue know they don't need to pick it up, someone already has.
## Making your changes
Great question! The short version goes like this:
1. **Fork**
Create a fork of [`Umbraco-CMS` on GitHub][Umbraco CMS repo]
![Fork the repository](img/forkrepository.png)
1. **Clone**
When GitHub has created your fork, you can clone it in your favorite Git tool
![Clone the fork](img/clonefork.png)
1. **Switch to the correct branch**
Switch to the `v10/contrib` branch
1. **Build**
Build your fork of Umbraco locally as described in the build documentation: you can [debug with Visual Studio Code][build - debugging with code] or [with Visual Studio][build - debugging with vs].
1. **Branch**
Create a new branch now and name it after the issue you're fixing, we usually follow the format: `temp-12345`. This means it's a temporary branch for the particular issue you're working on, in this case issue number `12345`. Don't commit to `v10/contrib`, create a new branch first.
1. **Change**
Make your changes, experiment, have fun, explore and learn, and don't be afraid. We welcome all contributions and will [happily give feedback][questions].
1. **Commit and push**
Done? Yay! 🎉
Remember to commit to your new `temp` branch, and don't commit to `v10/contrib`. Then you can push the changes up to your fork on GitHub.
#### Keeping your Umbraco fork in sync with the main repository
[sync fork]: #keeping-your-umbraco-fork-in-sync-with-the-main-repository
Once you've already got a fork and cloned your fork locally, you can skip steps 1 and 2 going forward. Just remember to keep your fork up to date before making further changes.
To sync your fork with this original one, you'll have to add the upstream url. You only have to do this once:
```
git remote add upstream https://github.com/umbraco/Umbraco-CMS.git
```
Then when you want to get the changes from the main repository:
```
git fetch upstream
git rebase upstream/v10/contrib
```
In this command we're syncing with the `v10/contrib` branch, but you can of course choose another one if needed.
[More information on how this works can be found on the thoughtbot blog.][sync fork ext]
#### Style guide
To be honest, we don't like rules very much. We trust you have the best of intentions and we encourage you to create working code. If it doesn't look perfect then we'll happily help clean it up.
That said, the Umbraco development team likes to follow the hints that ReSharper gives us (no problem if you don't have this installed) and we've added a `.editorconfig` file so that Visual Studio knows what to do with whitespace, line endings, etc.
#### Questions?
[questions]: #questions
You can get in touch with [the core contributors team][core collabs] in multiple ways; we love open conversations and we are a friendly bunch. No question you have is stupid. Any question you have usually helps out multiple people with the same question. Ask away:
- If there's an existing issue on the issue tracker then that's a good place to leave questions and discuss how to start or move forward.
- If you want to ask questions on some code you've already written you can create a draft pull request, [detailed in a GitHub blog post][draft prs].
- Unsure where to start? Did something not work as expected? Try leaving a note in the ["Contributing to Umbraco"][contrib forum] forum. The team monitors that one closely, so one of us will be on hand and ready to point you in the right direction.
## Creating a pull request
Exciting! You're ready to show us your changes.
We recommend you to [sync with our repository][sync fork] before you submit your pull request. That way, you can fix any potential merge conflicts and make our lives a little bit easier.
GitHub will have picked up on the new branch you've pushed and will offer to create a Pull Request. Click that green button and away you go.
![Create a pull request](img/createpullrequest.png)
We like to use [git flow][git flow] as much as possible, but don't worry if you are not familiar with it. The most important thing you need to know is that when you fork the Umbraco repository, the default branch is set to something, usually `v10/contrib`. If you are working on v9, this is the branch you should be targeting.
Please note: we are no longer accepting features for v8 and below but will continue to merge security fixes as and when they arise.
## The review process
[review process]: #the-review-process
You've sent us your first contribution - congratulations! Now what?
The [Core Collaborators team][Core collabs] can now start reviewing your proposed changes and give you feedback on them. If it's not perfect, we'll either fix up what we need or we can request that you make some additional changes.
You will get an initial automated reply from our [Friendly Umbraco Robot, Umbrabot][Umbrabot], to acknowledge that weve seen your PR and well pick it up as soon as we can. You can take this opportunity to double check everything is in order based off the handy checklist Umbrabot provides.
You will get feedback as soon as the [Core Collaborators team][Core collabs] can after opening the PR. Youll most likely get feedback within a couple of weeks. Then there are a few possible outcomes:
- Your proposed change is awesome! We merge it in and it will be included in the next minor release of Umbraco
- If the change is a high priority bug fix, we will cherry-pick it into the next patch release as well so that we can release it as soon as possible
- Your proposed change is awesome but needs a bit more work, well give you feedback on the changes wed like to see
- Your proposed change is awesome but... not something were looking to include at this point. Well close your PR and the related issue (well be nice about it!). See [making larger changes][making larger changes] and [pull request or package?][pr or package]
### Dealing with requested changes
If you make the corrections we ask for in the same branch and push them to your fork again, the pull request automatically updates with the additional commit(s) so we can review it again. If all is well, we'll merge the code and your commits are forever part of Umbraco!
#### No longer available?
We understand you have other things to do and can't just drop everything to help us out.
So if were asking for your help to improve the PR well wait for two weeks to give you a fair chance to make changes. Well ask for an update if we dont hear back from you after that time.
If we dont hear back from you for 4 weeks, well close the PR so that it doesnt just hang around forever. Youre very welcome to re-open it once you have some more time to spend on it.
There will be times that we really like your proposed changes and well finish the final improvements wed like to see ourselves. You still get the credits and your commits will live on in the git repository.
### The Core Collaborators team
[Core collabs]: #the-core-collaborators-team
The Core Contributors team consists of one member of Umbraco HQ, [Sebastiaan][Sebastiaan], who gets assistance from the following community members who have committed to volunteering their free time:
- [Nathan Woulfe][Nathan Woulfe]
- [Joe Glombek][Joe Glombek]
- [Laura Weatherhead][Laura Weatherhead]
- [Michael Latouche][Michael Latouche]
- [Owain Williams][Owain Williams]
These wonderful people aim to provide you with a reply to your PR, review and test out your changes and on occasions, they might ask more questions. If they are happy with your work, they'll let Umbraco HQ know by approving the PR. HQ will have final sign-off and will check the work again before it is merged.
<!-- Reference links for easy updating -->
<!-- Local -->
[MIT license]: ../LICENSE.md "Umbraco's license declaration"
[build - debugging with vs]: BUILD.md#debugging-with-visual-studio "Details on building and debugging Umbraco with Visual Studio"
[build - debugging with code]: BUILD.md#debugging-with-vs-code "Details on building and debugging Umbraco with Visual Studio Code"
<!-- External -->
[Nathan Woulfe]: https://github.com/nathanwoulfe "Nathan's GitHub profile"
[Joe Glombek]: https://github.com/glombek "Joe's GitHub profile"
[Laura Weatherhead]: https://github.com/lssweatherhead "Laura's GitHub profile"
[Michael Latouche]: https://github.com/mikecp "Michael's GitHub profile"
[Owain Williams]: https://github.com/OwainWilliams "Owain's GitHub profile"
[Sebastiaan]: https://github.com/nul800sebastiaan "Senastiaan's GitHub profile"
[ Umbrabot ]: https://github.com/umbrabot
[git flow]: https://jeffkreeftmeijer.com/git-flow/ "An explanation of git flow"
[sync fork ext]: http://robots.thoughtbot.com/post/5133345960/keeping-a-git-fork-updated "Details on keeping a git fork updated"
[draft prs]: https://github.blog/2019-02-14-introducing-draft-pull-requests/ "Github's blog post providing details on draft pull requests"
[contrib forum]: https://our.umbraco.com/forum/contributing-to-umbraco-cms/
[get involved]: https://community.umbraco.com/get-involved/
[docs repo]: https://github.com/umbraco/UmbracoDocs
[code of conduct]: https://github.com/umbraco/.github/blob/main/.github/CODE_OF_CONDUCT.md
[up for grabs issues]: https://github.com/umbraco/Umbraco-CMS/issues?q=is%3Aissue+is%3Aopen+label%3Acommunity%2Fup-for-grabs
[Umbraco CMS repo]: https://github.com/umbraco/Umbraco-CMS
[issues]: https://github.com/umbraco/Umbraco-CMS/issues
[discussions]: https://github.com/umbraco/Umbraco-CMS/discussions
-35
View File
@@ -1,35 +0,0 @@
# Contributing to Umbraco CMS
When youre considering creating a pull request for Umbraco CMS, we will categorize them in two different sizes, small and large.
The process for both sizes is very similar, as [explained in the contribution document](CONTRIBUTING.md#how-do-i-begin).
## Small PRs
Bug fixes and small improvements - can be recognized by seeing a small number of changes and possibly a small number of new files.
Were usually able to handle small PRs pretty quickly. A community volunteer will do the initial review and flag it for Umbraco HQ as “community tested”. If everything looks good, it will be merged pretty quickly [as per the described process](REVIEW_PROCESS.md).
### Up for grabs
Umbraco HQ will regularly mark newly created issues on the issue tracker with the `Up for grabs` tag. This means that the proposed changes are wanted in Umbraco but the HQ does not have the time to make them at this time. We encourage anyone to pick them up and help out.
If you do start working on something, make sure to leave a small comment on the issue saying something like: "I'm working on this". That way other people stumbling upon the issue know they don't need to pick it up, someone already has.
## Large PRs
New features and large refactorings - can be recognized by seeing a large number of changes, plenty of new files, updates to package manager files (NuGets packages.config, NPMs packages.json, etc.).
We would love to follow the same process for larger PRs but this is not always possible due to time limitations and priorities that need to be aligned. We dont want to put up any barriers, but this document should set the correct expectations.
Please make sure to describe your idea in an issue, it helps to put in mockup screenshots or videos.
If the change makes sense for HQ to include in Umbraco CMS we will leave you some feedback on how wed like to see it being implemented.
If a larger pull request is encouraged by Umbraco HQ, the process will be similar to what is described in the [small PRs process](#small-prs) above, we strive to feedback within 14 days. Finalizing and merging the PR might take longer though as it will likely need to be picked up by the development team to make sure everything is in order. Well keep you posted on the progress.
It is highly recommended that you speak to the HQ before making large, complex changes.
### Pull request or package?
If it doesnt fit in CMS right now, we will likely encourage you to make it into a package instead. A package is a great way to check out popularity of a feature, learn how people use it, validate good usability and fix bugs.
Eventually, a package could "graduate" to be included in the CMS.
+52
View File
@@ -0,0 +1,52 @@
---
name: 🐛 Bug Report
description: "File a bug report, if you've discovered a problem in Umbraco."
labels: "type/bug"
body:
- type: input
id: "version"
attributes:
label: "Which Umbraco version are you using? (Please write the *exact* version, example: 10.1.0)"
description: "Use the help icon in the Umbraco backoffice to find the version you're using"
validations:
required: true
- type: textarea
id: "summary"
attributes:
label: "Bug summary"
description: "Write a short summary of the bug."
placeholder: >
Try to pinpoint it as much as possible.
Try to state the actual problem, and not just what you think the solution might be.
validations:
required: true
- type: textarea
attributes:
label: "Specifics"
id: "specifics"
description: "Remember that you can format code and logs nicely with the `<>` button"
placeholder: >
Mention the URL where this bug occurs, if applicable
Please mention if you've checked it in other browsers as well
Please include full error messages and screenshots, gifs or mp4 videos if applicable
- type: textarea
attributes:
label: "Steps to reproduce"
id: "reproduction"
description: "How can we reproduce the problem on a clean Umbraco install?"
placeholder: >
Please include screenshots, gifs or mp4 videos if applicable
validations:
required: true
- type: textarea
attributes:
label: "Expected result / actual result"
id: "result"
description: "What did you expect that would happen on your Umbraco site and what is the actual result of the above steps?"
placeholder: >
Describe the intended/desired outcome after you did the steps mentioned.
Describe the behaviour of the bug
-66
View File
@@ -1,66 +0,0 @@
---
name: 🐛 Bug Report
about: File a bug report, if you've discovered a problem in Umbraco.
---
A brief description of the issue goes here.
<!--
Please fill out the rest of the details in the issue template below.
The more details you can give us, the easier it will be for us
to determine the cause of a problem.
-->
## Umbraco version
I am seeing this issue on Umbraco version: <!-- please note the version here -->
Reproduction
------------
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
### Bug summary
<!--
* Write a short summary of the bug
* Try to pinpoint it as much as possible
* Try to state the _actual problem_, and not just what you _think_ the
solution might be.
-->
### Specifics
<!--
* Mention the URL where this bug occurs, if applicable
* What version of Umbraco are you using (down to the very last digit!)
* What browser and version you are using
* Please mention if you've checked it in other browsers as well
* Please include *full error messages* and *screenshots* if possible
-->
### Steps to reproduce
<!--
* Clearly mention the steps to reproduce the bug
-->
### Expected result
<!--
* What did you _expect_ that would happen on your Umbraco site?
* Describe the intended/desired outcome after you did the steps mentioned.
-->
### Actual result
<!--
* What is the actual result of the above steps?
* Describe the behaviour of the bug
* Please, please include **error messages** and screenshots. They might mean
nothing to you, but they are _very_ helpful to us.
-->
@@ -1,31 +0,0 @@
---
name: 📮 Feature Request
about: Open a feature request, if you want to propose a new feature.
---
A brief description of your feature request goes here.
<!--
If you want to discuss the feature you're imagining, please make sure to keep
those discussions on the forum at https://our.umbraco.com/ (choose the
category "Contributing to Umbraco", Umbraco HQ follows all new topics there).
Once you've come to a conclusion in the discussion, feel free to propose the
new feature here.
-->
How can you help?
-------------------------------
<!--
The resources (read: available time and effort) of Umbraco's core team are
limited.
If we can not work on your suggestion, please don't take it personally. Most
likely, it's either:
- We think your idea is valid, but we can't find the time to work on it.
- Your idea might be better suited as a package, if it's not suitable for
the majority of users.
-->
-65
View File
@@ -1,65 +0,0 @@
---
name: 🌟 .Net Core Bug Report
about: For bugs specifically for the upcoming .NET Core release of Umbraco, don't use this if you're working with Umbraco version 7 or 8
labels: project/net-core
---
️ If this bug **also** appears on the current version 8 of Umbraco then please [report it as a regular bug](https://github.com/umbraco/Umbraco-CMS/issues/new?template=1_Bug.md), fixes in version 8 will be merged to the .NET Core version.
A brief description of the issue goes here.
<!--
Please fill out the rest of the details in the issue template below.
The more details you can give us, the easier it will be for us
to determine the cause of a problem.
-->
Reproduction
------------
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
### Bug summary
<!--
* Write a short summary of the bug
* Try to pinpoint it as much as possible
* Try to state the _actual problem_, and not just what you _think_ the
solution might be.
-->
### Specifics
<!--
* Mention the URL where this bug occurs, if applicable
* What version of Umbraco are you using (down to the very last digit!)
* What browser and version you are using
* Please mention if you've checked it in other browsers as well
* Please include *full error messages* and *screenshots* if possible
-->
### Steps to reproduce
<!--
* Clearly mention the steps to reproduce the bug
-->
### Expected result
<!--
* What did you _expect_ that would happen on your Umbraco site?
* Describe the intended/desired outcome after you did the steps mentioned.
-->
### Actual result
<!--
* What is the actual result of the above steps?
* Describe the behaviour of the bug
* Please, please include **error messages** and screenshots. They might mean
nothing to you, but they are _very_ helpful to us.
-->
+5 -2
View File
@@ -1,5 +1,8 @@
blank_issues_enabled: true
blank_issues_enabled: false
contact_links:
- name: 💡 Features and ideas
url: https://github.com/umbraco/Umbraco-CMS/discussions/new?category=features-and-ideas
about: Start a new discussion when you have ideas or feature requests, eventually discussions can turn into plans
- name: ⁉️ Support Question
url: https://our.umbraco.com
about: This issue tracker is NOT meant for support questions. If you have a question, please join us on the forum.
@@ -8,4 +11,4 @@ contact_links:
about: Documentation issues should be reported on the Umbraco documentation repository.
- name: 🔐 Security Issue
url: https://umbraco.com/about-us/trust-center/security-and-umbraco/how-to-report-a-vulnerability-in-umbraco/
about: Discovered a Security Issue in Umbraco?
about: Discovered a Security Issue in Umbraco?
+18
View File
@@ -0,0 +1,18 @@
# New backoffice
> **Warning**:
> This is an early WIP and is set not to be packable since we don't want to release this yet. There will be breaking changes in these projects.
This solution folder contains the projects for the new backoffice. If you're looking to fix or improve the existing CMS, this is not the place to do it, although we do very much appreciate your efforts.
### Project structure
Since the new backoffice API is still very much a work in progress, we've created new projects for the new backoffice API:
* Umbrao.Cms.ManagementApi - The "presentation layer" for the management API
* "New" versions of existing projects, should be merged with the existing projects when the new API is released:
* Umbraco.New.Cms.Core
* Umbraco.New.Cms.Infrastructure
* Umbraco.New.Cms.Web.Common
This also means that we have to use "InternalsVisibleTo" for the new projects since these should be able to access the internal classes since they will when they get merged.
+3 -3
View File
@@ -1,4 +1,4 @@
# [Umbraco CMS](https://umbraco.com) &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](../LICENSE.md) [![Build status](https://umbraco.visualstudio.com/Umbraco%20Cms/_apis/build/status/Cms%208%20Continuous?branchName=v8/contrib)](https://umbraco.visualstudio.com/Umbraco%20Cms/_build?definitionId=75) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md) [![Twitter](https://img.shields.io/twitter/follow/umbraco.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=umbraco)
# [Umbraco CMS](https://umbraco.com) &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](../LICENSE.md) [![Build status](https://umbraco.visualstudio.com/Umbraco%20Cms/_apis/build/status/Cms%208%20Continuous?branchName=v8/contrib)](https://umbraco.visualstudio.com/Umbraco%20Cms/_build?definitionId=75) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md) [![Twitter](https://img.shields.io/twitter/follow/umbraco.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=umbraco) [![Discord](https://img.shields.io/discord/869656431308189746)](https://discord.gg/umbraco)
Umbraco is the friendliest, most flexible and fastest growing ASP.NET CMS, and used by more than 500,000 websites worldwide. Our mission is to help you deliver delightful digital experiences by making Umbraco friendly, simpler and social.
@@ -15,7 +15,7 @@ See the official [Umbraco website](https://umbraco.com) for an introduction, cor
- [Community](#join-the-umbraco-community)
- [Contributing](#contributing)
Please also see our [Code of Conduct](CODE_OF_CONDUCT.md).
Please also see our [Code of Conduct](https://github.com/umbraco/.github/blob/main/.github/CODE_OF_CONDUCT.md).
## Getting Started
@@ -25,7 +25,7 @@ If you want to DIY, then you can [download Umbraco]((https://our.umbraco.com/dow
## Documentation
The documentation for Umbraco CMS can be found [on Our Umbraco](https://our.umbraco.com/documentation/). The source for the Umbraco docs is [open source as well](https://github.com/umbraco/UmbracoDocs) and we're happy to look at your documentation contributions.
The documentation for Umbraco CMS can be found [on Our Umbraco](https://docs.umbraco.com/). The source for the Umbraco docs is [open source as well](https://github.com/umbraco/UmbracoDocs) and we're happy to look at your documentation contributions.
## Join the Umbraco community
-25
View File
@@ -1,25 +0,0 @@
# Review process
You're an awesome person and have sent us your contribution in the form of a pull request! It's now time to relax for a bit and wait for our response.
In order to set some expectations, here's what happens next.
## Review process
You will get an initial reply within 48 hours (workdays) to acknowledge that weve seen your PR and well pick it up as soon as we can.
You will get feedback within at most 14 days after opening the PR. Youll most likely get feedback sooner though. Then there are a few possible outcomes:
- Your proposed change is awesome! We merge it in and it will be included in the next minor release of Umbraco
- If the change is a high priority bug fix, we will cherry-pick it into the next patch release as well so that we can release it as soon as possible
- Your proposed change is awesome but needs a bit more work, well give you feedback on the changes wed like to see
- Your proposed change is awesome but.. not something were looking to include at this point. Well close your PR and the related issue (well be nice about it!)
## Are you still available?
We understand you have other things to do and can't just drop everything to help us out.
So if were asking for your help to improve the PR well wait for two weeks to give you a fair chance to make changes. Well ask for an update if we dont hear back from you after that time.
If we dont hear back from you for 4 weeks, well close the PR so that it doesnt just hang around forever. Youre very welcome to re-open it once you have some more time to spend on it.
There will be times that we really like your proposed changes and well finish the final improvements wed like to see ourselves. You still get the credits and your commits will live on in the git repository.
+9
View File
@@ -0,0 +1,9 @@
name: "CodeQL config"
paths:
- src
paths-ignore:
- '**/node_modules'
- 'src/Umbraco.Web.UI/wwwroot'
- 'src/Umbraco.Cms.StaticAssets/wwwroot'
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z" fill="#57606A"></path>
</svg>

After

Width:  |  Height:  |  Size: 462 B

@@ -0,0 +1,58 @@
name: Add issues to review project
on:
issues:
types:
- opened
permissions:
contents: read
jobs:
get-user-type:
runs-on: ubuntu-latest
outputs:
ignored: ${{ steps.set-output.outputs.ignored }}
steps:
- name: Install dependencies
run: |
npm install node-fetch@2
- uses: actions/github-script@v5
name: "Determing HQ user or not"
id: set-output
with:
script: |
const fetch = require('node-fetch');
const response = await fetch('https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/users/IsIgnoredUser', {
method: 'post',
body: JSON.stringify('${{ github.event.issue.user.login }}'),
headers: {
'Authorization': 'Bearer ${{ secrets.OUR_BOT_API_TOKEN }}',
'Content-Type': 'application/json'
}
});
var isIgnoredUser = true;
try {
if(response.status === 200) {
const data = await response.text();
isIgnoredUser = data === "true";
} else {
console.log("Returned data not indicate success:", response.status);
}
} catch(error) {
console.log(error);
};
core.setOutput("ignored", isIgnoredUser);
console.log("Ignored is", isIgnoredUser);
add-to-project:
permissions:
repository-projects: write # for actions/add-to-project
if: needs.get-user-type.outputs.ignored == 'false'
runs-on: ubuntu-latest
needs: [get-user-type]
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/${{ github.repository_owner }}/projects/21
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
+42 -43
View File
@@ -2,60 +2,59 @@ name: "Code scanning - action"
on:
push:
branches: [v8/contrib,v8/dev,v8/bug,v8/feature]
branches:
- '*/dev'
- '*/contrib'
pull_request:
# The branches below must be a subset of the branches above
schedule:
- cron: '0 7 * * 2'
branches:
- '*/dev'
- '*/contrib'
permissions:
contents: read
env:
dotnetVersion: 6.x
dotnetIncludePreviewVersions: false
solution: umbraco.sln
buildConfiguration: SkipTests
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
CodeQL-Build:
runs-on: windows-latest
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
fetch-depth: 0
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
- name: configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
uses: github/codeql-action/init@v2
with:
minimum-size: 8GB
maximum-size: 32GB
- run: |
echo "Run Umbraco-CMS build"
pwsh -command .\build\build.ps1
config-file: ./.github/config/codeql-config.yml
- name: Use .NET ${{ env.dotnetVersion }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.dotnetVersion }}
include-prerelease: ${{ env.dotnetIncludePreviewVersions }}
- name: Run dotnet restore
run: dotnet restore ${{ env.solution }}
- name: Run dotnet build
run: dotnet build ${{ env.solution }} --configuration ${{ env.buildConfiguration }} --no-restore -p:ContinuousIntegrationBuild=true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
with:
config-file: ./.github/codeql-config.yml
uses: github/codeql-action/analyze@v2
-13
View File
@@ -1,13 +0,0 @@
name: "CodeQL config"
on:
push:
branches: [v8/contrib,v8/dev]
paths-ignore:
- node_modules
- Umbraco.TestData
- Umbraco.Tests
- Umbraco.Tests.AcceptanceTest
- Umbraco.Tests.Benchmarks
- bin
paths:
- src
@@ -0,0 +1,53 @@
name: issue-first-response
on:
issues:
types: [opened]
jobs:
send-response:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Install dependencies
run: |
npm install node-fetch@2
- name: Fetch random comment 🗣️ and add it to the issue
uses: actions/github-script@v6
with:
script: |
const fetch = require('node-fetch')
const response = await fetch('https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/comments/PostComment', {
method: 'post',
body: JSON.stringify({
repo: '${{ github.repository }}',
number: '${{ github.event.number }}',
actor: '${{ github.actor }}',
commentType: 'opened-issue-first-comment'
}),
headers: {
'Authorization': 'Bearer ${{ secrets.OUR_BOT_API_TOKEN }}',
'Content-Type': 'application/json'
}
});
try {
const data = await response.text();
if(response.status === 200 && data !== '') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: data
});
} else {
console.log("Status code did not indicate success:", response.status);
console.log("Returned data:", data);
}
} catch(error) {
console.log(error);
}
+57
View File
@@ -0,0 +1,57 @@
name: pr-first-response
on:
pull_request_target:
types: [opened]
jobs:
send-response:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Fetch random comment 🗣️ and add it to the PR
uses: actions/github-script@v6
with:
script: |
const response = await fetch('https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/comments/PostComment', {
method: 'post',
body: JSON.stringify({
repo: '${{ github.repository }}',
number: '${{ github.event.number }}',
actor: '${{ github.actor }}',
commentType: 'opened-pr-first-comment'
}),
headers: {
'Authorization': 'Bearer ${{ secrets.OUR_BOT_API_TOKEN }}',
'Content-Type': 'application/json'
}
});
try {
const data = await response.text();
if(response.status === 200 && data !== '') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: data
});
} else {
console.log("Returned data not indicate success.");
if(response.status !== 200) {
console.log("Status code:", response.status)
}
console.log("Returned data:", data);
if(data === '') {
console.log("An empty response usually indicates that either no comment was found or the actor user was not eligible for getting an automated response (HQ users are not getting auto-responses).")
}
}
} catch(error) {
console.log(error);
}
@@ -0,0 +1,63 @@
name: labeled-up-for-grabs-first-comment
on:
issues:
types:
- labeled
jobs:
send-response:
if: github.event.label.name == 'community/up-for-grabs'
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Install dependencies
run: |
npm install node-fetch@2
- name: Fetch comment 🗣️ and add it to the issue
uses: actions/github-script@v6
with:
script: |
const fetch = require('node-fetch');
const response = await fetch('https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/comments/PostComment', {
method: 'post',
body: JSON.stringify({
repo: '${{ github.repository }}',
number: '${{ github.event.issue.number }}',
actor: '${{ github.event.issue.user.login }}',
commentType: 'labeled-up-for-grabs-first-comment'
}),
headers: {
'Authorization': 'Bearer ${{ secrets.OUR_BOT_API_TOKEN }}',
'Content-Type': 'application/json'
}
});
try {
const data = await response.text();
if(response.status === 200 && data !== '') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: data
});
} else {
console.log("Returned data not indicate success.");
if(response.status !== 200) {
console.log("Status code:", response.status)
}
console.log("Returned data:", data);
if(data === '') {
console.log("An empty response usually indicates that either no comment was found or the actor user was not eligible for getting an automated response (HQ users are not getting auto-responses).")
}
}
} catch(error) {
console.log(error);
};
+106 -203
View File
@@ -1,203 +1,106 @@
#
# Umbraco Cms Git Ignore
#
# common files
*.obj
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.orig
*.suo
*.vs10x
*.ndproj
*.ignorer.*
# common directories
.DS_Store
._.DS_Store
.vs/
/local/
# build directories
[Bb]in/
[Db]ebug*/
[Rr]elease*/
obj/
# tools
_ReSharper*/
_NCrunch_*/
*.ncrunchsolution
*.ncrunchsolution.user
*.ncrunchproject
*.crunchsolution.cache
tools/NDepend/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*
*.[Pp]ublish.xml
[sS]ource
[sS]andbox
umbraco.config
App_Data/TEMP/*
[Uu]mbraco/[Pp]resentation/[Uu]mbraco/[Pp]lugins/*
[Uu]mbraco/[Pp]resentation/[Uu]ser[Cc]ontrols/*
[Uu]mbraco/[Pp]resentation/[Ss]cripts/*
[Uu]mbraco/[Pp]resentation/[Ff]onts/*
[Uu]mbraco/[Pp]resentation/[Cc]ss/*
src/Umbraco.Web.UI/[Cc]ss/*
src/Umbraco.Web.UI/App_Code/*
src/Umbraco.Web.UI/App_Data/*
src/Umbraco.Web.UI/data/*
src/Umbraco.Tests/App_Data/*
src/Umbraco.Web.UI/[Mm]edia/*
src/Umbraco.Web.UI/[Mm]aster[Pp]ages/*
src/Umbraco.Web.UI/[Mm]acro[Ss]cripts/*
!src/Umbraco.Web.UI/[Mm]acro[Ss]cripts/[Ww]eb.[Cc]onfig
src/Umbraco.Web.UI/[Xx]slt/*
src/Umbraco.Web.UI/[Ii]mages/*
src/Umbraco.Web.UI/[Ss]cripts/*
src/Umbraco.Web.UI/Web.*.config.transformed
umbraco/presentation/umbraco/plugins/uComponents/uComponentsInstaller.ascx
umbraco/presentation/packages/uComponents/MultiNodePicker/CustomTreeService.asmx
src/Umbraco.Tests/config/applications.config
src/Umbraco.Tests/config/trees.config
src/Umbraco.Web.UI/web.config
src/Umbraco.Web.UI/[Cc]onfig/ClientDependency.config
src/Umbraco.Web.UI/[Cc]onfig/serilog.config
src/Umbraco.Web.UI/[Cc]onfig/serilog.user.config
src/Umbraco.Tests/config/404handlers.config
src/Umbraco.Web.UI/[Vv]iews/*.cshtml
src/Umbraco.Web.UI/[Vv]iews/*.vbhtml
src/Umbraco.Tests/[Cc]onfig/umbracoSettings.config
src/Umbraco.Web.UI/[Vv]iews/*
src/packages/
src/packages/repositories.config
src/Umbraco.Web.UI/[Ww]eb.config
*.transformed
node_modules
lib-bower
src/Umbraco.Web.UI/[Uu]mbraco/[Ll]ib/*
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/umbraco.*
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/*.loader.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/init.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/routes.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/app.dev.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/loader.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/loader.dev.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/main.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/app.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/canvasdesigner.*.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/navigation.controller.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/main.controller.js
src/Umbraco.Web.UI/[Uu]mbraco/[Jj]s/utilities.js
src/Umbraco.Web.UI/[Uu]mbraco/[Vv]iews/
src/Umbraco.Web.UI/[Uu]mbraco/[Vv]iews/**/*.js
src/Umbraco.Web.UI/[Uu]mbraco/[Vv]iews/**/*.css
src/Umbraco.Web.UI/[Uu]mbraco/[Vv]iews/**/*.html
src/Umbraco.Web.UI/[Uu]mbraco/[Aa]ssets/*
src/Umbraco.Web.UI.Client/[Bb]uild/*
src/Umbraco.Web.UI.Client/[Bb]uild/[Bb]elle/
src/Umbraco.Web.UI/[Uu]ser[Cc]ontrols/
src/Umbraco.Web.UI.Client/src/[Ll]ess/*.css
src/Umbraco.Web.UI.Client/vwd.webinfo
src/Umbraco.Web.UI/App_Plugins/*
src/*.psess
src/*.vspx
NDependOut/*
QueryResult.htm
src/Umbraco.Web.UI/[Cc]onfig/appSettings.config
src/Umbraco.Web.UI/[Cc]onfig/connectionStrings.config
src/Umbraco.Web.UI/[Uu]mbraco/plugins/*
build/ApiDocs/*
build/ApiDocs/Output/*
src/Umbraco.Web.UI.Client/bower_components/*
/src/Umbraco.Web.UI/[Uu]mbraco/preview
/src/Umbraco.Web.UI/[Uu]mbraco/preview.old
# ignore rule for clearing out Belle (avoid rebuilding all the time)
preserve.belle
#Ignore Rule for output of generated documentation files from Grunt docserve
src/Umbraco.Web.UI.Docs/api
src/Umbraco.Web.UI.Docs/package-lock.json
src/*.boltdata/
src/umbraco.sln.ide/*
src/.vs/
src/Umbraco.Web.UI/[Jj]s/*
src/Umbraco.Tests/[Mm]edia
tools/docfx/*
apidocs/_site/*
src/*/project.lock.json
src/.idea/*
apidocs/api/*
build/docs.zip
build/ui-docs.zip
build/csharp-docs.zip
src/packages/
src/PrecompiledWeb/*
# build
build.out/
build.tmp/
build/hooks/
build/temp/
# Acceptance tests
cypress.env.json
/src/Umbraco.Tests.AcceptanceTest/cypress/support/chainable.ts
/src/Umbraco.Tests.AcceptanceTest/package-lock.json
/src/Umbraco.Tests.AcceptanceTest/cypress/videos/
/src/Umbraco.Tests.AcceptanceTest/cypress/screenshots/
src/Umbraco.Web.UI/Umbraco/telemetrics-id.umb
# eof
/src/Umbraco.Web.UI.Client/TESTS-*.xml
/src/ApiDocs/api/*
/src/Umbraco.Web.UI.Client/package-lock.json
/src/Umbraco.Web.UI.NetCore/wwwroot/Media/*
/src/Umbraco.Web.UI.NetCore/wwwroot/is-cache/*
/src/Umbraco.Tests.Integration/App_Data/*
/src/Umbraco.Tests.Integration/TEMP/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/assets/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/js/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/lib/*
/src/Umbraco.Web.UI.NetCore/wwwroot/Umbraco/views/*
/src/Umbraco.Web.UI.NetCore/wwwroot/App_Data/TEMP/*
/src/Umbraco.Web.UI.NetCore/App_Data/Logs/*
/src/Umbraco.Web.UI.NetCore/App_Data/TEMP/TypesCache/*
/src/Umbraco.Web.UI.NetCore/App_Data/TEMP/*
/src/Umbraco.Web.UI.NetCore/App_Data/Smidge/Cache/*
/src/Umbraco.Web.UI.NetCore/umbraco/logs
src/Umbraco.Tests.Integration/umbraco/Data/
src/Umbraco.Tests.Integration/umbraco/logs/
src/Umbraco.Tests.Integration/Views/
src/Umbraco.Tests/TEMP/
/src/Umbraco.Web.UI.NetCore/Umbraco/Data/*
/src/Umbraco.Web.UI/config/umbracoSettings.config
/src/Umbraco.Web.UI.NetCore/Umbraco/models/*
#
# Umbraco CMS .gitignore
#
# Common files
*.obj
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.orig
*.suo
*.vs10x
*.ndproj
*.ignorer.*
# Common directories
.DS_Store
._.DS_Store
.vs/
.idea/
# Build directories
[Bb]in/
[Oo]bj/
[Db]ebug/
[Rr]elease/
# Tools
_ReSharper*/
_NCrunch_*/
*.ncrunchsolution
*.ncrunchsolution.user
*.ncrunchproject
*.crunchsolution.cache
tools/NDepend/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*
[Ss]ource
[Ss]andbox
node_modules
lib-bower
*.psess
*.vspx
NDependOut/
QueryResult.htm
tools/docfx/
# Ignore rule for clearing out Belle (avoid rebuilding all the time)
preserve.belle
# Ignore rule for output of generated documentation files from grunt docserve
/src/Umbraco.Web.UI.Docs/api/
/src/Umbraco.Web.UI.Docs/package-lock.json
# csharp-docs
/build/csharp-docs/api/
/build/csharp-docs/_site/
# Build
/build.out/
/build.tmp/
/build/hooks/
/build/temp/
# Build output
/build/docs.zip
/build/ui-docs.zip
/build/csharp-docs.zip
/src/Umbraco.Cms.StaticAssets/wwwroot/umbraco/
# Environment specific data
/src/Umbraco.Web.UI.Client/[Bb]uild/
/src/Umbraco.Web.UI.Client/[Bb]uild/[Bb]elle/
/src/Umbraco.Web.UI.Client/src/[Ll]ess/*.css
/src/Umbraco.Web.UI.Client/TESTS-*.xml
/src/Umbraco.Web.UI/wwwroot/[Mm]edia/
/src/Umbraco.Web.UI/App_Code/
/src/Umbraco.Web.UI/App_Plugins/
/src/Umbraco.Web.UI/[Uu]mbraco/[Dd]ata/
/src/Umbraco.Web.UI/[Uu]mbraco/[Ll]ogs/
/src/Umbraco.Web.UI/[Uu]mbraco/[Mm]odels/
/src/Umbraco.Web.UI/Views/
!/src/Umbraco.Web.UI/Views/Partials/blocklist/
!/src/Umbraco.Web.UI/Views/Partials/grid/
!/src/Umbraco.Web.UI/Views/_ViewImports.cshtml
/src/Umbraco.Web.UI/appsettings.json
/src/Umbraco.Web.UI/appsettings.Development.json
/src/Umbraco.Web.UI/appsettings.Local.json
# Tests
/tests/Umbraco.Tests.AcceptanceTest/.env
/tests/Umbraco.Tests.Integration.SqlCe/DatabaseContextTests.sdf
/tests/Umbraco.Tests.Integration.SqlCe/[Uu]mbraco/[Dd]ata/TEMP/
/tests/Umbraco.Tests.Integration/appsettings.Tests.Local.json
/tests/Umbraco.Tests.Integration/TEMP/
/tests/Umbraco.Tests.Integration/[Uu]mbraco/[Dd]ata/
/tests/Umbraco.Tests.Integration/[Uu]mbraco/[Ll]ogs/
/tests/Umbraco.Tests.Integration/Views/
/tests/Umbraco.Tests.UnitTests/[Uu]mbraco/[Dd]ata/TEMP/
# Ignore auto-generated schema
/src/Umbraco.Cms/appsettings-schema.json
/src/Umbraco.Web.UI/appsettings-schema.json
/tests/Umbraco.Tests.Integration/appsettings-schema.json
+83
View File
@@ -0,0 +1,83 @@
is_global = true
##########################################
# StyleCopAnalyzers Settings
##########################################
# All constant fields must be PascalCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1303.md
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private
dotnet_naming_symbols.stylecop_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.symbols = stylecop_constant_fields_group
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
# All static readonly fields must be PascalCase
# Ajusted to ignore private fields.
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.symbols = stylecop_static_readonly_fields_group
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
# No non-private instance fields are allowed
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_kinds = field
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.symbols = stylecop_fields_must_be_private_group
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.style = disallowed_style
# Local variables must be camelCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md
dotnet_naming_symbols.stylecop_local_fields_group.applicable_accessibilities = local
dotnet_naming_symbols.stylecop_local_fields_group.applicable_kinds = local
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.symbols = stylecop_local_fields_group
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.style = camel_case_style
##########################################
# StyleCopAnalyzers rule severity
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers
##########################################
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.DocumentationRules.severity = suggestion
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.ReadabilityRules.severity = suggestion
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.NamingRules.severity = suggestion
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.SpacingRules.severity = suggestion
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.OrderingRules.severity = suggestion
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.MaintainabilityRules.severity = suggestion
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.LayoutRules.severity = suggestion
dotnet_diagnostic.SA1636.severity = none # SA1636: File header copyright text should match
dotnet_diagnostic.SA1101.severity = none # PrefixLocalCallsWithThis - stylecop appears to be ignoring dotnet_style_qualification_for_*
dotnet_diagnostic.SA1309.severity = none # FieldNamesMustNotBeginWithUnderscore
dotnet_diagnostic.SA1503.severity = warning # BracesMustNotBeOmitted
dotnet_diagnostic.SA1117.severity = warning # ParametersMustBeOnSameLineOrSeparateLines
dotnet_diagnostic.SA1116.severity = warning # SplitParametersMustStartOnLineAfterDeclaration
dotnet_diagnostic.SA1122.severity = warning # UseStringEmptyForEmptyStrings
dotnet_diagnostic.SA1028.severity = warning # CodeMustNotContainTrailingWhitespace
dotnet_diagnostic.SA1500.severity = warning # BracesForMultiLineStatementsMustNotShareLine
dotnet_diagnostic.SA1401.severity = warning # FieldsMustBePrivate
dotnet_diagnostic.SA1519.severity = warning # BracesMustNotBeOmittedFromMultiLineChildStatement
dotnet_diagnostic.SA1111.severity = warning # ClosingParenthesisMustBeOnLineOfLastParameter
dotnet_diagnostic.SA1520.severity = warning # UseBracesConsistently
dotnet_diagnostic.SA1407.severity = warning # ArithmeticExpressionsMustDeclarePrecedence
dotnet_diagnostic.SA1400.severity = warning # AccessModifierMustBeDeclared
dotnet_diagnostic.SA1119.severity = warning # StatementMustNotUseUnnecessaryParenthesis
dotnet_diagnostic.SA1649.severity = warning # FileNameMustMatchTypeName
dotnet_diagnostic.SA1121.severity = warning # UseBuiltInTypeAlias
dotnet_diagnostic.SA1132.severity = warning # DoNotCombineFields
dotnet_diagnostic.SA1134.severity = warning # AttributesMustNotShareLine
dotnet_diagnostic.SA1106.severity = warning # CodeMustNotContainEmptyStatements
dotnet_diagnostic.SA1312.severity = warning # VariableNamesMustBeginWithLowerCaseLetter
dotnet_diagnostic.SA1310.severity = warning # FieldNamesMustNotContainUnderscore
dotnet_diagnostic.SA1303.severity = warning # ConstFieldNamesMustBeginWithUpperCaseLetter
dotnet_diagnostic.SA1130.severity = warning # UseLambdaSyntax
dotnet_diagnostic.SA1405.severity = warning # DebugAssertMustProvideMessageText
dotnet_diagnostic.SA1205.severity = warning # PartialElementsMustDeclareAccess
dotnet_diagnostic.SA1306.severity = warning # FieldNamesMustBeginWithLowerCaseLetter
dotnet_diagnostic.SA1209.severity = warning # UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives
dotnet_diagnostic.SA1216.severity = warning # UsingStaticDirectivesMustBePlacedAtTheCorrectLocation
dotnet_diagnostic.SA1133.severity = warning # DoNotCombineAttributes
dotnet_diagnostic.SA1135.severity = warning # UsingDirectivesMustBeQualified
+36
View File
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Dotnet build",
"program": "dotnet",
"args": ["run"],
"cwd": "${workspaceFolder}/src/Umbraco.Web.UI",
"stopAtEntry": false,
"requireExactSource": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\\\bNow listening on:\\\\s+(https?://\\\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
+80
View File
@@ -0,0 +1,80 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"detail": "Builds the client and SLN",
"promptOnClose": true,
"group": "build",
"dependsOn": [
"Client Build",
"Dotnet build"
],
"problemMatcher": []
},
{
"label": "Client Install",
"detail": "install npm for Umbraco.Web.UI.Client",
"promptOnClose": true,
"type": "npm",
"script": "install",
"path": "src/Umbraco.Web.UI.Client/",
"problemMatcher": []
},
{
"label": "Client Build",
"detail": "runs npm run build for Umbraco.Web.UI.Client",
"promptOnClose": true,
"group": "build",
"type": "npm",
"script": "build",
"path": "src/Umbraco.Web.UI.Client/",
"problemMatcher": [
"$gulp-tsc"
]
},
{
"label": "Client Watch",
"detail": "runs npm run dev for Umbraco.Web.UI.Client",
"promptOnClose": true,
"group": "build",
"type": "npm",
"script": "dev",
"path": "src/Umbraco.Web.UI.Client/",
"problemMatcher": [
"$gulp-tsc"
]
},
{
"label": "Dotnet build",
"detail": "Dotnet build of SLN",
"promptOnClose": true,
"group": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/umbraco.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "Dotnet watch",
"detail": "Dotnet run and watch of Web.UI",
"promptOnClose": true,
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
+47 -17
View File
@@ -1,23 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Company>Umbraco HQ</Company>
<Authors>Umbraco</Authors>
<Copyright>Copyright © Umbraco $([System.DateTime]::Today.ToString('yyyy'))</Copyright>
<Product>Umbraco CMS</Product>
<PackageProjectUrl>https://umbraco.com/</PackageProjectUrl>
<PackageIconUrl>https://umbraco.com/dist/nuget/logo-small.png</PackageIconUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>umbraco</PackageTags>
<NeutralLanguage>en-US</NeutralLanguage>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- Package references and additional files which are consumed by all projects -->
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" IsImplicitlyDefined="true" />
<AdditionalFiles Include="$(MSBuildThisFileDirectory)linting\stylecop.json" />
</ItemGroup>
<!-- SourceLink -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<Choose>
<When Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectFile), 'Tests'))">
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)linting\codeanalysis.tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)linting\codeanalysis.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Otherwise>
</Choose>
<!-- Package Validation -->
<PropertyGroup>
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>10.0.0</PackageValidationBaselineVersion>
<EnableStrictModeForCompatibleFrameworksInPackage>true</EnableStrictModeForCompatibleFrameworksInPackage>
<EnableStrictModeForCompatibleTfms>true</EnableStrictModeForCompatibleTfms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" IsImplicitlyDefined="true" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.113" PrivateAssets="all" IsImplicitlyDefined="true" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.406" PrivateAssets="all" IsImplicitlyDefined="true" />
<PackageReference Include="Umbraco.Code" Version="2.0.0" PrivateAssets="all" IsImplicitlyDefined="true" />
<PackageReference Include="Umbraco.GitVersioning.Extensions" Version="0.1.1" PrivateAssets="all" IsImplicitlyDefined="true" />
</ItemGroup>
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)icon.png" Pack="true" PackagePath="" Visible="false" />
</ItemGroup>
<PropertyGroup>
<GitVersionBaseDirectory>$(MSBuildThisFileDirectory)</GitVersionBaseDirectory>
</PropertyGroup>
</Project>
-26
View File
@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Package versions for package references across all projects -->
<ItemGroup>
<!--Global Dependencies-->
<PackageReference Update="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<!--Shared config files that have to exist at root level to work properly.-->
<ConfigFilesToCopy Include="$(MSBuildThisFileDirectory)linting\.editorconfig" />
</ItemGroup>
<!--Ensures our config files are up to date.-->
<!--TODO Copy files to root once solution is split up into src/tests folder-->
<Target Name="CopyFiles" BeforeTargets="Build">
<Copy SourceFiles="@(ConfigFilesToCopy)"
SkipUnchangedFiles = "true"
DestinationFolder="$(MSBuildThisFileDirectory)src" />
</Target>
</Project>
+1 -1
View File
@@ -1,6 +1,6 @@
# The MIT License (MIT) #
Copyright (c) 2013-present Umbraco
Copyright (c) 2005-present Umbraco
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-15
View File
@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!--
this is Umbraco's NuGet configuration,
content of this file is merged with the system-wide configuration,
at %APPDATA%\NuGet\NuGet.config
-->
<packageSources>
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="UmbracoCoreMyGet" value="https://www.myget.org/F/umbracocore/api/v3/index.json" />
<add key="ExamineAzurePipelines" value="https://shazwazza.pkgs.visualstudio.com/Examine/_packaging/Examine-Beta/nuget/v3/index.json" />
<add key="SmidgeAppVeyor" value="https://ci.appveyor.com/nuget/smidge" />
</packageSources>
</configuration>
-59
View File
@@ -1,59 +0,0 @@
Param(
[string]$GitHubPersonalAccessToken,
[string]$Directory
)
$workingDirectory = $Directory
CD "$($workingDirectory)"
# Clone repo
$fullGitUrl = "https://$($env:GIT_URL)/$($env:GIT_REPOSITORYNAME).git"
git clone $($fullGitUrl) $($env:GIT_REPOSITORYNAME) 2>&1 | % { $_.ToString() }
# Remove everything so that unzipping the release later will update everything
# Don't remove the readme file nor the git directory
Write-Host "Cleaning up git directory before adding new version"
Remove-Item -Recurse "$($workingDirectory)\$($env:GIT_REPOSITORYNAME)\*" -Exclude README.md,.git
# Find release zip
$zipsDir = "$($workingDirectory)\$($env:BUILD_DEFINITIONNAME)\zips"
$pattern = "UmbracoCms.([0-9]{1,2}.[0-9]{1,3}.[0-9]{1,3}).zip"
Write-Host "Searching for Umbraco release files in $($zipsDir) for a file with pattern $($pattern)"
$file = (Get-ChildItem "$($zipsDir)" | Where-Object { $_.Name -match "$($pattern)" })
if($file)
{
# Get release name
$version = [regex]::Match($($file.Name), $($pattern)).captures.groups[1].value
$releaseName = "Umbraco $($version)"
Write-Host "Found $($releaseName)"
# Unzip into repository to update release
Add-Type -AssemblyName System.IO.Compression.FileSystem
Write-Host "Unzipping $($file.FullName) to $($workingDirectory)\$($env:GIT_REPOSITORYNAME)"
[System.IO.Compression.ZipFile]::ExtractToDirectory("$($file.FullName)", "$($workingDirectory)\$($env:GIT_REPOSITORYNAME)")
# Telling git who we are
git config --global user.email "coffee@umbraco.com" 2>&1 | % { $_.ToString() }
git config --global user.name "Umbraco HQ" 2>&1 | % { $_.ToString() }
# Commit
CD "$($workingDirectory)\$($env:GIT_REPOSITORYNAME)"
Write-Host "Committing Umbraco $($version) Release from Build Output"
git add . 2>&1 | % { $_.ToString() }
git commit -m " Release $($releaseName) from Build Output" 2>&1 | % { $_.ToString() }
# Tag the release
git tag -a "v$($version)" -m "v$($version)"
# Push release to master
$fullGitAuthUrl = "https://$($env:GIT_USERNAME):$($GitHubPersonalAccessToken)@$($env:GIT_URL)/$($env:GIT_REPOSITORYNAME).git"
git push $($fullGitAuthUrl) 2>&1 | % { $_.ToString() }
#Push tag to master
git push $($fullGitAuthUrl) --tags 2>&1 | % { $_.ToString() }
}
else
{
Write-Error "Umbraco release file not found, searched in $($workingDirectory)\$($zipsDir) for a file with pattern $($pattern) - canceling"
}
-96
View File
@@ -1,96 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Cms.Core</id>
<version>9.0.0</version>
<title>Umbraco Cms Core Binaries</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET Core project.</description>
<summary>Contains the core assemblies needed to run Umbraco Cms</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="netstandard2.0">
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="Microsoft.Extensions.Configuration.Abstractions" version="[5.0.0,5.999999)" />
<dependency id="Microsoft.Extensions.Hosting.Abstractions" version="[5.0.0,5.999999)" />
<dependency id="Microsoft.Extensions.Logging" version="[5.0.0,5.999999)" />
<dependency id="Microsoft.Extensions.Options" version="[5.0.0,5.999999)" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="[5.0.0,5.999999)" />
<dependency id="System.ComponentModel.Annotations" version="[5.0.0,5.999999)" />
<dependency id="System.Configuration.ConfigurationManager" version="[5.0.0,5.999999)" />
<dependency id="System.Runtime.Caching" version="[5.0.0,5.999999)" />
<dependency id="System.Reflection.Emit.Lightweight" version="[4.7.0,4.999999)" />
<dependency id="HtmlAgilityPack" version="[1.11.30,1.999999)" />
<dependency id="MailKit" version="[2.10.1,2.999999)" />
<dependency id="Markdown" version="[2.2.1,2.999999)" />
<dependency id="Microsoft.CSharp" version="[4.7.0,4.999999)" />
<dependency id="Microsoft.Extensions.DependencyInjection" version="[5.0.1,5.999999)" />
<dependency id="Microsoft.Extensions.Configuration.Json" version="[5.0.0,5.999999)" />
<dependency id="Microsoft.Extensions.Http" version="[5.0.0,5.999999)" />
<dependency id="Microsoft.Extensions.Identity.Stores" version="[5.0.2,5.999999)" />
<dependency id="MiniProfiler.Shared" version="[4.2.22,4.999999)" />
<dependency id="ncrontab" version="[3.3.1,3.999999)" />
<dependency id="Newtonsoft.Json" version="[12.0.3,12.999999)" />
<dependency id="NPoco" version="[4.0.2,4.999999)" />
<dependency id="Serilog" version="[2.10.0,2.999999)" />
<dependency id="Serilog.Enrichers.Process" version="[2.0.1,2.999999)" />
<dependency id="Serilog.Enrichers.Thread" version="[3.1.0,3.999999)" />
<dependency id="Serilog.Extensions.Hosting" version="[3.1.0,3.999999)" />
<dependency id="Serilog.Filters.Expressions" version="[2.1.0,2.999999)" />
<dependency id="Serilog.Formatting.Compact" version="[1.1.0,1.999999)" />
<dependency id="Serilog.Formatting.Compact.Reader" version="[1.0.3,1.999999)" />
<dependency id="Serilog.Settings.AppSettings" version="[2.2.2,2.999999)" />
<dependency id="Serilog.Settings.Configuration" version="[3.1.0,3.999999)" />
<dependency id="Serilog.Sinks.Async" version="[1.4.0,1.999999)" />
<dependency id="Serilog.Sinks.File" version="[4.1.0,4.999999)" />
<dependency id="Serilog.Sinks.Map" version="[1.0.2,1.999999)" />
<dependency id="System.Data.SqlClient" version="[4.8.2,4.999999)" />
<dependency id="System.Drawing.Common" version="[5.0.0,5.999999)" />
<dependency id="System.IO.FileSystem.AccessControl" version="[5.0.0,5.999999)" />
<dependency id="System.Threading.Tasks.Dataflow" version="[5.0.0,5.999999)" />
<dependency id="Examine.Core" version="[2.0.0-alpha.20200128.15,2.999999)" />
<dependency id="CSharpTest.Net.Collections-NetStd2" version="[14.906.1403.1084,14.999999)" />
</group>
</dependencies>
</metadata>
<files>
<!-- Umbraco.Examine.Lucene HACK remove this when Examine lucene is a real netstandard dependency -->
<file src="$BuildTmp$\bin\Examine.Lucene.dll" target="lib\netstandard2.0\Examine.Lucene.dll" />
<file src="$BuildTmp$\bin\Lucene.Net.dll" target="lib\netstandard2.0\Lucene.Net.dll" />
<!-- libs -->
<file src="$BuildTmp$\bin\Umbraco.Core.dll" target="lib\netstandard2.0\Umbraco.Core.dll" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.dll" target="lib\net472\Umbraco.Examine.Lucene.dll" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.dll" target="lib\netstandard2.0\Umbraco.Examine.Lucene.dll" />
<file src="$BuildTmp$\bin\Umbraco.Infrastructure.dll" target="lib\netstandard2.0\Umbraco.Infrastructure.dll" />
<file src="$BuildTmp$\bin\Umbraco.PublishedCache.NuCache.dll" target="lib\netstandard2.0\Umbraco.PublishedCache.NuCache.dll" />
<!-- docs -->
<file src="$BuildTmp$\bin\Umbraco.Core.xml" target="lib\netstandard2.0\Umbraco.Core.xml" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.xml" target="lib\net472\Umbraco.Examine.Lucene.xml" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.xml" target="lib\netstandard2.0\Umbraco.Examine.Lucene.xml" />
<file src="$BuildTmp$\bin\Umbraco.Infrastructure.xml" target="lib\netstandard2.0\Umbraco.Infrastructure.xml" />
<file src="$BuildTmp$\bin\Umbraco.PublishedCache.NuCache.xml" target="lib\netstandard2.0\Umbraco.PublishedCache.NuCache.xml" />
<!-- symbols -->
<file src="$BuildTmp$\bin\Umbraco.Core.pdb" target="lib\netstandard2.0\Umbraco.Core.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.pdb" target="lib\net472\Umbraco.Examine.Lucene.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Examine.Lucene.pdb" target="lib\netstandard2.0\Umbraco.Examine.Lucene.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Infrastructure.pdb" target="lib\netstandard2.0\Umbraco.Infrastructure.pdb" />
<file src="$BuildTmp$\bin\Umbraco.PublishedCache.NuCache.pdb" target="lib\netstandard2.0\Umbraco.PublishedCache.NuCache.pdb" />
</files>
</package>
-43
View File
@@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Cms.SqlCe</id>
<version>9.0.0</version>
<title>Umbraco Cms Sql Ce Add-on</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Contains the SQL CE assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET Core project.</description>
<summary>Contains the SQL CE assemblies needed to run Umbraco Cms</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="netstandard2.0">
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="Umbraco.Cms.Core" version="[$version$]" />
<dependency id="Umbraco.SqlServerCE" version="[4.0.0.1,4.999999)" /> <!-- Hack it is only available in framework, but we need it on netstandard -->
</group>
</dependencies>
</metadata>
<files>
<!-- libs -->
<file src="$BuildTmp$\SqlCe\Umbraco.Persistence.SqlCe.dll" target="lib\netstandard2.0\Umbraco.Persistence.SqlCe.dll" />
<file src="$BuildTmp$\SqlCe\System.Data.SqlServerCe.dll" target="lib\netstandard2.0\System.Data.SqlServerCe.dll" /> <!-- Hack because the file from the package is only added to net472 projects -->
<!-- docs -->
<file src="$BuildTmp$\SqlCe\Umbraco.Persistence.SqlCe.xml" target="lib\netstandard2.0\Umbraco.Persistence.SqlCe.xml" />
<!-- symbols -->
<file src="$BuildTmp$\SqlCe\Umbraco.Persistence.SqlCe.pdb" target="lib\netstandard2.0\Umbraco.Persistence.SqlCe.pdb" />
</files>
</package>
-60
View File
@@ -1,60 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Cms.Web</id>
<version>9.0.0</version>
<title>Umbraco Cms Core Binaries</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Contains the web assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET Core project.</description>
<summary>Contains the core assemblies needed to run Umbraco Cms</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="net5.0">
<!--
note: dependencies are specified as [x.y.z,x.999999) eg [2.1.0,2.999999) and NOT [2.1.0,3.0.0) because
the latter would pick anything below 3.0.0 and that includes prereleases such as 3.0.0-alpha, and we do
not want this to happen as the alpha of the next major is, really, the next major already.
-->
<dependency id="Umbraco.Cms.Core" version="[$version$]" />
<dependency id="HtmlSanitizer" version="[5.0.376,5.999999)" />
<dependency id="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" version="[5.0.2,5.999999)" />
<dependency id="Serilog.AspNetCore" version="[3.4.0,3.999999)" />
<dependency id="Microsoft.AspNetCore.Mvc.NewtonsoftJson" version="[5.0.2,5.999999)" />
<dependency id="MiniProfiler.AspNetCore.Mvc" version="[4.2.22,4.999999)" />
<dependency id="NETStandard.Library" version="[2.0.3,2.999999)" />
<dependency id="SixLabors.ImageSharp.Web" version="[1.0.1,1.999999)" />
<dependency id="Smidge" version="[3.2.0,3.999999)" />
<dependency id="Smidge.Nuglify" version="[3.2.0,3.999999)" />
<dependency id="Microsoft.CodeAnalysis.CSharp" version="[3.8.0,3.999999)" />
</group>
</dependencies>
</metadata>
<files>
<!-- libs -->
<file src="$BuildTmp$\bin\Umbraco.Web.BackOffice.dll" target="lib\net5.0\Umbraco.Web.BackOffice.dll" />
<file src="$BuildTmp$\bin\Umbraco.Web.Common.dll" target="lib\net5.0\Umbraco.Web.Common.dll" />
<file src="$BuildTmp$\bin\Umbraco.Web.Website.dll" target="lib\net5.0\Umbraco.Web.Website.dll" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.dll" target="lib\net5.0\Umbraco.ModelsBuilder.Embedded.dll" />
<!-- docs -->
<file src="$BuildTmp$\bin\Umbraco.Web.BackOffice.xml" target="lib\net5.0\Umbraco.Web.BackOffice.xml" />
<file src="$BuildTmp$\bin\Umbraco.Web.Common.xml" target="lib\net5.0\Umbraco.Web.Common.xml" />
<file src="$BuildTmp$\bin\Umbraco.Web.Website.xml" target="lib\net5.0\Umbraco.Web.Website.xml" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.xml" target="lib\net5.0\Umbraco.ModelsBuilder.Embedded.xml" />
<!-- symbols -->
<file src="$BuildTmp$\bin\Umbraco.Web.BackOffice.pdb" target="lib\net5.0\Umbraco.Web.BackOffice.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Web.Common.pdb" target="lib\net5.0\Umbraco.Web.Common.pdb" />
<file src="$BuildTmp$\bin\Umbraco.Web.Website.pdb" target="lib\net5.0\Umbraco.Web.Website.pdb" />
<file src="$BuildTmp$\bin\Umbraco.ModelsBuilder.Embedded.pdb" target="lib\net5.0\Umbraco.ModelsBuilder.Embedded.pdb" />
</files>
</package>
-42
View File
@@ -1,42 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Cms</id>
<version>9.0.0</version>
<title>Umbraco Cms</title>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Installs Umbraco Cms in your Visual Studio ASP.NET Core project</description>
<summary>Installs Umbraco Cms in your Visual Studio ASP.NET Core project</summary>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<dependencies>
<group targetFramework="net5.0">
<dependency id="Umbraco.Cms.Web" version="[$version$]" />
</group>
</dependencies>
<!--
We can't use content files, as the files need to be copied into the solution, links/shortcuts to the files
are not good enough
-->
<contentFiles />
</metadata>
<files>
<!-- Content -->
<file src="$BuildTmp$\WebApp\wwwroot\umbraco\**\*.*" target="content\wwwroot\umbraco" />
<file src="$BuildTmp$\WebApp\umbraco\**\*.*" target="content\umbraco" />
<file src="$BuildTmp$\WebApp\config\**\*.*" target="content\config" />
<!-- Readme -->
<file src="tools\Readme.txt" target="Readme.txt" />
<file src="tools\ReadmeUpgrade.txt" target="ReadmeUpgrade.txt" />
<!-- UmbracoCms props and targets used to copy the content into the solution -->
<file src="build\**" target="build\" />
</files>
</package>
-7
View File
@@ -1,7 +0,0 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot\is-cache\**;wwwroot\ms-cache\**</DefaultItemExcludes>
</PropertyGroup>
</Project>
-20
View File
@@ -1,20 +0,0 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ContentFilesPath>$(MSBuildThisFileDirectory)..\content\**\*.*</ContentFilesPath>
</PropertyGroup>
<Target Name="CopyUmbracoAssets" BeforeTargets="Build">
<ItemGroup>
<ContentFiles Include="$(ContentFilesPath)" />
</ItemGroup>
<Message Text="Copying content files: $(ContentFilesPath) - #@(ContentFiles->Count()) files" Importance="high" />
<Copy
SourceFiles="@(ContentFiles)"
DestinationFiles="@(ContentFiles->'$(MSBuildProjectDirectory)\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="true" />
</Target>
</Project>
@@ -1,8 +0,0 @@
<?xml version="1.0"?>
<clientDependency xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<fileRegistration>
<providers>
<add name="CanvasProvider" xdt:Locator="Match(name)" xdt:Transform="Remove" />
</providers>
</fileRegistration>
</clientDependency>
-27
View File
@@ -1,27 +0,0 @@
888
888
888 888 88888b.d88b. 88888b. 888d888 8888b. .d8888b .d88b.
888 888 888 "888 "88b 888 "88b 888P" "88b d88P" d88""88b
888 888 888 888 888 888 888 888 .d888888 888 888 888
Y88 88Y 888 888 888 888 d88P 888 888 888 Y88b. Y88..88P
"Y888P" 888 888 888 88888P" 888 "Y888888 "Y8888P "Y88P"
------------------------------------------------------------------
Don't forget to build!
When upgrading your website using NuGet you should answer "No" to the questions to overwrite the Web.config
file (and config files in the config folder).
This NuGet package includes build targets that extend the creation of a deploy package, which is generated by
Publishing from Visual Studio. The targets will only work once Publishing is configured, so if you don't use
Publish this won't affect you.
The following items will now be automatically included when creating a deploy package or publishing to the file
system: umbraco, config\splashes and global.asax.
Please read the release notes on our.umbraco.com:
https://our.umbraco.com/download/releases
- Umbraco
-26
View File
@@ -1,26 +0,0 @@
888
888
888 888 88888b.d88b. 88888b. 888d888 8888b. .d8888b .d88b.
888 888 888 "888 "88b 888 "88b 888P" "88b d88P" d88""88b
888 888 888 888 888 888 888 888 .d888888 888 888 888
Y88 88Y 888 888 888 888 d88P 888 888 888 Y88b. Y88..88P
"Y888P" 888 888 888 88888P" 888 "Y888888 "Y8888P "Y88P"
------------------------------------------------------------------
Don't forget to build!
We've done our best to transform your configuration files but in case something is not quite right: we recommend you look in source control for the previous version so you can find the original files before they were transformed.
This NuGet package includes build targets that extend the creation of a deploy package, which is generated by
Publishing from Visual Studio. The targets will only work once Publishing is configured, so if you don't use
Publish this won't affect you.
The following items will now be automatically included when creating a deploy package or publishing to the file
system: umbraco, config\splashes and global.asax.
Please read the release notes on our.umbraco.com:
https://our.umbraco.com/contribute/releases
- Umbraco
@@ -1,32 +0,0 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" xdt:Locator="Match(name)" xdt:Transform="SetAttributes(type)">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" xdt:Locator="Match(name)" xdt:Transform="SetAttributes(type)" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" xdt:Locator="Match(name)" xdt:Transform="SetAttributes(type)" />
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" xdt:Locator="Match(factoryType)" xdt:Transform="SetAttributes(factoryType)" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="Umbraco.Web.PublishedModels" xdt:Transform="InsertIfMissing" />
</namespaces>
</pages>
</system.web.webPages.razor>
<system.web>
<pages
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
xdt:Locator="Match(pageParserFilterType,pageBaseType,userControlBaseType)"
xdt:Transform="SetAttributes(pageParserFilterType,pageBaseType,userControlBaseType)">
<controls>
<add assembly="System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" xdt:Locator="Match(namespace)" xdt:Transform="SetAttributes(assembly)" />
</controls>
</pages>
</system.web>
</configuration>
-194
View File
@@ -1,194 +0,0 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<configSections xdt:Transform="InsertIfMissing" />
<configSections>
<sectionGroup name="applicationSettings" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="system.web.webPages.razor" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<sectionGroup name="umbracoConfiguration" xdt:Locator="Match(name)">
<section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
<section name="dashBoard" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<section name="HealthChecks" type="Umbraco.Core.Configuration.HealthChecks.HealthChecksSection, Umbraco.Core" requirePermission="false" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</sectionGroup>
</configSections>
<appSettings xdt:Transform="InsertIfMissing" />
<appSettings>
<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.Enable" value="false" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
<add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
</appSettings>
<umbracoConfiguration xdt:Transform="InsertIfMissing" />
<umbracoConfiguration>
<settings configSource="config\umbracoSettings.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
<dashBoard configSource="config\Dashboard.config" xdt:Locator="Match(configSource)" xdt:Transform="Remove" />
<HealthChecks configSource="config\HealthChecks.config" xdt:Locator="Match(configSource)" xdt:Transform="InsertIfMissing" />
</umbracoConfiguration>
<system.data xdt:Transform="InsertIfMissing" />
<system.data>
<DbProviderFactories xdt:Transform="InsertIfMissing" />
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0" xdt:Locator="Match(invariant)" xdt:Transform="InsertIfMissing" />
<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" xdt:Locator="Match(invariant)" xdt:Transform="SetAttributes(invariant,description,type)" />
</DbProviderFactories>
</system.data>
<clientDependency xdt:Transform="RemoveAttributes(version)" />
<system.web xdt:Transform="InsertIfMissing" />
<system.web>
<siteMap xdt:Transform="Remove" />
<httpRuntime xdt:Transform="InsertIfMissing" />
<httpRuntime maxRequestLength="51200" fcnMode="Single" xdt:Transform="SetAttributes(fcnMode,maxRequestLength)" />
<httpRuntime targetFramework="4.7.2" xdt:Locator="Condition(count(@targetFramework) != 1)" xdt:Transform="SetAttributes(targetFramework)" />
<membership defaultProvider="DefaultMembershipProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<roleManager defaultProvider="DefaultRoleProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<profile defaultProvider="DefaultProfileProvider" xdt:Locator="Match(defaultProvider)" xdt:Transform="Remove" />
<sessionState customProvider="DefaultSessionProvider" xdt:Locator="Match(customProvider)" xdt:Transform="Remove" />
<compilation xdt:Transform="InsertIfMissing" />
<xhtmlConformance xdt:Transform="Remove" />
<httpModules xdt:Transform="InsertIfMissing" />
<httpModules>
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Don't remove the leading space below, this is to fix a quirk for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule, Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</httpModules>
<httpHandlers xdt:Transform="InsertIfMissing" />
<httpHandlers>
<add path="GoogleSpellChecker.ashx" xdt:Locator="Match(path)" xdt:Transform="Remove" />
</httpHandlers>
</system.web>
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<modules xdt:Transform="InsertIfMissing" />
<modules runAllManagedModulesForAllRequests="true" xdt:Transform="SetAttributes(runAllManagedModulesForAllRequests)" />
<modules>
<remove name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<remove name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="viewstateMoverModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="umbracoBaseRequestModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<!-- Don't remove the leading space below, this is to fix a quirk for a lot of releases where we added it with the space by default -->
<add name=" UmbracoModule" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="UmbracoModule" type="Umbraco.Web.UmbracoModule, Umbraco.Web" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</modules>
<staticContent xdt:Transform="InsertIfMissing" />
<staticContent>
<remove fileExtension=".svg" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff" mimeType="font/woff" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".woff2" mimeType="font/woff2" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<remove fileExtension=".less" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
<mimeMap fileExtension=".less" mimeType="text/css" xdt:Locator="Match(fileExtension)" xdt:Transform="InsertIfMissing" />
</staticContent>
<handlers>
<remove name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
<add name="SpellChecker" xdt:Locator="Match(name)" xdt:Transform="Remove" />
</handlers>
<security xdt:Transform="InsertIfMissing" />
<security>
<requestFiltering xdt:Transform="InsertIfMissing" />
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" xdt:Transform="InsertIfMissing" />
</requestFiltering>
</security>
</system.webServer>
<runtime xdt:Transform="InsertIfMissing" />
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" xdt:Transform="InsertIfMissing" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='HtmlAgilityPack')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='AutoMapper')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Newtonsoft.Json')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Mvc')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.WebPages.Razor')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Web.Http')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.OAuth')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.Owin.Security.Cookies')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='Microsoft.CodeAnalysis.CSharp')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='log4net')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Data.SqlServerCe')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.ValueTuple')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Net.Http.Formatting')" xdt:Transform="Remove" />
<dependentAssembly xdt:Locator="Condition(./_defaultNamespace:assemblyIdentity/@name='System.Collections.Immutable')" xdt:Transform="Remove" />
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.3.0" newVersion="1.2.3.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly xdt:Transform="Insert">
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.web.webPages.razor xdt:Transform="Remove" />
<location path="umbraco" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="umbraco" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
<location path="App_Plugins" xdt:Locator="Match(path)" xdt:Transform="InsertIfMissing" />
<location path="App_Plugins" xdt:Locator="Match(path)">
<system.webServer xdt:Transform="InsertIfMissing" />
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" xdt:Transform="SetAttributes(doStaticCompression,doDynamicCompression,dynamicCompressionBeforeCache)" />
</system.webServer>
</location>
</configuration>
@@ -1,11 +0,0 @@
<?xml version="1.0"?>
<applications xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<add alias="content" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon)" />
<add alias="media" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon)" />
<add alias="settings" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon)" />
<add alias="developer" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon)" />
<add alias="users" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon)" />
<add alias="member" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon)" />
<add alias="forms" name="Forms" sortOrder="6" xdt:Locator="Match(alias)" xdt:Transform="InsertIfMissing" />
<add alias="translation" sortOrder="7" xdt:Locator="Match(alias)" xdt:Transform="SetAttributes(icon,sortOrder)" />
</applications>
@@ -1,6 +0,0 @@
<?xml version="1.0"?>
<caching xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<caches>
<cache name="DiskCache" trimCache="false" xdt:Transform="SetAttributes(trimCache)" xdt:Locator="Match(name)" />
</caches>
</caching>
-107
View File
@@ -1,107 +0,0 @@
param($installPath, $toolsPath, $package, $project)
Write-Host "installPath:" "${installPath}"
Write-Host "toolsPath:" "${toolsPath}"
Write-Host " "
if ($project) {
$dateTime = Get-Date -Format yyyyMMdd-HHmmss
# Create paths and list them
$projectPath = (Get-Item $project.Properties.Item("FullPath").Value).FullName
Write-Host "projectPath:" "${projectPath}"
$webConfigSource = Join-Path $projectPath "Web.config"
Write-Host "webConfigSource:" "${webConfigSource}"
$configFolder = Join-Path $projectPath "Config"
Write-Host "configFolder:" "${configFolder}"
# Copy umbraco and umbraco_files from package to project folder
$umbracoFolder = Join-Path $projectPath "Umbraco"
New-Item -ItemType Directory -Force -Path $umbracoFolder
$umbracoFolderSource = Join-Path $installPath "UmbracoFiles\Umbraco"
Write-Host "copying files to $umbracoFolder ..."
# see https://support.microsoft.com/en-us/help/954404/return-codes-that-are-used-by-the-robocopy-utility-in-windows-server-2
robocopy $umbracoFolderSource $umbracoFolder /is /it /e
if (($lastexitcode -eq 1) -or ($lastexitcode -eq 3) -or ($lastexitcode -eq 5) -or ($lastexitcode -eq 7))
{
write-host "Copy succeeded!"
}
else
{
write-host "Copy failed with exit code:" $lastexitcode
}
$copyWebconfig = $true
$destinationWebConfig = Join-Path $projectPath "Web.config"
if(Test-Path $destinationWebConfig)
{
Try
{
[xml]$config = Get-Content $destinationWebConfig
$config.configuration.appSettings.ChildNodes | ForEach-Object {
if($_.key -eq "Umbraco.Core.ConfigurationStatus")
{
# The web.config has an umbraco-specific appSetting in it
# don't overwrite it and let config transforms do their thing
$copyWebconfig = $false
}
}
}
Catch
{
Write-Host "An error occurred:"
Write-Host $_
}
}
if($copyWebconfig -eq $true)
{
$packageWebConfigSource = Join-Path $installPath "UmbracoFiles\Web.config"
Copy-Item $packageWebConfigSource $destinationWebConfig -Force
# Copy files that don't get automatically copied for Website projects
# We do this here, when copyWebconfig is true because we only want to do it for new installs
# If this is an upgrade then the files should already be there
$splashesSource = Join-Path $installPath "UmbracoFiles\Config\splashes\*.*"
$splashesDestination = Join-Path $projectPath "Config\splashes\"
New-Item $splashesDestination -Type directory
Copy-Item $splashesSource $splashesDestination -Force
} else {
# This part only runs for upgrades
$upgradeViewSource = Join-Path $umbracoFolderSource "Views\install\*"
$upgradeView = Join-Path $umbracoFolder "Views\install\"
Write-Host "Copying2 ${upgradeViewSource} to ${upgradeView}"
Copy-Item $upgradeViewSource $upgradeView -Force
Try
{
# Disable tours for upgrades, presumably Umbraco experience is already available
$umbracoSettingsConfigPath = Join-Path $configFolder "umbracoSettings.config"
$content = (Get-Content $umbracoSettingsConfigPath).Replace('<tours enable="true">','<tours enable="false">')
# Saves with UTF-8 encoding without BOM which makes sure Umbraco can still read it
# Reference: https://stackoverflow.com/a/32951824/5018
[IO.File]::WriteAllLines($umbracoSettingsConfigPath, $content)
}
Catch
{
# Not a big problem if this fails, let it go
# Write-Host "An error occurred:"
# Write-Host $_
}
}
# Open appropriate readme
if($copyWebconfig -eq $true)
{
$DTE.ItemOperations.OpenFile($toolsPath + '\Readme.txt')
}
else
{
$DTE.ItemOperations.OpenFile($toolsPath + '\ReadmeUpgrade.txt')
}
}
@@ -1 +0,0 @@
<processing xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xdt:Transform="SetAttributes(preserveExifMetaData)" preserveExifMetaData="true" />
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">>
<appSettings>
<add key="serilog:using:File" value="Umbraco.Infrastructure" xdt:Transform="SetAttributes(value)" xdt:Locator="Match(key)"/>
<add key="serilog:write-to:File.shared" xdt:Transform="Remove" xdt:Locator="Match(key)"/>
</appSettings>
</configuration>
@@ -1,10 +0,0 @@
<?xml version="1.0"?>
<settings xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<content>
<EnableCanvasEditing xdt:Transform="Remove" />
</content>
<webservices xdt:Transform="Remove" />
<repositories xdt:Transform="Remove" />
</settings>
-52
View File
@@ -1,52 +0,0 @@
##############################################################
## V8 CMS - .NET & AngularJS Doc sites ##
## Built on demand only, NO automatic PR/branch triggers ##
## ##
## This build pipeline has a webhook for sucessful ##
## builds, that sends the ZIP artifacts to our.umb to host ##
##############################################################
# Name != name of pipeline but the build number format
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/run-number?view=azure-devops&tabs=yaml
# Build Pipeline triggers
# https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#ci-triggers
trigger: none
pr: none
# Variables & their default values
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
# VM to run the build on & it's installed software
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
# https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
pool:
vmImage: 'windows-2019'
jobs:
- job: buildDocs
displayName: 'Build static docs site as ZIPs'
steps:
- task: PowerShell@2
displayName: 'Prep build tool, build C# & JS Docs'
inputs:
targetType: 'inline'
script: |
$uenv=./build.ps1 -get -doc
$uenv.SandboxNode()
$uenv.CompileBelle()
$uenv.PrepareAngularDocs()
$nugetsourceUmbraco = "https://api.nuget.org/v3/index.json"
$uenv.PrepareCSharpDocs()
$uenv.RestoreNode()
errorActionPreference: 'continue'
workingDirectory: 'build'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.Repository.LocalPath)\build.out\'
artifact: 'docs'
publishLocation: 'pipeline'
+630 -271
View File
@@ -1,277 +1,636 @@
#############################################################################
## ASP.NET Core ##
## Build and test ASP.NET Core projects targeting .NET Core. ##
## Runs tests, creates NuGet packages: ##
## https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core ##
#############################################################################
name: $(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
parameters:
- name: sqlServerIntegrationTests
displayName: Run SQL Server Integration Tests
type: boolean
default: false
- name: myGetDeploy
displayName: Deploy to MyGet
type: boolean
default: false
- name: nuGetDeploy
displayName: Deploy to NuGet
type: boolean
default: false
- name: buildApiDocs
displayName: Build API docs
type: boolean
default: false
- name: uploadApiDocs
displayName: Upload API docs
type: boolean
default: false
- name: forceReleaseTestFilter
displayName: Force to use the release test filters
type: boolean
default: false
- name: integrationNonReleaseTestFilter
displayName: TestFilter used for non-release type builds
type: string
default: '--filter TestCategory!=LongRunning&TestCategory!=NonCritical'
- name: integrationReleaseTestFilter
displayName: TestFilter used for release type builds
type: string
default: ' '
- name: nonWindowsIntegrationNonReleaseTestFilter
displayName: TestFilter used for non-release type builds on non windows agents
type: string
default: '--filter TestCategory!=LongRunning&TestCategory!=NonCritical'
- name: nonWindowsIntegrationReleaseTestFilter
displayName: TestFilter used for release type builds on non windows agents
type: string
default: ' '
- name: isNightly
displayName: 'Is nightly build (used for MyGet feed)'
type: boolean
default: false
# Variables & their default values
variables:
buildConfiguration: 'Release'
SA_PASSWORD: UmbracoIntegration123!
resources:
containers:
- container: mssql
image: mcr.microsoft.com/mssql/server:2017-latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: $(SA_PASSWORD)
MSSQL_PID: Developer
ports:
- 1433:1433
options: --name mssql
nodeVersion: 20
dotnetVersion: 6.x
dotnetIncludePreviewVersions: false
solution: umbraco.sln
buildConfiguration: Release
UMBRACO__CMS__GLOBAL__ID: 00000000-0000-0000-0000-000000000042
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
stages:
- stage: Linux
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel
jobs:
###############################################
## Build
###############################################
- stage: Build
variables:
npm_config_cache: $(Pipeline.Workspace)/.npm_client
jobs:
- job: A
displayName: Build Umbraco CMS
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
displayName: Use Node.js $(nodeVersion)
retryCountOnTaskFailure: 3
inputs:
versionSpec: $(nodeVersion)
- task: Cache@2
displayName: Cache node_modules
inputs:
key: '"npm_client" | "$(Agent.OS)" | $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Client/package-lock.json'
restoreKeys: |
"npm_client" | "$(Agent.OS)"
"npm_client"
path: $(npm_config_cache)
- script: npm ci --no-fund --no-audit --prefer-offline
workingDirectory: src/Umbraco.Web.UI.Client
displayName: Run npm ci (Backoffice)
- task: gulp@0
displayName: Run gulp build (Backoffice)
inputs:
gulpFile: src/Umbraco.Web.UI.Client/gulpfile.js
targets: coreBuild
workingDirectory: src/Umbraco.Web.UI.Client
- task: UseDotNet@2
displayName: Use .NET $(dotnetVersion)
inputs:
version: $(dotnetVersion)
performMultiLevelLookup: true
includePreviewVersions: $(dotnetIncludePreviewVersions)
- task: DotNetCoreCLI@2
displayName: Run dotnet restore
inputs:
command: restore
projects: $(solution)
- task: DotNetCoreCLI@2
name: build
displayName: Run dotnet build and generate NuGet packages
inputs:
command: build
projects: $(solution)
arguments: '--configuration $(buildConfiguration) --no-restore --property:ContinuousIntegrationBuild=true --property:GeneratePackageOnBuild=true --property:PackageOutputPath=$(Build.ArtifactStagingDirectory)/nupkg'
- task: PublishPipelineArtifact@1
displayName: Publish nupkg
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/nupkg
artifactName: nupkg
- task: PublishPipelineArtifact@1
displayName: Publish build artifacts
inputs:
targetPath: $(Build.SourcesDirectory)
artifactName: build_output
- job: Unit_Tests
displayName: 'Unit Tests'
- stage: Build_Docs
condition: and(succeeded(), or(eq(dependencies.Build.outputs['A.build.NBGV_PublicRelease'], 'True'), ${{parameters.buildApiDocs}}))
displayName: Prepare API Documentation
dependsOn: Build
variables:
umbracoMajorVersion: $[ stageDependencies.Build.A.outputs['build.NBGV_VersionMajor'] ]
jobs:
# C# API Reference
- job:
displayName: Build C# API Reference
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@2
displayName: Install DocFX
inputs:
targetType: inline
script: |
choco install docfx --version=2.59.4 -y
if ($lastexitcode -ne 0){
throw ("Error installing DocFX")
}
- task: PowerShell@2
displayName: Generate metadata
inputs:
targetType: inline
script: |
docfx metadata "$(Build.SourcesDirectory)/build/csharp-docs/docfx.json"
if ($lastexitcode -ne 0){
throw ("Error generating metadata.")
}
- task: PowerShell@2
displayName: Generate documentation
inputs:
targetType: inline
script: |
docfx build "$(Build.SourcesDirectory)/build/csharp-docs/docfx.json"
if ($lastexitcode -ne 0){
throw ("Error generating documentation.")
}
- task: ArchiveFiles@2
displayName: Archive C# Docs
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/build/csharp-docs/_site
includeRootFolder: false
archiveFile: $(Build.ArtifactStagingDirectory)/csharp-docs.zip
- task: PublishPipelineArtifact@1
displayName: Publish C# Docs
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/csharp-docs.zip
artifact: csharp-docs
# js API Reference
- job:
displayName: Build js API Reference
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
displayName: Use Node.js 10.15.x
retryCountOnTaskFailure: 3
inputs:
versionSpec: 10.15.x # Won't work with higher versions
- script: |
npm ci --no-fund --no-audit --prefer-offline
npx gulp docs
major="$(umbracoMajorVersion)"
echo "major version: $major"
baseUrl="https://apidocs.umbraco.com/v$major/ui/"
echo "baseUrl: $baseUrl"
sed -i "s|baseUrl = .*|baseUrl = '$baseUrl',|" api/index.html
displayName: Generate js Docs
workingDirectory: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Docs
- task: ArchiveFiles@2
displayName: Archive js Docs
inputs:
rootFolderOrFile: $(Build.SourcesDirectory)/src/Umbraco.Web.UI.Docs/api
includeRootFolder: false
archiveFile: $(Build.ArtifactStagingDirectory)/ui-docs.zip
- task: PublishPipelineArtifact@1
displayName: Publish js Docs
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/ui-docs.zip
artifact: ui-docs
###############################################
## Test
###############################################
- stage: Unit
displayName: Unit Tests
dependsOn: Build
jobs:
# Unit Tests
- job:
displayName: Unit Tests
strategy:
matrix:
Windows:
vmImage: 'windows-latest'
Linux:
vmImage: 'ubuntu-latest'
macOS:
vmImage: 'macOS-latest'
pool:
vmImage: $(vmImage)
steps:
- task: DownloadPipelineArtifact@2
displayName: Download build artifacts
inputs:
artifact: build_output
path: $(Build.SourcesDirectory)
- task: UseDotNet@2
displayName: Use .NET $(dotnetVersion)
inputs:
version: $(dotnetVersion)
performMultiLevelLookup: true
includePreviewVersions: $(dotnetIncludePreviewVersions)
- task: DotNetCoreCLI@2
displayName: Run dotnet test
inputs:
command: test
projects: '**/*.Tests.UnitTests.csproj'
arguments: '--configuration $(buildConfiguration) --no-build'
testRunTitle: Unit Tests - $(Agent.OS)
- stage: Integration
displayName: Integration Tests
dependsOn: Build
variables:
releaseTestFilter: eq(dependencies.Build.outputs['A.build.NBGV_PublicRelease'], 'True')
jobs:
# Integration Tests (SQLite)
- job:
displayName: Integration Tests (SQLite)
strategy:
matrix:
Windows:
vmImage: 'windows-latest'
Linux:
vmImage: 'ubuntu-latest'
macOS:
vmImage: 'macOS-latest'
pool:
vmImage: $(vmImage)
steps:
- task: DownloadPipelineArtifact@2
displayName: Download build artifacts
inputs:
artifact: build_output
path: $(Build.SourcesDirectory)
- task: UseDotNet@2
displayName: Use .NET $(dotnetVersion)
inputs:
version: $(dotnetVersion)
performMultiLevelLookup: true
includePreviewVersions: $(dotnetIncludePreviewVersions)
- task: DotNetCoreCLI@2
displayName: Run dotnet test Windows
condition: eq(variables['Agent.OS'],'Windows_NT')
inputs:
command: test
projects: '**/*.Tests.Integration.csproj'
testRunTitle: Integration Tests SQLite - $(Agent.OS)
${{ if or(variables.releaseTestFilter, parameters.forceReleaseTestFilter) }}:
arguments: '--configuration $(buildConfiguration) --no-build ${{parameters.integrationReleaseTestFilter}}'
${{ else }}:
arguments: '--configuration $(buildConfiguration) ${{parameters.integrationNonReleaseTestFilter}}'
env:
Tests__Database__DatabaseType: 'Sqlite'
Umbraco__CMS__Global__MainDomLock: 'FileSystemMainDomLock'
- task: DotNetCoreCLI@2
displayName: Run dotnet test Non Windows
condition: ne(variables['Agent.OS'],'Windows_NT')
inputs:
command: test
projects: '**/*.Tests.Integration.csproj'
testRunTitle: Integration Tests SQLite - $(Agent.OS)
${{ if or(variables.releaseTestFilter, parameters.forceReleaseTestFilter) }}:
arguments: '--configuration $(buildConfiguration) --no-build ${{parameters.nonWindowsIntegrationReleaseTestFilter}}'
${{ else }}:
arguments: '--configuration $(buildConfiguration) ${{parameters.nonWindowsIntegrationNonReleaseTestFilter}}'
env:
Tests__Database__DatabaseType: 'Sqlite'
Umbraco__CMS__Global__MainDomLock: 'FileSystemMainDomLock'
# Integration Tests (SQL Server)
- job:
timeoutInMinutes: 120
condition: or(eq(stageDependencies.Build.A.outputs['build.NBGV_PublicRelease'], 'True'), ${{parameters.sqlServerIntegrationTests}})
displayName: Integration Tests (SQL Server)
strategy:
matrix:
Windows:
vmImage: 'windows-latest'
testDb: LocalDb
connectionString: N/A
Linux:
vmImage: 'ubuntu-latest'
testDb: SqlServer
connectionString: 'Server=localhost,1433;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=true'
pool:
vmImage: $(vmImage)
variables:
SA_PASSWORD: UmbracoIntegration123!
steps:
- task: DownloadPipelineArtifact@2
displayName: Download build artifacts
inputs:
artifact: build_output
path: $(Build.SourcesDirectory)
- task: UseDotNet@2
displayName: Use .NET $(dotnetVersion)
inputs:
version: $(dotnetVersion)
includePreviewVersions: $(dotnetIncludePreviewVersions)
- powershell: sqllocaldb start mssqllocaldb
displayName: Start localdb (Windows only)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- powershell: docker run --name mssql -d -p 1433:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=$(SA_PASSWORD) -e MSSQL_PID=Developer mcr.microsoft.com/mssql/server:2019-latest
displayName: Start SQL Server (Linux only)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
- task: DotNetCoreCLI@2
displayName: Run dotnet test Windows
condition: eq(variables['Agent.OS'],'Windows_NT')
inputs:
command: test
projects: '**/*.Tests.Integration.csproj'
testRunTitle: Integration Tests SQL Server - $(Agent.OS)
${{ if or(variables.releaseTestFilter, parameters.forceReleaseTestFilter) }}:
arguments: '--configuration $(buildConfiguration) --no-build ${{parameters.integrationReleaseTestFilter}}'
${{ else }}:
arguments: '--configuration $(buildConfiguration) --no-build ${{parameters.integrationNonReleaseTestFilter}}'
env:
Tests__Database__DatabaseType: $(testDb)
Tests__Database__SQLServerMasterConnectionString: $(connectionString)
Umbraco__CMS__Global__MainDomLock: 'SqlMainDomLock'
- task: DotNetCoreCLI@2
displayName: Run dotnet test NonWindows
condition: ne(variables['Agent.OS'],'Windows_NT')
inputs:
command: test
projects: '**/*.Tests.Integration.csproj'
testRunTitle: Integration Tests SQL Server - $(Agent.OS)
${{ if or(variables.releaseTestFilter, parameters.forceReleaseTestFilter) }}:
arguments: '--configuration $(buildConfiguration) --no-build ${{parameters.nonWindowsIntegrationReleaseTestFilter}}'
${{ else }}:
arguments: '--configuration $(buildConfiguration) --no-build ${{parameters.nonWindowsIntegrationNonReleaseTestFilter}}'
env:
Tests__Database__DatabaseType: $(testDb)
Tests__Database__SQLServerMasterConnectionString: $(connectionString)
Umbraco__CMS__Global__MainDomLock: 'SqlMainDomLock'
- stage: E2E
variables:
npm_config_cache: $(Pipeline.Workspace)/.npm_e2e
displayName: E2E Tests
dependsOn: Build
jobs:
# E2E Tests
- job:
displayName: E2E Tests
variables:
Umbraco__CMS__Unattended__UnattendedUserName: Playwright Test
Umbraco__CMS__Unattended__UnattendedUserPassword: UmbracoAcceptance123!
Umbraco__CMS__Unattended__UnattendedUserEmail: playwright@umbraco.com
ASPNETCORE_URLS: https://localhost:8443
strategy:
matrix:
Linux:
vmImage: 'ubuntu-latest'
dockerfile: umbraco-linux.docker
dockerImageName: umbraco-linux
Windows:
vmImage: 'windows-latest'
DOTNET_GENERATE_ASPNET_CERTIFICATE: true # Automatically generate HTTPS development certificate on Windows
# Enable console logging in Release mode
Serilog__WriteTo__0__Name: Async
Serilog__WriteTo__0__Args__configure__0__Name: Console
# Set unattended install settings
Umbraco__CMS__Unattended__InstallUnattended: true
Umbraco__CMS__Global__InstallMissingDatabase: true
UmbracoDatabaseServer: (LocalDB)\MSSQLLocalDB
UmbracoDatabaseName: AcceptanceTestDB
ConnectionStrings__umbracoDbDSN: Server=$(UmbracoDatabaseServer);Database=$(UmbracoDatabaseName);Integrated Security=true;
# Custom Umbraco settings
Umbraco__CMS__Global__VersionCheckPeriod: 0
Umbraco__CMS__Global__UseHttps: true
Umbraco__CMS__HealthChecks__Notification__Enabled: false
Umbraco__CMS__KeepAlive__DisableKeepAliveTask: true
pool:
vmImage: $(vmImage)
steps:
- task: DownloadPipelineArtifact@2
displayName: Download nupkg
inputs:
artifact: nupkg
path: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/misc/nupkg
- task: NodeTool@0
displayName: Use Node.js $(nodeVersion)
retryCountOnTaskFailure: 3
inputs:
versionSpec: $(nodeVersion)
- task: Cache@2
displayName: Cache node_modules
inputs:
key: '"npm_e2e" | "$(Agent.OS)" | $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/package-lock.json'
restoreKeys: |
"npm_e2e" | "$(Agent.OS)"
"npm_e2e"
path: $(npm_config_cache)
- pwsh: |
New-Item -Path "." -Name ".env" -ItemType "file" -Value "UMBRACO_USER_LOGIN=$(Umbraco__CMS__Unattended__UnattendedUserEmail)
UMBRACO_USER_PASSWORD=$(Umbraco__CMS__Unattended__UnattendedUserPassword)
URL=$(ASPNETCORE_URLS)"
displayName: Generate .env
workingDirectory: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/
- script: npm ci --no-fund --no-audit --prefer-offline
workingDirectory: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/
displayName: Run npm ci
- pwsh: sqllocaldb start mssqllocaldb
displayName: Start localdb (Windows only)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- pwsh: Invoke-Sqlcmd -Query "CREATE DATABASE $env:UmbracoDatabaseName" -ServerInstance $env:UmbracoDatabaseServer
displayName: Create database (Windows only)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
- task: UseDotNet@2
displayName: Use .NET $(dotnetVersion)
inputs:
version: $(dotnetVersion)
performMultiLevelLookup: true
includePreviewVersions: $(dotnetIncludePreviewVersions)
- pwsh: |
$sha = 'g$(Build.SourceVersion)'.substring(0, 8)
docker build -t $(dockerImageName):$sha -f $(dockerfile) .
mkdir -p $(Build.ArtifactStagingDirectory)/docker-images
docker save -o $(Build.ArtifactStagingDirectory)/docker-images/$(dockerImageName).$sha.tar $(dockerImageName):$sha
dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $(Umbraco__CMS__Unattended__UnattendedUserPassword)
docker run --name $(dockerImageName) -dp 8080:5000 -dp 8443:5001 -e UMBRACO__CMS__GLOBAL__ID=$(UMBRACO__CMS__GLOBAL__ID) -e ASPNETCORE_Kestrel__Certificates__Default__Password="$(Umbraco__CMS__Unattended__UnattendedUserPassword)" -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx -v ${HOME}/.aspnet/https:/https/ $(dockerImageName):$sha
docker ps
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
displayName: Build and run container (Linux only)
workingDirectory: tests/Umbraco.Tests.AcceptanceTest/misc
- pwsh: |
dotnet new --install ./nupkg/Umbraco.Templates.*.nupkg
dotnet new umbraco --name AcceptanceTestProject --no-restore --output .
dotnet restore --configfile ./nuget.config
dotnet build --configuration $(buildConfiguration) --no-restore
dotnet dev-certs https
$process = Start-Process -FilePath "dotnet" -ArgumentList "run --configuration $(buildConfiguration) --no-build --no-launch-profile 2>&1" -PassThru -RedirectStandardOutput $(Build.ArtifactStagingDirectory)/playwright.log
Write-Host "##vso[task.setvariable variable=AcceptanceTestProcessId]$($process.Id)"
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
displayName: Build and run app (Windows only)
workingDirectory: tests/Umbraco.Tests.AcceptanceTest/misc
- pwsh: npx wait-on -v --interval 1000 --timeout 120000 $(ASPNETCORE_URLS)
displayName: Wait for app
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
- pwsh: npx playwright install --with-deps
displayName: Install Playwright
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
- pwsh: npm run test --ignore-certificate-errors
displayName: Run Playwright (Desktop)
continueOnError: true
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
env:
CI: true
CommitId: $(Build.SourceVersion)
AgentOs: $(Agent.OS)
- pwsh: |
docker logs $(dockerImageName) > $(Build.ArtifactStagingDirectory)/playwright.log 2>&1
docker stop $(dockerImageName)
condition: eq(variables['Agent.OS'], 'Linux')
displayName: Stop app (Linux only)
- pwsh: Stop-Process $env:AcceptanceTestProcessId
condition: eq(variables['Agent.OS'], 'Windows_NT')
displayName: Stop app (Windows only)
- task: PowerShell@2
displayName: Check if artifacts folder exists
inputs:
targetType: inline
script: |
$MyVariable = Test-Path -Path $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/results
Write-Host "##vso[task.setvariable variable=resultFolderExists;]$MyVariable"
- task: CopyFiles@2
displayName: Prepare artifacts
condition: eq(variables.resultFolderExists, 'True')
inputs:
sourceFolder: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/results/
targetFolder: $(Build.ArtifactStagingDirectory)/playwright
- task: PublishPipelineArtifact@1
condition: always()
displayName: Publish test artifacts
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
artifact: 'E2E artifacts - $(Agent.OS) - Attempt #$(System.JobAttempt)'
###############################################
## Release
###############################################
- stage: Deploy_MyGet
displayName: MyGet pre-release
dependsOn:
- Unit
- Integration
# - E2E # TODO: Enable when stable.
condition: and(succeeded(), or(eq(dependencies.Build.outputs['A.build.NBGV_PublicRelease'], 'True'), ${{parameters.myGetDeploy}}))
jobs:
- job:
pool:
vmImage: "windows-latest" # NuGetCommand@2 is no longer supported on Ubuntu 24.04 so we'll use windows until an alternative is available.
displayName: Push to pre-release feed
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Download nupkg
inputs:
artifact: nupkg
path: $(Build.ArtifactStagingDirectory)/nupkg
- task: NuGetCommand@2
displayName: NuGet push
inputs:
command: 'push'
packagesToPush: $(Build.ArtifactStagingDirectory)/**/*.nupkg
nuGetFeedType: 'external'
${{ if eq(parameters.isNightly, true) }}:
publishFeedCredentials: 'MyGet - Umbraco Nightly'
${{ else }}:
publishFeedCredentials: 'MyGet - Pre-releases'
- stage: Deploy_NuGet
displayName: NuGet release
dependsOn:
- Deploy_MyGet
- Build_Docs
condition: and(succeeded(), or(eq(dependencies.Build.outputs['A.build.NBGV_PublicRelease'], 'True'), ${{parameters.nuGetDeploy}}))
jobs:
- job:
pool:
vmImage: "windows-latest" # NuGetCommand@2 is no longer supported on Ubuntu 24.04 so we'll use windows until an alternative is available.
displayName: Push to NuGet
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Download nupkg
inputs:
artifact: nupkg
path: $(Build.ArtifactStagingDirectory)/nupkg
- task: NuGetCommand@2
displayName: NuGet push
inputs:
command: 'push'
packagesToPush: $(Build.ArtifactStagingDirectory)/**/*.nupkg
nuGetFeedType: 'external'
publishFeedCredentials: 'NuGet - Umbraco.*'
- stage: Upload_API_Docs
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 5.0.x'
inputs:
version: 5.0.x
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '**/*.Tests.UnitTests.csproj'
- job: Integration_Tests
services:
mssql: mssql
timeoutInMinutes: 120
displayName: 'Integration Tests'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 5.0.x'
inputs:
version: 5.0.x
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '**/Umbraco.Tests.Integration.csproj'
env:
UmbracoIntegrationTestConnectionString: 'Server=localhost,1433;User Id=sa;Password=$(SA_PASSWORD);'
- stage: MacOS
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel
jobs:
- job: Unit_Tests
displayName: 'Unit Tests'
pool:
vmImage: 'macOS-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 5.0.x'
inputs:
version: 5.0.x
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '**/*.Tests.UnitTests.csproj'
- stage: Windows
dependsOn: [] # this removes the implicit dependency on previous stage and causes this to run in parallel
jobs:
- job: Unit_Tests
displayName: 'Unit Tests'
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 5.0.x'
inputs:
version: 5.0.x
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '**\*.Tests.UnitTests.csproj'
- job: Integration_Tests
timeoutInMinutes: 120
displayName: 'Integration Tests'
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 5.0.x'
inputs:
version: 5.0.x
- powershell: 'sqllocaldb start mssqllocaldb'
displayName: 'Start MSSQL LocalDb'
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: '**\Umbraco.Tests.Integration.csproj'
- job: Build_Artifacts
displayName: 'Build Artifacts'
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 5.0.x'
inputs:
version: 5.0.x
- task: NuGetToolInstaller@1
displayName: 'Use NuGet Latest'
- task: NuGetCommand@2
displayName: 'Restore NuGet Packages'
inputs:
restoreSolution: '*\src\umbraco.sln'
feedsToUse: config
- task: PowerShell@1
displayName: 'Update Version'
condition: eq(variables['Umbraco.IsReleaseBuild'], 'false')
inputs:
scriptType: inlineScript
inlineScript: |
Write-Host "Working folder: $pwd"
$ubuild = build/build.ps1 -get -continue
$version = $ubuild.GetUmbracoVersion()
if ($version.Comment -ne "")
{
# 8.0.0-beta.33.1234
$continuous = "$($version.Semver).$(Build.BuildNumber)"
}
else
{
# 8.0.0-alpha.1234
$continuous = "$($version.Release)-alpha.$(Build.BuildNumber)"
}
$ubuild.SetUmbracoVersion($continuous)
#Update the version in template also
$templatePath = 'build/templates/UmbracoSolution/.template.config/template.json'
$a = Get-Content $templatePath -raw | ConvertFrom-Json
$a.symbols.version.defaultValue = $continuous
$a | ConvertTo-Json -depth 32| set-content $templatePath
Write-Host "Building: $continuous"
- task: PowerShell@1
displayName: 'Prepare Build'
inputs:
scriptType: inlineScript
inlineScript: |
Write-Host "Working folder: $pwd"
$ubuild = build\build.ps1 -get
$ubuild.PrepareBuild("vso")
- task: NodeTool@0
displayName: 'Use Node 11.x'
inputs:
versionSpec: 11.x
- task: Npm@1
displayName: 'npm install'
inputs:
workingDir: src\Umbraco.Web.UI.Client
verbose: false
- task: gulp@0
displayName: 'gulp build'
inputs:
gulpFile: src\Umbraco.Web.UI.Client\gulpfile.js
targets: build
workingDirectory: src\Umbraco.Web.UI.Client
publishJUnitResults: true
testResultsFiles: '**\TESTS-*.xml'
- task: PowerShell@1
displayName: 'Prepare Packages & Zip'
inputs:
scriptType: inlineScript
inlineScript: |
Write-Host "Working folder: $pwd"
$ubuild = build\build.ps1 -get -continue
$ubuild.CompileUmbraco()
$ubuild.PreparePackages()
$ubuild.PackageZip()
- task: CopyFiles@2
displayName: 'Copy Zip Files to Staging'
inputs:
SourceFolder: build.out
Contents: '*.zip'
TargetFolder: '$(build.artifactstagingdirectory)'
CleanTargetFolder: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Zip Files'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: zips
- task: PowerShell@1
displayName: 'Verify & Package NuGet'
inputs:
scriptType: inlineScript
inlineScript: |
Write-Host "Working folder: $pwd"
$ubuild = build\build.ps1 -get -continue
$ubuild.VerifyNuGet()
$ubuild.PackageNuGet()
- task: CopyFiles@2
displayName: 'Copy NuPkg Files to Staging'
inputs:
SourceFolder: build.out
Contents: '*.nupkg'
TargetFolder: '$(build.artifactstagingdirectory)'
CleanTargetFolder: true
- task: PublishBuildArtifacts@1
displayName: 'Publish NuPkg Files'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: nupkg
- task: CopyFiles@2
displayName: 'Copy Log Files to Staging'
inputs:
SourceFolder: build.tmp
Contents: '*.log'
TargetFolder: '$(build.artifactstagingdirectory)'
CleanTargetFolder: true
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Log Files'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: logs
condition: succeededOrFailed()
vmImage: 'windows-latest' # Apparently AzureFileCopy is windows only :(
variables:
umbracoMajorVersion: $[ stageDependencies.Build.A.outputs['build.NBGV_VersionMajor'] ]
displayName: Upload API Documention
dependsOn:
- Build
- Deploy_NuGet
condition: and(succeeded(), or(eq(dependencies.Build.outputs['A.build.NBGV_PublicRelease'], 'True'), ${{parameters.uploadApiDocs}}))
jobs:
- job:
displayName: Upload C# Docs
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Download artifact
inputs:
artifact: csharp-docs
path: $(Build.SourcesDirectory)
- task: ExtractFiles@1
inputs:
archiveFilePatterns: $(Build.SourcesDirectory)/csharp-docs.zip
destinationFolder: $(Build.ArtifactStagingDirectory)/csharp-docs
- task: AzureFileCopy@4
displayName: 'Copy C# Docs to blob storage'
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)/csharp-docs/*'
azureSubscription: umbraco-storage
Destination: AzureBlob
storage: umbracoapidocs
ContainerName: '$web'
BlobPrefix: v$(umbracoMajorVersion)/csharp
- job:
displayName: Upload js Docs
steps:
- checkout: none
- task: DownloadPipelineArtifact@2
displayName: Download artifact
inputs:
artifact: ui-docs
path: $(Build.SourcesDirectory)
- task: ExtractFiles@1
inputs:
archiveFilePatterns: $(Build.SourcesDirectory)/ui-docs.zip
destinationFolder: $(Build.ArtifactStagingDirectory)/ui-docs
- task: AzureFileCopy@4
displayName: 'Copy UI Docs to blob storage'
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)/ui-docs/*'
azureSubscription: umbraco-storage
Destination: AzureBlob
storage: umbracoapidocs
ContainerName: '$web'
BlobPrefix: v$(umbracoMajorVersion)/ui
-95
View File
@@ -1,95 +0,0 @@
# this script should be dot-sourced into the build.ps1 scripts
# right after the parameters declaration
# ie
# . "$PSScriptRoot\build-bootstrap.ps1"
# THIS FILE IS DISTRIBUTED AS PART OF UMBRACO.BUILD
# DO NOT MODIFY IT - ALWAYS USED THE COMMON VERSION
# ################################################################
# BOOTSTRAP
# ################################################################
# reset errors
$error.Clear()
# ensure we have temp folder for downloads
$scriptRoot = "$PSScriptRoot"
$scriptTemp = "$scriptRoot\temp"
if (-not (test-path $scriptTemp)) { mkdir $scriptTemp > $null }
# get NuGet
$cache = 4
$nuget = "$scriptTemp\nuget.exe"
# ensure the correct NuGet-source is used. This one is used by Umbraco
$nugetsourceUmbraco = "https://www.myget.org/F/umbracocore/api/v3/index.json"
if (-not $local)
{
$source = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
if ((test-path $nuget) -and ((ls $nuget).CreationTime -lt [DateTime]::Now.AddDays(-$cache)))
{
Remove-Item $nuget -force -errorAction SilentlyContinue > $null
}
if (-not (test-path $nuget))
{
Write-Host "Download NuGet..."
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest $source -OutFile $nuget
if (-not $?) { throw "Failed to download NuGet." }
}
}
elseif (-not (test-path $nuget))
{
throw "Failed to locate NuGet.exe."
}
# NuGet notes
# As soon as we use -ConfigFile, NuGet uses that file, and only that file, and does not
# merge configuration from system level. See comments in NuGet.Client solution, class
# NuGet.Configuration.Settings, method LoadDefaultSettings.
# For NuGet to merge configurations, it needs to "find" the file in the current directory,
# or above. Which means we cannot really use -ConfigFile but instead have to have Umbraco's
# NuGet.config file at root, and always run NuGet.exe while at root or in a directory below
# root.
$solutionRoot = "$scriptRoot\.."
$testPwd = [System.IO.Path]::GetFullPath($pwd.Path) + "\"
$testRoot = [System.IO.Path]::GetFullPath($solutionRoot) + "\"
if (-not $testPwd.ToLower().StartsWith($testRoot.ToLower()))
{
throw "Cannot run outside of the solution's root."
}
# get the build system
if (-not $local)
{
$params = "-OutputDirectory", $scriptTemp, "-Verbosity", "quiet", "-PreRelease", "-Source", $nugetsourceUmbraco
&$nuget install Umbraco.Build @params
if (-not $?) { throw "Failed to download Umbraco.Build." }
}
# ensure we have the build system
$ubuildPath = ls "$scriptTemp\Umbraco.Build.*" | sort -property CreationTime -descending | select -first 1
if (-not $ubuildPath)
{
throw "Failed to locate the build system."
}
# boot the build system
# this creates $global:ubuild
return &"$ubuildPath\ps\Boot.ps1"
# at that point the build.ps1 script must boot the build system
# eg
# $ubuild.Boot($ubuildPath.FullName, [System.IO.Path]::GetFullPath("$scriptRoot\.."),
# @{ Local = $local; With7Zip = $false; WithNode = $false },
# @{ continue = $continue })
# if (-not $?) { throw "Failed to boot the build system." }
#
# and it's good practice to report
# eg
# Write-Host "Umbraco.Whatever Build"
# Write-Host "Umbraco.Build v$($ubuild.BuildVersion)"
# eof
-601
View File
@@ -1,601 +0,0 @@
param (
# get, don't execute
[Parameter(Mandatory=$false)]
[Alias("g")]
[switch] $get = $false,
# run local, don't download, assume everything is ready
[Parameter(Mandatory=$false)]
[Alias("l")]
[Alias("loc")]
[switch] $local = $false,
# enable docfx
[Parameter(Mandatory=$false)]
[Alias("doc")]
[switch] $docfx = $false,
# keep the build directories, don't clear them
[Parameter(Mandatory=$false)]
[Alias("c")]
[Alias("cont")]
[switch] $continue = $false,
# execute a command
[Parameter(Mandatory=$false, ValueFromRemainingArguments=$true)]
[String[]]
$command
)
# ################################################################
# BOOTSTRAP
# ################################################################
# create and boot the buildsystem
$ubuild = &"$PSScriptRoot\build-bootstrap.ps1"
if (-not $?) { return }
$ubuild.Boot($PSScriptRoot,
@{ Local = $local; WithDocFx = $docfx },
@{ Continue = $continue })
if ($ubuild.OnError()) { return }
Write-Host "Umbraco Cms Build"
Write-Host "Umbraco.Build v$($ubuild.BuildVersion)"
# ################################################################
# TASKS
# ################################################################
$ubuild.DefineMethod("SetMoreUmbracoVersion",
{
param ( $semver )
$release = "" + $semver.Major + "." + $semver.Minor + "." + $semver.Patch
Write-Host "Update IIS Express port in csproj"
$updater = New-Object "Umbraco.Build.ExpressPortUpdater"
$csproj = "$($this.SolutionRoot)\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj"
$updater.Update($csproj, $release)
})
$ubuild.DefineMethod("SandboxNode",
{
$global:node_path = $env:path
$nodePath = $this.BuildEnv.NodePath
$gitExe = (Get-Command git).Source
if (-not $gitExe) { $gitExe = (Get-Command git).Path }
$gitPath = [System.IO.Path]::GetDirectoryName($gitExe)
$env:path = "$nodePath;$gitPath"
$global:node_nodepath = $this.ClearEnvVar("NODEPATH")
$global:node_npmcache = $this.ClearEnvVar("NPM_CONFIG_CACHE")
$global:node_npmprefix = $this.ClearEnvVar("NPM_CONFIG_PREFIX")
# https://github.com/gruntjs/grunt-contrib-connect/issues/235
$this.SetEnvVar("NODE_NO_HTTP2", "1")
})
$ubuild.DefineMethod("RestoreNode",
{
$env:path = $node_path
$this.SetEnvVar("NODEPATH", $node_nodepath)
$this.SetEnvVar("NPM_CONFIG_CACHE", $node_npmcache)
$this.SetEnvVar("NPM_CONFIG_PREFIX", $node_npmprefix)
$ignore = $this.ClearEnvVar("NODE_NO_HTTP2")
})
$ubuild.DefineMethod("CompileBelle",
{
$src = "$($this.SolutionRoot)\src"
$log = "$($this.BuildTemp)\belle.log"
Write-Host "Compile Belle"
Write-Host "Logging to $log"
# get a temp clean node env (will restore)
$this.SandboxNode()
# stupid PS is going to gather all "warnings" in $error
# so we have to take care of it else they'll bubble and kill the build
if ($error.Count -gt 0) { return }
try {
Push-Location "$($this.SolutionRoot)\src\Umbraco.Web.UI.Client"
Write-Output "" > $log
Write-Output "### node version is:" > $log
node -v >> $log 2>&1
if (-not $?) { throw "Failed to report node version." }
Write-Output "### npm version is:" >> $log 2>&1
npm -v >> $log 2>&1
if (-not $?) { throw "Failed to report npm version." }
Write-Output "### clean npm cache" >> $log 2>&1
npm cache clean --force >> $log 2>&1
$error.Clear() # that one can fail 'cos security bug - ignore
Write-Output "### npm install" >> $log 2>&1
npm install >> $log 2>&1
Write-Output ">> $? $($error.Count)" >> $log 2>&1
# Don't really care about the messages from npm install making us think there are errors
$error.Clear()
Write-Output "### gulp build for version $($this.Version.Release)" >> $log 2>&1
npm run build --buildversion=$this.Version.Release >> $log 2>&1
# We can ignore this warning, we need to update to node 12 at some point - https://github.com/jsdom/jsdom/issues/2939
$indexes = [System.Collections.ArrayList]::new()
$index = 0;
$error | ForEach-Object {
# Find which of the errors is the ExperimentalWarning
if($_.ToString().Contains("ExperimentalWarning: The fs.promises API is experimental")) {
[void]$indexes.Add($index)
}
$index++
}
$indexes | ForEach-Object {
# Loop through the list of indexes and remove the errors that we expect and feel confident we can ignore
$error.Remove($error[$_])
}
if (-not $?) { throw "Failed to build" } # that one is expected to work
} finally {
Pop-Location
# FIXME: should we filter the log to find errors?
#get-content .\build.tmp\belle.log | %{ if ($_ -match "build") { write $_}}
# restore
$this.RestoreNode()
}
# setting node_modules folder to hidden
# used to prevent VS13 from crashing on it while loading the websites project
# also makes sure aspnet compiler does not try to handle rogue files and chokes
# in VSO with Microsoft.VisualC.CppCodeProvider -related errors
# use get-item -force 'cos it might be hidden already
Write-Host "Set hidden attribute on node_modules"
$dir = Get-Item -force "$src\Umbraco.Web.UI.Client\node_modules"
$dir.Attributes = $dir.Attributes -bor ([System.IO.FileAttributes]::Hidden)
})
$ubuild.DefineMethod("CompileUmbraco",
{
$buildConfiguration = "Release"
$src = "$($this.SolutionRoot)\src"
$log = "$($this.BuildTemp)\build.umbraco.log"
if ($this.BuildEnv.VisualStudio -eq $null)
{
throw "Build environment does not provide VisualStudio."
}
Write-Host "Compile Umbraco"
Write-Host "Logging to $log"
& dotnet build "$src\Umbraco.Web.UI.NetCore\Umbraco.Web.UI.NetCore.csproj" `
--configuration $buildConfiguration `
--output "$($this.BuildTemp)\bin\\" `
> $log
# get files into WebApp\bin
& dotnet publish "$src\Umbraco.Web.UI.NetCore\Umbraco.Web.UI.NetCore.csproj" `
--configuration Release --output "$($this.BuildTemp)\WebApp\bin\\" `
> $log
& dotnet publish "$src\Umbraco.Persistence.SqlCe\Umbraco.Persistence.SqlCe.csproj" `
--configuration Release --output "$($this.BuildTemp)\SqlCe\" `
> $log
# remove extra files
$webAppBin = "$($this.BuildTemp)\WebApp\bin"
$excludeDirs = @("$($webAppBin)\Config","$($webAppBin)\refs","$($webAppBin)\runtimes","$($webAppBin)\Umbraco","$($webAppBin)\wwwroot")
$excludeFiles = @("$($webAppBin)\appsettings.*","$($webAppBin)\*.deps.json","$($webAppBin)\*.exe","$($webAppBin)\*.config","$($webAppBin)\*.runtimeconfig.json")
$this.RemoveDirectory($excludeDirs)
$this.RemoveFile($excludeFiles)
# copy rest of the files into WebApp
$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Config", "*", "$($this.BuildTemp)\WebApp\config")
$this.RemoveFile("$($this.BuildTemp)\WebApp\Config\*.Release.*")
$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Umbraco", "*", "$($this.BuildTemp)\WebApp\umbraco")
$excludeUmbracoDirs = @("$($this.BuildTemp)\WebApp\umbraco\lib")
$this.RemoveDirectory($excludeUmbracoDirs)
$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\Views", "*", "$($this.BuildTemp)\WebApp\Views")
Copy-Item "$($this.SolutionRoot)\src\Umbraco.Web.UI.NetCore\appsettings.json" "$($this.BuildTemp)\WebApp"
if (-not $?) { throw "Failed to compile Umbraco.Web.UI.NetCore." }
# /p:UmbracoBuild tells the csproj that we are building from PS, not VS
})
$ubuild.DefineMethod("PrepareTests",
{
Write-Host "Prepare Tests"
# FIXME: - idea is to avoid rebuilding everything for tests
# but because of our weird assembly versioning (with .* stuff)
# everything gets rebuilt all the time...
#Copy-Files "$tmp\bin" "." "$tmp\tests"
# data
Write-Host "Copy data files"
if (-not (Test-Path -Path "$($this.BuildTemp)\tests\Packaging" ))
{
Write-Host "Create packaging directory"
mkdir "$($this.BuildTemp)\tests\Packaging" > $null
}
#$this.CopyFiles("$($this.SolutionRoot)\src\Umbraco.Tests\Packaging\Packages", "*", "$($this.BuildTemp)\tests\Packaging\Packages")
# required for package install tests
if (-not (Test-Path -Path "$($this.BuildTemp)\tests\bin" ))
{
Write-Host "Create bin directory"
mkdir "$($this.BuildTemp)\tests\bin" > $null
}
})
$ubuild.DefineMethod("CompileTests",
{
$buildConfiguration = "Release"
$log = "$($this.BuildTemp)\msbuild.tests.log"
if ($this.BuildEnv.VisualStudio -eq $null)
{
throw "Build environment does not provide VisualStudio."
}
Write-Host "Compile Tests"
Write-Host "Logging to $log"
# beware of the weird double \\ at the end of paths
# see http://edgylogic.com/blog/powershell-and-external-commands-done-right/
&$this.BuildEnv.VisualStudio.MsBuild "$($this.SolutionRoot)\src\Umbraco.Tests\Umbraco.Tests.csproj" `
/p:WarningLevel=0 `
/p:Configuration=$buildConfiguration `
/p:Platform=AnyCPU `
/p:UseWPP_CopyWebApplication=True `
/p:PipelineDependsOnBuild=False `
/p:OutDir="$($this.BuildTemp)\tests\\" `
/p:Verbosity=minimal `
/t:Build `
/tv:"$($this.BuildEnv.VisualStudio.ToolsVersion)" `
/p:UmbracoBuild=True `
> $log
# copy Umbraco.Persistence.SqlCe files into WebApp
Copy-Item "$($this.BuildTemp)\tests\Umbraco.Persistence.SqlCe.*" "$($this.BuildTemp)\WebApp\bin"
if (-not $?) { throw "Failed to compile tests." }
# /p:UmbracoBuild tells the csproj that we are building from PS
})
$ubuild.DefineMethod("PreparePackages",
{
Write-Host "Prepare Packages"
$src = "$($this.SolutionRoot)\src"
$tmp = "$($this.BuildTemp)"
$out = "$($this.BuildOutput)"
$templates = "$($this.SolutionRoot)\build\templates"
$buildConfiguration = "Release"
# restore web.config
#$this.TempRestoreFile("$src\Umbraco.Web.UI\web.config")
# cleanup build
Write-Host "Clean build"
$this.RemoveFile("$tmp\bin\*.dll.config")
$this.RemoveFile("$tmp\WebApp\bin\*.dll.config")
# cleanup presentation
Write-Host "Cleanup presentation"
$this.RemoveDirectory("$tmp\WebApp\umbraco.presentation")
# create directories
Write-Host "Create directories"
mkdir "$tmp\Configs" > $null
mkdir "$tmp\Configs\Lang" > $null
mkdir "$tmp\WebApp\App_Data" > $null
mkdir "$tmp\Templates" > $null
#mkdir "$tmp\WebApp\Media" > $null
#mkdir "$tmp\WebApp\Views" > $null
# copy various files
Write-Host "Copy xml documentation"
Copy-Item -force "$tmp\bin\*.xml" "$tmp\WebApp\bin"
Write-Host "Copy transformed configs and langs"
# note: exclude imageprocessor/*.config as imageprocessor pkg installs them
$this.CopyFiles("$tmp\WebApp\config", "*.config", "$tmp\Configs", `
{ -not $_.RelativeName.StartsWith("imageprocessor") })
$this.CopyFiles("$tmp\WebApp\config", "*.js", "$tmp\Configs")
$this.CopyFiles("$tmp\WebApp\config\lang", "*.xml", "$tmp\Configs\Lang")
#$this.CopyFile("$tmp\WebApp\web.config", "$tmp\Configs\web.config.transform")
# Write-Host "Copy transformed web.config"
# $this.CopyFile("$src\Umbraco.Web.UI\web.$buildConfiguration.Config.transformed", "$tmp\WebApp\web.config")
# offset the modified timestamps on all umbraco dlls, as WebResources
# break if date is in the future, which, due to timezone offsets can happen.
Write-Host "Offset dlls timestamps"
Get-ChildItem -r "$tmp\*.dll" | ForEach-Object {
$_.CreationTime = $_.CreationTime.AddHours(-11)
$_.LastWriteTime = $_.LastWriteTime.AddHours(-11)
}
# copy libs
Write-Host "Copy SqlCE libraries"
$nugetPackages = $env:NUGET_PACKAGES
if (-not $nugetPackages)
{
$nugetPackages = [System.Environment]::ExpandEnvironmentVariables("%userprofile%\.nuget\packages")
}
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x86\native", "*.*", "$tmp\bin\x86")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x64\native", "*.*", "$tmp\bin\amd64")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x86\native", "*.*", "$tmp\WebApp\bin\x86")
#$this.CopyFiles("$nugetPackages\umbraco.sqlserverce\4.0.0.1\runtimes\win-x64\native", "*.*", "$tmp\WebApp\bin\amd64")
# copy Belle
Write-Host "Copy Belle"
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\assets", "*", "$tmp\WebApp\wwwroot\umbraco\assets")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\js", "*", "$tmp\WebApp\wwwroot\umbraco\js")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\lib", "*", "$tmp\WebApp\wwwroot\umbraco\lib")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\wwwroot\umbraco\views", "*", "$tmp\WebApp\wwwroot\umbraco\views")
# Prepare templates
Write-Host "Copy template files"
$this.CopyFiles("$templates", "*", "$tmp\Templates")
Write-Host "Copy files for dotnet templates"
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "Program.cs", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "Startup.cs", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "appsettings.json", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore", "appsettings.Development.json", "$tmp\Templates\UmbracoSolution")
$this.CopyFiles("$src\Umbraco.Web.UI.NetCore\Views", "*", "$tmp\Templates\UmbracoSolution\Views")
$this.RemoveDirectory("$tmp\Templates\UmbracoSolution\bin")
})
$ubuild.DefineMethod("PackageZip",
{
Write-Host "Create Zip packages"
$src = "$($this.SolutionRoot)\src"
$tmp = $this.BuildTemp
$out = $this.BuildOutput
Write-Host "Zip all binaries"
&$this.BuildEnv.Zip a -r "$out\UmbracoCms.AllBinaries.$($this.Version.Semver).zip" `
"$tmp\bin\*" `
"-x!dotless.Core.*" `
> $null
if (-not $?) { throw "Failed to zip UmbracoCms.AllBinaries." }
Write-Host "Zip cms"
&$this.BuildEnv.Zip a -r "$out\UmbracoCms.$($this.Version.Semver).zip" `
"$tmp\WebApp\*" `
"-x!dotless.Core.*" "-x!Content_Types.xml" "-x!*.pdb" `
> $null
if (-not $?) { throw "Failed to zip UmbracoCms." }
})
$ubuild.DefineMethod("PrepareBuild",
{
$this.TempStoreFile("$($this.SolutionRoot)\src\Umbraco.Web.UI\web.config")
Write-Host "Create clean web.config"
$this.CopyFile("$($this.SolutionRoot)\src\Umbraco.Web.UI\web.Template.config", "$($this.SolutionRoot)\src\Umbraco.Web.UI\web.config")
Write-host "Set environment"
$env:UMBRACO_VERSION=$this.Version.Semver.ToString()
$env:UMBRACO_RELEASE=$this.Version.Release
$env:UMBRACO_COMMENT=$this.Version.Comment
$env:UMBRACO_BUILD=$this.Version.Build
$env:UMBRACO_TMP="$($this.SolutionRoot)\build.tmp"
if ($args -and $args[0] -eq "vso")
{
Write-host "Set VSO environment"
# set environment variable for VSO
# https://github.com/Microsoft/vsts-tasks/issues/375
# https://github.com/Microsoft/vsts-tasks/blob/master/docs/authoring/commands.md
Write-Host ("##vso[task.setvariable variable=UMBRACO_VERSION;]$($this.Version.Semver.ToString())")
Write-Host ("##vso[task.setvariable variable=UMBRACO_RELEASE;]$($this.Version.Release)")
Write-Host ("##vso[task.setvariable variable=UMBRACO_COMMENT;]$($this.Version.Comment)")
Write-Host ("##vso[task.setvariable variable=UMBRACO_BUILD;]$($this.Version.Build)")
Write-Host ("##vso[task.setvariable variable=UMBRACO_TMP;]$($this.SolutionRoot)\build.tmp")
}
})
$nugetsourceUmbraco = "https://api.nuget.org/v3/index.json"
$ubuild.DefineMethod("RestoreNuGet",
{
Write-Host "Restore NuGet"
Write-Host "Logging to $($this.BuildTemp)\nuget.restore.log"
$params = "-Source", $nugetsourceUmbraco
&$this.BuildEnv.NuGet restore "$($this.SolutionRoot)\src\Umbraco.sln" > "$($this.BuildTemp)\nuget.restore.log" @params
if (-not $?) { throw "Failed to restore NuGet packages." }
})
$ubuild.DefineMethod("PackageNuGet",
{
$nuspecs = "$($this.SolutionRoot)\build\NuSpecs"
$templates = "$($this.BuildTemp)\Templates"
Write-Host "Create NuGet packages"
&$this.BuildEnv.NuGet Pack "$nuspecs\UmbracoCms.Core.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.cmscore.log"
if (-not $?) { throw "Failed to pack NuGet UmbracoCms.Core." }
&$this.BuildEnv.NuGet Pack "$nuspecs\UmbracoCms.Web.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.cmsweb.log"
if (-not $?) { throw "Failed to pack NuGet UmbracoCms.Web." }
&$this.BuildEnv.NuGet Pack "$nuspecs\UmbracoCms.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.cms.log"
if (-not $?) { throw "Failed to pack NuGet UmbracoCms." }
&$this.BuildEnv.NuGet Pack "$nuspecs\UmbracoCms.SqlCe.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.cmssqlce.log"
if (-not $?) { throw "Failed to pack NuGet UmbracoCms.SqlCe." }
&$this.BuildEnv.NuGet Pack "$templates\Umbraco.Templates.nuspec" `
-Properties BuildTmp="$($this.BuildTemp)" `
-Version "$($this.Version.Semver.ToString())" `
-Verbosity detailed -outputDirectory "$($this.BuildOutput)" > "$($this.BuildTemp)\nupack.templates.log"
if (-not $?) { throw "Failed to pack NuGet Umbraco.Templates." }
# run hook
if ($this.HasMethod("PostPackageNuGet"))
{
Write-Host "Run PostPackageNuGet hook"
$this.PostPackageNuGet();
if (-not $?) { throw "Failed to run hook." }
}
})
$ubuild.DefineMethod("VerifyNuGet",
{
$this.VerifyNuGetConsistency(
("UmbracoCms", "UmbracoCms.Core", "UmbracoCms.Web"),
("Umbraco.Core", "Umbraco.Infrastructure", "Umbraco.Web.UI.NetCore", "Umbraco.Examine.Lucene", "Umbraco.PublishedCache.NuCache", "Umbraco.Web.Common", "Umbraco.Web.Website", "Umbraco.Web.BackOffice", "Umbraco.ModelsBuilder.Embedded", "Umbraco.Persistence.SqlCe"))
if ($this.OnError()) { return }
})
$ubuild.DefineMethod("PrepareAzureGallery",
{
Write-Host "Prepare Azure Gallery"
$this.CopyFile("$($this.SolutionRoot)\build\Azure\azuregalleryrelease.ps1", $this.BuildOutput)
})
$ubuild.DefineMethod("PrepareCSharpDocs",
{
Write-Host "Prepare C# Documentation"
$src = "$($this.SolutionRoot)\src"
$tmp = $this.BuildTemp
$out = $this.BuildOutput
$DocFxJson = Join-Path -Path $src "\ApiDocs\docfx.json"
$DocFxSiteOutput = Join-Path -Path $tmp "\_site\*.*"
# run DocFx
$DocFx = $this.BuildEnv.DocFx
& $DocFx metadata $DocFxJson
& $DocFx build $DocFxJson
# zip it
& $this.BuildEnv.Zip a -tzip -r "$out\csharp-docs.zip" $DocFxSiteOutput
})
$ubuild.DefineMethod("PrepareAngularDocs",
{
Write-Host "Prepare Angular Documentation"
$src = "$($this.SolutionRoot)\src"
$out = $this.BuildOutput
# Check if the solution has been built
if (!(Test-Path "$src\Umbraco.Web.UI.Client\node_modules")) {throw "Umbraco needs to be built before generating the Angular Docs"}
"Moving to Umbraco.Web.UI.Docs folder"
cd $src\Umbraco.Web.UI.Docs
"Generating the docs and waiting before executing the next commands"
& npm install
& npx gulp docs
Pop-Location
# change baseUrl
$BaseUrl = "https://our.umbraco.com/apidocs/v8/ui/"
$IndexPath = "./api/index.html"
(Get-Content $IndexPath).replace('origin + location.href.substr(origin.length).replace(rUrl, indexFile)', "`'" + $BaseUrl + "`'") | Set-Content $IndexPath
# zip it
& $this.BuildEnv.Zip a -tzip -r "$out\ui-docs.zip" "$src\Umbraco.Web.UI.Docs\api\*.*"
})
$ubuild.DefineMethod("Build",
{
$error.Clear()
$this.PrepareBuild()
if ($this.OnError()) { return }
$this.RestoreNuGet()
if ($this.OnError()) { return }
$this.CompileBelle()
if ($this.OnError()) { return }
$this.CompileUmbraco()
if ($this.OnError()) { return }
$this.PrepareTests()
if ($this.OnError()) { return }
$this.CompileTests()
if ($this.OnError()) { return }
# not running tests
$this.PreparePackages()
if ($this.OnError()) { return }
$this.PackageZip()
if ($this.OnError()) { return }
$this.VerifyNuGet()
if ($this.OnError()) { return }
$this.PackageNuGet()
if ($this.OnError()) { return }
$this.PrepareAzureGallery()
if ($this.OnError()) { return }
$this.PostPackageHook()
if ($this.OnError()) { return }
Write-Host "Done"
})
$ubuild.DefineMethod("PostPackageHook",
{
# run hook
if ($this.HasMethod("PostPackage"))
{
Write-Host "Run PostPackage hook"
$this.PostPackage();
if (-not $?) { throw "Failed to run hook." }
}
})
# ################################################################
# RUN
# ################################################################
# configure
$ubuild.ReleaseBranches = @( "master" )
# run
if (-not $get)
{
cd
if ($command.Length -eq 0)
{
$command = @( "Build" )
}
$ubuild.RunMethod($command);
if ($ubuild.OnError()) { return }
}
if ($get) { return $ubuild }
+16
View File
@@ -0,0 +1,16 @@
apiRules:
- include:
uidRegex: ^Umbraco\.Cms
- include:
uidRegex: ^Umbraco\.Extensions
- exclude:
hasAttribute:
uid: System.ComponentModel.EditorBrowsableAttribute
ctorArguments:
- System.ComponentModel.EditorBrowsableState.Never
- exclude:
uidRegex: ^umbraco\.
- exclude:
uidRegex: ^CookComputing\.
- exclude:
uidRegex: ^.*$
@@ -2,15 +2,18 @@
"metadata": [
{
"src": [
{
"src": "../",
{
"src": "../../src",
"files": [
"Umbraco.Core/Umbraco.Core.csproj",
"Umbraco.Web/Umbraco.Web.csproj"
"**/*.csproj"
],
"exclude": [
"**/obj/**",
"**/bin/**"
"**/bin/**",
"**/Umbraco.Web.csproj",
"**/Umbraco.Web.UI.csproj",
"**/Umbraco.Cms.StaticAssets.csproj",
"**/JsonSchema.csproj"
]
}
],
@@ -53,7 +56,7 @@
"_enableSearch": true,
"_disableContribution": false
},
"dest": "../../build.tmp/_site",
"dest": "_site",
"template": [
"default", "umbracotemplate"
]
+11
View File
@@ -0,0 +1,11 @@
# Umbraco c# API reference
## Quick Links:
### [Core](api/Umbraco.Cms.Core.html) docs
### [Infrastructure](api/Umbraco.Cms.Infrastructure.html) docs
### [Web](api/Umbraco.Cms.Web.Common.html) docs
### [Extensions](api/Umbraco.Extensions.html) docs
+9
View File
@@ -0,0 +1,9 @@
- name: Core
href: api/Umbraco.Cms.Core.html
- name: Infrastructure
href: api/Umbraco.Cms.Infrastructure.html
- name: Web
href: api/Umbraco.Cms.Web.Common.html
- name: Extensions
href: api/Umbraco.Extensions.html
@@ -15,8 +15,8 @@
<div class="level{{item.level}}"><span class="xref">{{item.name.0.value}}</span></div>
</div>
{{/inheritance.0}}
<h6><strong>{{__global.namespace}}</strong>:{{namespace}}</h6>
<h6><strong>{{__global.assembly}}</strong>:{{assemblies.0}}.dll</h6>
<h6><strong>{{__global.namespace}}</strong>: {{{namespace.specName.0.value}}}</h6>
<h6><strong>{{__global.assembly}}</strong>: {{assemblies.0}}.dll</h6>
<h5 id="{{id}}_syntax">{{__global.syntax}}</h5>
<div class="codewrapper">
<pre><code class="lang-{{_lang}} hljs">{{syntax.content.0.value}}</code></pre>
@@ -9,7 +9,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/" alt="Our Umbraco"></a>
<a class="navbar-brand" href="{{_rel}}" alt="Our Umbraco"></a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
+35
View File
@@ -0,0 +1,35 @@
name: Nightly_$(TeamProject)_$(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
pr: none
trigger: none
schedules:
- cron: '0 0 * * *'
displayName: Daily midnight build
branches:
include:
- v10/dev
- v12/dev
- v13/dev
- v14/dev
steps:
- checkout: none
- task: TriggerBuild@4
inputs:
definitionIsInCurrentTeamProject: true
buildDefinition: '301'
queueBuildForUserThatTriggeredBuild: true
ignoreSslCertificateErrors: false
useSameSourceVersion: false
useCustomSourceVersion: false
useSameBranch: true
waitForQueuedBuildsToFinish: false
storeInEnvironmentVariable: false
templateParameters: 'sqlServerIntegrationTests: true, forceReleaseTestFilter: true, myGetDeploy: true, isNightly: true'
authenticationMethod: 'OAuth Token'
enableBuildInQueueCondition: false
dependentOnSuccessfulBuildCondition: false
dependentOnFailedBuildCondition: false
checkbuildsoncurrentbranch: false
failTaskIfConditionsAreNotFulfilled: false
-21
View File
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="4.1.0">
<id>Umbraco.Templates</id>
<version>1.0.0</version>
<authors>Umbraco HQ</authors>
<owners>Umbraco HQ</owners>
<license type="expression">MIT</license>
<projectUrl>https://umbraco.com/</projectUrl>
<iconUrl>https://umbraco.com/dist/nuget/logo-small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Umbraco Cms templates for .NET Core Template Engine available through the dotnet CLI's new command</description>
<language>en-US</language>
<tags>umbraco</tags>
<repository type="git" url="https://github.com/umbraco/umbraco-cms" />
<packageTypes>
<packageType name="Template" />
</packageTypes>
</metadata>
</package>
@@ -1,51 +0,0 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Umbraco HQ",
"classifications": [ "Web", "CMS", "Umbraco"],
"identity": "Umbraco.Templates",
"name": "Umbraco - Empty Solution",
"shortName": "umbraco",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "UmbracoSolution",
"preferNameDirectory": true,
"symbols": {
"version": {
"type": "parameter",
"datatype": "string",
"defaultValue": "0.5.0-alpha003",
"description": "The version of Umbraco to load using NuGet",
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
},
"namespaceReplacer": {
"type": "generated",
"generator": "coalesce",
"parameters": {
"sourceVariableName": "name",
"defaultValue": "UmbracoSolution",
"fallbackVariableName": "name"
},
"replaces":"Umbraco.Web.UI.NetCore"
},
"UseSqlCe":{
"type": "parameter",
"datatype":"bool",
"defaultValue": "false"
},
"Framework": {
"type": "parameter",
"description": "The target framework for the project.",
"datatype": "choice",
"choices": [
{
"choice": "net5.0",
"description": "Target net5.0"
}
],
"replaces": "net5.0",
"defaultValue": "net5.0"
}
}
}
@@ -1,26 +0,0 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5000",
"sslPort": 5001
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Umbraco.Web.UI.NetCore": {
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
@@ -1,41 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="UMBRACO_VERSION_FROM_TEMPLATE" />
<PackageReference Include="Umbraco.Cms.SqlCe" Version="UMBRACO_VERSION_FROM_TEMPLATE" Condition="'$(UseSqlCe)' == 'true'" />
<PackageReference Include="Umbraco.SqlServerCE" Version="4.0.0.1" Condition="'$(UseSqlCe)' == 'true'" />
</ItemGroup>
<ItemGroup>
<Compile Remove="umbraco\Data\**" />
<Compile Remove="umbraco\logs\**" />
<Compile Remove="umbraco\MediaCache\**" />
<Compile Remove="umbraco\models\**" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="umbraco\Data\**" />
<EmbeddedResource Remove="umbraco\logs\**" />
<EmbeddedResource Remove="umbraco\MediaCache\**" />
<EmbeddedResource Remove="umbraco\models\**" />
</ItemGroup>
<ItemGroup>
<None Remove="umbraco\models\**" />
<None Remove="umbraco\Data\**" />
<None Remove="umbraco\logs\**" />
<None Remove="umbraco\MediaCache\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="umbraco\Data\**" />
<Content Remove="umbraco\logs\**" />
<Content Remove="umbraco\MediaCache\**" />
<Content Remove="umbraco\models\**" />
</ItemGroup>
<!--Set this to true ModelsBuilder mode is not PureLive -->
<PropertyGroup>
<RazorCompileOnBuild>false</RazorCompileOnBuild>
</PropertyGroup>
</Project>
@@ -1,4 +0,0 @@
@using Umbraco.Web.UI.NetCore
@using Umbraco.Extensions
@using Umbraco.Web.PublishedModels
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+6
View File
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "6.0.300",
"rollForward": "latestFeature"
}
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

+119
View File
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
<appSettings>
<add key="Umbraco.Core.ConfigurationStatus" value="6.0.0"/>
<add key="Umbraco.Core.ReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd,~/.well-known" />
<add key="Umbraco.Core.ReservedPaths" value="~/install/"/>
<add key="Umbraco.Core.Path" value="~/umbraco"/>
<add key="Umbraco.Core.HideTopLevelNodeFromPath" value="true"/>
<add key="Umbraco.Core.TimeOutInMinutes" value="20"/>
<add key="Umbraco.Core.DefaultUILanguage" value="en"/>
<add key="Umbraco.Core.UseHttps" value="false"/>
<add key="dataAnnotations:dataTypeAttribute:disableRegEx" value="false"/>
</appSettings>
<connectionStrings>
<add name="umbracoDbDSN" connectionString="Datasource=|DataDirectory|UmbracoNPocoTests.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0"/>
</connectionStrings>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0"/>
<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
</DbProviderFactories>
</system.data>
<system.web>
<httpRuntime targetFramework="4.5"/>
<compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.0"></compilation>
<machineKey validationKey="5E7B955FCE36F5F2A867C2A0D85DC61E7FEA9E15F1561E8386F78BFE9EE23FF18B21E6A44AA17300B3B9D5DBEB37AA61A2C73884A5BBEDA6D3B14BA408A7A8CD" decryptionKey="116B853D031219E404E088FCA0986D6CF2DFA77E1957B59FCC9404B8CA3909A1" validation="SHA1" decryption="AES"/>
<!--<trust level="Medium" originUrl=".*"/>-->
<!-- Sitemap provider-->
<siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">
<providers>
<clear/>
<add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
<!-- Membership Provider -->
<membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco.Web" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="4" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed"/>
</providers>
</membership>
</system.web>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.ComponentModel.Annotations" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.1.0" newVersion="4.2.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="4.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="4.0.0.0-4.0.1.1" newVersion="4.0.1.1"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="4.0.0.0-4.1.4.0" newVersion="4.1.4.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using NUnit.Framework;
using Umbraco.Cms.Core.Models.PublishedContent;
namespace Umbraco.Tests.Published
{
[TestFixture]
public class ModelTypeTests
{
//TODO these is not easy to move to the Unittest project due to underlysing NotImplementedException of Type.IsSZArray
[Test]
public void ModelTypeToStringTests()
{
var modelType = ModelType.For("alias1");
var modelTypeArray = modelType.MakeArrayType();
Assert.AreEqual("{alias1}", modelType.ToString());
// there's an "*" there because the arrays are not true SZArray - but that changes when we map
Assert.AreEqual("{alias1}[*]", modelTypeArray.ToString());
var enumArray = typeof(IEnumerable<>).MakeGenericType(modelTypeArray);
Assert.AreEqual("System.Collections.Generic.IEnumerable`1[{alias1}[*]]", enumArray.ToString());
}
[Test]
public void ModelTypeFullNameTests()
{
Assert.AreEqual("{alias1}", ModelType.For("alias1").FullName);
Type type = ModelType.For("alias1");
Assert.AreEqual("{alias1}", type.FullName);
// there's an "*" there because the arrays are not true SZArray - but that changes when we map
Assert.AreEqual("{alias1}[*]", ModelType.For("alias1").MakeArrayType().FullName);
// note the inner assembly qualified name
Assert.AreEqual("System.Collections.Generic.IEnumerable`1[[{alias1}[*], Umbraco.Core, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]", typeof(IEnumerable<>).MakeGenericType(ModelType.For("alias1").MakeArrayType()).FullName);
}
}
}
@@ -1,13 +1,12 @@
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using Umbraco.Core;
using Umbraco.Core.Configuration.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Tests.Common;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.Models.PublishedContent;
using Umbraco.Cms.Core.Routing;
using Umbraco.Cms.Core.Web;
using Umbraco.Cms.Tests.Common;
using Umbraco.Tests.TestHelpers;
using Umbraco.Web;
using Umbraco.Web.Routing;
namespace Umbraco.Tests.Routing
{
@@ -20,7 +19,7 @@ namespace Umbraco.Tests.Routing
protected override void Compose()
{
base.Compose();
Builder.Services.AddTransient<ISiteDomainHelper, SiteDomainHelper>();
Builder.Services.AddTransient<ISiteDomainMapper, SiteDomainMapper>();
}
protected override void ComposeSettings()
@@ -1,25 +1,25 @@
using System;
using System;
using System.Linq;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
using Newtonsoft.Json;
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Core.Configuration.Models;
using Umbraco.Core.IO;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.PropertyEditors.ValueConverters;
using Umbraco.Core.Services;
using Umbraco.Tests.Common;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Models.PublishedContent;
using Umbraco.Cms.Core.PropertyEditors;
using Umbraco.Cms.Core.PropertyEditors.ValueConverters;
using Umbraco.Cms.Core.Routing;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Core.Strings;
using Umbraco.Cms.Core.Web;
using Umbraco.Cms.Tests.Common;
using Umbraco.Cms.Tests.Common.Testing;
using Umbraco.Tests.PublishedContent;
using Umbraco.Tests.TestHelpers;
using Umbraco.Tests.Testing;
using Umbraco.Web;
using Umbraco.Web.PropertyEditors;
using Umbraco.Web.Routing;
using Constants = Umbraco.Cms.Core.Constants;
namespace Umbraco.Tests.Routing
{
@@ -34,13 +34,14 @@ namespace Umbraco.Tests.Routing
base.SetUp();
var loggerFactory = NullLoggerFactory.Instance;
var mediaFileSystemMock = Mock.Of<IMediaFileSystem>();
var mediaFileManager = new MediaFileManager(Mock.Of<IFileSystem>(), Mock.Of<IMediaPathScheme>(),
loggerFactory.CreateLogger<MediaFileManager>(), Mock.Of<IShortStringHelper>());
var contentSettings = new ContentSettings();
var dataTypeService = Mock.Of<IDataTypeService>();
var propertyEditors = new MediaUrlGeneratorCollection(new IMediaUrlGenerator[]
{
new FileUploadPropertyEditor(loggerFactory, mediaFileSystemMock, Microsoft.Extensions.Options.Options.Create(contentSettings), dataTypeService, LocalizationService, LocalizedTextService, ShortStringHelper, UploadAutoFillProperties, JsonNetSerializer),
new ImageCropperPropertyEditor(loggerFactory, mediaFileSystemMock, Microsoft.Extensions.Options.Options.Create(contentSettings), dataTypeService, LocalizationService, IOHelper, ShortStringHelper, LocalizedTextService, UploadAutoFillProperties, JsonNetSerializer),
new FileUploadPropertyEditor(DataValueEditorFactory, mediaFileManager, Microsoft.Extensions.Options.Options.Create(contentSettings), dataTypeService, LocalizationService, LocalizedTextService, UploadAutoFillProperties, ContentService),
new ImageCropperPropertyEditor(DataValueEditorFactory, loggerFactory, mediaFileManager, Microsoft.Extensions.Options.Options.Create(contentSettings), dataTypeService, IOHelper, UploadAutoFillProperties, ContentService),
});
_mediaUrlProvider = new DefaultMediaUrlProvider(propertyEditors, UriUtility);
}
+199
View File
@@ -0,0 +1,199 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5D3B8245-ADA6-453F-A008-50ED04BFE770}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Umbraco.Tests</RootNamespace>
<AssemblyName>Umbraco.Tests</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<LangVersion>8</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Data.Entity.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Runtime.Caching" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Text.Encoding" />
<Reference Include="System.Web" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Web.Services" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.4.1" />
<PackageReference Include="Examine.Core">
<Version>2.0.0</Version>
</PackageReference>
<PackageReference Include="Castle.Core" Version="4.3.1" />
<PackageReference Include="Examine" Version="2.0.0" />
<PackageReference Include="HtmlAgilityPack">
<Version>1.11.31</Version>
</PackageReference>
<PackageReference Include="Lucene.Net.Contrib" Version="3.0.3" />
<PackageReference Include="Microsoft.AspNet.Identity.Core" Version="2.2.3" />
<PackageReference Include="Microsoft.AspNet.Mvc" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Owin" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.SelfHost" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.Tracing" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNet.WebApi.WebHost" Version="5.2.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions">
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console">
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="5.0.0" />
<PackageReference Include="Microsoft.Owin" Version="4.1.1" />
<PackageReference Include="Microsoft.Owin.Hosting" Version="4.1.1" />
<PackageReference Include="Microsoft.Owin.Security" Version="4.1.1" />
<PackageReference Include="Microsoft.Owin.Testing" Version="4.1.1" />
<PackageReference Include="Microsoft.Web.Infrastructure" Version="1.0.0.0" />
<PackageReference Include="MiniProfiler" Version="4.2.22" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="MiniProfiler" Version="4.0.138" />
<PackageReference Include="Moq" Version="4.10.1" />
<PackageReference Include="Moq" Version="4.14.5" />
<PackageReference Include="NPoco" Version="3.9.4" />
<PackageReference Include="NUnit" Version="3.11.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.12.0" />
<PackageReference Include="NPoco" Version="4.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Owin" Version="1.0" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
<PackageReference Include="Umbraco.SqlServerCE" Version="4.0.0.1" />
</ItemGroup>
<ItemGroup>
<Compile Include="Published\ModelTypeTests.cs" />
<Compile Include="Routing\BaseUrlProviderTest.cs" />
<Compile Include="Routing\MediaUrlProviderTests.cs" />
<Compile Include="Scoping\ScopedNuCacheTests.cs" />
<Compile Include="Web\Controllers\AuthenticationControllerTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config">
<SubType>Designer</SubType>
</None>
<None Include="unit-test-logger.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Umbraco.Core\Umbraco.Core.csproj">
<Project>{29aa69d9-b597-4395-8d42-43b1263c240a}</Project>
<Name>Umbraco.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Umbraco.Examine.Lucene\Umbraco.Examine.Lucene.csproj">
<Project>{0fad7d2a-d7dd-45b1-91fd-488bb6cdacea}</Project>
<Name>Umbraco.Examine.Lucene</Name>
</ProjectReference>
<ProjectReference Include="...\..\srcUmbraco.Infrastructure\Umbraco.Infrastructure.csproj">
<Project>{3ae7bf57-966b-45a5-910a-954d7c554441}</Project>
<Name>Umbraco.Infrastructure</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Umbraco.Persistence.SqlCe\Umbraco.Persistence.SqlCe.csproj">
<Project>{33085570-9bf2-4065-a9b0-a29d920d13ba}</Project>
<Name>Umbraco.Persistence.SqlCe</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Umbraco.PublishedCache.NuCache\Umbraco.PublishedCache.NuCache.csproj">
<Project>{f6de8da0-07cc-4ef2-8a59-2bc81dbb3830}</Project>
<Name>Umbraco.PublishedCache.NuCache</Name>
</ProjectReference>
<ProjectReference Include="..\Umbraco.Tests.Common\Umbraco.Tests.Common.csproj">
<Project>{a499779c-1b3b-48a8-b551-458e582e6e96}</Project>
<Name>Umbraco.Tests.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\src\Umbraco.Web\Umbraco.Web.csproj">
<Project>{651E1350-91B6-44B7-BD60-7207006D7003}</Project>
<Name>Umbraco.Web</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<ItemGroup />
<!-- get NuGet packages directory -->
<PropertyGroup>
<NuGetPackages>$(NuGetPackageFolders.Split(';')[0])</NuGetPackages>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild">
<Message Text="-BeforeBuild-" Importance="high" />
<Message Text="MSBuildExtensionsPath: $(MSBuildExtensionsPath)" Importance="high" />
<Message Text="WebPublishingTasks: $(WebPublishingTasks)" Importance="high" />
<Message Text="NuGetPackageFolders: $(NuGetPackageFolders)" Importance="high" />
<Message Text="NuGetPackages: $(NuGetPackages)" Importance="high" />
</Target>
</Project>
@@ -1,10 +1,11 @@
using Moq;
using NUnit.Framework;
using Umbraco.Core.DependencyInjection;
using Umbraco.Core.Services;
using Umbraco.Cms.Core.Features;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Tests.Common.Testing;
using Umbraco.Extensions;
using Umbraco.Tests.TestHelpers;
using Umbraco.Tests.Testing;
using Umbraco.Web.Features;
namespace Umbraco.Tests.Web.Controllers
{
-447
View File
@@ -1,447 +0,0 @@
# Version: 1.6.2 (Using https://semver.org/)
# Updated: 2020-11-02
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes.
# See https://github.com/RehanSaeed/EditorConfig for updates to this file.
# See http://EditorConfig.org for more information about .editorconfig files.
##########################################
# Common Settings
##########################################
# This file is the top-most EditorConfig file
root = true
# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
##########################################
# File Extension Settings
##########################################
# Visual Studio Solution Files
[*.sln]
indent_style = tab
# Visual Studio XML Project Files
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
# XML Configuration Files
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
indent_size = 2
# JSON Files
[*.{json,json5,webmanifest}]
indent_size = 2
# YAML Files
[*.{yml,yaml}]
indent_size = 2
# Markdown Files
[*.md]
trim_trailing_whitespace = false
# Web Files
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
indent_size = 2
# Batch Files
[*.{cmd,bat}]
end_of_line = crlf
# Bash Files
[*.sh]
end_of_line = lf
# Makefiles
[Makefile]
indent_style = tab
##########################################
# File Header (Uncomment to support file headers)
# https://docs.microsoft.com/visualstudio/ide/reference/add-file-header
##########################################
# [*.{cs,csx,cake,vb,vbx}]
file_header_template = Copyright (c) Umbraco.\nSee LICENSE for more details.
# SA1636: File header copyright text should match
# Justification: .editorconfig supports file headers. If this is changed to a value other than "none", a stylecop.json file will need to added to the project.
# dotnet_diagnostic.SA1636.severity = none
##########################################
# .NET Language Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions
##########################################
# .NET Code Style Settings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#net-code-style-settings
[*.{cs,csx,cake,vb,vbx}]
# "this." and "Me." qualifiers
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#this-and-me
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
# Language keywords instead of framework type names for type references
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#language-keywords
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning
# Modifier preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#normalize-modifiers
dotnet_style_require_accessibility_modifiers = always:warning
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:warning
dotnet_style_readonly_field = true:warning
# Parentheses preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#parentheses-preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
# Expression-level preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-level-preferences
dotnet_style_object_initializer = true:warning
dotnet_style_collection_initializer = true:warning
dotnet_style_explicit_tuple_names = true:warning
dotnet_style_prefer_inferred_tuple_names = true:warning
dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = false:suggestion
dotnet_style_prefer_conditional_expression_over_return = false:suggestion
dotnet_style_prefer_compound_assignment = true:warning
# Null-checking preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#null-checking-preferences
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
# Parameter preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#parameter-preferences
dotnet_code_quality_unused_parameters = all:warning
# More style options (Undocumented)
# https://github.com/MicrosoftDocs/visualstudio-docs/issues/3641
dotnet_style_operator_placement_when_wrapping = end_of_line
# https://github.com/dotnet/roslyn/pull/40070
dotnet_style_prefer_simplified_interpolation = true:warning
# C# Code Style Settings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-code-style-settings
[*.{cs,csx,cake}]
# Implicit and explicit types
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#implicit-and-explicit-types
csharp_style_var_for_built_in_types = never
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = false:warning
# Expression-bodied members
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-bodied-members
csharp_style_expression_bodied_methods = true:warning
csharp_style_expression_bodied_constructors = true:warning
csharp_style_expression_bodied_operators = true:warning
csharp_style_expression_bodied_properties = true:warning
csharp_style_expression_bodied_indexers = true:warning
csharp_style_expression_bodied_accessors = true:warning
csharp_style_expression_bodied_lambdas = true:warning
csharp_style_expression_bodied_local_functions = true:warning
# Pattern matching
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#pattern-matching
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_pattern_matching_over_as_with_null_check = true:warning
# Inlined variable declarations
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#inlined-variable-declarations
csharp_style_inlined_variable_declaration = true:warning
# Expression-level preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-level-preferences
csharp_prefer_simple_default_expression = true:warning
# "Null" checking preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-null-checking-preferences
csharp_style_throw_expression = true:warning
csharp_style_conditional_delegate_call = true:warning
# Code block preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#code-block-preferences
csharp_prefer_braces = true:warning
# Unused value preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#unused-value-preferences
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
# Index and range preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#index-and-range-preferences
csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_range_operator = true:warning
# Miscellaneous preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences
csharp_style_deconstructed_variable_declaration = true:warning
csharp_style_pattern_local_over_anonymous_function = true:warning
csharp_using_directive_placement = outside_namespace:warning
csharp_prefer_static_local_function = true:warning
csharp_prefer_simple_using_statement = true:suggestion
##########################################
# .NET Formatting Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-code-style-settings-reference#formatting-conventions
##########################################
# Organize usings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#organize-using-directives
dotnet_sort_system_directives_first = true
# Newline options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = no_change
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false
# Spacing options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false
# Wrapping options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true
##########################################
# .NET Naming Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-naming-conventions
##########################################
[*.{cs,csx,cake,vb,vbx}]
##########################################
# Styles
##########################################
# camel_case_style - Define the camelCase style
dotnet_naming_style.camel_case_style.capitalization = camel_case
# pascal_case_style - Define the PascalCase style
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# first_upper_style - The first character must start with an upper-case character
dotnet_naming_style.first_upper_style.capitalization = first_word_upper
# prefix_interface_with_i_style - Interfaces must be PascalCase and the first character of an interface must be an 'I'
dotnet_naming_style.prefix_interface_with_i_style.capitalization = pascal_case
dotnet_naming_style.prefix_interface_with_i_style.required_prefix = I
# prefix_type_parameters_with_t_style - Generic Type Parameters must be PascalCase and the first character must be a 'T'
dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_case
dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T
# disallowed_style - Anything that has this style applied is marked as disallowed
dotnet_naming_style.disallowed_style.capitalization = pascal_case
dotnet_naming_style.disallowed_style.required_prefix = ____RULE_VIOLATION____
dotnet_naming_style.disallowed_style.required_suffix = ____RULE_VIOLATION____
# internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file
dotnet_naming_style.internal_error_style.capitalization = pascal_case
dotnet_naming_style.internal_error_style.required_prefix = ____INTERNAL_ERROR____
dotnet_naming_style.internal_error_style.required_suffix = ____INTERNAL_ERROR____
##########################################
# .NET Design Guideline Field Naming Rules
# Naming rules for fields follow the .NET Framework design guidelines
# https://docs.microsoft.com/dotnet/standard/design-guidelines/index
##########################################
# All public/protected/protected_internal constant fields must be PascalCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.symbols = public_protected_constant_fields_group
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.severity = warning
# All public/protected/protected_internal static readonly fields must be PascalCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.symbols = public_protected_static_readonly_fields_group
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No other public/protected/protected_internal fields are allowed
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.other_public_protected_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.other_public_protected_fields_group.applicable_kinds = field
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.symbols = other_public_protected_fields_group
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.style = disallowed_style
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.severity = error
##########################################
# StyleCop Field Naming Rules
# Naming rules for fields follow the StyleCop analyzers
# This does not override any rules using disallowed_style above
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers
##########################################
# All constant fields must be PascalCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1303.md
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private
dotnet_naming_symbols.stylecop_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.symbols = stylecop_constant_fields_group
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.severity = warning
# All static readonly fields must be PascalCase
# Ajusted to ignore private fields.
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.symbols = stylecop_static_readonly_fields_group
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No non-private instance fields are allowed
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_kinds = field
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.symbols = stylecop_fields_must_be_private_group
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.style = disallowed_style
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.severity = error
# Local variables must be camelCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md
dotnet_naming_symbols.stylecop_local_fields_group.applicable_accessibilities = local
dotnet_naming_symbols.stylecop_local_fields_group.applicable_kinds = local
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.symbols = stylecop_local_fields_group
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.style = camel_case_style
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.severity = silent
# This rule should never fire. However, it's included for at least two purposes:
# First, it helps to understand, reason about, and root-case certain types of issues, such as bugs in .editorconfig parsers.
# Second, it helps to raise immediate awareness if a new field type is added (as occurred recently in C#).
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_accessibilities = *
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_kinds = field
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.symbols = sanity_check_uncovered_field_case_group
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.style = internal_error_style
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.severity = error
##########################################
# Other Naming Rules
##########################################
# All of the following must be PascalCase:
# - Namespaces
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-namespaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Classes and Enumerations
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Delegates
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces#names-of-common-types
# - Constructors, Properties, Events, Methods
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-type-members
dotnet_naming_symbols.element_group.applicable_kinds = namespace, class, enum, struct, delegate, event, method, property
dotnet_naming_rule.element_rule.symbols = element_group
dotnet_naming_rule.element_rule.style = pascal_case_style
dotnet_naming_rule.element_rule.severity = warning
# Interfaces use PascalCase and are prefixed with uppercase 'I'
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.interface_group.applicable_kinds = interface
dotnet_naming_rule.interface_rule.symbols = interface_group
dotnet_naming_rule.interface_rule.style = prefix_interface_with_i_style
dotnet_naming_rule.interface_rule.severity = warning
# Generics Type Parameters use PascalCase and are prefixed with uppercase 'T'
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.type_parameter_group.applicable_kinds = type_parameter
dotnet_naming_rule.type_parameter_rule.symbols = type_parameter_group
dotnet_naming_rule.type_parameter_rule.style = prefix_type_parameters_with_t_style
dotnet_naming_rule.type_parameter_rule.severity = warning
# Function parameters use camelCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/naming-parameters
dotnet_naming_symbols.parameters_group.applicable_kinds = parameter
dotnet_naming_rule.parameters_rule.symbols = parameters_group
dotnet_naming_rule.parameters_rule.style = camel_case_style
dotnet_naming_rule.parameters_rule.severity = warning
# Private static fields use camelCase and start with s_
dotnet_naming_symbols.private_static_field_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_field_symbols.required_modifiers = static, shared
dotnet_naming_symbols.private_static_field_symbols.applicable_kinds = field
dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.symbols = private_static_field_symbols
dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.style = camel_case_and_prefix_with_s_underscore_style
dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.severity = warning
dotnet_naming_style.camel_case_and_prefix_with_s_underscore_style.required_prefix = s_
dotnet_naming_style.camel_case_and_prefix_with_s_underscore_style.capitalization = camel_case
# Instance fields use camelCase and are prefixed with '_'
dotnet_naming_symbols.private_field_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_field_symbols.applicable_kinds = field
dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.symbols = private_field_symbols
dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.style = camel_case_and_prefix_with_underscore_style
dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.severity = warning
dotnet_naming_style.camel_case_and_prefix_with_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_and_prefix_with_underscore_style.capitalization = camel_case
##########################################
# License
##########################################
# The following applies as to the .editorconfig file ONLY, and is
# included below for reference, per the requirements of the license
# corresponding to this .editorconfig file.
# See: https://github.com/RehanSaeed/EditorConfig
#
# MIT License
#
# Copyright (c) 2017-2019 Muhammad Rehan Saeed
# Copyright (c) 2019 Henry Gabryjelski
#
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject
# to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
##########################################
-18
View File
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="CodeAnalysis" ToolsVersion="16.0">
<Rules AnalyzerId="Roslynator.CSharp.Analyzers" RuleNamespace="Roslynator.CSharp">
<Rule Id="RCS1090" Action="None" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1200" Action="None" />
<Rule Id="SA1308" Action="None" />
<Rule Id="SA1309" Action="None" />
<Rule Id="SA1311" Action="None" />
<Rule Id="SA1402" Action="None" />
<Rule Id="SA1413" Action="None" />
<Rule Id="SA1611" Action="None" />
<Rule Id="SA1615" Action="None" />
<Rule Id="SA1629" Action="None" />
</Rules>
</RuleSet>
-26
View File
@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="CodeAnalysis.Tests" ToolsVersion="16.0">
<Include Path="codeanalysis.ruleset" Action="Default" />
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp">
<Rule Id="CS1591" Action="None" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.Features" RuleNamespace="Microsoft.CodeAnalysis.CSharp.Features">
<Rule Id="IDE0058" Action="None" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA0001" Action="None" />
<Rule Id="SA1115" Action="None" />
<Rule Id="SA1201" Action="None" />
<Rule Id="SA1202" Action="None" />
<Rule Id="SA1203" Action="None" />
<Rule Id="SA1204" Action="None" />
<Rule Id="SA1310" Action="None" />
<Rule Id="SA1401" Action="None" />
<Rule Id="SA1600" Action="None" />
<Rule Id="SA1601" Action="None" />
<Rule Id="SA1602" Action="None" />
<Rule Id="SA1611" Action="None" />
<Rule Id="SA1618" Action="None" />
<Rule Id="SA1642" Action="None" />
</Rules>
</RuleSet>
-16
View File
@@ -1,16 +0,0 @@
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"orderingRules": {
"usingDirectivesPlacement": "outsideNamespace",
"elementOrder": [
"kind"
]
},
"documentationRules": {
"xmlHeader": false,
"documentInternalElements": false,
"copyrightText": "Copyright (c) Umbraco.\nSee LICENSE for more details."
}
}
}
+53
View File
@@ -0,0 +1,53 @@
name: issue-first-response
on:
issues:
types: [opened]
jobs:
send-response:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Install dependencies
run: |
npm install node-fetch@2
- name: Fetch random comment 🗣️ and add it to the issue
uses: actions/github-script@v6
with:
script: |
const fetch = require('node-fetch')
const response = await fetch('https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/comments/PostComment', {
method: 'post',
body: JSON.stringify({
repo: '${{ github.repository }}',
number: '${{ github.event.number }}',
actor: '${{ github.actor }}',
commentType: 'opened-issue-first-comment'
}),
headers: {
'Authorization': 'Bearer ${{ secrets.OUR_BOT_API_TOKEN }}',
'Content-Type': 'application/json'
}
});
try {
const data = await response.text();
if(response.status === 200 && data !== '') {
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: data
});
} else {
console.log("Status code did not indicate success:", response.status);
console.log("Returned data:", data);
}
} catch(error) {
console.log(error);
}
-447
View File
@@ -1,447 +0,0 @@
# Version: 1.6.2 (Using https://semver.org/)
# Updated: 2020-11-02
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes.
# See https://github.com/RehanSaeed/EditorConfig for updates to this file.
# See http://EditorConfig.org for more information about .editorconfig files.
##########################################
# Common Settings
##########################################
# This file is the top-most EditorConfig file
root = true
# All Files
[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
##########################################
# File Extension Settings
##########################################
# Visual Studio Solution Files
[*.sln]
indent_style = tab
# Visual Studio XML Project Files
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
# XML Configuration Files
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
indent_size = 2
# JSON Files
[*.{json,json5,webmanifest}]
indent_size = 2
# YAML Files
[*.{yml,yaml}]
indent_size = 2
# Markdown Files
[*.md]
trim_trailing_whitespace = false
# Web Files
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
indent_size = 2
# Batch Files
[*.{cmd,bat}]
end_of_line = crlf
# Bash Files
[*.sh]
end_of_line = lf
# Makefiles
[Makefile]
indent_style = tab
##########################################
# File Header (Uncomment to support file headers)
# https://docs.microsoft.com/visualstudio/ide/reference/add-file-header
##########################################
# [*.{cs,csx,cake,vb,vbx}]
file_header_template = Copyright (c) Umbraco.\nSee LICENSE for more details.
# SA1636: File header copyright text should match
# Justification: .editorconfig supports file headers. If this is changed to a value other than "none", a stylecop.json file will need to added to the project.
# dotnet_diagnostic.SA1636.severity = none
##########################################
# .NET Language Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions
##########################################
# .NET Code Style Settings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#net-code-style-settings
[*.{cs,csx,cake,vb,vbx}]
# "this." and "Me." qualifiers
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#this-and-me
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
# Language keywords instead of framework type names for type references
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#language-keywords
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning
# Modifier preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#normalize-modifiers
dotnet_style_require_accessibility_modifiers = always:warning
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:warning
dotnet_style_readonly_field = true:warning
# Parentheses preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#parentheses-preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
# Expression-level preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-level-preferences
dotnet_style_object_initializer = true:warning
dotnet_style_collection_initializer = true:warning
dotnet_style_explicit_tuple_names = true:warning
dotnet_style_prefer_inferred_tuple_names = true:warning
dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
dotnet_style_prefer_auto_properties = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = false:suggestion
dotnet_style_prefer_conditional_expression_over_return = false:suggestion
dotnet_style_prefer_compound_assignment = true:warning
# Null-checking preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#null-checking-preferences
dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
# Parameter preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#parameter-preferences
dotnet_code_quality_unused_parameters = all:warning
# More style options (Undocumented)
# https://github.com/MicrosoftDocs/visualstudio-docs/issues/3641
dotnet_style_operator_placement_when_wrapping = end_of_line
# https://github.com/dotnet/roslyn/pull/40070
dotnet_style_prefer_simplified_interpolation = true:warning
# C# Code Style Settings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-code-style-settings
[*.{cs,csx,cake}]
# Implicit and explicit types
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#implicit-and-explicit-types
csharp_style_var_for_built_in_types = never
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = false:warning
# Expression-bodied members
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-bodied-members
csharp_style_expression_bodied_methods = true:warning
csharp_style_expression_bodied_constructors = true:warning
csharp_style_expression_bodied_operators = true:warning
csharp_style_expression_bodied_properties = true:warning
csharp_style_expression_bodied_indexers = true:warning
csharp_style_expression_bodied_accessors = true:warning
csharp_style_expression_bodied_lambdas = true:warning
csharp_style_expression_bodied_local_functions = true:warning
# Pattern matching
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#pattern-matching
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_pattern_matching_over_as_with_null_check = true:warning
# Inlined variable declarations
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#inlined-variable-declarations
csharp_style_inlined_variable_declaration = true:warning
# Expression-level preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-level-preferences
csharp_prefer_simple_default_expression = true:warning
# "Null" checking preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-null-checking-preferences
csharp_style_throw_expression = true:warning
csharp_style_conditional_delegate_call = true:warning
# Code block preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#code-block-preferences
csharp_prefer_braces = true:warning
# Unused value preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#unused-value-preferences
csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
# Index and range preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#index-and-range-preferences
csharp_style_prefer_index_operator = true:warning
csharp_style_prefer_range_operator = true:warning
# Miscellaneous preferences
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences
csharp_style_deconstructed_variable_declaration = true:warning
csharp_style_pattern_local_over_anonymous_function = true:warning
csharp_using_directive_placement = outside_namespace:warning
csharp_prefer_static_local_function = true:warning
csharp_prefer_simple_using_statement = true:suggestion
##########################################
# .NET Formatting Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-code-style-settings-reference#formatting-conventions
##########################################
# Organize usings
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#organize-using-directives
dotnet_sort_system_directives_first = true
# Newline options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = no_change
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false
# Spacing options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false
# Wrapping options
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true
##########################################
# .NET Naming Conventions
# https://docs.microsoft.com/visualstudio/ide/editorconfig-naming-conventions
##########################################
[*.{cs,csx,cake,vb,vbx}]
##########################################
# Styles
##########################################
# camel_case_style - Define the camelCase style
dotnet_naming_style.camel_case_style.capitalization = camel_case
# pascal_case_style - Define the PascalCase style
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# first_upper_style - The first character must start with an upper-case character
dotnet_naming_style.first_upper_style.capitalization = first_word_upper
# prefix_interface_with_i_style - Interfaces must be PascalCase and the first character of an interface must be an 'I'
dotnet_naming_style.prefix_interface_with_i_style.capitalization = pascal_case
dotnet_naming_style.prefix_interface_with_i_style.required_prefix = I
# prefix_type_parameters_with_t_style - Generic Type Parameters must be PascalCase and the first character must be a 'T'
dotnet_naming_style.prefix_type_parameters_with_t_style.capitalization = pascal_case
dotnet_naming_style.prefix_type_parameters_with_t_style.required_prefix = T
# disallowed_style - Anything that has this style applied is marked as disallowed
dotnet_naming_style.disallowed_style.capitalization = pascal_case
dotnet_naming_style.disallowed_style.required_prefix = ____RULE_VIOLATION____
dotnet_naming_style.disallowed_style.required_suffix = ____RULE_VIOLATION____
# internal_error_style - This style should never occur... if it does, it indicates a bug in file or in the parser using the file
dotnet_naming_style.internal_error_style.capitalization = pascal_case
dotnet_naming_style.internal_error_style.required_prefix = ____INTERNAL_ERROR____
dotnet_naming_style.internal_error_style.required_suffix = ____INTERNAL_ERROR____
##########################################
# .NET Design Guideline Field Naming Rules
# Naming rules for fields follow the .NET Framework design guidelines
# https://docs.microsoft.com/dotnet/standard/design-guidelines/index
##########################################
# All public/protected/protected_internal constant fields must be PascalCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.public_protected_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.symbols = public_protected_constant_fields_group
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_constant_fields_must_be_pascal_case_rule.severity = warning
# All public/protected/protected_internal static readonly fields must be PascalCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.public_protected_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.public_protected_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.symbols = public_protected_static_readonly_fields_group
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.public_protected_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No other public/protected/protected_internal fields are allowed
# https://docs.microsoft.com/dotnet/standard/design-guidelines/field
dotnet_naming_symbols.other_public_protected_fields_group.applicable_accessibilities = public, protected, protected_internal
dotnet_naming_symbols.other_public_protected_fields_group.applicable_kinds = field
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.symbols = other_public_protected_fields_group
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.style = disallowed_style
dotnet_naming_rule.other_public_protected_fields_disallowed_rule.severity = error
##########################################
# StyleCop Field Naming Rules
# Naming rules for fields follow the StyleCop analyzers
# This does not override any rules using disallowed_style above
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers
##########################################
# All constant fields must be PascalCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1303.md
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected, private
dotnet_naming_symbols.stylecop_constant_fields_group.required_modifiers = const
dotnet_naming_symbols.stylecop_constant_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.symbols = stylecop_constant_fields_group
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.stylecop_constant_fields_must_be_pascal_case_rule.severity = warning
# All static readonly fields must be PascalCase
# Ajusted to ignore private fields.
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1311.md
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_static_readonly_fields_group.required_modifiers = static, readonly
dotnet_naming_symbols.stylecop_static_readonly_fields_group.applicable_kinds = field
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.symbols = stylecop_static_readonly_fields_group
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.style = pascal_case_style
dotnet_naming_rule.stylecop_static_readonly_fields_must_be_pascal_case_rule.severity = warning
# No non-private instance fields are allowed
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_accessibilities = public, internal, protected_internal, protected, private_protected
dotnet_naming_symbols.stylecop_fields_must_be_private_group.applicable_kinds = field
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.symbols = stylecop_fields_must_be_private_group
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.style = disallowed_style
dotnet_naming_rule.stylecop_instance_fields_must_be_private_rule.severity = error
# Local variables must be camelCase
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md
dotnet_naming_symbols.stylecop_local_fields_group.applicable_accessibilities = local
dotnet_naming_symbols.stylecop_local_fields_group.applicable_kinds = local
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.symbols = stylecop_local_fields_group
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.style = camel_case_style
dotnet_naming_rule.stylecop_local_fields_must_be_camel_case_rule.severity = silent
# This rule should never fire. However, it's included for at least two purposes:
# First, it helps to understand, reason about, and root-case certain types of issues, such as bugs in .editorconfig parsers.
# Second, it helps to raise immediate awareness if a new field type is added (as occurred recently in C#).
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_accessibilities = *
dotnet_naming_symbols.sanity_check_uncovered_field_case_group.applicable_kinds = field
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.symbols = sanity_check_uncovered_field_case_group
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.style = internal_error_style
dotnet_naming_rule.sanity_check_uncovered_field_case_rule.severity = error
##########################################
# Other Naming Rules
##########################################
# All of the following must be PascalCase:
# - Namespaces
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-namespaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Classes and Enumerations
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md
# - Delegates
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces#names-of-common-types
# - Constructors, Properties, Events, Methods
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-type-members
dotnet_naming_symbols.element_group.applicable_kinds = namespace, class, enum, struct, delegate, event, method, property
dotnet_naming_rule.element_rule.symbols = element_group
dotnet_naming_rule.element_rule.style = pascal_case_style
dotnet_naming_rule.element_rule.severity = warning
# Interfaces use PascalCase and are prefixed with uppercase 'I'
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.interface_group.applicable_kinds = interface
dotnet_naming_rule.interface_rule.symbols = interface_group
dotnet_naming_rule.interface_rule.style = prefix_interface_with_i_style
dotnet_naming_rule.interface_rule.severity = warning
# Generics Type Parameters use PascalCase and are prefixed with uppercase 'T'
# https://docs.microsoft.com/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces
dotnet_naming_symbols.type_parameter_group.applicable_kinds = type_parameter
dotnet_naming_rule.type_parameter_rule.symbols = type_parameter_group
dotnet_naming_rule.type_parameter_rule.style = prefix_type_parameters_with_t_style
dotnet_naming_rule.type_parameter_rule.severity = warning
# Function parameters use camelCase
# https://docs.microsoft.com/dotnet/standard/design-guidelines/naming-parameters
dotnet_naming_symbols.parameters_group.applicable_kinds = parameter
dotnet_naming_rule.parameters_rule.symbols = parameters_group
dotnet_naming_rule.parameters_rule.style = camel_case_style
dotnet_naming_rule.parameters_rule.severity = warning
# Private static fields use camelCase and start with s_
dotnet_naming_symbols.private_static_field_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_static_field_symbols.required_modifiers = static, shared
dotnet_naming_symbols.private_static_field_symbols.applicable_kinds = field
dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.symbols = private_static_field_symbols
dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.style = camel_case_and_prefix_with_s_underscore_style
dotnet_naming_rule.private_static_fields_must_be_camel_cased_and_prefixed_with_s_underscore.severity = warning
dotnet_naming_style.camel_case_and_prefix_with_s_underscore_style.required_prefix = s_
dotnet_naming_style.camel_case_and_prefix_with_s_underscore_style.capitalization = camel_case
# Instance fields use camelCase and are prefixed with '_'
dotnet_naming_symbols.private_field_symbols.applicable_accessibilities = private
dotnet_naming_symbols.private_field_symbols.applicable_kinds = field
dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.symbols = private_field_symbols
dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.style = camel_case_and_prefix_with_underscore_style
dotnet_naming_rule.private_instance_fields_must_be_camel_cased_and_prefixed_with_underscore.severity = warning
dotnet_naming_style.camel_case_and_prefix_with_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_and_prefix_with_underscore_style.capitalization = camel_case
##########################################
# License
##########################################
# The following applies as to the .editorconfig file ONLY, and is
# included below for reference, per the requirements of the license
# corresponding to this .editorconfig file.
# See: https://github.com/RehanSaeed/EditorConfig
#
# MIT License
#
# Copyright (c) 2017-2019 Muhammad Rehan Saeed
# Copyright (c) 2019 Henry Gabryjelski
#
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject
# to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
##########################################
-18
View File
@@ -1,18 +0,0 @@
apiRules:
- include:
uidRegex: ^Umbraco\.Core
- exclude:
uidRegex: ^umbraco\.Web\.org
- include:
uidRegex: ^Umbraco\.Web
- exclude:
hasAttribute:
uid: System.ComponentModel.EditorBrowsableAttribute
ctorArguments:
- System.ComponentModel.EditorBrowsableState.Never
- exclude:
uidRegex: ^umbraco\.
- exclude:
uidRegex: ^CookComputing\.
- exclude:
uidRegex: ^.*$
-7
View File
@@ -1,7 +0,0 @@
# Umbraco c# API reference
## Quick Links:
### [Umbraco.Core](api/Umbraco.Core.html) docs
### [Umbraco.Web](api/Umbraco.Web.html) docs
-5
View File
@@ -1,5 +0,0 @@
- name: Umbraco.Core Documentation
href: https://our.umbraco.com/apidocs/csharp/api/Umbraco.Core.html
- name: Umbraco.Web Documentation
href: https://our.umbraco.com/apidocs/csharp/api/Umbraco.Web.html
+67
View File
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<NoWarn>NU1507</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Dazinator.Extensions.FileProviders" Version="2.0.0" />
<PackageVersion Include="Examine" Version="3.0.1" />
<PackageVersion Include="Examine.Core" Version="3.0.1" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.54" />
<PackageVersion Include="IPNetwork2" Version="2.6.618" />
<PackageVersion Include="K4os.Compression.LZ4" Version="1.3.6" />
<PackageVersion Include="MailKit" Version="3.2.0" />
<PackageVersion Include="Markdown" Version="2.2.1" />
<PackageVersion Include="MessagePack" Version="2.5.187" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.24" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.24" />
<PackageVersion Include="Microsoft.Data.Sqlite" Version="6.0.24" />
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.24" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Physical" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Identity.Core" Version="6.0.24" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Options.DataAnnotations" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="6.0.1" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.Identity.Stores" Version="6.0.24" />
<PackageVersion Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
<PackageVersion Include="MiniProfiler.Shared" Version="4.2.22" />
<PackageVersion Include="ncrontab" Version="3.3.3" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="NPoco.SqlServer" Version="5.3.2" />
<PackageVersion Include="Serilog" Version="2.12.0" />
<PackageVersion Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageVersion Include="Serilog.Enrichers.Process" Version="2.0.2" />
<PackageVersion Include="Serilog.Enrichers.Thread" Version="3.1.0" />
<PackageVersion Include="Serilog.Expressions" Version="3.4.1" />
<PackageVersion Include="Serilog.Extensions.Hosting" Version="4.2.0" />
<PackageVersion Include="Serilog.Formatting.Compact" Version="1.1.0" />
<PackageVersion Include="Serilog.Formatting.Compact.Reader" Version="1.0.5" />
<PackageVersion Include="Serilog.Settings.Configuration" Version="3.4.0" />
<PackageVersion Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageVersion Include="Serilog.Sinks.Map" Version="1.0.2" />
<PackageVersion Include="SixLabors.ImageSharp" Version="2.1.10" />
<PackageVersion Include="SixLabors.ImageSharp.Web" Version="2.0.2" />
<PackageVersion Include="Smidge.InMemory" Version="4.3.0" />
<PackageVersion Include="Smidge.Nuglify" Version="4.2.1" />
<PackageVersion Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="6.0.4" />
<PackageVersion Include="System.Threading.Tasks.Dataflow" Version="6.0.0" />
<PackageVersion Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageVersion Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />
<PackageVersion Include="System.Runtime.Caching" Version="6.0.0" />
<PackageVersion Include="Umbraco.CSharpTest.Net.Collections" Version="14.906.1403.1085" />
<!-- Add dependencies that we force an update to, even that we do not use them explicitly and they seems to be taken from the framework instead of from Nuget -->
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
<PackageVersion Include="System.Security.Cryptography.Xml" Version="6.0.1" />
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>
</Project>
+152
View File
@@ -0,0 +1,152 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.Configuration;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Deploy.Core.Configuration.DebugConfiguration;
using Umbraco.Deploy.Core.Configuration.DeployConfiguration;
using Umbraco.Deploy.Core.Configuration.DeployProjectConfiguration;
using Umbraco.Forms.Core.Configuration;
using SecuritySettings = Umbraco.Cms.Core.Configuration.Models.SecuritySettings;
namespace JsonSchema
{
internal class AppSettings
{
/// <summary>
/// Gets or sets the Umbraco
/// </summary>
public UmbracoDefinition? Umbraco { get; set; }
/// <summary>
/// Configuration of Umbraco CMS and packages
/// </summary>
internal class UmbracoDefinition
{
// ReSharper disable once InconsistentNaming
public CmsDefinition? CMS { get; set; }
public FormsDefinition? Forms { get; set; }
public DeployDefinition? Deploy { get; set; }
/// <summary>
/// Configurations for the Umbraco CMS
/// </summary>
public class CmsDefinition
{
public ContentSettings? Content { get; set; }
public CoreDebugSettings? Debug { get; set; }
public ExceptionFilterSettings? ExceptionFilter { get; set; }
public ModelsBuilderSettings? ModelsBuilder { get; set; }
public GlobalSettings? Global { get; set; }
public HealthChecksSettings? HealthChecks { get; set; }
public HostingSettings? Hosting { get; set; }
public ImagingSettings? Imaging { get; set; }
public IndexCreatorSettings? Examine { get; set; }
public IndexingSettings? Indexing { get; set; }
public KeepAliveSettings? KeepAlive { get; set; }
public LoggingSettings? Logging { get; set; }
public NuCacheSettings? NuCache { get; set; }
public RequestHandlerSettings? RequestHandler { get; set; }
public RuntimeSettings? Runtime { get; set; }
public SecuritySettings? Security { get; set; }
public TourSettings? Tours { get; set; }
public TypeFinderSettings? TypeFinder { get; set; }
public WebRoutingSettings? WebRouting { get; set; }
public UmbracoPluginSettings? Plugins { get; set; }
public UnattendedSettings? Unattended { get; set; }
public RichTextEditorSettings? RichTextEditor { get; set; }
public RuntimeMinificationSettings? RuntimeMinification { get; set; }
public BasicAuthSettings? BasicAuth { get; set; }
public PackageMigrationSettings? PackageMigration { get; set; }
public LegacyPasswordMigrationSettings? LegacyPasswordMigration { get; set; }
public ContentDashboardSettings? ContentDashboard { get; set; }
public HelpPageSettings? HelpPage { get; set; }
public InstallDefaultData? InstallDefaultData { get; set; }
public DataTypesSettings? DataTypes { get; set; }
public MarketplaceSettings? Marketplace { get; set; }
}
/// <summary>
/// Configurations for the Umbraco CMS InstallDefaultData configuration.
/// </summary>
public class InstallDefaultData
{
public InstallDefaultDataSettings? Languages { get; set; }
public InstallDefaultDataSettings? DataTypes { get; set; }
public InstallDefaultDataSettings? MediaTypes { get; set; }
public InstallDefaultDataSettings? MemberTypes { get; set; }
}
/// <summary>
/// Configurations for the Umbraco Forms package to Umbraco CMS
/// </summary>
public class FormsDefinition
{
public FormDesignSettings? FormDesign { get; set; }
public PackageOptionSettings? Options { get; set; }
public Umbraco.Forms.Core.Configuration.SecuritySettings? Security { get; set; }
public FieldTypesDefinition? FieldTypes { get; set; }
/// <summary>
/// Configurations for the Umbraco Forms Field Types
/// </summary>
public class FieldTypesDefinition
{
public DatePickerSettings? DatePicker { get; set; }
public Recaptcha2Settings? Recaptcha2 { get; set; }
public Recaptcha3Settings? Recaptcha3 { get; set; }
}
}
/// <summary>
/// Configurations for the Umbraco Deploy package to Umbraco CMS
/// </summary>
public class DeployDefinition
{
public DeploySettings? Settings { get; set; }
public DeployProjectConfig? Project { get; set; }
public DebugSettings? Debug { get; set; }
}
}
}
}
+19
View File
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<EnablePackageValidation>false</EnablePackageValidation>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="NJsonSchema" Version="10.9.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Umbraco.Core\Umbraco.Core.csproj" />
<PackageReference Include="Umbraco.Deploy.Core" Version="10.4.0" />
<PackageReference Include="Umbraco.Forms.Core" Version="10.5.4" />
</ItemGroup>
</Project>
@@ -0,0 +1,13 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System;
using NJsonSchema.Generation;
namespace JsonSchema
{
internal class NamespacePrefixedSchemaNameGenerator : DefaultSchemaNameGenerator
{
public override string Generate(Type type) => type.Namespace?.Replace(".", string.Empty) + base.Generate(type);
}
}
+13
View File
@@ -0,0 +1,13 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using CommandLine;
namespace JsonSchema
{
internal class Options
{
[Option('o', "outputFile", Required = false, HelpText = "Set path of the output file.", Default = "appsettings-schema.json")]
public string OutputFile { get; set; } = null!;
}
}
+41
View File
@@ -0,0 +1,41 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System;
using System.IO;
using System.Threading.Tasks;
using CommandLine;
namespace JsonSchema
{
internal class Program
{
public static async Task Main(string[] args)
{
try
{
await Parser.Default.ParseArguments<Options>(args)
.WithParsedAsync(Execute);
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
private static async Task Execute(Options options)
{
var generator = new UmbracoJsonSchemaGenerator();
var schema = await generator.Generate();
var path = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, options.OutputFile));
Console.WriteLine("Path to use {0}", path);
Directory.CreateDirectory(Path.GetDirectoryName(path)!);
Console.WriteLine("Ensured directory exists");
await File.WriteAllTextAsync(path, schema);
Console.WriteLine("File written at {0}", path);
}
}
}
@@ -0,0 +1,58 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NJsonSchema.Generation;
using Umbraco.Cms.Core.Configuration.Models;
namespace JsonSchema
{
/// <summary>
/// Generator of the JsonSchema for AppSettings.json including A specific Umbraco version.
/// </summary>
public class UmbracoJsonSchemaGenerator
{
private static readonly HttpClient s_client = new ();
private readonly JsonSchemaGenerator _innerGenerator;
/// <summary>
/// Initializes a new instance of the <see cref="UmbracoJsonSchemaGenerator" /> class.
/// </summary>
public UmbracoJsonSchemaGenerator()
=> _innerGenerator = new JsonSchemaGenerator(new UmbracoJsonSchemaGeneratorSettings());
/// <summary>
/// Generates a json representing the JsonSchema for AppSettings.json including A specific Umbraco version..
/// </summary>
public async Task<string> Generate()
{
JObject umbracoSchema = GenerateUmbracoSchema();
JObject officialSchema = await GetOfficialAppSettingsSchema();
officialSchema.Merge(umbracoSchema);
return officialSchema.ToString();
}
private async Task<JObject> GetOfficialAppSettingsSchema()
{
HttpResponseMessage response = await s_client.GetAsync("https://json.schemastore.org/appsettings.json")
.ConfigureAwait(false);
var result = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<JObject>(result)!;
}
private JObject GenerateUmbracoSchema()
{
NJsonSchema.JsonSchema schema = _innerGenerator.Generate(typeof(AppSettings));
// TODO: when the "UmbracoPath" setter is removed from "GlobalSettings" (scheduled for V12), remove this line as well
schema.Definitions["UmbracoCmsCoreConfigurationModelsGlobalSettings"]?.Properties?.Remove(nameof(GlobalSettings.UmbracoPath));
return JsonConvert.DeserializeObject<JObject>(schema.ToJson())!;
}
}
}

Some files were not shown because too many files have changed in this diff Show More