numo-labs / isearch-ui

:yellow_heart: :mag: The ui for inspirational search!
GNU General Public License v3.0
7 stars 7 forks source link

Hotels with no rating #391

Closed emiledskar closed 8 years ago

emiledskar commented 8 years ago

To ensure a full fix for the issue being opened can you please provide:

Screenshot

Expected Behaviour

Each hotel has a rating.

Actual Behaviour

Some hotels does not have any rating, or it looks as of they have a rating of 0

Further Information

usabilla issue

tomgco commented 8 years ago

I can confirm that this is happening for me on 1.0.23 but not on prod.

I have a feeling that this might be due to the dynamic package provider.

tomgco commented 8 years ago

By having a look at an affected tile https://s3-eu-west-1.amazonaws.com/numo-search-results/ci/56748180-4a6f-11e6-b241-e79f82ac3332/183766.json I can see that star rating is set to 0.

So this might be due to a lack of data from the actual API itself meaning we can't really do much about it, if this is the case.

tomgco commented 8 years ago

Digging deeper it seems that all star ratings are based on the guest rating, which if some have not been reviewed, might be 0.

https://github.com/numo-labs/lambda-ne-classic-package-provider/blob/f07780db6c0fecf392f54799424e880afbd7141e/lib/result_mapper.js#L125

Maybe we can switch to the "doubledRating" field and half it?

emiledskar commented 8 years ago

Ah okey, so there is no field that correspond directly to the rating we are seeing on the spies.dk website? The same hotel at spies.dk is displaying a rating of 4 stars.

I can confirm that I have seen this behaviour on prod as well, at least on desktop. usabilla

tomgco commented 8 years ago

Once these: https://github.com/numo-labs/lambda-ne-classic-package-provider/pull/112 and https://github.com/numo-labs/lambda-ne-dynamic-package-provider/pull/4 get merged the issue should be resolved.

lennym commented 8 years ago

Once these: numo-labs/lambda-ne-classic-package-provider#112 and numo-labs/lambda-ne-dynamic-package-provider#4 get merged the issue should be resolved.

Both merged now

tomgco commented 8 years ago

Should now be fixed, I am closing this issue.