ec2instances.info icon indicating copy to clipboard operation
ec2instances.info copied to clipboard

Cost Display Inconsistency when Filtering

Open miketwo opened this issue 3 years ago • 2 comments

Problem: After switching the cost to "Annually", costs are occassionally displayed as hourly. Steps to reproduce: I can't quite figure out what triggers it, but it happens when I'm filtering by API Name. See the gifs below for some examples. Browser:

Google Chrome | 100.0.4896.127 (Official Build) (64-bit) (cohort: Stable)
Revision | ff0d0695743e65305d7194f9bd309e5e1c824aa0-refs/branch-heads/4896_88@{#4}
OS | Windows 10 Version 21H1 (Build 19043.1645)
JavaScript | V8 10.0.139.15
User Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

cost_discrepancy

cost_switching

miketwo avatar May 03 '22 20:05 miketwo

My guess is that the cost selection changes what's on-screen, but if the filter is broadened, the "new" entries are not displayed correctly.

miketwo avatar May 03 '22 20:05 miketwo

Your guess as to what’s happening looks right. I’ll see if I can get a consistent repro and post it.

EverettBerry avatar May 03 '22 20:05 EverettBerry

What's happening here is that in each gif the rows shown on the page don't change. As in, it's the same 1 row in the first gif and same 5 rows in the second gif. The code looks for new rows to update and so when it doesn't find any it skips the update and the rows get reset to the default value.

There's a seemingly related issue where you can have a URL like https://instances.vantage.sh/?cost_duration=monthly and while the displayed data will be monthly the dropdown will show hourly.

EverettBerry avatar Nov 08 '22 02:11 EverettBerry

Same issue as #687

EverettBerry avatar Apr 30 '23 16:04 EverettBerry