Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Frontend
Minds Frontend
  • Project
  • Repository
  • Issues 805
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 52
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds FrontendMinds Frontend
  • Issues
  • #2190

Closed
Open
Opened 3 days ago by Guy Thouret@gthouret
Report abuse New issue

Boost slots in feed initially showing same boost every time

App loads

Makes a request for feed boosts

https://www.minds.com/api/v2/boost/feed?sync=1&limit=150&as_activities=0&from_timestamp=

10 boosts in the response (collapsed)

{status: "success",…}
entities: [{guid: "1035774263340589056", owner_guid: "957099039059353604", timestamp: 1572323828314,…},…]
0: {guid: "1035774263340589056", owner_guid: "957099039059353604", timestamp: 1572323828314,…}
1: {guid: "1035779062639386624", owner_guid: "681559689124651027", timestamp: 1572324972454,…}
2: {guid: "1035786250887913472", owner_guid: "921106248789663756", timestamp: 1572326686308,…}
3: {guid: "1035789938293035008", owner_guid: "901308211896786959", timestamp: 1572327566415,…}
4: {guid: "1035791224082092032", owner_guid: "676970389145919497", timestamp: 1572327871935,…}
5: {guid: "1035826847799136256", owner_guid: "875994000232816648", timestamp: 1572336365323,…}
6: {guid: "1035835800449212416", owner_guid: "961849683355901956", timestamp: 1572338501533,…}
7: {guid: "1035856345047322624", owner_guid: "681820065431035910", timestamp: 1572343398099,…}
8: {guid: "1035861065590136832", owner_guid: "1034444043108491278", timestamp: 1572344532747,…}
9: {guid: "1035871166169960448", owner_guid: "681510786601852945", timestamp: 1572346931712,…}
load-next: 1572346931712
status: "success"

The first boost gets put into all slots up to a point (possibly the first feed load at the end of infinite scroll).

Views recorded: 1035774263340589056 4 1035779062639386624 1 1035786250887913472 1 1035789938293035008 1 1035791224082092032 1 1035826847799136256 0 1035835800449212416 1 1035856345047322624 0 1035861065590136832 0 1035871166169960448 0

Another request is made for more boosts:

entities: [{guid: "1035735585072508928", owner_guid: "827283089498578946", timestamp: 1572314606581,…},…]
0: {guid: "1035735585072508928", owner_guid: "827283089498578946", timestamp: 1572314606581,…}
1: {guid: "1035736030619656192", owner_guid: "828233609881067535", timestamp: 1572314713039,…}
2: {guid: "1035745169110028288", owner_guid: "859849246831026193", timestamp: 1572316891970,…}
3: {guid: "1035746647040614400", owner_guid: "800754120263737352", timestamp: 1572317243949,…}
4: {guid: "1035760359545327616", owner_guid: "470964101896478726", timestamp: 1572320513620,…}
5: {guid: "1035764689421815808", owner_guid: "902355209638912004", timestamp: 1572321545745,…}
6: {guid: "1035773532839170048", owner_guid: "813965995910635529", timestamp: 1572323654088,…}
7: {guid: "1035774263340589056", owner_guid: "957099039059353604", timestamp: 1572323828314,…}
load-next: 1572323828314
status: "success"

8 boosts are returned. 8 slots are filled, however only 4 slots are boost feed items, the other 4 being boost rotator items that get recorded as rotator placement instead of feed placement.

Edited 3 days ago by Guy Thouret

Related issues
0

  • Discussion 5
  • Designs 0
  • Guy Thouret @gthouret added Sprint::10/23 - Quiet Quail scoped label 3 days ago

    added scoped label

  • Guy Thouret @gthouret added Priority::1 - High scoped label 3 days ago

    added scoped label

  • Guy Thouret @gthouret added Platform::Browser Product::Boost Squad::Blue Status::Backlog scoped labels 3 days ago

    added scoped labels

  • Guy Thouret @gthouret removed Platform::Browser label 3 days ago

    removed label

  • Guy Thouret @gthouret assigned to @gthouret 3 days ago

    assigned to @gthouret

  • Guy Thouret @gthouret changed title from Boost slots in feed showing same boost every time to Boost slots in feed initially showing same boost every time 3 days ago

    changed title from Boost slots in feed showing same boost every time to Boost slots in feed showing same boost every time

  • Guy Thouret @gthouret changed the description 3 days ago

    changed the description

  • Guy Thouret
    Guy Thouret @gthouret · 3 days ago
    Developer

    Note: Test usage of FeedService in frontend. Subscribed feed uses FeedService with differing parameters to what boost does. Boost always sets offset 0 - need to check implication of this with FeedService.

  • Guy Thouret @gthouret added Status::InProgress scoped label and automatically removed Status::Backlog label 3 days ago

    added scoped label and automatically removed label

  • Guy Thouret @gthouret added Status::Backlog scoped label and automatically removed Status::InProgress label 3 days ago

    added scoped label and automatically removed label

  • Guy Thouret @gthouret removed Status::Backlog label 3 days ago

    removed label

  • Guy Thouret @gthouret added Status::InProgress scoped label 3 days ago

    added scoped label

  • Guy Thouret @gthouret added Type::Bug scoped label 3 days ago

    added scoped label

  • Guy Thouret @gthouret mentioned in commit 6b614e35 3 days ago

    mentioned in commit 6b614e35

  • Ben Hayward @benhayward.ben mentioned in issue engine#1071 (closed) 19 hours ago

    mentioned in issue engine#1071 (closed)

  • Guy Thouret @gthouret changed time estimate to 2d 7 hours ago

    changed time estimate to 2d

  • Guy Thouret @gthouret added 1d of time spent at 2019-11-04 7 hours ago

    added 1d of time spent at 2019-11-04

  • Guy Thouret @gthouret mentioned in commit d0c612cd 1 hour ago

    mentioned in commit d0c612cd

  • Guy Thouret
    Guy Thouret @gthouret · 57 minutes ago
    Developer

    The complex interactions between async components are difficult to test. I mocked up simple versions of the FeaturedContentService, BlockService and FeedService and debugged the code in StackBlitz.

    I found that the offset was allowed to overshoot, causing us to use call skip(offset) with an offset value larger than the actual feed array size.

    There is also another potential issue with the offset where the offset is based on the pre-filtered feed array size.

    I can mock some blocks now to test/resolve this functionality.

  • Guy Thouret
    Guy Thouret @gthouret · 46 minutes ago
    Developer

    https://stackblitz.com/edit/test-boost-feed-code

  • Guy Thouret
    Guy Thouret @gthouret · 46 minutes ago
    Developer

    Mocked a blocked owner guid and kept getting the same boost repeated.

  • Guy Thouret
    Guy Thouret @gthouret · 20 minutes ago
    Developer

    Confirmed the way the offset is used needs to be reworked...

    Adding an owner_guid to the filter list so that some of the feed is filtered...

    rawfeed.length: 5
    post entitiesService feed.length: 2

    Offset is allowed to exceed the filtered feed length which results in the same item being returned repeatedly.

Please register or sign in to reply
Assignee
Guy Thouret's avatar
Guy Thouret @gthouret
none
Epic
None
None
Milestone
None
Time tracking
Spent 1d
Est 2d
None
Due date
None
6
Labels
Priority::1 - High Product::Boost Sprint::10/23 - Quiet Quail Squad::Blue Status::InProgress Type::Bug
None
Weight
None
Confidentiality
Not confidential
Lock issue
Unlocked
2
2 participants
user avatar
Guy Thouret
user avatar
Ben Hayward
Reference: minds/front#2190