Shannon
8be0f68390
Adds logic to validate an entity's path when it is used to GetDescendants, adds logic to fix an entity's path when it's state is going to be persisted when GetDescendants is used (i.e. MoveToRecycleBin), added this logic to Media too, adds unit tests to support
2017-01-05 10:29:03 +11:00
Claus
221354a7d8
U4-9104 Update the UmbracoExamine logic for Media to read the data directly from the umbracoXml table.
...
updated some tests to use the testbehavior attribute so they dont rely on being run in a specific order.
2016-10-27 10:47:32 +02:00
Claus
12a2de7cf3
U4-6551 GetMediaByPath returning null
...
now doing fallbacks to other querys trying to get media from the json value format stored.
2016-06-14 17:43:46 +02:00
Shannon
e2954fbf39
refactors interface methods so they are not breaking existing signatures and not overlapping based on optional parameters
2016-04-06 13:23:39 +02:00
Shannon
90a66aeebd
fixes merge / build
2016-04-05 16:32:46 +02:00
Shannon
c20984dca7
Merge branch 'dev-v7' of https://github.com/aadfPT/Umbraco-CMS into aadfPT-dev-v7
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/ContentRepository.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/IContentService.cs
src/Umbraco.Core/Services/IMediaService.cs
src/Umbraco.Core/Services/IMemberService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js
src/Umbraco.Web.UI.Client/src/common/resources/media.resource.js
src/Umbraco.Web.UI.Client/src/common/resources/member.resource.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
src/Umbraco.Web/Editors/ContentController.cs
src/Umbraco.Web/Editors/MediaController.cs
src/Umbraco.Web/Editors/MemberController.cs
src/Umbraco.Web/WebApi/Filters/DisableBrowserCacheAttribute.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
2016-04-05 16:20:39 +02:00
Shannon
80d7443bd3
fix build
2016-04-05 16:00:49 +02:00
Shannon
ef3f15ec9b
Merge branch 'u4-6003b' of https://github.com/AndyButland/Umbraco-CMS into AndyButland-u4-6003b
...
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/Interfaces/IMemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MediaRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
src/Umbraco.Core/Services/ContentService.cs
src/Umbraco.Core/Services/IContentService.cs
src/Umbraco.Core/Services/IMediaService.cs
src/Umbraco.Core/Services/IMemberService.cs
src/Umbraco.Core/Services/MediaService.cs
src/Umbraco.Core/Services/MemberService.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/UmbracoExamine/IndexInitializer.cs
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html
src/Umbraco.Web/Editors/MemberController.cs
src/UmbracoExamine/UmbracoMemberIndexer.cs
2016-04-05 15:31:33 +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
dbb7e3825d
Fixes events for containers
2016-01-27 15:22:58 +01:00
Sebastiaan Janssen
d0865017d1
Merge branch 'dev-v7' into 7.4.0
2015-11-18 19:42:13 +01:00
Shannon
48383f2e7a
updaes null check and ensures the path isn't pre-set in the withidentity overload
2015-11-18 16:04:01 +01:00
Shannon
cb98385242
updates content/media service methods - null checks for parent IContent, dosn't use Parent() syntactic sugar methods, removes path creation in the WithIdentity methods.
2015-11-18 15:52:32 +01:00
Claus
1433685160
MediaService assigns Path when creating media objects.
2015-11-18 09:26:45 +01:00
Per Ploug
0454c54d1c
Fixed: Given -1 MediaService returns all descendant media
...
It returned the entire media tree given the ID -1, changing this so it
returns children below root instead
2015-10-21 09:49:45 +02:00
Stephan
829942dcf9
Bugfix MediaService
2015-08-31 13:17:50 +02:00
Shannon
05d84c6673
updates the operation status to return the event messages used when raising events
2015-08-04 14:52:34 +02:00
Shannon
787e128d5c
wires up event messages for media editor and tree (haven't done the drag/drop media upload though)
2015-07-29 16:00:06 +02:00
Shannon
51d14a7a01
Updates all calls to GetAll(params int[]) that potentially could have looked up all data un-intentionally - cause for U4-6869 contentService + domainService is slow outside Umbraco App Context
2015-07-24 18:36:07 +02:00
Shannon
8b86276011
Ensures event messages are passed to Saved events for content/media
2015-07-24 12:07:32 +02:00
Shannon
9406675bf2
Ensures the Saving methods on the media service are wired up with the event messages, obsoletes the hacked WasCancelled internal property on Entity.
2015-07-24 11:52:30 +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
Shannon
a6a2b02cd8
working on U4-5927 - this extends the base event class to have EventMessages which event consumers can add to, the trick is that there is a factory for these EventMessages, in a web context, the factory is a request based factory so that during a request all instances of the EventMessages are the same instance. All services then accept an instance of IEventMessagesFactory which they can then use when raising events. We'll then use this to send messages to the UI. Not sure if i should make this a resolver yet or not. Still a WIP!!
2015-07-23 20:04:40 +02:00
Stephan
39a9d68f43
U4-6785 - crlf when serializing to xml
2015-07-06 15:32:06 +02:00
Shannon
c917fc37ae
Fixes: U4-6113 Cannot delete member with upload field
2015-07-02 17:20:27 +02:00
AndyButland
968927d472
Enabled sorting for custom columns on list view
2015-06-12 09:14:47 +02:00
Shannon
f9babe1882
Converts paged results to use 'long' params instead of ints and obsoletes the old ones.
2015-05-04 11:58:00 +10:00
Shannon
2c918a2015
Merge branch 'dev-v7' into 7.3.0
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
2015-03-24 15:10:45 +11:00
Robert Foster
c6b393f2e8
typo fix in pageIndex Mandate checks
2015-03-24 12:30:28 +11:00
Shannon
d4b718d615
Creates common base class for services, this streamlines all ctors and exposes correct services. Gets the TaskRepository working with a test, now to get it fully implemented.
2015-01-19 18:37:48 +11:00
Shannon
280826f3e8
Fixes: U4-6110 Cleanup the Audit trail code - this should be a service, remove all internal statics
2015-01-19 15:12:34 +11:00
Shannon
cc396c8b96
Removes more unecessary singletons and simplifies/refactors some internal parts like the ctors for the ServiceContext, DatabaseContext. No more RepositoryResolver or SqlSyntaxProvidersResolver these are entirely uncessary and complicate things.
2015-01-13 18:19:52 +11:00
Shannon
7212015127
obsoletes all of the service ctor's that don't specify all required dependencies, none of these are used in the core.
2015-01-09 18:53:08 +11:00
Shannon
2f74dfe5cb
fixes missing using statement
2014-12-24 17:01:41 +11:00
Robin Herd
c256266432
isResized now determined by regex
2014-12-17 13:06:46 +00:00
Robin Herd
599d367343
Fixed bug U4-6004, MediaService.GetMediaByPath now returns IMedia for paths containing 'x' and '_'
2014-12-11 17:59:52 +00:00
Shannon
8fe0e4223b
fixes media service paged query so recycle bin works properly
2014-11-18 10:13:21 +11:00
Shannon
44a39e7ca6
Fixes: U4-5055 Umbraco update fails with large set of media content due to timeout in RebuildXmlStructures. Adds RebuildXmlStructures to content, media, member services as public APIs (though people won't really use them), the underlying repositories now rebuild these structures using a single transactions but queried by pages of 5000 which should reduce memory overhead if there's a ton of media, etc... Added tests for this too. Added CountPublished to ContentService too.
2014-10-23 18:31:08 +10:00
Shannon
13ea17c225
Merge branch '7.1.8' into 7.2.0
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
2014-10-08 18:04:47 +11:00
Shannon
b8ea50d644
Merge remote-tracking branch 'origin/6.2.4' into 7.1.8
...
Conflicts:
build/NuSpecs/build/UmbracoCms.targets
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/Persistence/Factories/UmbracoEntityFactory.cs
src/Umbraco.Core/Persistence/Repositories/EntityRepository.cs
src/Umbraco.Tests/Services/EntityServiceTests.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
2014-10-08 17:30:45 +11:00
Shannon
646e5f173d
Fixes descendant queries to ensure that the comma is suffixed to the path, otherwise strange things could happen when there are longer ids!
2014-10-08 17:23:14 +11:00
Shannon
55a7f7c23b
Updates GetProfile ext method to accept an IUserService so they can be mocked, this is now used by the entity serializer. Fixed examine unit tests that required this. Fixed: U4-5508 Remove cmsDocument.alias column from db, update the order in which tables are created since with the new foreign key, that order was incorrect.
2014-09-30 18:46:02 +10:00
Shannon
4c0f95a93a
Adds GetPagedDescendants to media/content services. Fixes PDF reader disposal. Updates the umb examine indexers to use the services layer, now reindexing is far more efficient. Fixes the examine mgmt dashboard with $timeout. Updates GetPagedResultsByQuery to be more readable. Fixes GetPagedResultsByQuery to use SQL parameters.
2014-09-30 15:13:10 +10:00
Shannon
6f7ec84f18
Backports fixes to SQL parameterization and PetaPoco mem updates
2014-09-29 16:46:37 +02:00
Shannon
ba52f9235e
Backports fixes to SQL parameterization and PetaPoco mem updates
2014-09-29 17:11:58 +10:00
Shannon
9d5f3089c8
Updates petapoco to have a sliding expiration for the delegates cache, updates the keys it uses to be short hashes, fixes some null checks in content/media services, adds new test for checking that peta poco caches aren't growing with the same queries.
2014-09-26 11:19:54 +10:00
Shannon
5bf9bf5175
Gets all content, media, members to get paged queries consistently, fixed up issues with the page sql created for SQL server, need to test mysql. Removes the non-needed readonly dtos for members, since we are retrieving property values consistenty between all repositories.
2014-09-18 00:51:30 +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
Shannon
5bc00e3e48
Fixes: U4-4989 Media with image cropper doesn’t get removed from disk after delete.
2014-09-10 15:07:20 +10:00
AndyButland
934f58284a
Added checks to ensure if paged requests for media are made they have valid page parameter values
2014-08-24 23:41:15 +02:00