-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: Add ability to input simple explain type arg #1039
Conversation
59b864b
to
75196aa
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1039 +/- ##
===========================================
- Coverage 68.16% 68.12% -0.05%
===========================================
Files 171 171
Lines 16211 16250 +39
===========================================
+ Hits 11050 11070 +20
- Misses 4237 4249 +12
- Partials 924 931 +7
|
75196aa
to
ebc32c7
Compare
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've left some early feedback, I like the changes to the test structure and the planner code but have some other concerns. I'll go over the code again before approval. Will probably chat in standup regarding the exposure of stuff that is not implemented.
Looks good Shahzad! I'll let Andy approve once you've made the changes as he was the one who requested the changes. |
ebc32c7
to
d7efd22
Compare
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.
Looks good Shahzad :)
d7efd22
to
83387a6
Compare
directory, as that is more accurate description for them and add the `invalid_type_arg_test.go` test to assert invalid explain types are caught.
store directive and their corressponding data (specific to a request).
have 4 types of explains.
where it is made, this makes it cleaner and not have us having to handle the `plan.Close()` on every exit of the function. Also remove `multiErr` function, don't need no more. Also factory handle other types of explain requests, to adhere to our tests we have added already.
…ific function and in one place.
Adhere to PR suggestion
83387a6
to
bf96071
Compare
Tested this one. Works fine. |
- Resolves sourcenetwork#972 - Description: This PR lays the groundwork that was missing to push the work that implements the other remaining explain types. - Usage: ``` @Explain @Explain(type: simple) ```
Resolves #972
Description
This PR lays the groundwork that was missing to push the work that implements the other remaining explain types.
Usage:
Future Usage(not in this PR):
PR Highlights:
simple
tests todefault
directory.type
argument value.plan.Close
up one scope to avoid handling at every exit point.simple
value totype
argument.For Reviewers:
Apology for it being a bit harder to review as some commits aren't clean, as some definition/implementation changes span across multiple commits. Reviewing commit by commit might be more confusing that looking at the entire diff.
TODO:
errors.go
file.Tasks
How has this been tested?
make test
Specify the platform(s) on which this was tested: