Skip to content

RUM-891 Unit test to confirm SR records order is kept when having same timestamps#1659

Merged
mariusc83 merged 1 commit into
developfrom
mconstantin/rum-891/make-sure-the-order-is-kept-for-records-with-same-timestamp
Oct 4, 2023
Merged

RUM-891 Unit test to confirm SR records order is kept when having same timestamps#1659
mariusc83 merged 1 commit into
developfrom
mconstantin/rum-891/make-sure-the-order-is-kept-for-records-with-same-timestamp

Conversation

@mariusc83

@mariusc83 mariusc83 commented Oct 4, 2023

Copy link
Copy Markdown
Member

What does this PR do?

We have situations where we have to send records with same timestamp (dummy records) when the view is changed to comply with the browser sdk - player way of working (FocusRecord, MetaRecord, ViewPortRecord) and we wanted to make sure that whenever they are read back from the batch to be sent the order is kept.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@mariusc83 mariusc83 self-assigned this Oct 4, 2023
@mariusc83
mariusc83 requested a review from a team as a code owner October 4, 2023 11:13
@mariusc83 mariusc83 changed the title RUM-891 Unit test to confirm SR records order is kept when having sam… RUM-891 Unit test to confirm SR records order is kept when having same timestamps Oct 4, 2023
@codecov-commenter

codecov-commenter commented Oct 4, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1659 (bd12c1e) into develop (c757420) will decrease coverage by 0.12%.
Report is 17 commits behind head on develop.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1659      +/-   ##
===========================================
- Coverage    83.86%   83.74%   -0.12%     
===========================================
  Files          456      456              
  Lines        15692    15692              
  Branches      2346     2346              
===========================================
- Hits         13160    13141      -19     
- Misses        1922     1928       +6     
- Partials       610      623      +13     

see 17 files with indirect coverage changes

0xnm
0xnm previously approved these changes Oct 4, 2023

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.

minor: this file should be called BatchesToSegmentsMapperTest instead, because class under test is called BatchesToSegmentsMapper

@mariusc83
mariusc83 force-pushed the mconstantin/rum-891/make-sure-the-order-is-kept-for-records-with-same-timestamp branch from e8ef749 to bd12c1e Compare October 4, 2023 13:49
@mariusc83
mariusc83 requested a review from 0xnm October 4, 2023 14:12
@mariusc83
mariusc83 merged commit b923bbe into develop Oct 4, 2023
@mariusc83
mariusc83 deleted the mconstantin/rum-891/make-sure-the-order-is-kept-for-records-with-same-timestamp branch October 4, 2023 14:22
@xgouchet xgouchet added this to the 2.3.0 milestone Dec 13, 2023
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