-
Notifications
You must be signed in to change notification settings - Fork 58
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
cleanup: Add no-internalModels-flag variants to methods used by GMS's #475
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #475 +/- ##
============================================
- Coverage 68.02% 67.87% -0.16%
Complexity 1635 1635
============================================
Files 143 143
Lines 6252 6266 +14
Branches 682 682
============================================
Hits 4253 4253
- Misses 1709 1723 +14
Partials 290 290 ☔ View full report in Codecov by Sentry. |
@Nonnull | ||
protected Map<URN, VALUE> getInternal(@Nonnull Collection<URN> urns, | ||
@Nonnull Set<Class<? extends RecordTemplate>> aspectClasses) { | ||
final boolean isInternalModelsEnabled = getResourceLix().testGetAll(_urnClass.getSimpleName()); |
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.
the getResourceList().testGetAll() gives low granular lix control on getAll method. Putting it inside the getInternal() will lose this granularity.
@Nonnull | ||
protected Map<URN, VALUE> getInternalNonEmpty(@Nonnull Collection<URN> urns, | ||
@Nonnull Set<Class<? extends RecordTemplate>> aspectClasses) { | ||
final boolean isInternalModelsEnabled = getResourceLix().testGetAll(_urnClass.getSimpleName()); |
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.
same here, unless only getAll is calling this method. But there's no restriction for future cases
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 is the motivation on this clean up?
If getResourceLix() is no longer used, better to cleanup in the original methods rather than introducing new ones.
Summary
Add no-flag variants to methods so that consumer GMS's don't need to call "lix logic", which is confusing since there is no Lix active any more.
Non-TMS Codesearch: https://jarvis.corp.linkedin.com/codesearch/results/?query=mp%3A*-gms%20getResourceLix
TMS Codesearch: https://jarvis.corp.linkedin.com/codesearch/results?query=mp%3Ametadata-store+getResourceLix¤t=1&nresults=10
Testing Done
n/a
Checklist