Skip to content
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 support for explain prepared query API endpoint #368

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

larrytamnjong
Copy link

@larrytamnjong larrytamnjong commented Oct 2, 2024

Add support for Explain Prepared Query API endpoint in Consul.Net (implementation only, tests pending)
#367
@naskio

@naskio
Copy link
Member

naskio commented Oct 2, 2024

Hi @larrytamnjong,
As a best practice, I suggest keeping this PR as a draft while it's still in progress (for example, when tests are missing)
Thanks

@larrytamnjong
Copy link
Author

larrytamnjong commented Oct 2, 2024 via email

@larrytamnjong
Copy link
Author

@naskio I've added the tests. Please take a look when you have time. Thanks!

Copy link
Contributor

@marcin-krystianc marcin-krystianc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @larrytamnjong, thanks for the PR.
I've left just a single comment to remove unnecessary lines, it looks good otherwise.

Assert.True(query.Name == "my-query");
Assert.True(query.Service.OnlyPassing == true);

query = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that is the way it has been done in this test, but nulling the response before assigning new values serves no purpose. Can I ask you to remove all the null assignments from the tests?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcin-krystianc thanks for the feedback let me do that..

@larrytamnjong
Copy link
Author

@marcin-krystianc all the null assignments have been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants