Skip to content

Commit

Permalink
gh-363 fix for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GBishop-PHSA committed Oct 12, 2022
1 parent b975e2f commit fc5624c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class MetadataService implements MultiFacetItemAwareService<Metadata> {
}

@Override
Metadata findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier) {
Metadata findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier, Map pathParams = [:]) {
String ns
String key
pathIdentifier.find(/^(.+)\.(.+)$/) {all, foundNs, foundKey ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class RuleService implements MultiFacetItemAwareService<Rule> {
}

@Override
Rule findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier) {
Rule findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier, Map pathParams = [:]) {
Rule.byMultiFacetAwareItemId(parentId).eq('name', pathIdentifier).get()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RuleRepresentationService implements MdmDomainService<RuleRepresentation>
}

@Override
RuleRepresentation findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier) {
RuleRepresentation findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier, Map pathParams = [:]) {
RuleRepresentation.byRuleId(parentId).eq('language', pathIdentifier).get()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ abstract class CatalogueItemService<K extends CatalogueItem> implements MdmDomai
* @param label The label of the CatalogueItem being sought
*/

K findByParentAndLabel(CatalogueItem parentCatalogueItem, String label) {
K findByParentAndLabel(CatalogueItem parentCatalogueItem, String label, Map pathParams = [:]) {
findByParentIdAndLabel(parentCatalogueItem.id, label)
}

Expand All @@ -357,7 +357,7 @@ abstract class CatalogueItemService<K extends CatalogueItem> implements MdmDomai
}

@Override
K findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier) {
K findByParentIdAndPathIdentifier(UUID parentId, String pathIdentifier, Map pathParams = [:]) {
findByParentIdAndLabel(parentId, pathIdentifier)
}

Expand Down

0 comments on commit fc5624c

Please sign in to comment.