mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
128 stars 41 forks source link

[Task]: Do not expose information about an add-on being Notable or Strategic in API #14987

Open abyrne-moz opened 2 months ago

abyrne-moz commented 2 months ago

Description

In the public API, a Notable or Strategic add-on should not show its state in promoted.categories. Accordingly, the add-ons search should not return any Notable, Strategic or Partner add-ons, even if queried for that.

Acceptance Criteria

### Milestones/checkpoints
- [ ] Do not display if an add-on is `Notable` in the public API
- [ ] Do not display if an add-on is `Strategic` in the public API
- [ ] Do not display if an add-on is `Partner` in the public API
- [ ] Do not allow the querying for Notable, Strategic, or Partner add-ons via AMO Search

Checks

┆Issue is synchronized with this Jira Task

eviljeff commented 2 months ago

@abyrne-moz to confirm, only Notable is excluded; all other promoted classes (strategic, etc) are to be exposed as now?

abyrne-moz commented 2 months ago

I spoke to Andreas about this, and we should exclude Strategic as well please. I'll update the description to reflect this.

wagnerand commented 2 months ago

What about sponsored and verified?

abyrne-moz commented 2 months ago

I thought these categories were no longer used and didn't apply to any current add-ons. If this is correct, is there any reason to do this? Or did I misunderstand.

eviljeff commented 2 months ago

Note, sponsored and verified were specifically meant to be exposed, and the presence of those promoted groups is used by frontend too, including as part of the "badged" pseudo-group. If the ask is to completely remove support for verified and sponsored please file as a separate issue, as it's a larger scope.

wagnerand commented 2 months ago

Note, sponsored and verified were specifically meant to be exposed, and the presence of those promoted groups is used by frontend too, including as part of the "badged" pseudo-group. If the ask is to completely remove support for verified and sponsored please file as a separate issue, as it's a larger scope.

The ask is not to remove, the ask is to be aware of the categories and make a conscious decision about them, like I did in https://github.com/mozilla/addons/issues/14980. That issue also specifies that sponsored and verified keep being exposed.

eviljeff commented 2 months ago

Note, sponsored and verified were specifically meant to be exposed, and the presence of those promoted groups is used by frontend too, including as part of the "badged" pseudo-group. If the ask is to completely remove support for verified and sponsored please file as a separate issue, as it's a larger scope.

The ask is not to remove, the ask is to be aware of the categories and make a conscious decision about them, like I did in #14980. That issue also specifies that sponsored and verified keep being exposed.

14980 is closed and not a dependency of this issue. If you think there is something from that issue which is relevant here - like needing to enumerate every promoted group and stating if that group should be exposed or not - can you (or Alan) update the description?

chrstinalin commented 1 week ago

@abyrne-moz Would partner add-ons (once added as part of #14986) be included in this as well?

abyrne-moz commented 1 week ago

Yes please - I've updated the description to reflect this