Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[SDK-2666] Update endpoint methods to document allowance of 'from' and 'take' checkpoint pagination parameters #634

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

evansims
Copy link
Member

@evansims evansims commented Jul 18, 2021

Changes

This PR includes method documentation (docblock) updates to reflect the availability of checkpoint pagination parameters on supported endpoints. It does not add any new functionality or require new tests.

References

  • Please see the internal Jira tickets SDK-2666 and related epic SDK-2653 for details on this initiative.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@evansims evansims requested a review from a team as a code owner July 18, 2021 21:10
@evansims evansims added documentation This adds, fixes or improves documentation review:tiny Tiny review labels Jul 18, 2021
@@ -351,8 +351,8 @@ RolesManager.prototype.removePermissions = function(params, data, cb) {
* @param {String} [roleId] Id of the role
* @param {Number} [params.per_page] Number of results per page.
* @param {Number} [params.page] Page number, zero indexed.
* @param {String} [params.from] Optional id from which to start selection.
* @param {Number} [params.take] The total amount of entries to retrieve when using the from parameter. Defaults to 50.
Copy link
Member Author

@evansims evansims Jul 18, 2021

Choose a reason for hiding this comment

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

This phrasing here was a bit misguiding; as 'from' is optional (and not used during the initial request w/ checkpoint pagination - aside from the unique log's endpoint method), take can and always will (for the first request) be used without from.

@evansims evansims merged commit 6c93531 into master Jul 20, 2021
@davidpatrick davidpatrick deleted the feature/checkpoint-pagination/sdk-2666 branch July 20, 2021 21:49
@davidpatrick davidpatrick added this to the vNext milestone Jul 20, 2021
@davidpatrick davidpatrick mentioned this pull request Jul 23, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
CH: Added documentation This adds, fixes or improves documentation review:tiny Tiny review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants