threefoldtecharchive / tfgrid_dashboard

unified portal + explorer
1 stars 3 forks source link

TF Resource Pricing Bug #539

Closed Mik-TF closed 1 year ago

Mik-TF commented 1 year ago

Bug: Resource Pricing Calculator

The Resource Pricing Calculator does not show the correct price when changing MRU.

The best way to explain is to show this video made by Teis on the TF telegram channel: https://t.me/threefold/39887

Or to look at the screenshots here:

Screen Shot 2023-03-02 at 8 39 12 PM

Screen Shot 2023-03-02 at 8 39 30 PM

It costs less having 9 MRU than 1.

Note: If this has already been reported, I will delete this issue.

Mik-TF commented 1 year ago

@xmonader If you can have a look. Thanks!

A-Harby commented 1 year ago

Verified on Devnet, v1.4.0-rc5. Values are calculated correctly and even when changes occurs to the inputs. image image

Mik-TF commented 1 year ago

Looks good on my end when I re-enter the whole parameters.

But when you put 1 CRU 1 MRU 15 SRU 0 MRU, then you change just the MRU to 9, it doesn't change to the proper value.

This is with dashboard.grid.tf

dash1

dash2

With dashboard.test.grid.tf sometimes it works, sometimes not:

Here it doesn't work properly:

dash3

dash4

Mik-TF commented 1 year ago

It looks like, to have the proper numbers, the user needs to re-enter all the parameters at once. If you just change one parameter, it doesn't always show the correct numbers.

@A-Harby

let me know if you have the same results on your end. Thanks!

A-Harby commented 1 year ago

This is with dashboard.grid.tf

With dashboard.test.grid.tf

Okay so this was fixed in Dev network only and haven't been released yet on the test or main network.

Mik-TF commented 1 year ago

@A-Harby OK! That makes sense.

Thanks.