v14: Return all data types from DataTypeService.GetAllAsync()#16230
v14: Return all data types from DataTypeService.GetAllAsync()#16230kjac merged 3 commits intorelease/14.0from
DataTypeService.GetAllAsync()#16230Conversation
|
This is a dangerous change of behaviour, but I get the reasoning behind. Fortunately our tests uncovered the breakage 😄 I have amended the PR to ensure that we don't accidentally load all data types when we mean to load none. |
Hmm, very true indeed! We could fix this by adding an overload without the parameter, so To avoid any confusion, a better solution would probably be to have separate method names, e.g. |
PR #14665 added
GetAllAsync(params Guid[] keys)toIDataTypeService, but the implementation returns 0 data types when no keys are specified, which is different to the existingGetAll(params int[] ids)that returns all data types of no IDs are specified.This PR fixes the
GetAllAsync()implementation and also removes some unnecessary async/awaits (on methods that useTask.FromResult().