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

[recorder] set 'hasReplay' to undefined by default #697

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

BenoitZugmeyer
Copy link
Member

Motivation

session.has_replay should not be set if the record has not been started, to be consistent with the RUM bundle without recorder.

This change only affects the recorder with flag postpone_start_recording.

Changes

Set hasReplay to undefined by default.
Adjust typings to enforce this.

Testing

Unit


I have gone over the contributing documentation.

This change only affects the recorder with flag
`postpone_start_recording`.  `session.has_replay` should not be set if
the record has not been started, to be consistent with the RUM bundle
without recorder.
@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner January 22, 2021 10:03
@BenoitZugmeyer BenoitZugmeyer changed the title [recorder] set 'hasReplay' to undefined by defaultb [recorder] set 'hasReplay' to undefined by default Jan 22, 2021
Copy link
Contributor

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

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

LGTM

@bcaudan bcaudan merged commit 3898655 into master Jan 22, 2021
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/set-is-recording-to-undefined-by-default branch January 22, 2021 11:52
kcaffrey pushed a commit to WonderInventions/browser-sdk that referenced this pull request Jan 29, 2021
This change only affects the recorder with flag
`postpone_start_recording`.  `session.has_replay` should not be set if
the record has not been started, to be consistent with the RUM bundle
without recorder.
kcaffrey added a commit to WonderInventions/browser-sdk that referenced this pull request Jan 29, 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.

4 participants