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

Deprecated filter methods #133

Merged
merged 11 commits into from
Jun 27, 2022

Conversation

digocorbellini
Copy link
Contributor

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(), and FilterWithOutput() functions found in selector.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.

@digocorbellini digocorbellini requested a review from AustinSiu June 24, 2022 17:52
@digocorbellini digocorbellini self-assigned this Jun 24, 2022
@digocorbellini digocorbellini requested a review from a team as a code owner June 24, 2022 17:52
@@ -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.
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@snay2 snay2 left a comment

Choose a reason for hiding this comment

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

lgtm

@digocorbellini digocorbellini merged commit 8ac398b into aws:main Jun 27, 2022
@digocorbellini digocorbellini deleted the deprecated-filter-methods branch July 28, 2022 19:40
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.

2 participants