Skip to content

Commit

Permalink
fix(aim): make an exception for checkSameSourceUrn for AIM case (#484)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Donn <[email protected]>
  • Loading branch information
jsdonn and Justin Donn authored Dec 9, 2024
1 parent ae21b69 commit ff330d3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public static void checkSameSourceUrn(@Nonnull final List<? extends RecordTempla
if (relationships.isEmpty()) {
return;
}

// TODO: remove this temporary allow list after AIM no longer relies on ProducesLocalRelationshipBuilderFromFeatureDependencies
if (assetUrn != null && assetUrn.getEntityType().equals("mlFeatureVersion") && relationships.get(0).getClass().getSimpleName().equals("produces")) {
return;
}

for (RecordTemplate relationship : relationships) {
if (ModelUtils.isRelationshipInV2(relationship.schema())) {
if (assetUrn == null) {
Expand Down

0 comments on commit ff330d3

Please sign in to comment.