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

Fix negative DelaySeconds being passed to parameter. #107

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

kyto64
Copy link
Contributor

@kyto64 kyto64 commented Dec 12, 2023

Resolves #106

Description of changes:

I fixed delay time to be 0 seconds when no delay or negative delay is set.

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

Copy link
Contributor

@alextwoods alextwoods left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@mullermp
Copy link
Contributor

Could we fix Rubocop please?

Keito Kira added 2 commits December 13, 2023 07:28
```
Inspecting 53 files
........................C............................

Offenses:

lib/generators/aws_record/base.rb:150:9: C: [Corrected] Style/HashEachMethods: Use each_key instead of each and remove the unused _rw_units block argument.
        options['table_config'].each do |config, _rw_units| ...
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

53 files inspected, 1 offense detected, 1 offense corrected

Tip: Based on detected gems, the following RuboCop extension libraries might be helpful:
  * rubocop-rails (https://rubygems.org/gems/rubocop-rails)

You can opt out of this message by adding the following to your config (see https://docs.rubocop.org/rubocop/extensions.html#extension-suggestions for more options):
  AllCops:
    SuggestExtensions: false
```
@kyto64
Copy link
Contributor Author

kyto64 commented Dec 12, 2023

Could we fix Rubocop please?

fixed.

@mullermp @alextwoods
Could you approve the PR again?

Copy link
Contributor

@alextwoods alextwoods left a comment

Choose a reason for hiding this comment

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

LGTM!

@kyto64 kyto64 changed the title Fix negative delay. Fix negative DelaySeconds being passed to parameter. Dec 13, 2023
@mullermp mullermp merged commit debec32 into aws:main Dec 13, 2023
35 checks passed
@mullermp
Copy link
Contributor

Thanks for your contribution. I forgot this needs a changelog entry. I'll add one. I can try to get a release out this week if not next week.

@kyto64 kyto64 deleted the fix-negative-delay branch December 13, 2023 23:41
@kyto64
Copy link
Contributor Author

kyto64 commented Dec 19, 2023

@mullermp
Hi, how is your progress?
We would appreciate it if you could release it as soon as possible.
Thanks.

@mullermp
Copy link
Contributor

I'm sorry, I got caught up with other things. I will do this today.

@mullermp
Copy link
Contributor

Released as 3.9.1

@kyto64
Copy link
Contributor Author

kyto64 commented Dec 20, 2023

Thanks.

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.

Negative delay seconds are passed to the DelaySeconds parameter when setting a 0-second delay.
3 participants