-
Notifications
You must be signed in to change notification settings - Fork 103
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
Deprecated filter methods #133
Deprecated filter methods #133
Conversation
fixed issue with OD pricing for european regions (aws#132)
main into sorting
pkg/selector/selector.go
Outdated
@@ -132,6 +132,8 @@ func (itf Selector) Save() error { | |||
|
|||
// Filter accepts a Filters struct which is used to select the available instance types | |||
// matching the criteria within Filters and returns a simple list of instance type strings | |||
// | |||
// Deprecated: This function will no longer exist in the next major version. |
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.
If you know the names of the functions that will replace this in the next version, that would be useful information to include, in order to give consumers of the library guidance on what to expect.
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.
Good idea! I have added the names of the appropriate replacement functions in the deprecated comments.
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
Issue #, if available: none
Description of changes:
In accordance with plans to modify the way in which users interface with the selector, the current
Filter()
,FilterVerbose()
, andFilterWithOutput()
functions found inselector.go
have been labeled as "Deprecated."In the next major version of Instance-Selector, they will be replaced with new functions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.