-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Refactor mdm expander holder out #7295
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
base: master
Are you sure you want to change the base?
Conversation
|
Formatting check succeeded! |
This reverts commit 3844dc6.
…ributed, and we need a better approach.
| IHapiTransactionService theHapiTransactionService, | ||
| ISearchParamRegistry theSearchParamRegistry, | ||
| MdmExpandersHolder theMdmExpandersHolder) { | ||
| Optional<IMdmLinkExpandSvc> theMdmLinkExpandSvc) { |
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.
optional arguments is an antipattern
https://cloud-ci.sgs.com/sonar/coding_rules?open=java%3AS3553&rule_key=java%3AS3553
| } | ||
|
|
||
| private String submitBulkExportForTypesWithExportId(String theExportId, String... theTypes) throws IOException { | ||
| String typeString = String.join(",", theTypes); |
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.
do we need to sanitize theTypes?
| Set<String> expandMdmByGoldenResourceId(RequestPartitionId theRequestPartitionId, IIdType theId); | ||
|
|
||
| /** | ||
| * For the Group resource with the given id, returns all the persistent id ofs |
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.
| * For the Group resource with the given id, returns all the persistent id ofs | |
| * For the Group resource with the given id, returns all the persistent ids of |
| Set<JpaPid> expandGroup(String groupResourceId, RequestPartitionId requestPartitionId); | ||
|
|
||
| /** | ||
| * annotates the given resource to be exported with the implementation specific extra information if applicable |
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 does annotate mean?
| */ | ||
| default boolean supportsEidBasedExpansion() { | ||
| return getMode().equals(MdmModeEnum.MATCH_ONLY) | ||
| && !getMdmRules().getEnterpriseEIDSystems().isEmpty(); |
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.
do we want to check entries are not blank as well?
Uh oh!
There was an error while loading. Please reload this page.