energywebfoundation / ocn-node

Apache License 2.0
5 stars 4 forks source link

HubClientInfo module pagination #12

Open ewf-devops opened 4 years ago

ewf-devops commented 4 years ago

Original report by Adam Staveley (Bitbucket: [Adam Staveley](https://bitbucket.org/Adam Staveley), GitHub: adamstaveley).


The sender GET request must properly implement pagination. Currently it ignores requests to paginate and considers the response the final page. This is especially needed as the network scales.

ewf-devops commented 4 years ago

Original comment by John Henderson (Bitbucket: [John Henderson](https://bitbucket.org/John Henderson), GitHub: jrhender).


Hi @{5c0e56819aeccc769f3342d4} , I’m thinking of working on this. A couple questions when you have a moment:

Let me know if you have any thoughts!

ewf-devops commented 4 years ago

Original comment by Adam Staveley (Bitbucket: [Adam Staveley](https://bitbucket.org/Adam Staveley), GitHub: adamstaveley).


That’s great! So we have not implemented pagination for OCN Node data per se, only for forwarded requests between parties. The API you linked looks promising - you’re right, we have the Roles repo for connected parties and the NetworkClientInfo repo for “outside” parties and I’m not sure we could paginate from two sources. As we discussed previously, the modelling isn’t great right now so happy for you to rework it.

ewf-devops commented 4 years ago

Original comment by John Henderson (Bitbucket: [John Henderson](https://bitbucket.org/John Henderson), GitHub: jrhender).


@{5c0e56819aeccc769f3342d4} submitted PR for this issue here: https://bitbucket.org/shareandcharge/ocn-node/pull-requests/32/issue-12-implementation-of-hubclientinfo