Skip to content
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

Add-ons with only unlisted versions should have a status of ... ? #3708

Closed
eviljeff opened this issue Nov 1, 2016 · 4 comments
Closed

Add-ons with only unlisted versions should have a status of ... ? #3708

eviljeff opened this issue Nov 1, 2016 · 4 comments
Labels
repository:addons-server Issue relating to addons-server

Comments

@eviljeff
Copy link
Member

eviljeff commented Nov 1, 2016

Part of #3477

Currently you have the following scenarios:

  • Listed add-ons are
    • STATUS_NULL with no versions or incomplete meta-data
    • STATUS_NOMINATED with 1 version STATUS_AWAITING_REVIEW and no versions STATUS_PUBLIC
    • STATUS_PUBLIC with >1 versions STATUS_PUBLIC
  • Unlisted add-ons are
    • STATUS_NULL with no versions
    • STATUS_PUBLIC with >1 versions

Soon we will have add-ons like:

  • An add-on with no versions:
    • STATUS_NULL
  • An add-ons with only listed versions:
    • STATUS_NULL with incomplete meta-data
    • STATUS_NOMINATED with 1 version STATUS_AWAITING_REVIEW and no versions STATUS_PUBLIC
    • STATUS_PUBLIC with >1 versions STATUS_PUBLIC
  • An add-on with a mix of unlisted/listed versions
    • STATUS_NULL with >1 listed versions and >1 unlisted versions and incomplete meta-data
    • STATUS_NOMINATED with 1 listed version STATUS_AWAITING_REVIEW and no listed versions STATUS_PUBLIC and >1 unlisted versions.
  • An add-on with only unlisted versions:
    • STATUS_NULL with >1 versions STATUS_PUBLIC
@eviljeff
Copy link
Member Author

eviljeff commented Nov 1, 2016

What should the STATUS_??? be? (edit comment0 when we're decided)

I guess for

STATUS_??? with 1 listed version STATUS_AWAITING_REVIEW and no listed versions STATUS_PUBLIC and >1 unlisted versions.

it should be STATUS_NOMINATED. But for the other two? STATUS_NULL ? Seems wrong.

@jvillalobos
Copy link

It seem like the global status doesn't matter for unlisted add-ons, except when it's Disabled by Mozilla. With that in mind, your proposal sounds good.

@diox
Copy link
Member

diox commented Nov 2, 2016

STATUS_NULL could work, it has a special meaning in a couple places, we'd need to check that it's ok. I know deletion code uses that to check whether the add-on should be soft or hard delete, but it does check whether the add-on has versions or not too so it should be ok, I think.

@eviljeff
Copy link
Member Author

eviljeff commented Nov 2, 2016

Updated comment 0 to effectively ignore unlisted versions where working out the status. Will likely cause some edge cases.

@eviljeff eviljeff closed this as completed Nov 2, 2016
@KevinMind KevinMind transferred this issue from mozilla/addons-server May 4, 2024
@KevinMind KevinMind added repository:addons-server Issue relating to addons-server migration:2024 labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repository:addons-server Issue relating to addons-server
Projects
None yet
Development

No branches or pull requests

5 participants