-
Notifications
You must be signed in to change notification settings - Fork 494
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
QueryDefinition: Adds API to get query parameters #2210
Conversation
95764d5
to
8bfe20b
Compare
public IReadOnlyList<(string Name, object Value)> GetQueryParameters() | ||
{ | ||
return this.parametersAdapter ??= new ParametersListAdapter(this); | ||
} |
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 exposed the parameters through a method because that's the API we agreed upon, but I think it might be more natural to expose them as a property.
If you agree, I can make that change. The name Parameters
is already taken by an internal property, so we could either rename the existing property, or find another name for the new one (I lean toward the former).
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
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.
Description
Expose the parameters of a
QueryDefinition
as a list of tuplesThis PR also introduces a small unrelated optimization to
QueryDefinition
, as a separate commit (so I can easily remove it from this PR if requested)Type of change
Closing issues
Closes #2191
Closes #796
Supersedes #802