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

Adding pagination docs for clients/connections #268

Merged
merged 6 commits into from
May 29, 2018

Conversation

luisrudge
Copy link
Contributor

No description provided.

@luisrudge luisrudge added this to the v2.10.0 milestone May 29, 2018
Copy link
Contributor

@joshcanhelp joshcanhelp left a comment

Choose a reason for hiding this comment

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

Also ... should there be tests added for these parameters?

* </caption>
*
* // Pagination settings.
* var params = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would include what the defaults are, i.e. what happens if these are not passed (page 1, 50 per page I believe)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I won't add that because it's a backend default and might change

* management.clients.getAll(function (err, clients) {
* console.log(clients.length);
* });
*
* @param {Function} [cb] Callback function.
* @param {Object} [params] Users params.
Copy link
Contributor

Choose a reason for hiding this comment

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

Users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

* management.connections.getAll(function (err, connections) {
* console.log(connections.length);
* });
*
* @param {Function} [cb] Callback function.
* @param {Object} [params] Users params.
Copy link
Contributor

Choose a reason for hiding this comment

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

Users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

* </caption>
*
* // Pagination settings.
* var params = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here, show what the defaults are if this is not provided

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same

* @example
* @example <caption>
* This method takes an optional object as first argument that may be used to
* specify pagination settings and the search query.
Copy link
Contributor

Choose a reason for hiding this comment

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

What search query?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

* @example
* @example <caption>
* This method takes an optional object as first argument that may be used to
* specify pagination settings and the search query.
Copy link
Contributor

Choose a reason for hiding this comment

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

What search query?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@luisrudge
Copy link
Contributor Author

Copy link
Contributor

@joshcanhelp joshcanhelp left a comment

Choose a reason for hiding this comment

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

@luisrudge luisrudge merged commit c4d838a into master May 29, 2018
@luisrudge luisrudge deleted the feature-pagination-docs branch May 29, 2018 18:11
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.

2 participants