Dirk Seefeld
a7bb1fc20d
Repositories: Quote table and columns and use NPoco extensions over raw SQL ( #20034 )
...
* fix sql syntax issues
* unify all dtos, fix autoIncrement for NPoco.Insert and .BulkInsert
* fix Copilot review comments
* fix sql syntax in TrackedReferencesRepository.GetPagedDescendantsInReferences()
* remove changes in TemplateServiceTests
* Tweaks and fixes from first review.
* Reverted changes outside scope of PR.
* Use FirstOrDefault over SelectTop.
* Fix delete member issue.
* Fixed issue with create of webhooks.
* Reverted changes to default data install.
* Removed unused method.
* Rationalised use of quoting helpers.
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Fix nullability issue.
---------
Co-authored-by: Andy Butland <abutland73@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-20 11:40:16 +02:00
Laura Neto
b722c0d72d
Abstract submit and poll operations ( #19688 )
...
* Started implementing new LongRunningOperationService and adjusting tasks to use this service
This service will manage operations that require status to be synced between servers (load balanced setup).
* Missing migration to add new lock. Other simplifications.
* Add job to cleanup the LongRunningOperations entries
* Add new DatabaseCacheRebuilder.RebuildAsync method
This is both async and returns an attempt, which will fail if a rebuild operation is already running.
* Missing LongRunningOperation database table creation on clean install
* Store expire date in the long running operation. Better handling of non-background operations.
Storing an expiration date allows setting different expiration times depending on the type of operation, and whether it is running in the background or not.
* Added integration tests for LongRunningOperationRepository
* Added unit tests for LongRunningOperationService
* Add type as a parameter to more repository calls. Distinguish between expiration and deletion in `LongRunningOperationRepository.CleanOperations`.
* Fix failing unit test
* Fixed `PerformPublishBranchAsync` result not being deserialized correctly
* Remove unnecessary DatabaseCacheRebuildResult value
* Add status to `LongRunningOperationService.GetResult` attempt to inform on why a result could not be retrieved
* General improvements
* Missing rename
* Improve the handling of long running operations that are not in background and stale operations
* Fix failing unit tests
* Fixed small mismatch between interface and implementation
* Use a fire and forget task instead of the background queue
* Apply suggestions from code review
Co-authored-by: Andy Butland <abutland73@gmail.com >
* Make sure exceptions are caught when running in the background
* Alignment with other repositories (async + pagination)
* Additional fixes
* Add Async suffix to service methods
* Missing adjustment
* Moved hardcoded settings to IOptions
* Fix issue in SQL Server where 0 is not accepted as requested number of rows
* Fix issue in SQL Server where query provided to count cannot contain orderby
* Additional SQL Server fixes
---------
Co-authored-by: Andy Butland <abutland73@gmail.com >
2025-07-22 15:26:04 +02:00
Bjarke Berg
082d504b33
Fix tracked reference queries for SqlServer ( #16020 )
...
* Fixed issue with SqlServer and optimized queries to not do the actual paging if total count is 0
* Cleanup
---------
Co-authored-by: Elitsa <elm@umbraco.dk >
2024-04-10 12:03:32 +02:00
kjac
e30a87d1fd
Merge branch 'v13/dev' into v14/dev
...
# Conflicts:
# Directory.Build.props
# build/azure-pipelines.yml
# src/Umbraco.Cms.Api.Common/DependencyInjection/UmbracoBuilderAuthExtensions.cs
# src/Umbraco.Cms.Api.Common/OpenApi/SwaggerRouteTemplatePipelineFilter.cs
# src/Umbraco.Cms.Api.Common/Security/Paths.cs
# src/Umbraco.Cms.Api.Delivery/Controllers/Security/MemberController.cs
# src/Umbraco.Cms.Api.Delivery/DependencyInjection/UmbracoBuilderExtensions.cs
# src/Umbraco.Cms.Api.Delivery/Handlers/InitializeMemberApplicationNotificationHandler.cs
# src/Umbraco.Cms.Api.Delivery/Handlers/RevokeMemberAuthenticationTokensNotificationHandler.cs
# src/Umbraco.Cms.Api.Delivery/Security/MemberApplicationManager.cs
# src/Umbraco.Cms.Api.Delivery/Services/RequestMemberAccessService.cs
# src/Umbraco.Core/Constants-OAuthClaims.cs
# src/Umbraco.Core/Constants-OAuthClientIds.cs
# src/Umbraco.Core/DeliveryApi/IApiContentQueryProvider.cs
# src/Umbraco.Core/DeliveryApi/IApiContentQueryService.cs
# src/Umbraco.Core/DeliveryApi/IRequestMemberAccessService.cs
# src/Umbraco.Core/DeliveryApi/NoopRequestMemberAccessService.cs
# src/Umbraco.Core/Models/DeliveryApi/ProtectedAccess.cs
# src/Umbraco.Core/Services/ITagService.cs
# src/Umbraco.Core/Services/UserService.cs
# src/Umbraco.Infrastructure/Security/IMemberApplicationManager.cs
# src/Umbraco.Infrastructure/Security/OpenIdDictApplicationManagerBase.cs
# src/Umbraco.Web.BackOffice/Controllers/MediaController.cs
# tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/HelpPanel/systemInformation.spec.ts
# version.json
2023-10-23 19:03:13 +02:00
Nikolaj Brask-Nielsen
6d48091328
docs: XML warnings ( #14663 )
...
* chore: Fix XML warnings
* docs: Fix XML warnings
* docs: Fix XML in resource designer
* docs: Fix XML warnings
* Revert "docs: Fix XML in resource designer"
This reverts commit 8ea61c51ac161e1853ae080db7fe1b4d4cb4d2be.
2023-09-06 20:08:17 +02:00
Bjarke Berg
0619a7de41
Use keys for tracked references ( #13849 )
...
* Use Keys for tracked references instead of int id's.
* Updated OpenApi.json
* Handle filterMustBeIsDependency consistently
---------
Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch >
2023-02-21 15:20:34 +01: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
Nikolaj Geisle
ed13237177
Fixing more errors with nullable reference types
2022-02-24 09:24:56 +01:00
Paul Johnson
39c3fecc45
Prep for moving some services
2022-01-13 23:46:21 +00: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
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
dd488a15f4
Move extension methods in core project to Umbraco.Extensions
2021-02-09 13:21:17 +01:00
Mole
216fb87c79
Rename Umbraco.Core namespace to Umbraco.Cms.Core
2021-02-09 10:22:42 +01:00
Bjarke Berg
a54e10bc13
Merge remote-tracking branch 'origin/v8/dev' into netcore/feature/merge-v8-18-01-2021
...
# Conflicts:
# .gitignore
# build/NuSpecs/UmbracoCms.Core.nuspec
# src/SolutionInfo.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/BackOfficeElement.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/ContentElement.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/IBackOfficeSection.cs
# src/Umbraco.Core/Configuration/UmbracoSettings/IContentSection.cs
# src/Umbraco.Core/IO/SystemFiles.cs
# src/Umbraco.Core/Models/ContentBase.cs
# src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
# src/Umbraco.Core/Persistence/UmbracoDatabaseExtensions.cs
# src/Umbraco.Core/Runtime/CoreRuntime.cs
# src/Umbraco.Core/RuntimeOptions.cs
# src/Umbraco.Core/RuntimeState.cs
# src/Umbraco.Core/Telemetry/TelemetryMarkerComponent.cs
# src/Umbraco.Core/Telemetry/TelemetryMarkerComposer.cs
# src/Umbraco.Examine/Umbraco.Examine.csproj
# src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
# src/Umbraco.Infrastructure/Install/InstallStepCollection.cs
# src/Umbraco.Infrastructure/Install/InstallSteps/NewInstallStep.cs
# src/Umbraco.Infrastructure/Migrations/Install/DatabaseBuilder.cs
# src/Umbraco.Infrastructure/Migrations/Install/DatabaseSchemaCreator.cs
# src/Umbraco.Infrastructure/Runtime/SqlMainDomLock.cs
# src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/ContentTypeRepositoryTest.cs
# src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Tests/Testing/TestDatabase.cs
# src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
# src/Umbraco.Web.UI.Client/src/installer/steps/database.controller.js
# src/Umbraco.Web.UI.NetCore/Views/Partials/Grid/Editors/TextString.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/Umbraco/config/lang/cs.xml
# src/Umbraco.Web.UI/config/umbracoSettings.Release.config
# src/Umbraco.Web/Composing/CompositionExtensions/Installer.cs
# src/Umbraco.Web/Editors/PreviewController.cs
# src/Umbraco.Web/Editors/UsersController.cs
# src/Umbraco.Web/JavaScript/PreviewInitialize.js
# src/Umbraco.Web/Telemetry/TelemetryComponent.cs
# src/Umbraco.Web/UmbracoApplication.cs
2021-01-18 16:06:23 +01:00
Paul Johnson
3f5f85880e
NetCore: MSDI refactor split CoreRuntime & Remove Current ( #9356 )
...
* Split Bootstrap code from CoreRuntime
* Make ContentService method signatures match interface
prevents need to hide the concrete class in tests
* Remove Current
Only bit that bugs me is TreeNode for IconFilePath
I get the feeling it's dead code, but can just use a setter in cs or work out path in js if required.
* Fix tests, remember to terminate IRuntime
2020-11-10 09:50:47 +01:00
Andy Butland
8958cf90b9
Moved non-scoped retrieval of key value into an extension method in IUmbracoDatabase.
2020-03-28 15:13:50 +01:00
Bjarke Berg
03631a1731
AB4227 - Moved Persistence Root
2019-12-18 13:42:26 +01:00