Sebastiaan Janssen
5ebcdce557
Merge pull request #1374 from umbraco/temp-u4-8682
...
U4-8682 - manage cache in tests
2016-07-07 17:54:39 +02:00
Sebastiaan Janssen
f2d50866d9
Merge pull request #1370 from umbraco/temp-u4-8361
...
u4-8361 From ids to guids
2016-07-07 17:52:41 +02:00
Stephan
6f6c7ede0a
U4-8361 - fixing migrations
2016-07-07 16:56:52 +02:00
Sebastiaan Janssen
85c7b102b9
Revert C#6 notation
2016-07-07 16:22:55 +02:00
Sebastiaan Janssen
05cb2050e7
Revert C#6 notation
2016-07-07 16:17:01 +02:00
Warren Buckley
a494ea8dc8
Merge pull request #1350 from umbraco/temp-U4-8640
...
U4-8640 Deleting a content type with children only emits a deleted ev…
2016-07-07 14:40:56 +01:00
Stephan
560c0fbb33
U4-8361 - fixing and perfs
2016-07-06 21:53:08 +02:00
Stephan
c5a346d70f
Merge branch 'dev-v7' into temp-u4-8361
2016-07-06 20:00:17 +02:00
Stephan
c1f6708b21
Fix
2016-07-06 18:08:19 +02:00
Stephan
4531bf6c30
U4-8682 - manage cache in tests
2016-07-06 18:01:59 +02:00
Shannon
1f041f17c1
Merge branch 'dev-v7' of https://github.com/umbraco/Umbraco-CMS into dev-v7
2016-07-06 09:38:00 +02:00
Shannon
ee27264a72
Ensures all instances of SqlCeEngine are in a using claus so native objects are disposed properly
2016-07-06 09:37:52 +02:00
Stephan
1f40043740
Hopefull fixing tests
2016-07-05 15:11:10 +02:00
Stephan
3d2a0b4a29
U4-8361 - from ids to guids
2016-07-04 18:22:06 +02:00
Stephan
09526e6db4
U4-8592 - fix property conversions
2016-06-27 15:33:08 +02:00
Claus
b75578c889
U4-8640 Deleting a content type with children only emits a deleted event on the parent content type
...
service now includes all deleted content types including children, in the DeletedContentType event arguments.
tests to ensure the correct number of deleted entities are sent in events.
2016-06-22 19:30:31 +02:00
Sebastiaan Janssen
402b2b082f
Merge pull request #1347 from umbraco/temp-U4-8433
...
This ensures we are using the latest code from Log4Net.Async for thes…
2016-06-22 17:25:11 +02:00
Shannon
9463db7431
This ensures we are using the latest code from Log4Net.Async for these libs. there are very little changes and none breaking but it is now up-to-date and we will use the nuget package in v8 instead.
2016-06-22 11:48:52 +02:00
Stephan
d4f2486b4f
Merge remote-tracking branch 'origin/dev-v7' into temp-U4-8410-2
2016-06-22 10:58:46 +02:00
Shannon
b8c88139e1
fixing build
2016-06-21 21:08:38 +02:00
Shannon
b5411a5402
Initial commit of refactor of better/more efficient in terms of mem and performance properpty selectors for our models, this also yields a much cleaner syntax. I have discovered one issue now which is that the PropertyChanged event now fires before the property value is actually set, this is why the lambda syntax existed before. Instead we can use a ref property for the SetPropertyValueAndDetectChanges methods which will work much nicer - and also potentially have less allocations.
2016-06-21 18:11:03 +02:00
Claus
c612505362
updated unittest to be more precise.
2016-06-14 17:47:33 +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
Sebastiaan Janssen
85b00f60ab
Update broken unit test
2016-06-14 14:38:19 +02:00
Sebastiaan Janssen
2ae2047b7c
Temporarily ignore two failing tests
2016-06-14 14:18:24 +02:00
Sebastiaan Janssen
b2cd4820be
Updates Examine
2016-06-13 23:24:19 +02:00
Stephan
2570a9139c
U4-8361 - service & repository
2016-06-12 16:22:06 +02:00
Shannon
38e59373c6
U4-8569 Saving a member type changes the UniqueId of custom properties and tabs
...
This fixes the tab/group unique id mappings
2016-06-08 09:47:06 +02:00
Shannon
50f4bbdd1e
U4-8569 Saving a member type changes the UniqueId of custom properties
...
This fixes the member property type UniqueID SQL and mapping.
This ensures that the main repositories fully assert/compare all fetched properties.
2016-06-07 12:20:10 +02:00
Shannon
628ce5ea1f
Backports some changes from v8 so that we can perform a nice strongly typed query with paging - this is then used for the content indexer to index content via the db for published content instead of the xml cache system. This was already done in v8 but have no backported the logic and fixed up the unit tests. When merging with v8 we will most likely just keep all v8 stuff and discard these changes, but we'll need to compare just in case. All tests pass and re-indexing is working as expected. Also updated the paging count from 1000 to 5000 for reindexing.
2016-05-26 15:30:40 +02:00
Stephan
42021a56b2
U4-8290 - minor cleanup & refactoring
2016-05-24 15:55:26 +02:00
Stephan
0a4a230c07
Merge branch 'u4-8290' of https://github.com/AndyButland/Umbraco-CMS into AndyButland-u4-8290
2016-05-24 08:15:47 +02:00
Shannon
95871fde7c
updates naming conventions
2016-05-19 15:22:49 +02:00
Shannon
2bd81ccb90
Merge branch 'test-bases-refactoring' of https://github.com/lars-erik/Umbraco-CMS into lars-erik-test-bases-refactoring
2016-05-19 11:48:01 +02:00
AndyButland
7858521c8b
Converted usage of property editor value type strings to constants
2016-05-08 22:05:23 +02:00
Stephan
2c3c0eae12
U4-8370 - fix broken upgrade
2016-04-25 17:10:10 +02:00
Shannon
6124126835
Fixes the custom field sorting, no longer has a sub query for order by, now supports both mysql and sqlce, adds a unit test (should add more though)
2016-04-20 15:50:38 +02:00
Lars-Erik Aabech
1d428045b6
Don't remove virtual on SetupApplicationContext. Might be many external inheritors.
2016-04-18 15:35:09 +02:00
Shannon
c3b4a9128a
ensures all GetPagedDescendant methods are mocked - fixes tests.
2016-04-13 15:47:21 +02:00
Shannon
82b4b4e668
Merge remote-tracking branch 'origin/7.5-ListViewCustomFieldSorting' into dev-v7.5
...
Conflicts:
src/Umbraco.Web/WebApi/Filters/DisableBrowserCacheAttribute.cs
2016-04-13 14:44:22 +02:00
Shannon
1361e017a2
Merge branch 'u4-222' of https://github.com/AndyButland/Umbraco-CMS into AndyButland-u4-222
...
Conflicts:
src/Umbraco.Core/Security/BackOfficeUserManager.cs
src/Umbraco.Web.UI.Client/src/less/pages/login.less
src/Umbraco.Web.UI.Client/src/routes.js
src/Umbraco.Web.UI.Client/src/views/common/dialogs/login.controller.js
src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
src/Umbraco.Web.UI/web.Template.config
src/Umbraco.Web/Editors/AuthenticationController.cs
src/Umbraco.Web/Editors/BackOfficeController.cs
src/Umbraco.Web/Umbraco.Web.csproj
2016-04-12 18:07:25 +02:00
Lars-Erik Aabech
ae913ede6f
Virtualized creating of application context
...
Closed setting up of application context
Opens up a whole bunch of doors. :)
2016-04-10 00:07:03 +02:00
Shannon
75be22a778
Fixes tests, adds null checks
2016-04-06 12:05:52 +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
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
d4c79a0915
Fixes tests, adds more asserts
2016-03-23 11:02:27 +01:00
Stephan
ecdca378c6
U4-8175 - fix PropertyType.PropertyGroupId inconsistencies
2016-03-16 13:41:58 +01:00
Stephan
4628c1f858
U4-8154 - bugfix test
2016-03-16 13:16:56 +01:00
Claus
7c179a7868
U4-8026 Fixes up unit tests
2016-03-16 07:56:41 +01:00