Skip to content

Conversation

@larrytamnjong
Copy link
Contributor

@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
Contributor Author

larrytamnjong commented Oct 2, 2024 via email

@larrytamnjong
Copy link
Contributor 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
Contributor 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
Contributor Author

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

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.

Nice👍 Thank you!

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