Add pagination to list records CLI #82

Merged
nabarun merged 3 commits from deep-stack/laconic-registry-cli:iv-update-queryRecords-pagination into main 2024-09-05 13:51:43 +00:00
Member

Part of Create a public laconicd testnet
Requires cerc-io/registry-sdk#27

Example CLI commands with changes:

laconic registry record list --type WebsiteRegistrationRecord --all true | jq 'length'
# 16

laconic registry record list --limit 4 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]'      
# [
#   {
#     "id": "bafyreifmjc7kc76ihrolzqhynwrebjyr7bw7pstlv2lcdq5qu4cleql7ke",
#     "createTime": "2024-09-05T13:25:46Z"
#   },
#   {
#     "id": "bafyreifipscluxu43nx5frx54tyxnkkki2edsw3jydgexfjsluq674esfa",
#     "createTime": "2024-09-05T13:25:49Z"
#   },
#   {
#     "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy",
#     "createTime": "2024-09-05T13:25:52Z"
#   },
#   {
#     "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe",
#     "createTime": "2024-09-05T13:25:55Z"
#   }
# ]

laconic registry record list --limit 4 --offset 2 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]'
# [
#   {
#     "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy",
#     "createTime": "2024-09-05T13:25:52Z"
#   },
#   {
#     "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe",
#     "createTime": "2024-09-05T13:25:55Z"
#   },
#   {
#     "id": "bafyreieku22he546fsxrgwxd3mfpbtcobwjasl6zimkizl65rwvybwerci",
#     "createTime": "2024-09-05T13:25:58Z"
#   },
#   {
#     "id": "bafyreia4zjuap7v3tnilersrzsht75mqf3mhzsk72jgpcct7u6lj54zwyq",
#     "createTime": "2024-09-05T13:26:01Z"
#   }
# ]
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8) Requires https://git.vdb.to/cerc-io/registry-sdk/pulls/27 Example CLI commands with changes: ```bash laconic registry record list --type WebsiteRegistrationRecord --all true | jq 'length' # 16 laconic registry record list --limit 4 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]' # [ # { # "id": "bafyreifmjc7kc76ihrolzqhynwrebjyr7bw7pstlv2lcdq5qu4cleql7ke", # "createTime": "2024-09-05T13:25:46Z" # }, # { # "id": "bafyreifipscluxu43nx5frx54tyxnkkki2edsw3jydgexfjsluq674esfa", # "createTime": "2024-09-05T13:25:49Z" # }, # { # "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy", # "createTime": "2024-09-05T13:25:52Z" # }, # { # "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe", # "createTime": "2024-09-05T13:25:55Z" # } # ] laconic registry record list --limit 4 --offset 2 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]' # [ # { # "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy", # "createTime": "2024-09-05T13:25:52Z" # }, # { # "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe", # "createTime": "2024-09-05T13:25:55Z" # }, # { # "id": "bafyreieku22he546fsxrgwxd3mfpbtcobwjasl6zimkizl65rwvybwerci", # "createTime": "2024-09-05T13:25:58Z" # }, # { # "id": "bafyreia4zjuap7v3tnilersrzsht75mqf3mhzsk72jgpcct7u6lj54zwyq", # "createTime": "2024-09-05T13:26:01Z" # } # ] ```
prathamesh added 1 commit 2024-08-30 06:15:44 +00:00
Add pagination to list records CLI
Some checks failed
Lint / lint (18.x) (pull_request) Successful in 1m11s
Tests / cli_tests (18.x) (pull_request) Failing after 1m13s
25fd5a4e4a
prathamesh changed title from Add pagination to list records CLI to [WIP] Add pagination to list records CLI 2024-08-30 08:56:09 +00:00
prathamesh added 1 commit 2024-09-05 13:24:02 +00:00
Update bond list CLI for owner filter
All checks were successful
Lint / lint (18.x) (pull_request) Successful in 1m7s
Tests / cli_tests (18.x) (pull_request) Successful in 9m18s
30d152c57d
prathamesh changed title from [WIP] Add pagination to list records CLI to Add pagination to list records CLI 2024-09-05 13:26:26 +00:00
prathamesh added 1 commit 2024-09-05 13:37:19 +00:00
Increment package version
All checks were successful
Lint / lint (18.x) (pull_request) Successful in 1m11s
Tests / cli_tests (18.x) (pull_request) Successful in 9m10s
03791ecdd5
nabarun merged commit cf4bf5ed42 into main 2024-09-05 13:51:43 +00:00
nabarun deleted branch iv-update-queryRecords-pagination 2024-09-05 13:51:43 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconic-registry-cli#82
No description provided.