Commit Graph

27454 Commits

Author SHA1 Message Date
Shannon
292a40194f updates readme, adjusts controller 2019-12-17 16:46:02 +11:00
Shannon
9e9a2d8379 Adds TestData project with an endpoint to create content/media hieararchy for testing 2019-12-17 10:38:03 +11:00
Warren Buckley
4d78a2c848 Remove old & unecessary comment 2019-12-05 12:50:46 +00:00
Warren Buckley
cad384a0a6 Moves logic out from ContentRepositoryBase & into a method on the Collection itself 2019-12-05 11:18:18 +00:00
Warren Buckley
9e1a56eba5 Rename from DataValueReferenceFor to DataValyeReferenceFactory & Factories for the plural collection 2019-12-04 16:14:33 +00:00
Warren Buckley
19497ee785 Fix up unit test - needed to add the collection to the Compositon for all tests inheriting from UmbracoTestBase 2019-12-03 11:52:46 +00:00
Warren Buckley
e1e5ac44cc Something gone funky/awol with my commits - remove dupe code :S 2019-12-02 15:35:13 +00:00
Warren Buckley
1b84051e8f Move DataValueReferceFors collection from Umbraco.Web to Umbraco.Core composer in order to see if that helps the Unit Test LightInject issue 2019-12-02 15:24:50 +00:00
Warren Buckley
958eb82213 Move the GetReferences about (back to where it was) 2019-12-02 15:23:56 +00:00
Warren Buckley
1471bffeff Adds DataValueReferenceFor & its collection 2019-12-02 15:00:56 +00:00
Warren Buckley
69faaa8797 Update tests to pass in an empty collection for the repository layers expecting the new dataValueReferencesCollection 2019-11-27 20:29:38 +00:00
Warren Buckley
645a30a8aa Adds new ValueReference classes and update to Interface for IsForEditor method to check if we should get references for a specific dataeditor based on its alias 2019-11-27 20:24:16 +00:00
Warren Buckley
7573d52807 Initial plumbing, extension methods etc for collection to store IDataValueReferences 2019-11-26 11:09:33 +00:00
Warren Buckley
3ead51ff64 Update WebInitComposer to use the easier to read extension method on composition as opposed to declaring WithCollectionBuilder 2019-11-26 11:05:30 +00:00
Warren Buckley
2420b9c253 Update CoreComposer to use the easier to read extension method on composition as opposed to declaring WithCollectionBuilder 2019-11-26 10:28:56 +00:00
Niels Lyngsø
b13120f0a1 minor style adjustment for media references 2019-11-22 11:32:11 +01:00
Shannon
beebdce0a2 Fixes $routeParams issue 2019-11-20 12:18:14 +11:00
Shannon
895f68d9e2 Fixes bulk insert records, adjusts parsing of object types 2019-11-20 12:15:27 +11:00
Warren Buckley
dc494ff525 MemberEntitySlim has the same properties as ContentEntitySlim so lets inherit it 2019-11-18 12:18:50 +00:00
Warren Buckley
31b85a2cd6 Remove code duplication & do some cleanup - need to work on passing the type variable to Cast<T> 2019-11-18 11:43:31 +00:00
Warren Buckley
675b6e7b7c Remove test page size of 1 to check if each pager was working fine 2019-11-15 13:53:56 +00:00
Warren Buckley
8773d644aa Implement paging for the three entity types that media can be related to 2019-11-15 12:50:44 +00:00
Shannon
85c2269645 Adds ability to filter out paged relations by entity type 2019-11-15 14:49:46 +11:00
Shannon
ca91bf0f94 Fixes issue with getting paged entity relations when the relation is between the same entity and itself 2019-11-15 14:14:09 +11:00
Warren Buckley
2314b4de5e Make fixes based on Shan's review notes 2019-11-13 14:35:13 +00:00
Warren Buckley
411bf067e5 Bit of tidying up 2019-11-12 19:11:16 +00:00
Warren Buckley
05c1f0f389 Fix up the missing nulls & ammend the mapping 2019-11-12 14:50:43 +00:00
Warren Buckley
bbcdcbdde0 Start adding in pagination to relations 2019-11-12 14:09:36 +00:00
Warren Buckley
8dcec429d3 Remove relations for the RelationType overview 2019-11-11 15:16:19 +00:00
Warren Buckley
dd1c8ec6a3 Revert a C#8 fancy new switch as AzureDevOps does not like that 2019-11-11 12:05:26 +00:00
Warren Buckley
747cdcb5ee Merge remote-tracking branch 'origin/v8/feature/media-tracking' into v8/feature/AB3466-paged-relations
# Conflicts:
#	src/Umbraco.Core/Persistence/Repositories/IRelationRepository.cs
2019-11-11 11:29:00 +00:00
Warren Buckley
eee33696e8 Adss in missing XML params from signature 2019-11-11 11:05:57 +00:00
Shannon
694d92aad2 Merge remote-tracking branch 'origin/v8/feature/media-tracking' into v8/feature/AB3466-paged-relations
# Conflicts:
#	src/Umbraco.Core/Persistence/Repositories/Implement/RelationRepository.cs
2019-11-11 21:29:52 +11:00
Shannon
28600a02bd Merge remote-tracking branch 'origin/v8/feature/media-tracking' into v8/feature/3449-relations-paging
# Conflicts:
#	src/Umbraco.Core/Persistence/Repositories/Implement/RelationRepository.cs
2019-11-11 21:25:35 +11:00
Bjarke Berg
d5c59235e3 Merge pull request #7068 from umbraco/v8/feature/AB3448-bulk-insert-relations
Adds ability to bulk insert relations and adds tests
2019-11-07 14:28:22 +01:00
Warren Buckley
ab87bd200c Adds in lang backoffice keys to EN & EN_US 2019-11-06 13:45:21 +00:00
Warren Buckley
45392603bd Adds in the new Media Relations tables to the <umb-media-node-info> directive view & JS to call the resource/WebAPI 2019-11-06 13:45:03 +00:00
Warren Buckley
642247799a Adds new AngularJS reference to call the new WebAPI endpoint 2019-11-06 13:42:00 +00:00
Warren Buckley
1c7e2367f5 New WebAPI method to return references/relations for Media items 2019-11-06 13:41:21 +00:00
Warren Buckley
bf2727a1eb New model to return from WebAPI 2019-11-06 13:40:00 +00:00
Shannon
049d51e466 Adds ability to bulk insert relations and adds tests 2019-11-06 16:45:28 +11:00
Shannon
90b6a09013 Adds ability to get paged relations by type 2019-11-06 14:35:15 +11:00
Shannon
b03bca4093 removes test code 2019-11-06 13:29:50 +11:00
Shannon
12541e7e8f reverts changes to IUmbracoEntity, we don't need to query on the object type property 2019-11-06 13:22:12 +11:00
Shannon
9ef40fb484 adds notes 2019-11-06 13:16:28 +11:00
Shannon
d1948b1543 Adds relation service tests for both paged children and parents and tests the repo 2019-11-06 13:08:03 +11:00
Shannon
6b7a48d00b Gets entity repository working with relation queries and adds test 2019-11-06 12:43:10 +11:00
Shannon
f7e8a53922 Revert "Gets entity repository to be able to return a mix of object types"
This reverts commit fff3d2648f.
2019-11-05 15:53:50 +11:00
Shannon
602acce8f4 Gets entity repository to be able to return a mix of object types 2019-11-05 15:50:49 +11:00
Shannon
fff3d2648f Gets entity repository to be able to return a mix of object types 2019-11-05 15:05:51 +11:00