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

Feature Flags #1670

Merged
merged 76 commits into from
Jan 24, 2022
Merged

Feature Flags #1670

merged 76 commits into from
Jan 24, 2022

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Jan 21, 2022

Goal

Merges the feature flags integration branch into next.

imjoehaines and others added 30 commits November 2, 2021 14:54
This is like the metadata delegate, but for feature flags. It holds
a common API for both Client & Event to use
…er-tests

Browser maze runner tests for feature flags
Originally it seemed like we'd only need this in the Event class,
however it's also necessary in Electron when sending flags to the
native client

Therefore this needs to be somewhere reusable, i.e. the feature flag
delegate
This event isn't consumed yet, as that requires changes to the native
client to support it
…o-delegate

Move Event API conversion to feature flag delegate
…lient

Add feature flags support to the Electron native client
…-update

Use feature-flag steps in Browser feature flag tests
Add support for feature flags in "clone client"
…tests

Expo Maze Runner tests for feature flags
…tests

Add maze runner tests for feature flags in node
Renderer processes will now contain all feature flags from the main
process, both those added as config and with Bugsnag.addFeatureFlag(s)
lemnik and others added 22 commits December 9, 2021 16:15
…-in-renderer-crashes

Fix feature flags being missing from renderer crashes
Allow `featureFlags` in ReactNative config
…next

Merge branch 'next' into integration/feature-flags
# Conflicts:
#	test/browser/Gemfile
#	test/browser/Gemfile.lock
#	test/expo/Gemfile
#	test/expo/Gemfile.lock
#	test/node/Gemfile
#	test/node/Gemfile.lock
…-android

Sync ReactNative feature flags on Android
…native-tests

Mazerunner tests for React Native feature flags in native code
Update integration/feature-flags with latest next
@github-actions
Copy link

github-actions bot commented Jan 21, 2022

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 41.58 kB 12.80 kB
After 42.85 kB 13.07 kB
± ⚠️ +1,275 bytes ⚠️ +268 bytes

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/core/client.js 99.38%
(+0.03%)
97.65%
(+0.03%)
100%
(+0%)
98.86%
(+0.06%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/core/config.js 100%
(+0%)
98.33%
(+0.15%)
100%
(+0%)
98.57%
(+0.06%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/core/event.js 95.5%
(+0.26%)
88.52%
(+0.19%)
100%
(+0%)
95.8%
(+0.22%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/core/lib/feature-flag-delegate.js 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
/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%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-deliver-minidumps/deliver-minidumps.js 50.82%
(+0.82%)
43.75%
(+0%)
33.33%
(+0%)
51.52%
(+0.75%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-ipc/bugsnag-ipc-main.js 82.81%
(+0.27%)
73.08%
(+0%)
89.47%
(+0%)
81.69%
(+0.26%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-ipc/bugsnag-ipc-renderer.js 96.3%
(+0.65%)
100%
(+0%)
95%
(+1.25%)
96.43%
(+0.6%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-renderer-event-data/renderer-event-data.js 90%
(+0.53%)
81.25%
(+0%)
100%
(+0%)
90.91%
(+0.43%)
🔴 /home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-react-native-client-sync/client-sync.js 85.51%
(-5.19%)
47.06%
(-25.67%)
100%
(+0%)
85.92%
(-5.19%)
/home/runner/work/bugsnag-js/bugsnag-js/packages/react-native/src/notifier.js 72.84%
(+0.69%)
65.79%
(+4.03%)
61.54%
(+0%)
71.91%
(+0.65%)

Total:

Lines Branches Functions Statements
81.89%(+0.31%) 71.44%(+0.18%) 83.08%(+0.41%) 80.96%(+0.3%)

Generated by 🚫 dangerJS against 9c2d48e

lemnik and others added 2 commits January 24, 2022 12:26
# Conflicts:
#	packages/react-native/ios/.bugsnag-cocoa-version
#	packages/react-native/ios/BugsnagReactNative/BugsnagReactNativeEmitter.m
#	packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Client/BugsnagClient.m
#	packages/react-native/ios/vendor/bugsnag-cocoa/Bugsnag/Configuration/BugsnagConfiguration.m
#	packages/react-native/ios/vendor/bugsnag-cocoa/CHANGELOG.md
Sync FeatureFlags integration branch with next
Copy link
Contributor

@tomlongridge tomlongridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a changelog entry for the release, but happy to add it later rather than re-do the CI. (See Android release notes for wording.)

@lemnik lemnik merged commit 0fae672 into next Jan 24, 2022
@imjoehaines imjoehaines deleted the integration/feature-flags branch January 25, 2022 10:34
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.

6 participants