-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Change the option name from redelivery to requeue #71
Conversation
msmakouz
commented
Nov 21, 2024
•
edited
Loading
edited
Q | A |
---|---|
Bugfix? | ✔️ |
Breaks BC? | ❌ |
New feature? | ❌ |
WalkthroughThe pull request modifies the Changes
Possibly related PRs
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🧹 Outside diff range and nitpick comments (1)
src/Task/ReceivedTask.php (1)
Line range hint
63-63
: Enhance deprecation notice with migration guidanceThe current deprecation notice doesn't provide clear guidance on when to use
nack()
vsrequeue()
. Consider adding more specific migration instructions.- * @deprecated Since v4.5.0, use {@see nack()} or {@see requeue()} instead. + * @deprecated Since v4.5.0, use: + * - {@see nack()} for temporary failures that may be retried + * - {@see requeue()} for explicit requeuing with optional delay
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
src/Task/ReceivedTask.php
(1 hunks)tests/Unit/Task/ReceivedTaskTest.php
(1 hunks)
🔇 Additional comments (2)
src/Task/ReceivedTask.php (1)
Line range hint 12-13
: Documentation is consistent with new naming
The PHPDoc type hint for ErrorData correctly uses the 'requeue' key, maintaining consistency with the implementation.
tests/Unit/Task/ReceivedTaskTest.php (1)
137-137
: Verify implementation alignment
The test now expects 'requeue' in the payload, which implies a change in the ReceivedTask
implementation.
Let's verify the implementation is aligned:
✅ Verification successful
Implementation is correctly aligned
The implementation in ReceivedTask
matches the test expectations. Both ReceivedTask::nack()
and the test use 'requeue' in their payloads:
src/Task/ReceivedTask.php
:'requeue' => $redelivery
tests/Unit/Task/ReceivedTaskTest.php
:'requeue' => $redelivery
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for the nack method implementation and its usages
ast-grep --pattern 'function nack($$$) {
$$$
}'
# Also check for any remaining instances of 'redelivery'
rg 'redelivery' --type php
Length of output: 833