-
Notifications
You must be signed in to change notification settings - Fork 12
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
More internal type filtering #1471
Conversation
Also: * Unify handling of internal types in the abstract base.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1471 +/- ##
=========================================
Coverage 91.39% 91.40%
+ Complexity 5012 5006 -6
=========================================
Files 631 632 +1
Lines 15402 15424 +22
Branches 887 882 -5
=========================================
+ Hits 14077 14098 +21
Misses 1019 1019
- Partials 306 307 +1 |
@yevhenii-nadtochii, since you were the author of (#1449), you may want to have a look at this PR. |
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.
@alexander-yevsyukov thank you. I've checked this out and left several suggestions. LGTM, but I would preserve the power of a formal approve to other reviewers.
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.
@alexander-yevsyukov please see the comments left by @yevhenii-nadtochii
Other than those, LGTM.
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.
@alexander-yevsyukov LGTM.
This PR teaches
QueryService
andSubscriptionService
to reject calls referring types marked asinternal_type
(either directly in a type option or via a file optioninternal_all
).To extract common logic of processing, an abstract
ServiceDelegate
class was introduced.CommandService
,QueryService
, andSubscriptionService
were modified to processing calls to classes derived fromServiceDelegate
.Also
UnknownEntityTypeException
was renamed toUnknownEntityStateTypeException
to better reflect the cause of the error.