Skip to content

Commit

Permalink
[ODS-6508] Add support for applying criteria using inherited properti…
Browse files Browse the repository at this point in the history
…es on derived resources (#1160)

Co-authored-by: Geoffrey McElhanon <[email protected]>
  • Loading branch information
simpat-jesus and gmcelhanon authored Oct 14, 2024
1 parent 8a61064 commit 9895925
Show file tree
Hide file tree
Showing 30 changed files with 5,262 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static IEnumerable<ResourceProperty> AllRequestProperties(this ResourceCl
x => x.IsIdentifyingAndHasAssociations()),
ModelComparers.ResourcePropertyNameOnly)
.Union(
resourceClassBase.InheritedKeyProperties(),
resourceClassBase.InheritedProperties(),
ModelComparers.ResourcePropertyNameOnly)
: resourceClassBase.AllProperties;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ protected override void Arrange()
_derivedResource = resourceModel.GetAllResources()
.First(r => r.IsDerived);

var baseKeyProperties = _derivedResource.Entity.InheritedAlternateIdentifiers
.SelectMany(x => x.Properties);
var baseKeyProperties = _derivedResource.Entity.InheritedProperties;

_expectedResourceProperties = _derivedResource.AllProperties.Where(
p => ModelComparers.Entity.Equals(
Expand Down
Loading

0 comments on commit 9895925

Please sign in to comment.