mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 20:06:19 +00:00
MINOR - Suggested patches should have ChangeSource Suggested (#20323)
This commit is contained in:
parent
76c92d8498
commit
0f714f21a5
@ -34,6 +34,7 @@ import org.openmetadata.schema.type.MetadataOperation;
|
||||
import org.openmetadata.schema.type.SuggestionStatus;
|
||||
import org.openmetadata.schema.type.SuggestionType;
|
||||
import org.openmetadata.schema.type.TagLabel;
|
||||
import org.openmetadata.schema.type.change.ChangeSource;
|
||||
import org.openmetadata.sdk.exception.SuggestionException;
|
||||
import org.openmetadata.service.Entity;
|
||||
import org.openmetadata.service.ResourceRegistry;
|
||||
@ -330,7 +331,7 @@ public class SuggestionRepository {
|
||||
securityContext,
|
||||
operationContext,
|
||||
new ResourceContext<>(repository.getEntityType(), entity.getId(), null));
|
||||
repository.patch(null, entity.getId(), user, patch);
|
||||
repository.patch(null, entity.getId(), user, patch, ChangeSource.SUGGESTED);
|
||||
|
||||
// Only mark the suggestions as accepted after the entity has been successfully updated
|
||||
for (Suggestion suggestion : suggestions) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user