Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Update events - missing documentation? #94

Closed

Description

@fyodorvi

I read all the documentation I could find on the SDK, but I've found no mentions on how you subscribe to an update event (or even if there is an updated event at all). I looked into the source and seems that FeatureStoreEventWrapper does indeed emit an update and update:${key} events. Is it something that shouldn't be used?

Activity

  1. eli-darkly commented on Jun 5, 2018

    @eli-darkly
    Contributor

    Sorry about that! That feature was added a few months ago due to a customer request, and we never got around to documenting it for everyone else - thanks for bringing that to our attention. We will update the docs ASAP.

    As for whether it should be used: you can use it, but there is currently a limitation you should be aware of. If you get an update:A event, then it means flag A has been edited— specifically flag A itself. The problem is, that's not the only way the flag's value can change. If flag A uses flag B as a prerequisite, or refers to user segment S, then editing B or S could also cause A's value to change, yet you will not see an update:A event. This is not ideal, and we will probably change it soon so that your application logic will not need to worry about these internal details of how the flag is defined.

  2. added a commit that references this issue on Aug 25, 2018
  3. eli-darkly commented on Oct 23, 2019

    @eli-darkly
    Contributor

    We did add documentation for this some time ago, but the limitation described in the previous comment has been fixed in the 5.9.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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