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

feat(normalization): Use exposed device-class-synthesis feature flag to gate device.class synthesis in light normalization #1974

Merged

Conversation

edwardgou-sentry
Copy link
Contributor

Uses the exposed organizations:device-class-synthesis sentry feature flag to gate synthesis of the device.class tag. This is a temporary flag for managing rollout to EA users and eventually to be removed for GA release.

@edwardgou-sentry edwardgou-sentry marked this pull request as ready for review March 28, 2023 20:15
@edwardgou-sentry edwardgou-sentry requested review from a team March 28, 2023 20:15
Comment on lines +753 to +755
if config.device_class_synthesis_config {
normalize_device_class(event);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume this PR is related to #1970. This will only normalize device.class when the feature flag is enabled for the project, so the functionality your other PR does won't run for organizations with the feature flag disabled. It will also skip other functionality, so no device.class tags will exist on events. Is this what you want?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @iker-barriocanal , yup this is the effect we're looking for. We're starting to rollout device class to customers and we want to be able to turn off this functionality in case the classifications are wrong or something breaks.

Copy link
Contributor

@iker-barriocanal iker-barriocanal left a comment

Choose a reason for hiding this comment

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

Please update the context of this PR to normalization from mobile, and address the other comments before merging. Thanks for contributing!

py/CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
relay-general/src/store/normalize.rs Show resolved Hide resolved
@edwardgou-sentry edwardgou-sentry changed the title feat(mobile): Use exposed device-class-synthesis feature flag to gate device.class synthesis in normalize feat(normalization): Use exposed device-class-synthesis feature flag to gate device.class synthesis in normalize Mar 30, 2023
@edwardgou-sentry edwardgou-sentry changed the title feat(normalization): Use exposed device-class-synthesis feature flag to gate device.class synthesis in normalize feat(normalization): Use exposed device-class-synthesis feature flag to gate device.class synthesis in light normalization Mar 30, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
@edwardgou-sentry edwardgou-sentry merged commit 01299a5 into master Mar 31, 2023
@edwardgou-sentry edwardgou-sentry deleted the egou/feat/gate-device-class-synthesis-by-exposed-flag branch March 31, 2023 14:23
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.

None yet

2 participants