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

added constructor and wither for tables api request #539

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

asifmansoora
Copy link
Collaborator

@asifmansoora asifmansoora commented Sep 22, 2017

TablesApiRequest was missing an all argument constructor and withers

// CHECKSTYLE:OFF
public TablesApiRequest withFormat(ResponseFormatType format) {
return new TablesApiRequest(format, paginationParameters, uriInfo, builder,
tables, table, granularity, dimensions, metrics, intervals, filters);
Copy link
Contributor

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.

Copy link
Contributor

@QubitPi QubitPi left a comment

Choose a reason for hiding this comment

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

CHANGELOG needed

@asifmansoora
Copy link
Collaborator Author

Addressed the comments

@yahoo yahoo deleted a comment Sep 22, 2017
@yahoo yahoo deleted a comment Sep 22, 2017
@michael-mclawhorn
Copy link
Contributor

👍

@michael-mclawhorn
Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

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(
Copy link
Contributor

@QubitPi QubitPi Sep 22, 2017

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

@asifmansoora
Copy link
Collaborator Author

addressed all the comments

@asifmansoora
Copy link
Collaborator Author

@QubitPi can you review it again ?

@yahoo yahoo deleted a comment Sep 22, 2017
@yahoo yahoo deleted a comment Sep 22, 2017
@asifmansoora asifmansoora force-pushed the constructor-and-wither-for-tablesApiRequest branch from ae6abb3 to 1ca8a1a Compare September 25, 2017 15:20
@yahoo yahoo deleted a comment Sep 25, 2017
@yahoo yahoo deleted a comment Sep 25, 2017
@asifmansoora asifmansoora force-pushed the constructor-and-wither-for-tablesApiRequest branch from 1ca8a1a to b56ac75 Compare September 25, 2017 15:41
@yahoo yahoo deleted a comment Sep 25, 2017
@yahoo yahoo deleted a comment Sep 25, 2017
@asifmansoora asifmansoora force-pushed the constructor-and-wither-for-tablesApiRequest branch from b56ac75 to e3de13b Compare September 25, 2017 16:42
@yahoo yahoo deleted a comment Sep 25, 2017
@yahoo yahoo deleted a comment Sep 25, 2017
@asifmansoora asifmansoora merged commit 5d41f46 into master Sep 25, 2017
@asifmansoora asifmansoora deleted the constructor-and-wither-for-tablesApiRequest branch September 25, 2017 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants