Elitsa Marinovska
9c18cd22e0
V14: Deleted code marked as obsolete for V14 ( #15998 )
...
* Obsoletions related to Delivery API
* Fix TypeLoader and TypeFinder tests
* Remove obsolete and default implementations of IFileSource and IFileTypeCollection
* More Delivery API related obsoletions
* VariationContextAccessor related
* ValueFactories obsoletion and fix references
* ValueSetBuilders obsoletions
* ValueConverters obsoletions
* Other obsolete ctors and methods
* Forgotten VariationContextAccessor obsoletion
* More obsoletions
* XPath related obsoletions
* Revert XmlHelper changes
* Delete RenamedRootNavigator and its tests
* Fix test
* XmlHelper obsoletion
* Return null instead of GetXPathValue
* Obsolete entire class instead
* Remove XPath obsoletions from IPublishedCache
* Remove XPath-related if-block that is no longer needed
* Change obsolete msg for classes needed for NuCache
* Moving classes to NuCache and making them internal
* Remove more XPath-related obsoletions
* Remove NavigableNavigator and its tests
* Cleanup
* Remove Xpath references from tests
* Revert interface deletion in MediaCache
* Using XOR operation
Co-authored-by: Nuklon <Nuklon@users.noreply.github.com >
---------
Co-authored-by: Nuklon <Nuklon@users.noreply.github.com >
2024-04-09 09:06:48 +02:00
Andy Butland
d08d141bcf
Updates and support for re-use of CMS logic in Deploy ( #14990 )
...
* Adds additional parameter to IFileSource.GetFilesAsync allowing the caller to continue on a file not found exception.
* Moved redirect tracking and creation logic out of handler into a service, allowing for re-use in Deploy.
* Reverted breaking change in IFileSource by obsoleting old method and
2023-10-31 12:38:44 +01:00
karlmacklin
5377c17b5d
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:42:58 +02:00
Callum Whyte
5ef43cb4f0
Rename StaticServiceProvider namespace Umbraco.Cms.Core.DependencyInjection ( #13239 )
2022-11-29 12:22:57 +01: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 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
Nikolaj Geisle
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 Berg
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
Bjarke Berg
84c1799049
Merge remote-tracking branch 'origin/v10/contrib' into v10/dev
2022-05-03 21:36:30 +02:00
Chad
0561d4b5a1
Async support for content finders. Improve log performance. ( #12340 )
2022-05-03 21:29:15 +02:00
Andy Butland
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
Nikolaj Geisle
05a08bef63
Add nullability to nucache & lucene projects
2022-03-30 13:34:56 +02:00
Nikolaj Geisle
f78b62fcb6
Fix all build errors
2022-03-17 09:44:45 +01:00
Nikolaj Geisle
214bcceffc
Merge v10/dev into infrastructure
2022-03-16 14:39:28 +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
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
Mole
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
993c582bd9
Handle empty string as invariant when generating cache key
2022-03-01 13:51:21 +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
Nikolaj Geisle
915e68e72e
Fix last build errors
2022-02-28 13:14:02 +01:00
Nikolaj Geisle
a8cf6ee127
More work on nullable references
2022-02-22 13:35:32 +01:00
Nikolaj Geisle
83baba696c
Fixed build errors after turning nullability errors off
2022-02-10 10:32:45 +01:00
Nikolaj Geisle
8ce66277ce
Updated classes to use IOptionsMonitor or IOptionsSnapshot
2021-09-24 12:45:34 +02:00
Zeegaan
6c545a29c7
Fixed missing null checks
2021-08-17 11:33:51 +02:00
Zeegaan
4e2d9159f4
Merged v9/dev into this branch
2021-08-16 12:43:28 +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
Zeegaan
3c4cefb17d
Removed VariationContextAccessor from IUmbracoContext
2021-08-16 08:43:13 +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
Zeegaan
c3bac00f6e
Fixed 11 more classes with new TryGetUmbracoContext
2021-08-11 12:17:35 +02:00
Zeegaan
e9908e341f
fixed RedirectTrackingHandler to implement new version of IPublishedSnapshot
2021-08-10 12:25:56 +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
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
Bjarke Berg
dd8d719f65
Fixed potential issue with PublishedSnapshot not available.
2021-07-08 10:07:11 +02:00
Mole
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
Bjarke Berg
ba6eea4f6f
Move notifications to core instead of infrastructure
2021-04-09 13:43:39 +02:00
Kenn Jacobsen
7593ddfaa8
Explicitly typed notifications instead of generic ones
2021-03-16 06:55:55 +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
Kenn Jacobsen
500ca7b31e
Refactor RedirectTrackingHandler to remove duplicate code
2021-03-04 11:58:45 +01:00
Kenn Jacobsen
27c5c1b461
Added some copyright notices and updated a few TODOs
2021-03-04 07:14:54 +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
f8db15dcc7
Wire up notification handlers in a composer
2021-03-03 09:02:29 +01:00
Kenn Jacobsen
1462e6c3af
Split notifications into separate classes + move namespace
2021-03-02 14:30:57 +01:00
Kenn Jacobsen
ab2b35904f
Remove a bunch more events from ContentService
2021-03-01 17:05:59 +01:00
Bjarke Berg
ef4e2eb511
Renamed service implementations namespace to Core
2021-02-23 12:24:51 +01:00
Mole
eb091f8dcd
Align namespaces in root of infrastructure
2021-02-15 13:14:18 +01:00
Mole
33c8396ad2
Align namespaces in Services to Umbraco.Cms.Infrastructure
2021-02-15 12:51:42 +01:00
Mole
3106c2ea7c
Align namespaces in routing to Umbraco.Cms.Core
2021-02-15 10:59:52 +01:00