Skip to content

Sticky bucketing not working on app startup #127

@toddgower-hiatus

Description

@toddgower-hiatus

Hi - I'm seeing an issue where the sticky bucketing service doesn't seem to be using the proper hash key to look for the assignments. After some debugging, here's what seems to happen:

  • GB SDK loads at app launch time without user attributes set
  • later, we call setAttributes which triggers a refreshStickyBucketing
  • Utils.getStickyBucketAssignments uses a previously set sticky assignments instead of the most recently fetched one

from what I can tell, Utils.refreshStickyBuckets() passes in a context gbContext that is not the same context that is used in Utils.getStickyBucketAssignments()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions