Closed Bug 869595 Opened 12 years ago Closed 12 years ago

Convert price_tier to price and price_locale in search API

Categories

(Marketplace Graveyard :: Search, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-05-23

People

(Reporter: robhudson, Assigned: robhudson)

References

Details

(Whiteboard: p=1)

The Search API (and other APIs as we roll out) needs a way to do efficient lookups of prices that minimizes database queries. The ES index has the price tier for an app and we need to get the price and localized price given the requested user.
Priority: -- → P2
Whiteboard: p=1
Andy tells me this is all I need: Price.objects.get(name=price_tier).get_price(currency=currency) Price.objects.get(name=price_tier).get_price_locale(currency=currency) Changing bug to hook this up to the search API.
Summary: Provide a way to get price and price_locale given price_tier → Convert price_tier to price and price_locale in search API
Assignee: nobody → robhudson.mozbugs
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-05-23
You need to log in before you can comment on or make changes to this bug.