-
Notifications
You must be signed in to change notification settings - Fork 183
Cleanup before v1.0 #58
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
Conversation
ryandeivert
left a comment
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.
Nice work on this!
| # In order to prevent spurious alerts about new S3 objects, we report S3 objects from | ||
| # the previous Lambda version as well. | ||
| previous_s3_objects = {} | ||
| previous_s3_objects: Set[str] = set() |
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.
super interesting syntax for this
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.
Yeah, I actually didn't realize for awhile that you could annotate variables. But that explains why method arguments are annotated the same way (with default values), e.g.
def func(path: Optional[str] = None)
A collection of minor code cleanups before releasing v1.0 of BinaryAlert!
Bug Fixes
terraform initis required before any other terraform operation (fixes deploys; thanks @fusionrace for flagging)pip installof downloader dependenciesCode Changes
last_seenandwebui_linkto CarbonBlack metadata saved in the downloaderboto3resources when applicable to simplify the code (resolves: Use higher-level boto3 resources #42)mypy(resolves: Use type annotations #34)Terraform Changes
force_destroyvariable to optionally allow completeterraform destroyof S3 bucketsTest Changes
motocompletelyTested
Reviewers
to: @ryandeivert
cc: @airbnb/binaryalert-maintainers