Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes a bug introduced in 7.0.12/13 to specify the objectType in calls to EntityService.GetAll #225

Merged
merged 1 commit into from
Jul 14, 2019

Conversation

drbldgtl
Copy link

Code was calling EntityService.GetAll(Guid objectType) which gets all entities of that object type, which is not what was intended.

This PR specifies the object type explicitly, and passes the ID as a second parameter (single-item array).

@KevinJump KevinJump changed the base branch from v4_master to pr/225 July 14, 2019 18:59
@KevinJump KevinJump merged commit ad88958 into KevinJump:pr/225 Jul 14, 2019
KevinJump added a commit that referenced this pull request Jul 14, 2019
adds extra baseObjectType value so we can set the type of things we are looking up (because media mapper looks up Media)
KevinJump added a commit that referenced this pull request Jul 14, 2019
Like the Mapper, the base serializer lookup can be used for ContentTypes, MediaTypes and MemberTypes
KevinJump added a commit that referenced this pull request Jul 14, 2019
* Fixes to specify the objectType in calls to EntityService.GetAll (#225)

thanks, there is a minor annoyance that the MediaIdMapper inherits the content one, so sometimes the lookup is for media, not content, but I will fix that.

* set baseObjectType for class so MediaMapper can use it too. #225

adds extra baseObjectType value so we can set the type of things we are looking up (because media mapper looks up Media)

* Base type in ContentType Serializer #225

Like the Mapper, the base serializer lookup can be used for ContentTypes, MediaTypes and MemberTypes

* update RjpMapper to do the getall lookup properly (like #225)

* Refactor RJP Mapper to use GetKeyForId / GetIdForKey EntityService calls

* tidy up, use GetIdForKey and GetKeyForId where we can #225

* ID Testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants