Skip to content

Conversation

@t3chguy
Copy link
Member

@t3chguy t3chguy commented Nov 4, 2022

Reverts #2848

Reverting due to it not working for notification timeline sets - causing downstream breakages https://dashboard.cypress.io/projects/ppvnzg/runs/5793/test-results/3be6d26d-bc97-4167-b966-a0c7aa2a6930


This change is marked as an internal change (Task), so will not be included in the changelog.

@t3chguy t3chguy added the T-Task Tasks for the team like planning label Nov 4, 2022
@t3chguy t3chguy requested a review from a team as a code owner November 4, 2022 12:20
@t3chguy t3chguy requested review from duxovni and weeman1337 November 4, 2022 12:20
@t3chguy t3chguy merged commit c1a3b95 into develop Nov 4, 2022
@t3chguy t3chguy deleted the revert-2848-madlittlemods/no-addEventToTimeline-mixing branch November 4, 2022 12:21
MadLittleMods added a commit that referenced this pull request Nov 7, 2022
…2856)

Add checks to `addEventToTimeline` as extra insurance that we don't mix events in the wrong timelines (main timeline vs thread timeline).

Split out from #2521

This PR is a v2 of #2848 since it was reverted in #2853

Previously, we just relied on the callers to make sure they're doing the right thing and since it's easy to get it wrong, we mixed and bugs happened.

Call stacks for how events get added to a timeline:

 - `TimelineSet.addEventsToTimeline` -> `TimelineSet.addEventToTimeline` -> `Timeline.addEvent`
 - `TimelineSet.addEventToTimeline` -> `Timeline.addEvent`
 - `TimelineSet.addLiveEvent` -> `TimelineSet.addEventToTimeline` -> `Timeline.addEvent`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants