[Insight][Segments] Incorrect total of profiles is shown for segments created with the API, until refresh is hit

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.8.0

Created

Nov 07, 2018

Updated

May 06, 2019

State

Closed, Fixed and tested


Description

Precondition:
There are some segments created in Insight (Insight 1.7 E-mail - contains 72 records, Insight 1.7 Anonymous - contains 16 records) and from ProfileStore API (Info.Email ge ep.se - contains 20 records, Info.Email le ep.se - contains 5 records)

Steps to reproduce:
1. In Insight/Segments, open the (Insight segment) "Insight 1.7 E-mail"
--> Total number of profiles shows correctly: 50 of 72, all the records are listed
3. Back to list, open (API segment) "Info.Email ge ep.se"
Expected: "20 of 20" is shown, all profiles belong to "Info.Email ge ep.se" are listed
Actual: "20 of 72" is shown, all profiles belong to "Insight 1.7 E-mail" are listed instead
4. Refresh browser, the total number of profiles returns correctly ("20 of 20"), all profiles belong to "Info.Email ge ep.se" are listed
5. Back to list, open (Insight segment) "Insight 1.7 Anonymous" --> "16 of 16" is shown
6. Back to list, open (API segment) "Info.Email le ep.se" --> "5 of 16" is shown --> Incorrect