-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: add enableRetries and disableRetries #156
Conversation
7c43144
to
3c29f51
Compare
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.
I left a bunch of picky comments about potentially changing variable names. Sorry for that, but I think it will help us maintain our own sanity if we're super clear about the two different types of "retry config".
@barrett-schonefeld I sent this info on Slack but wanted to capture it here - the reason behind your The code itself looks good, you will just need to update the mock for the tests accordingly. You can re-add your setter as well, you'll just need to do the same thing |
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.
Looks great! I left a couple comments and I'll wait for tests to approve but the code changes and looking solid 👍
a8912f5
to
242b345
Compare
242b345
to
9d16bcb
Compare
57e2456
to
7d950e8
Compare
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.
This looks great! I left a few comments on things to check before merging but nothing major
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.
We seem to be getting closer and closer. Need to fix the value of retryDelay inside getRaxConfig(). I'll approve now assuming that's fixed.
Rut roh, i see that the build failed with lint errors :( |
... and I think you have more instances of that mock-related "this isn't a function" type errors :) |
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.
Sorry, but I need to rescind my previous approval :) Please update BaseService.configureService() so that it supports the "ENABLE_RETRIES", "MAX_RETRIES" and "RETRY_INTERVAL" external config properties. You can look at BaseService.ConfigureService() in the Go core for a reference.
Also, we'll need to make sure those changes to configureService() are tested.
b1c7a5d
to
bdc49ed
Compare
bdc49ed
to
ab01872
Compare
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.
Getting closer. We need some changes around the support of external config properties and I also requested some additional tests.
d359d18
to
9bd7f29
Compare
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.
LGTM!
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.
Looks good! 👍
# [2.14.0](v2.13.0...v2.14.0) (2021-08-27) ### Features * add enableRetries and disableRetries ([#156](#156)) ([d6f12e7](d6f12e7))
🎉 This PR is included in version 2.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I fixed some type-related issues as well. I successfully resolved a couple of type-related issues (not bugs but improvements to type safety).
Checklist
npm test
passes (tip:npm run lint-fix
can correct most style issues)