Skip to content

feat(general): Indicate if OS-version may be frozen - #1945

Merged
TBS1996 merged 9 commits into
masterfrom
feat/indicatefrozen
Mar 17, 2023
Merged

TBS1996 merged 9 commits into
masterfrom
feat/indicatefrozen

Conversation

@TBS1996

@TBS1996 TBS1996 commented Mar 16, 2023 •

Copy link
Copy Markdown
Contributor

Implements the following Sentry-PR: getsentry/sentry#45369

Figured relay would be a better fit, a benefit to implementing it in relay is that the OS-version is only potentially frozen if it's from the user-agent, not from the client hints, which is easier to figure out here.

Annotated::new((
Annotated::new("user-agent".to_string().into()),
Annotated::new(r#"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"#.to_string().into()),
Annotated::new(r#"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"#.to_string().into()),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since I wanted to test this functionality in a separate test, I changed the version here so that it wouldn't trigger the '>=' prefix

@TBS1996
TBS1996 marked this pull request as ready for review March 16, 2023 13:40
@TBS1996
TBS1996 requested a review from a team March 16, 2023 13:40
@AbhiPrasad

Copy link
Copy Markdown
Contributor

Before we decide to take this option, what about the option of adding extra metadata that we can render in the UI?

So if we detect that an os-version may be frozen, we send additional info down with the event that the UI/product can use to indicate this (maybe even tell people about client hints).

@TBS1996

TBS1996 commented Mar 16, 2023

Copy link
Copy Markdown
Contributor Author

Before we decide to take this option, what about the option of adding extra metadata that we can render in the UI?

So if we detect that an os-version may be frozen, we send additional info down with the event that the UI/product can use to indicate this (maybe even tell people about client hints).

like a tooltip info giving some more info sounds good to me, although I don't think our users can do much about it. If the end-user doesn't have client hints they would have to switch to a browser that supports it.

would it be too primitive to simply do an equality check in the UI? if version == ">=10" then show tooltip?

@AbhiPrasad

Copy link
Copy Markdown
Contributor

would it be too primitive to simply do an equality check in the UI? if version == ">=10" then show tooltip?

I think this makes a lot of sense to me. We should probably then create a GH issue to track this after this gets merged in!

@jjbayer jjbayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me! Please also add a unit test for the Windows case.

@TBS1996
TBS1996 requested a review from jjbayer March 17, 2023 09:13

@iker-barriocanal iker-barriocanal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@TBS1996
TBS1996 merged commit 0d52aad into master Mar 17, 2023
@TBS1996
TBS1996 deleted the feat/indicatefrozen branch March 17, 2023 12:07
jan-auer added a commit that referenced this pull request Mar 20, 2023
* master:
  ref(project): Inject services into  the `Project` (#1928)
  feat(general): Indicate if OS-version may be frozen (#1945)
  ref(server): Move Envelope into EnvelopeContext (#1936)
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.

4 participants