Stephan
f8d6c90193
Cleanup - ContentController ctor
2016-07-20 19:23:09 +02:00
Stephan
0b041b28fa
Cleanup - kill IsInRecycleBin and trust Trashed
2016-07-20 19:23:09 +02:00
Stephan
ecee4d3702
Merge branch dev-v8 into temp-u4-8497
2016-07-20 12:38:57 +02:00
Stephan
3c7245f9ba
Merge origin/dev-v7 into dev-v8
2016-07-08 16:32:06 +02:00
Shannon
0e61eb79a8
U4-8416 Empty recycle bin does not refresh or gives feedback to user
2016-06-27 18:27:49 +02:00
Stephan
06574b8b40
U4-8447 - prepare for NuCache (work-in-progress)
2016-05-26 17:12:04 +02:00
Shannon
f9ba3fe76f
Merge branch 'dev-v8' into dev-v8-ExamineV2
...
# Conflicts:
# src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
# src/Umbraco.Core/Plugins/PluginManager.cs
# src/Umbraco.Core/Services/ContentService.cs
# src/Umbraco.Core/Services/IContentService.cs
# src/Umbraco.Core/Umbraco.Core.csproj
# src/Umbraco.Tests/Persistence/Repositories/NotificationsRepositoryTest.cs
# src/Umbraco.Tests/Services/ContentServiceTests.cs
# src/Umbraco.Tests/Services/MediaServiceTests.cs
# src/Umbraco.Tests/Services/ThreadSafetyServiceTest.cs
# src/Umbraco.Web.UI/config/ClientDependency.config
# src/Umbraco.Web/Editors/ContentController.cs
# src/UmbracoExamine/UmbracoContentIndexer.cs
2016-05-19 16:32:22 +02:00
Shannon
e20c1cd0bb
U4-8465 Remove Core.Publishing namespace and classes
2016-05-18 13:10:36 +02:00
Stephan
ddf38407d8
U4-4847 Refactor ContentService ( #1266 )
...
* U4-4748 - refactor Content-, Media- and MemberTypeRepository
* Cleanup Attempt
* Cleanup OperationStatus
* U4-4748 - refactor Content-, Media- and MemberTypeService
* U4-4748 - cleanup locking
* U4-4748 - refactor Content-, Media- and MemberRepository
* U4-4748 - refactor ContentService (in progress)
* U4-4748 - all unit of work must be completed
* U4-4748 - refactor locks, fix tests
* U4-4748 - deal with fixmes
* U4-4748 - lock table migration
* Update UmbracoVersion
* Fix AuthorizeUpgrade
* U4-4748 - cleanup+bugfix lock objects
* U4-4748 - bugfix
* updates a string interpolation
2016-05-18 10:55:19 +02:00
Shannon
3c446cbf82
Adds IQueryFactory property to IDatabaseFactory, DatabaseContext.
...
Changes exposed Query<T> to correct IQuery<T>
Creates interface for QueryFactory: IQueryFactory
Updates all repositories with these changes
2016-05-02 15:38:45 +02:00
Shannon
74b83f30c3
Gets all tests passing and updates content/media svc/repos with filters
...
The content/media services & repos are now consistent with their filter, filterargs parameters and tests have been updated to support this, we can now pass in more robust filters to these methods which is required by Examine to get published content from the db.
2016-04-29 10:50:03 +02:00
Shannon
209e9373d0
Rebuild on startup working
...
Gets indexes rebuilding at startup, gets indexes rebuilding with published content which required some updates to the content service/repo to pass in a more robust filter when paging. Added more tasks to fix up more of the examine parts like the local storage sync which currently just throws exceptions.
2016-04-29 00:50:26 +02:00
Shannon
df016813ea
Merge remote-tracking branch 'origin/dev-v7.5' into dev-v8
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web/Editors/AuthenticationController.cs
src/Umbraco.Web/Editors/BackOfficeController.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
src/umbraco.businesslogic/UmbracoSettings.cs
2016-04-13 16:18:58 +02:00
Shannon
dac7b93209
fixes GetChildren non bool argument to work as a bool again.
2016-04-06 09:17:05 +02:00
André Ferreira
bd2a40d214
U4-6003 List View - Order By Custom Property Fix
...
Original work done on https://github.com/umbraco/Umbraco-CMS/pull/711 but ported to the latest version
Content below for reference
With the current implementation of the list view you can only sort by system columns (Name, SortOrder etc.) and not custom columns you have added to your document types. This PR allows that.
The crux of it is a sub-query added to the ORDER BY clause when we are ordering by a custom field. This looks up the field's value from the most recent content version.
Provided here and not in the previous pull request is:
MySQL support
Have done some performance testing. On a local laptop with 1000 nodes in a list view, it's sorting in around 220-250ms. It's a little slower that sorting on native properties like node name, but still perfectly usable - there's no significant delay you see in use.
Please note also:
GetPagedResultsByQuery() in VersionableRepositoryBase was previously doing an ORDER BY in SQL and then repeating this via LINQ to Objects. I couldn't see that this second ordering was necessary so removed it, but wanted to flag here in case I've missed something around why this was necessary.
The PR also includes small amends to fix or hide sorting on a couple of the default columns for the member amd media list views.
2016-04-01 11:28:51 +01:00
Shannon
9ac2d04aea
User and User type from the old businesslogic assembly are GONE!
2016-03-16 17:52:08 +01:00
Shannon
d37d31246e
Merge remote-tracking branch 'origin/dev-v7' into dev-v8
...
Conflicts:
src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs
src/Umbraco.Core/Persistence/Querying/BaseExpressionHelper.cs
src/Umbraco.Tests/Persistence/SyntaxProvider/MySqlSyntaxProviderTests.cs
src/Umbraco.Web.UI/umbraco/create/content.ascx
src/Umbraco.Web.UI/umbraco/create/member.ascx
src/Umbraco.Web.UI/umbraco/create/nodeType.ascx
src/Umbraco.Web/PropertyEditors/TrueFalsePropertyEditor.cs
src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
src/Umbraco.Web/Security/Identity/BackOfficeCookieManager.cs
src/Umbraco.Web/Strategies/Migrations/ClearMediaXmlCacheForDeletedItemsAfterUpgrade.cs
src/Umbraco.Web/Strategies/Migrations/PublishAfterUpgradeToVersionSixth.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/WebBootManager.cs
src/Umbraco.Web/umbraco.presentation/umbraco/settings/stylesheet/editstylesheet.aspx.cs
2016-03-16 15:02:53 +01:00
Shannon
f6f54fd057
Merge branch 'master-v7' into dev-v8
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSeven/UpdateRelatedLinksData.cs
src/Umbraco.Core/Persistence/Repositories/ContentRepository.cs
src/Umbraco.Core/Persistence/Repositories/ContentTypeBaseRepository.cs
src/Umbraco.Core/Persistence/Repositories/ContentTypeRepository.cs
src/Umbraco.Core/Persistence/Repositories/DataTypeDefinitionRepository.cs
src/Umbraco.Core/Persistence/Repositories/DictionaryRepository.cs
src/Umbraco.Core/Persistence/Repositories/DomainRepository.cs
src/Umbraco.Core/Persistence/Repositories/EntityContainerRepository.cs
src/Umbraco.Core/Persistence/Repositories/LanguageRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaTypeRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberGroupRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberTypeRepository.cs
src/Umbraco.Core/Persistence/Repositories/PublicAccessRepository.cs
src/Umbraco.Core/Persistence/Repositories/RepositoryBase.cs
src/Umbraco.Core/Persistence/Repositories/TemplateRepository.cs
src/Umbraco.Core/Persistence/RepositoryFactory.cs
src/Umbraco.Core/PropertyEditors/PropertyEditorValueConvertersResolver.cs
src/Umbraco.Core/Services/ContentTypeService.cs
src/Umbraco.Core/Services/FileService.cs
src/Umbraco.Core/Services/LocalizationService.cs
src/Umbraco.Core/Services/MemberTypeService.cs
src/Umbraco.Core/Services/PackagingService.cs
src/Umbraco.Core/Services/ServiceContext.cs
src/Umbraco.Tests/Persistence/Querying/ContentTypeSqlMappingTests.cs
src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/DictionaryRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaTypeRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Tests/Web/Mvc/UmbracoViewPageTests.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/config/ClientDependency.config
src/Umbraco.Web.UI/packages.config
src/Umbraco.Web.UI/web.Template.config
src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs
src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs
src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs
src/Umbraco.Web/PropertyEditors/ListViewPropertyEditor.cs
src/Umbraco.Web/Services/ApplicationTreeService.cs
src/Umbraco.Web/Services/SectionService.cs
src/Umbraco.Web/Trees/MemberTreeController.cs
src/Umbraco.Web/UI/Pages/ClientTools.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/WebBootManager.cs
src/Umbraco.Web/umbraco.presentation/macro.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadNodeTypes.cs
src/Umbraco.Web/umbraco.presentation/umbraco/channels/api.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/PartialViewTasksBase.cs
src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/exportDocumenttype.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs
src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/MediaExtensions.cs
src/umbraco.businesslogic/BasePages/ClientTools.cs
src/umbraco.businesslogic/UmbracoSettings.cs
src/umbraco.cms/businesslogic/CMSNode.cs
src/umbraco.cms/businesslogic/Content.cs
src/umbraco.cms/businesslogic/cache/Cache.cs
src/umbraco.cms/businesslogic/datatype/DataTypeDefinition.cs
src/umbraco.cms/businesslogic/propertytype/propertytype.cs
src/umbraco.cms/businesslogic/web/Document.cs
src/umbraco.cms/helpers/DeepLink.cs
src/umbraco.editorControls/tinyMCE3/TinyMCE.cs
2016-03-10 19:20:15 +01:00
Shannon
372a768dca
U4-4700 List view doesn't respect user permissions - makes the buttons show/hide based on the selected items instead of the current item.
2016-03-08 15:53:22 +01:00
Shannon
04e1d8c2bd
U4-7936 Clicking the Recycle Bin shows "Session expired" login screen
2016-02-11 14:04:14 +01:00
Shannon
e8dfa056b0
U4-2670 Add event to modify the model before being sent to render
2016-01-27 13:20:13 +01:00
Shannon
dfa687e695
Merge remote-tracking branch 'origin/dev-v7' into 7.4.0
...
Conflicts:
src/Umbraco.Web.UI/web.Template.config
2016-01-13 17:18:30 +01:00
Shannon
e005c5bba6
Massive file cleanup, removed the old BasePage, UmbracoEnsuredPage, ClientTools, moved the menu 'Action' to the Web project until we can remove those too.
2015-12-23 13:51:16 +01:00
Shannon
4ce0e6bac3
Starts fixing up the doc type folders stuff, fixes permissions settings on the trees, adds error messaging for duplicating folders, removes the click handler for folder nodes
2015-11-12 18:59:38 +01:00
Shannon
a351f6cfc8
Fixes up the error handling with move/copy dialogs.
2015-11-09 17:58:43 +01:00
Jordan Lane
8e6bac534a
Fix a bug where PublishStatusType would fallback to FailedContentInvalid (and break) if it was expired or trashed and add error message for FailedHasExpired
...
TODO: Add error message to other languages
2015-10-29 15:23:40 +00:00
Shannon
6269e7b3f2
Merge remote-tracking branch 'origin/dev-v7-contenttypeeditor' into 7.4.0
2015-10-27 11:41:45 +01:00
Per Ploug
19759000f4
Media and content move return wrong error format
...
Changing both move methods to return the same error signature as
publish/delete/etc
2015-10-21 09:57:57 +02:00
Rasmus John Pedersen
78475b0686
Added recursive option to copy dialog
2015-10-09 20:25:51 +02:00
Shannon
685aea1728
Fixes: U4-6879 Validation issues when creating new content and cancelling save event.
2015-08-20 11:50:32 +02:00
Shannon
6d8ffb903f
Ensures events for deleting, trashing and unpublishing are done using the event messages, updates UI to support showing these messages in the list view, Since we cannot change the
...
method results on a service, we've created a new temporary service that we will explicitly implement with an extension method to get it. This is temporary until v8 where we will just replace
the original methods on the service with these methods and then remove this class.
2015-07-29 15:12:12 +02:00
Shannon
926ea54c39
Developers can cancel an event with the CancelOperation method of the event with a custom message which will be used in place of the normal default cancellation message
2015-07-27 18:04:20 +02:00
Shannon
293568228c
Merge branch 'dev-v7' of https://github.com/umbraco/Umbraco-CMS into dev-v7
2015-07-24 12:13:31 +02:00
Shannon
aa08a4ca37
Gets the messages being pumped out to the UI. Updates the ContentService and MediaServices to have a SaveWithStatus in order to determine the response, we'll need to update most of the methods to also have this OperationStatus. Now messages can be added to the UI for Saving & publishing for media and content services, we'll need to update more to support everything.
2015-07-24 11:44:09 +02:00
Sebastiaan Janssen
abf8777b0a
U4-6867 UmbracoLog wrongfully logs unPublish event with user ID 0
...
#U4-6867 Fixed Assignee: Unassigned
2015-07-24 11:02:13 +02:00
Shannon
08ff284121
adds test to ensure the service level can remove a scheduled publish date, obsoletes method: GetHasPermission
2015-06-18 09:44:16 +02:00
Shannon
425df19c5c
adds long overloads to interfaces
2015-05-04 14:36:46 +10:00
Shannon
fd07dcccb7
Reverts the 'special property' for list views as that is no longer required.
2014-09-18 09:48:08 +10:00
Shannon
102b97fa82
streamline repo's get by paged results to have a zero based index for page index/number. Refactors member repo to use the same queries as content/media (U4-5469) this should save a lot of perf
2014-09-16 23:21:27 +10:00
AndyButland
274e2c18e1
Added checks to ensure if paged requests for content are made they have valid page parameter values
2014-08-24 23:37:10 +02:00
AndyButland
817d5aab0d
Moved list view filter to repository, so can be applied with a database query
2014-08-13 20:02:51 +01:00
AndyButland
dc32138006
Set up database level paging for retrieving child content for list view
2014-08-12 08:15:43 +01:00
Shannon
2ede32fe70
minor change, using non obsolete user id
2014-05-28 12:39:12 +10:00
Shannon
49c8313c9e
Fixes: U4-3638 - U7 - Preview mode seems permanent and shows incorrect content on front of website, when using same browser as admin login
2013-12-12 17:30:27 +11:00
Shannon
38c1669e57
Gets content items that are children of listviews to query for their affiliated tree-node and display the action menu.
2013-12-12 13:27:33 +11:00
Shannon
9819318060
Fixes up the auth http post
2013-12-11 18:53:00 +11:00
perploug
da3269e970
Fixes: U4-3426 Can't delete any contentnode, media, document type or template from back end, Umbraco 7.0.0-RC
...
Replaces $http.delete with $http.post enables httppost on the
server-side, its not the best solution, but has way fewer unknowns then
adding extensive VERB and origin support in the web.config
2013-12-06 13:12:18 +01:00
Shannon
0d1cf872d3
Fixes WebApi issue with creating HttpResponseMessage manually - this shouldn't be done and we'll end up with very strange YSODs
2013-12-04 17:05:05 +11:00
Shannon
03a606432a
Fixes: U4-3695 Events does not fire
2013-11-26 13:34:51 +11:00
Shannon
6d1ba5a823
Fixes: U4-3625 List view filtering is not enabled on media and adds debounce
2013-11-21 15:52:40 +11:00