Skip to content

cleanup(pubsub)!: remove explicit nack#4549

Merged
haphungw merged 3 commits intogoogleapis:mainfrom
haphungw:fix-auto-nack-v2
Feb 4, 2026
Merged

cleanup(pubsub)!: remove explicit nack#4549
haphungw merged 3 commits intogoogleapis:mainfrom
haphungw:fix-auto-nack-v2

Conversation

@haphungw
Copy link
Copy Markdown
Contributor

@haphungw haphungw commented Feb 4, 2026

Simplify the pubsub subscriber API by removing the explicit nack method and replacing it with an idiomatic Drop implementation. Update unit tests and documentation accordingly.

Fixes #4514

@haphungw haphungw requested a review from a team February 4, 2026 07:48
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Feb 4, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.02%. Comparing base (b96b407) to head (66ce6c8).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4549      +/-   ##
==========================================
- Coverage   95.02%   95.02%   -0.01%     
==========================================
  Files         195      195              
  Lines        7456     7451       -5     
==========================================
- Hits         7085     7080       -5     
  Misses        371      371              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…e handlers

Simplify the pubsub subscriber API by removing the explicit
`nack`` method and replacing it with an idiomatic `Drop` implementation.
Update unit tests and documentation accordingly.

Fixes googleapis#4514
Copy link
Copy Markdown
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks

coryan and others added 2 commits February 4, 2026 16:50
This leaves out `gax`, `gaxi`, and `wkt`. All of the require changes to
the generator.
@dbolduc dbolduc changed the title refactor(pubsub): replace explicit nack with drop for message handlers cleanup(pubsub)!: remove explicit nack Feb 4, 2026
@dbolduc
Copy link
Copy Markdown
Member

dbolduc commented Feb 4, 2026

FYI: I changed the PR title to include a ! which signals a breaking change, as we are removing a method from the API. Note that this is a preview version, so breaking changes are allowed / expected.

@haphungw haphungw enabled auto-merge (squash) February 4, 2026 17:30
@haphungw haphungw merged commit f1f8b72 into googleapis:main Feb 4, 2026
34 checks passed
@haphungw haphungw deleted the fix-auto-nack-v2 branch April 4, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pub/Sub - Nack messages on drop of handler

3 participants