Skip to content

Conversation

@larrytamnjong
Copy link
Contributor

@larrytamnjong larrytamnjong commented Oct 16, 2024

@larrytamnjong
Copy link
Contributor Author

@marcin-krystianc

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,

I left comments about compile-dc argument, looks good otherwise!


public class DiscoveryChainOptions
{
public string EvaluateInDatacenter { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should not be a part of this structure as it is being used as [compile-dc](https://developer.hashicorp.com/consul/api-docs/discovery-chain#compile-dc) which is a query-only parameter.

var request = _client.Post<DiscoveryChainOptions, DiscoveryChainResponse>($"/v1/discovery-chain/{name}", options, q);
if (options != null && options.EvaluateInDatacenter != null)
{
request.Params["compile-dc"] = options.EvaluateInDatacenter;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a separate argument passed to the Get method.

@larrytamnjong
Copy link
Contributor Author

Hi @larrytamnjong,

I left comments about compile-dc argument, looks good otherwise!

Thanks @marcin-krystianc I have made an update based on your feedback.

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.

Looks good, please just remove those unnecessary empty lines.

Assert.Equal(targetCheck.Name, targetChain.Name);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Please remove extra empty lines

}

}

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Please remove extra empty lines


}


Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Please remove extra empty lines

@larrytamnjong
Copy link
Contributor Author

Looks good, please just remove those unnecessary empty lines.

Done :)

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 👍

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.

3 participants