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

SampleBuilder: Remove deprecated functions #2684

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

at-wat
Copy link
Member

@at-wat at-wat commented Feb 29, 2024

Sample returned by Pop() contains PacketTimestamp field now, so PopWithTimestamp() is redundant.
As we're now preparing v4, it's good time to remove it.


Use Sample.PacketTimestamp field instead.

Migration example:

- sample, timestamp := s.PopWithTimestamp()
+ sample := s.Pop()
+ timestamp := sample.PacketTimestamp

SampleBuilder: Remove WithPartitionHeadChecker

Deprecated by #1928

@at-wat at-wat self-assigned this Feb 29, 2024
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.39%. Comparing base (45e3746) to head (a0dec88).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2684      +/-   ##
==========================================
- Coverage   76.42%   76.39%   -0.03%     
==========================================
  Files          87       87              
  Lines        9928     9919       -9     
==========================================
- Hits         7587     7578       -9     
  Misses       1870     1870              
  Partials      471      471              
Flag Coverage Δ
go 77.93% <ø> (-0.03%) ⬇️
wasm 64.51% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@at-wat at-wat force-pushed the samplebuilder/remove-PopWithTimestamp branch from a92fa8c to 8da0197 Compare February 29, 2024 01:42
@at-wat
Copy link
Member Author

at-wat commented Feb 29, 2024

Use Sample.PacketTimestamp field instead.

Migration example:
- sample, timestamp := s.PopWithTimestamp()
+ sample := s.Pop()
+ timestamp := sample.PacketTimestamp

BREAKING CHANGE: SampleBuilder.PopWithTimestamp method is removed
@at-wat at-wat force-pushed the samplebuilder/remove-PopWithTimestamp branch from 8da0197 to 80d13cd Compare March 4, 2024 03:33
@at-wat at-wat changed the title SampleBuilder: Remove PopWithTimestamp SampleBuilder: Remove deprecated functions Mar 4, 2024
Deprecated by #1928

BREAKING CHANGE: samplebuilder.WithPartitionHeadChecker
                 option is removed.
@at-wat at-wat closed this Mar 4, 2024
@at-wat at-wat reopened this Mar 4, 2024
@at-wat at-wat added this to the v4 milestone Mar 7, 2024
@at-wat at-wat requested review from tmatth and digitalix March 11, 2024 03:23
@at-wat at-wat merged commit 34f44c9 into master Mar 14, 2024
26 of 30 checks passed
@at-wat at-wat deleted the samplebuilder/remove-PopWithTimestamp branch March 14, 2024 02:22
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.

None yet

2 participants