-
Notifications
You must be signed in to change notification settings - Fork 142
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
Change view logic to emit LifeCycle events #366
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BenoitZugmeyer
force-pushed
the
benoit/view-collected-event
branch
from
April 17, 2020 15:07
ceef0eb
to
c4c1dc2
Compare
This commit takes a different approach on fixing the session id used when sending RUM events right before the session is renewed. Originally, it was fixed in commit 7bc0dfb by storing the session id into the current view. Since the view was recreated when the session was renewed, events sent during a view were guaranteed to have the same session id than the view. The problem with this approach was that the sessionId was unexpectedly stored in the view context, making different parts of the code dependendent to the view logic. This new solution goal is to be more explicit, and simplify the view logic. The current session id (and type) is kept into the rumSession module, to ensure a consistency accross the RUM library. A new lifeCycle event is sent when the view is about to be renewed, but the session id is still the same.
The view logic will be changed to emit lifeCycle events. Like other component emiting lifeCycle events, name the file as "xxCollection"
This change is a first step to decouple the view logic from the Batch implementation.
BenoitZugmeyer
force-pushed
the
benoit/view-collected-event
branch
from
April 17, 2020 15:48
c4c1dc2
to
1a1ecf1
Compare
glorieux
reviewed
Apr 20, 2020
bcaudan
reviewed
Apr 20, 2020
bcaudan
reviewed
Apr 20, 2020
bcaudan
reviewed
Apr 20, 2020
bcaudan
reviewed
Apr 20, 2020
bcaudan
reviewed
Apr 20, 2020
This reverts commit 75eb286. For now, keep the current way we handle session into RUM. We will reconsider this in a future PR.
OK I reverted all session changes, and went back to the |
bcaudan
reviewed
Apr 21, 2020
bcaudan
approved these changes
Apr 21, 2020
mquentin
approved these changes
Apr 21, 2020
BenoitZugmeyer
added a commit
that referenced
this pull request
Apr 22, 2020
This reverts commit 692e9c5.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation: use lifecycle events to create new user actions.