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

fix(server): Normalize user reports during ingestion #903

Merged
merged 4 commits into from
Jan 13, 2021

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Jan 7, 2021

Sentry requires that user reports always have a non-null email, name, and
comments. This ensures that we create these fields with empty strings if they
are missing or null.

@jan-auer jan-auer requested a review from a team January 7, 2021 08:57
@jan-auer jan-auer self-assigned this Jan 7, 2021

let json_string = match serde_json::to_string(&report) {
Ok(json) => json,
Err(_) => return false,
Copy link
Member

Choose a reason for hiding this comment

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

I would also log this under a distinct error message, serialization error is more fatal than deserialization error.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 can do, and will also add it to sessions. This falls under should-never-happen.

* master:
  deploy(docker): Add prestart endpoint to docker-entrypoint (#900)
  ci(release): Enable the CalVer flag for release (#906)
  ci(release): it is Release
  ci(release): Fix release yaml indents
  ci(release): Upgrade action-prepare-release to latest version (#905)
@jan-auer jan-auer merged commit a2af6ec into master Jan 13, 2021
@jan-auer jan-auer deleted the fix/normalize-user-reports branch January 13, 2021 12:28
jan-auer added a commit that referenced this pull request Jan 13, 2021
* master:
  fix(server): Normalize user reports during ingestion (#903)
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