Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

rpc,typescript: Add Paginated getOrders method #642

Merged
merged 7 commits into from
Jan 14, 2020

Conversation

fabioberger
Copy link
Contributor

Fixes: #86

@fabioberger fabioberger self-assigned this Jan 13, 2020
@@ -173,7 +173,7 @@ blockchainTests.resets('WSClient', env => {
// timestamp is approximately equal (within 1 second) because the server
// will receive the request slightly after it is sent.
const now = new Date(Date.now()).getTime();
const perPage = 10;
const perPage = ordersLength / 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test wasn't actually making multiple paginated requests before so I modified it so that it does.

@fabioberger fabioberger force-pushed the feature/paginatedGetOrdersMethod branch from 3afe790 to 83338c1 Compare January 13, 2020 21:53
@fabioberger fabioberger changed the base branch from master to development January 13, 2020 21:55
Copy link
Contributor

@jalextowle jalextowle left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for updating the tests. I left an optional suggestion for your perusal.

CHANGELOG.md Show resolved Hide resolved
rpc/clients/typescript/test/ws_client_test.ts Show resolved Hide resolved
rpc/clients/typescript/test/ws_client_test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@albrow albrow left a comment

Choose a reason for hiding this comment

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

Just suggested some minor changes.

rpc/clients/typescript/src/ws_client.ts Show resolved Hide resolved
rpc/clients/typescript/test/ws_client_test.ts Outdated Show resolved Hide resolved
@fabioberger fabioberger force-pushed the feature/paginatedGetOrdersMethod branch from 83338c1 to ba0174b Compare January 14, 2020 11:10
@fabioberger fabioberger force-pushed the feature/paginatedGetOrdersMethod branch from ba0174b to 52de468 Compare January 14, 2020 11:24
Copy link
Contributor

@jalextowle jalextowle left a comment

Choose a reason for hiding this comment

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

Nice work!

@fabioberger fabioberger merged commit 11b1192 into development Jan 14, 2020
@fabioberger fabioberger deleted the feature/paginatedGetOrdersMethod branch January 14, 2020 20:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants