-
Notifications
You must be signed in to change notification settings - Fork 233
fix(WaitForProcessing): Shutdown option WaitForProcessing never entered on subscription close
#2118
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
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
@feywind would be great if you could review this change. Linting and tests pass locally. However, the original |
|
Thank you for this, that is a great catch. I feel like something should've caught this, but falsy is as falsy does... |
I'm okay with it being a patch release since it's a bug in the intended behaviour. The fix would actually bring it closer to where it was before the shutdown options change. I will double-check though. |
|
I was hoping to avoid having to merge, but the test looks stuck. |
d0c7096
|
There was a legit bug in the system test that this exposed. Two, really, if you count the Duration change from before. Yay! Unfortunately I will have to see who's around for approvals. |
Yay! Glad this helped! I would agree with your point about the patch release although it might make sense to still point it out in the changelog that only with the patch release the default behavior actually changed |
As outlined in #2117, the condition to enter the
WaitForProcessingclosing behavior of a subscription was checking against anundefinedfield.isEmptyof the inventory instead of checking for theisEmpty()method of the inventory.In unit tests this went unnoticed since the field was set accordingly in the class under test.
This implicitly changes the default behavior of the subscription close functionality since the previous PR that introduced this functionality (#2068) changed the default behavior without effect as the condition was never entered during
close().Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #2117 🦕