-
Notifications
You must be signed in to change notification settings - Fork 96
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
added constructor and wither for tables api request #539
added constructor and wither for tables api request #539
Conversation
// CHECKSTYLE:OFF | ||
public TablesApiRequest withFormat(ResponseFormatType format) { | ||
return new TablesApiRequest(format, paginationParameters, uriInfo, builder, | ||
tables, table, granularity, dimensions, metrics, intervals, filters); |
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.
Since we're turning checkstyle off anyway, we might as well move all of this onto one line to line up with how we do the other withers.
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.
CHANGELOG needed
Addressed the comments |
👍 |
That failure is from a flaky test. I'll try to deactivate it soon. In the mean time, get @QubitPi 's rereview and then merge |
@@ -222,6 +225,43 @@ public TablesApiRequest( | |||
} | |||
|
|||
/** | |||
* All argument constructor for withers. | |||
* @param format response data format JSON or CSV. Default is JSON. |
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.
empty line
@@ -222,6 +225,43 @@ public TablesApiRequest( | |||
} | |||
|
|||
/** | |||
* All argument constructor for withers. | |||
* @param format response data format JSON or CSV. Default is JSON. |
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.
Response
* @param dimensions Grouping dimensions / Dimension constraint | ||
* @param metrics Metrics constraint | ||
* @param intervals Data / Time constraint | ||
* @param filters Filter constraint |
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.
General - Capitalize first words in description.
* @param intervals Data / Time constraint | ||
* @param filters Filter constraint | ||
*/ | ||
private TablesApiRequest( |
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.
Why are we making this private
?
Why do we want an all-args constructor?
It would be nice to explain in change log as well as in JavaDoc of this constructor
addressed all the comments |
@QubitPi can you review it again ? |
ae6abb3
to
1ca8a1a
Compare
1ca8a1a
to
b56ac75
Compare
b56ac75
to
e3de13b
Compare
TablesApiRequest was missing an all argument constructor and withers