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

[PLAT-5052] feat(plugin-browser-device): Use device id as default user id #1456

Merged
merged 4 commits into from
Jul 1, 2021

Conversation

bengourley
Copy link
Contributor

Same as #1454 but for browser JS.

This time it is gated by the collectUserIp config option.

@github-actions
Copy link

github-actions bot commented Jun 30, 2021

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 41.19 kB 12.68 kB
After 41.32 kB 12.70 kB
± ⚠️ +128 bytes ⚠️ +29 bytes

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-browser-device/device.js 100%
(+0%)
96.55%
(+1.31%)
100%
(+0%)
100%
(+0%)

Total:

Lines Branches Functions Statements
82.38%(+0.02%) 71.91%(+0.11%) 83.47%(+0.02%) 81.43%(+0.03%)

Generated by 🚫 dangerJS against 8bc5a2c

packages/plugin-browser-device/test/device.test.ts Outdated Show resolved Hide resolved
packages/plugin-browser-device/test/device.test.ts Outdated Show resolved Hide resolved
packages/plugin-browser-device/test/device.test.ts Outdated Show resolved Hide resolved
@imjoehaines
Copy link
Contributor

This broke the "setting collectUserIp option to false" MR test because it now gets the device ID

@bengourley bengourley force-pushed the bengourley/browser-device-id-default-user-id branch from fa41d1f to 4612d4a Compare July 1, 2021 09:42
@bengourley bengourley force-pushed the bengourley/browser-device-id-default-user-id branch from 4612d4a to 8bc5a2c Compare July 1, 2021 13:33
@bengourley bengourley merged commit 38689f2 into next Jul 1, 2021
@bengourley bengourley deleted the bengourley/browser-device-id-default-user-id branch July 1, 2021 15:01
@bengourley bengourley mentioned this pull request Jul 5, 2021
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.

2 participants