-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(flags): Refactor LaunchDarkly integration to reusable functions #14369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cmanallen
merged 12 commits into
aliu/launch-darkly-integration
from
ref-ff-launch-darkly-integration-abstraction
Dec 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c8e8c21
ref(flags): Refactor LaunchDarkly integration to reusable functions
billyvg ddf814b
split insertToFlagBuffer into 2 functions (insertFlagToScope and inse…
billyvg 4195a8e
only copy flags if buffer is not empty
billyvg 2d48782
ref(flags): Refactor LaunchDarkly integration to reusable functions
billyvg 22e7e16
Add OpenFeature browser integration
cmanallen c9d3a74
Linting
cmanallen 3dcf07e
Add missing semi-colons
cmanallen 1e1d734
update tests to use `shouldSkipFeatureFlagsTest` and `getLocalTestUrl`
billyvg 06e7fbb
ref; use featureFlags util functions
billyvg a47d337
export copyFlags/insertFlagToScope
billyvg afd4f78
add error hook test
billyvg a292a60
Merge pull request #14326 from getsentry/cmanallen/open-feature-integ…
cmanallen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
only copy flags if buffer is not empty
- Loading branch information
commit 4195a8e8c7e24c240b7e559558991738fb8dbc0e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine we'll want to use this in node/server environments as well, would it make sense to move these to core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the handler being used in the LD integration is only available for client-side js, that's why this was moved to the browser. Not sure if this will change for other integrations in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing in these util functions are specific to LD integration, it stores flag values to scope. It's possible for a server side implementation to re-use these functions.