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

Use stable sort for ordering events/actions #637

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

probberechts
Copy link
Member

When two events or actions have identical timestamps, we should keep the order in the original data. However, since the default sorting algorithm used by Panda's sort_values-method is not stable, the order of such events or actions could get switched.

@probberechts probberechts added the bug Something isn't working label Dec 29, 2023
@probberechts probberechts changed the title fix: use stable sort for ordering events/actions Use stable sort for ordering events/actions Dec 29, 2023
When two events or actions have identical timestamps, we should keep the order
in the original data. However, since the default sorting algorithm used by
Panda's sort_values-method is not stable, the order of such events or actions
could get switched.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (89e6530) 82.93% compared to head (ce09cb1) 82.93%.
Report is 10 commits behind head on release/v1.5.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff              @@
##           release/v1.5     #637   +/-   ##
=============================================
  Coverage         82.93%   82.93%           
=============================================
  Files                47       47           
  Lines              3445     3445           
  Branches            568      568           
=============================================
  Hits               2857     2857           
  Misses              493      493           
  Partials             95       95           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@probberechts probberechts merged commit 23be2f1 into release/v1.5 Dec 29, 2023
20 checks passed
@probberechts probberechts deleted the fix/stable-sort branch December 29, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants