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

feat: add totalCount to replications GET api #53

Merged
merged 6 commits into from
May 18, 2023

Conversation

jcace
Copy link
Contributor

@jcace jcace commented Apr 25, 2023

closes #51

Sample response where limit: 2 was passed:

{
	"data": [
		{
			"ID": 304,
			"CreatedAt": "2023-04-20T01:25:26.215425304-07:00",
			"UpdatedAt": "2023-04-21T20:10:11.669502-07:00",
			"DeletedAt": null,
			"content": {
				"commp": "baga6ea4seaqo3a3urbqe66jvdhy6koyv3t3qtvybqkxsc6gvgo44j3r22cjycoa",
				"payload_cid": "bafybeieqkeoscevvdhewdbec72wlogzzafhhxhx4lfloux73h6o47ndjba",
				"size": 19030979265,
				"padded_size": 34359738368,
				"dataset_name": "sucho-s3",
				"num_replications": 1
			},
			"deal_time": "2023-04-20T01:25:26.215396243-07:00",
			"delta_content_id": 313,
			"proposal_cid": "bafyreid2sruevyce3gln2uuv7w3fldudgyy6y6of52hleeuagts57hodea",
			"provider_actor_id": "f01963614",
			"content_commp": "baga6ea4seaqo3a3urbqe66jvdhy6koyv3t3qtvybqkxsc6gvgo44j3r22cjycoa",
			"is_self_service": false,
			"status": "SUCCESS"
		},
		{
			"ID": 303,
			"CreatedAt": "2023-04-20T01:25:25.956759327-07:00",
			"UpdatedAt": "2023-04-21T20:10:11.668969-07:00",
			"DeletedAt": null,
			"content": {
				"commp": "baga6ea4seaqp26pihxxhpdtquolp2mu2wx4vkw5ndwi756my5tnwaa33hyoecfq",
				"payload_cid": "bafybeicdszzhuolzukithixpb2mywv5rjq4srq2kqgzcjvmfuebbeubdye",
				"size": 18259851937,
				"padded_size": 34359738368,
				"dataset_name": "sucho-s3",
				"num_replications": 1
			},
			"deal_time": "2023-04-20T01:25:25.956658667-07:00",
			"delta_content_id": 312,
			"proposal_cid": "bafyreifbro4aarvq3mnix25ojvntsfpzqiozgq6hpwegwpy7uohlnrsumy",
			"provider_actor_id": "f01963614",
			"content_commp": "baga6ea4seaqp26pihxxhpdtquolp2mu2wx4vkw5ndwi756my5tnwaa33hyoecfq",
			"is_self_service": false,
			"status": "SUCCESS"
		}
	],
	"totalCount": 304
}

@jcace jcace marked this pull request as ready for review April 25, 2023 21:09
@jcace jcace merged commit 6af2c55 into main May 18, 2023
@jcace jcace deleted the feat.replicationsTotalCount branch May 18, 2023 21:12
jcace added a commit that referenced this pull request May 19, 2023
* feat: add totalCount to replications GET api

* fix: return correct replications totalCount

* fix: replications totalCount

* fix: count query - session

---------

Co-authored-by: Jason Cihelka <jcihelka@isotechnics.com>
Co-authored-by: Elijah Seed-Arita <elijaharita@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Replications API - return totalCount
2 participants