Open marckraw opened 1 year ago
PS. same is happening for roles endpoint...
spaces/${spaceId}/space_roles/
{
data: { space_roles: [ [Object] ] },
headers: {
'cache-control': 'max-age=0, private, must-revalidate',
connection: 'keep-alive',
'content-length': '313',
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 16 Apr 2023 22:03:24 GMT',
etag: 'W/"8d36361687ba4eb4873039f586f0e1a9"',
'referrer-policy': 'strict-origin-when-cross-origin',
server: 'nginx/1.23.3',
vary: 'Origin',
via: '1.1 9349ae4f82564896b96f5303b030d188.cloudfront.net (CloudFront)',
'x-amz-cf-id': 'wKzeI0hqxrPQxrI4NA-U9xK1une_oDoFq2aA9zKYs8dkOhrCXDP3dA==',
'x-amz-cf-pop': 'ZRH50-C1',
'x-cache': 'Miss from cloudfront',
'x-content-type-options': 'nosniff',
'x-download-options': 'noopen',
'x-frame-options': 'SAMEORIGIN',
'x-permitted-cross-domain-policies': 'none',
'x-request-id': 'e455ef36-6d77-4201-a5e6-d41d44254a07',
'x-runtime': '0.030316',
'x-xss-protection': '1; mode=block'
}
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Total pages: NaN
eeeee end same for component_groups
:)
spaces/${spaceId}/component_groups/
{
data: {
component_groups: [ [Object], [Object], [Object], [Object], [Object] ]
},
headers: {
'cache-control': 'max-age=0, private, must-revalidate',
connection: 'keep-alive',
'content-length': '433',
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 16 Apr 2023 22:16:14 GMT',
etag: 'W/"7bd9f381ab8e3a1bfd2d1fac6ac9498a"',
'referrer-policy': 'strict-origin-when-cross-origin',
server: 'nginx/1.23.3',
vary: 'Origin',
via: '1.1 01ec1718bcc130455b377ec6b38ad50c.cloudfront.net (CloudFront)',
'x-amz-cf-id': 'Z8icLvd4Wg0KgEyJtyfQ8YV4kP3ZralQd1X-nPlZCv_TNYGHV_Sn7A==',
'x-amz-cf-pop': 'ZRH50-C1',
'x-cache': 'Miss from cloudfront',
'x-content-type-options': 'nosniff',
'x-download-options': 'noopen',
'x-frame-options': 'SAMEORIGIN',
'x-permitted-cross-domain-policies': 'none',
'x-request-id': '0100631a-1324-4b76-9329-1449297d9683',
'x-runtime': '0.034203',
'x-xss-protection': '1; mode=block'
}
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Total pages: NaN
Same for all components:
spaces/${spaceId}/components/
{
data: {
components: [
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object], [Object],
[Object], [Object], [Object], [Object]
],
component_groups: [ [Object], [Object], [Object], [Object], [Object] ]
},
headers: {
'cache-control': 'max-age=0, private, must-revalidate',
connection: 'keep-alive',
'content-length': '189311',
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 16 Apr 2023 22:41:20 GMT',
etag: 'W/"38f0c1b4b4972aa30e1176f337b9c236"',
'referrer-policy': 'strict-origin-when-cross-origin',
server: 'nginx/1.23.3',
vary: 'Origin',
via: '1.1 a4f3f56409fe4e0b42683dc15dd52ef8.cloudfront.net (CloudFront)',
'x-amz-cf-id': 'CUNmGEm7K_RRu6Yk3a_zXD2kxPrIs6qlPMHthj11uMtbbpFbgMvxLQ==',
'x-amz-cf-pop': 'ZRH50-C1',
'x-cache': 'Miss from cloudfront',
'x-content-type-options': 'nosniff',
'x-download-options': 'noopen',
'x-frame-options': 'SAMEORIGIN',
'x-permitted-cross-domain-policies': 'none',
'x-request-id': '1658ebad-3be6-4f16-9434-43ec69a14e82',
'x-runtime': '0.094123',
'x-xss-protection': '1; mode=block'
}
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Total pages: NaN
Any update on the pagination issue ? :)
@marckraw We'll tackle this one.
@thiagosaife super cool, thank you 🙏
Hi @marckraw can you please confirm for me if this is still an issue? Thanks
Hi @marckraw can you please confirm for me if this is still an issue? Thanks
will try to find some time, this/next week to do proper testing - sb-mig
is waiting to be updated with new storyblok-js-client
for long time ;p
@marckraw Let me know 🙏🏻
When making request to get all presets, (through
storyblok-js-client
with url:spaces/${spaceId}/presets/
there is nototal
field inresponse
and also nothing in headers.Expected Behavior
Request should return
total
, and page field, and should be able to passper_page
andpage
into params. Example of proper pagination response, from for example datasources:Current Behavior
It doesnt return
total
andpage
fields, also not in headers:Steps to Reproduce
Just make request using
storyblok-js-client@^5.10.2