Skip to content

Conversation

digocorbellini
Copy link
Contributor

@digocorbellini digocorbellini commented Jun 28, 2022

Issue #, if available:

Description of changes:
The responsibilities of the Filter(), FilterVerbose(), and FilterWithOutput() functions in selector.go have been replaced with FilterInstanceTypes(), which fetches a filtered list of instance types details, and now if instance types must need to be outputted, the appropriate output function in outputs.go must be called. TruncateResults has also been moved to outputs.go and made public.

Refreshing of pricing caches has been moved from solely occurring in main to also occurring in FilterInstanceTypes(). This allows library users to also get OD and spot pricing information when they request filtered instance types.

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 28, 2022 17:40
@digocorbellini digocorbellini requested a review from a team as a code owner June 28, 2022 17:40
@digocorbellini digocorbellini self-assigned this Jun 28, 2022
@digocorbellini digocorbellini requested a review from bwagner5 July 6, 2022 19:12
Copy link
Contributor

@bwagner5 bwagner5 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 fd78895 into aws:main Jul 6, 2022
AustinSiu added a commit to AustinSiu/amazon-ec2-instance-selector that referenced this pull request Jul 11, 2022
AustinSiu added a commit that referenced this pull request Jul 11, 2022
* Revert "updated readme (#136)"

This reverts commit 8d513bc.

* Revert "Refactoring of Filter functions (#134)"

This reverts commit fd78895.
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.

3 participants