Skip to content
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

Add feature flags support to the Electron native client #1569

Merged

Conversation

imjoehaines
Copy link
Contributor

Goal

This PR adds wrapper methods to the feature flag API on the main process client to sync feature flags to the native client

We don't support partial updates; the feature flags are always replaced entirely when NativeClient.updateFeatureFlags is called

Testing

Relies on unit tests as the rest of Electron doesn't support feature flags, so this can't be tested end to end yet

This event isn't consumed yet, as that requires changes to the native
client to support it
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 42.51 kB 12.98 kB
After 42.51 kB 12.98 kB
± No change No change

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-client-state-manager/client-state-manager.js 100%
(+0%)
83.33%
(+3.33%)
100%
(+0%)
100%
(+0%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-client-state-persistence/client-state-persistence.js 89.29%
(+2.33%)
100%
(+0%)
87.5%
(+1.79%)
89.29%
(+2.33%)

Total:

Lines Branches Functions Statements
82.79%(+0.12%) 72.22%(+0.03%) 83.87%(+0.08%) 81.76%(+0.11%)

Generated by 🚫 dangerJS against 4408d62

Base automatically changed from feature-flags/move-formatting-to-delegate to integration/feature-flags November 9, 2021 10:29
@imjoehaines imjoehaines merged commit 90f05c7 into integration/feature-flags Nov 9, 2021
@imjoehaines imjoehaines deleted the feature-flags/electron-native-client branch November 9, 2021 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants