Skip to content

Commit

Permalink
generate default aspects even on patch
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Aug 29, 2023
1 parent 7ff96a6 commit 7ff7abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void testAdditionalChanges() {
DatasetProperties datasetProperties = new DatasetProperties().setName("name");
proposal1.setAspect(GenericRecordUtils.serializeAspect(datasetProperties));
proposal1.setEntityType("dataset");
proposal1.setChangeType(ChangeType.UPSERT);
proposal1.setChangeType(ChangeType.PATCH);

List<MetadataChangeProposal> proposalList = AspectUtils.getAdditionalChanges(proposal1, entityServiceImpl);
// proposals for key aspect, browsePath, browsePathV2, dataPlatformInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AspectUtils {
private AspectUtils() {
}

public static final Set<ChangeType> SUPPORTED_TYPES = Set.of(ChangeType.UPSERT, ChangeType.CREATE);
public static final Set<ChangeType> SUPPORTED_TYPES = Set.of(ChangeType.UPSERT, ChangeType.CREATE, ChangeType.PATCH);

public static List<MetadataChangeProposal> getAdditionalChanges(
@Nonnull MetadataChangeProposal metadataChangeProposal,
Expand Down

0 comments on commit 7ff7abb

Please sign in to comment.