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

Handle missing networkPerformance and "X Gpbs" #871

Conversation

agrare
Copy link
Member

@agrare agrare commented Oct 28, 2024

The updated AWS database instance types list has some depreacted types without a networkPerformance value.

The old code also wasn't properly handling the "X Gpbs" value only "X Gigabit" which was causing some values to be set as :20_gbps instead of :very_high

The updated AWS database instance types list has some depreacted types
without a networkPerformance value.

The old code also wasn't properly handling the "X Gpbs" value only "X
Gigabit" which was causing some values to be set as `:20_gbps` instead
of `:very_high`
@agrare agrare added the bug label Oct 28, 2024
@agrare agrare requested a review from Fryguy as a code owner October 28, 2024 14:47
Comment on lines +11 to +12
network_performance = instance["networkPerformance"]
network_performance = network_performance.match?(/(\d+ Gigabit)|(\d+ Gbps)/) ? :very_high : network_performance.downcase.tr(' ', '_').to_sym if network_performance
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure that :very_high is better than :25_gigabit especially with the number of >1gbps continuing to increase we're losing out on some valuable information. I figured I'd fix it so that we were consistent then change it in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually it looks like we don't display this anywhere...

@agrare agrare closed this Oct 28, 2024
@agrare agrare deleted the fix_aws_database_types_nil_network_performance branch October 28, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant