-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mcp-mutator): new mcp mutator plugin
* wip
- Loading branch information
1 parent
d77d565
commit 391bdc0
Showing
6 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
.../metadata-io-api/src/main/java/com/linkedin/metadata/entity/ebean/batch/ProposedItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.linkedin.metadata.entity.ebean.batch; | ||
|
||
import com.linkedin.common.AuditStamp; | ||
import com.linkedin.common.urn.Urn; | ||
import com.linkedin.data.template.RecordTemplate; | ||
import com.linkedin.events.metadata.ChangeType; | ||
import com.linkedin.metadata.aspect.batch.MCPItem; | ||
import com.linkedin.metadata.models.AspectSpec; | ||
import com.linkedin.metadata.models.EntitySpec; | ||
import com.linkedin.mxe.MetadataChangeProposal; | ||
import com.linkedin.mxe.SystemMetadata; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
/** | ||
* Represents an unvalidated wrapped MCP | ||
*/ | ||
@Slf4j | ||
@Getter | ||
@Builder(toBuilder = true) | ||
public class ProposedItem implements MCPItem { | ||
@Nonnull private final ChangeType changeType; | ||
// urn an urn associated with the new aspect | ||
@Nonnull private final Urn urn; | ||
@Nullable | ||
private final MetadataChangeProposal metadataChangeProposal; | ||
@Nonnull private SystemMetadata systemMetadata; | ||
@Nonnull | ||
private final AuditStamp auditStamp; | ||
@Nonnull private final RecordTemplate recordTemplate; | ||
// derived | ||
@Nonnull private EntitySpec entitySpec; | ||
@Nullable private AspectSpec aspectSpec; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters