You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support multiple PromotedGroup per PromtedAddonPromotion in order to query the details of the aggregate promoted groups we need an interface that will return the correct data depending on both the property being queried and the set of PromotedGroups associated with the addon.
Example interface could look like
addon=Addon.objects.get(pk=1)
# Get the promoted addon search bump should return the highest value for all Promoted groupsaddon.promotedaddon.properties(currently_approved=True).search_ranking_bump# Effectively the same as thismax(PromotedGroup.objects.filter(addon=addon).values_list('search_ranking_bump'))
# Though it's a bit more complicated with `currently_approved` which would have to get PromotedGroup via PromotedAddonVersionmax(PromotedAddonVersion.objects.filter(version=addon.current_version).values_list('promoted_group__search_ranking_bump'))
Acceptance Criteria
The content you are editing has changed. Please copy your edits and refresh the page.
Description
To support multiple
PromotedGroup
perPromtedAddonPromotion
in order to query the details of the aggregate promoted groups we need an interface that will return the correct data depending on both the property being queried and the set ofPromotedGroups
associated with the addon.Example interface could look like
Acceptance Criteria
Milestones/checkpoints
Checks
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: