Try our conversational search powered by Generative AI!

[ProfileAPI] Get segment always returns "total" equals to "count"

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.8.0

(Or a related package)

Created

Nov 27, 2018

Updated

May 03, 2019

State

Closed, Fixed and tested


Description

Precondition: There are more than 100 segments, for example: 150 segments

Steps to reproduce

1. Perform a Get query to get a segment.

{profile api}/api/v1.0/segments/
Result1.
Expected: Return list of 100 first segments and total item equals to 150 at the end of returned body message

"total": 150,
"count": 100


Actual: Return list of 100 first segments and total item equals to 100 at the end of returned body message

"total": 100,
"count": 100



2. Perform a Get query to get a segment with top.{profile api}

/api/v1.0/segments/?$top=149
Result2:
Expected:
Return list of 149 first segments and total item equals to 150 at the end of returned body message
Actual:
Return list of 149 first segments and total item equals to 149 at the end of returned body message

3. Perform a Get query to get segment with top.

{profile api}

/api/v1.0/segments/?$top=2

Result3:
Expected:
Return list of 2 first segments and total item equals to 150 at the end of returned body message

Actual:
Return list of 2 first segments and total item equals to 2 at the end of returned body message