Skip to content

Only Show Recommended/By Firefox in Devhub #23372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrstinalin
Copy link
Contributor

@chrstinalin chrstinalin commented Apr 25, 2025

Fixes: mozilla/addons#15548

Description

Hides promoted groups other than Recommended/By Firefox from appearing in DevHub --
image
-- But is still visible in Reviewer Tools.
image

Testing

  1. Add 'By Firefox' and/or 'Recommended' group to an add-on.
  2. Add any other promoted groups.
  3. Approve the add-on.
  4. All groups should be visible in reviewer tools.
  5. Only 'By Firefox' and/or 'Recommended' should be visible in DevHub status.

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • Successfully verified the change locally.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.
  • Add before and after screenshots (Only for changes that impact the UI).

@chrstinalin chrstinalin force-pushed the #15548-devhub-promotions branch 3 times, most recently from c0c7bb1 to 6d76b75 Compare April 25, 2025 21:09
@chrstinalin chrstinalin changed the title Prevent non-public groups from appearing in DevHub status Only Show Recommended/By Firefox in Devhub Apr 25, 2025
@chrstinalin chrstinalin requested review from a team and KevinMind and removed request for a team April 25, 2025 21:35
Copy link
Contributor

@KevinMind KevinMind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a database field. Please don't add more logic based on the constants as we should be aiming to remove those from the codebase entirely relatively soon.

@diox
Copy link
Member

diox commented Apr 28, 2025

Is there any reason not to simply follow is_public here ? I don't think developers should see more information than what we're exposing in the API.

@chrstinalin
Copy link
Contributor Author

chrstinalin commented Apr 28, 2025

Is there any reason not to simply follow is_public here ? I don't think developers should see more information than what we're exposing in the API.

That's how I had it originally for this PR, but because of #23373 (comment), spotlight would be visible as well. If that's fine, I'll just revert it back to how I had it. @diox

@chrstinalin chrstinalin force-pushed the #15548-devhub-promotions branch from 0de5dba to 2470ad4 Compare April 28, 2025 13:10
@diox
Copy link
Member

diox commented Apr 28, 2025

mmm, I suggested is_public but actually what we really want here is to only show groups that are badged (checking is_public on top of that shouldn't hurt, but it should be redundant: if a group has a badge, it should be public...) - so Spotlight shouldn't be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Only show Recommended/By Firefox in devhub, never other promoted groups
3 participants