Skip to content

Sourcegraph LaunchDarkly extension design

Created by: yevbar

Feature request description

Sourcegraph LaunchDarkly extension

Is your feature request related to a problem? If so, please describe.

The Sourcegraph browser extension allows for individuals to create their own extensions - see Authoring docs. There is currently one for Codecov and there isn't one for LaunchDarkly (yet!)

Describe alternatives you've considered.

  1. First feature: Get information on feature flag on hover (visibility check requires client id)

image

Every flag has its own page that looks like https://app.launchdarkly.com/default/LOCATION/features/FLAGNAME/targeting so a link to this page could be included in the hover box.

Visibility of an LD feature requires a client id which can be obtained similarly to the Codecov extension

image

  1. Second feature: Listen for changes in feature flags (client id required)

image

Additional context

This is posted to gather feedback on what should/shouldn't be implemented. The above features are what are provided in the JavaScript SDK. There's one more functionality provided which is the manipulation of the user object used to connect to LD however it makes no sense to store Github viewing session in the sessions database.