-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(gms): Adding Java Entity Services #5931
refactor(gms): Adding Java Entity Services #5931
Conversation
metadata-io/src/main/java/com/linkedin/metadata/entity/AspectUtils.java
Outdated
Show resolved
Hide resolved
metadata-io/src/main/java/com/linkedin/metadata/entity/AspectUtils.java
Outdated
Show resolved
Hide resolved
|
||
|
||
@Slf4j | ||
public class DomainService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to create an interface for these tag/term/owner/domain services that they all implement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. No shared methods really.
If anything, a shared base class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we replaced things like batchSetDomain
with batchSet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored common code into BaseService
} | ||
|
||
@VisibleForTesting | ||
List<MetadataChangeProposal> buildRemoveGlossaryTermsProposals( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buildRemoveGlossaryTermsMetadataChangeProposals
? Since proposal
is an overloaded word
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh interesting....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think in the context here... it should be okay. what im thinking for saas is that we'll build a ProposalService or ActionRequestService most likely to complement
996ac24
to
bc38c8f
Compare
Summary
In this PR, we introduce handy and reusable service classes for Owners, Glossary Terms, Domains, and Tags. Currently, they allow you to bulk add and remove each of these items.
Specifically:
along with unit tests for each.
In future PRs, we will migrate resolvers to using these services.
Status
Ready to review
Checklist