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

Stop setting addons with unlisted versions STATUS_NOMINATED or STATUS_PUBLIC #3996

Merged
merged 1 commit into from
Nov 16, 2016

Conversation

eviljeff
Copy link
Member

@eviljeff eviljeff commented Nov 14, 2016

Also tidy up editors somewhat.
Part of mozilla/addons#3477

@diox
Copy link
Member

diox commented Nov 15, 2016

We do need something to prevent those add-ons from being shown as "Incomplete" in devhub though, right ? Maybe some check on if addon.status == amo.STATUS_NULL and addon.has_complete_metadata() ?

@eviljeff
Copy link
Member Author

mozilla/addons#3483 hides the status indicator for add-ons without listed versions. So this pull is either blocked on that (there are some outstanding Product/UX questions blocking) or we do a workaround for now that does the minimum to avoid developer confusion.

@diox
Copy link
Member

diox commented Nov 15, 2016

Up to you. We need to remember that the same thing needs to be done in both the sidebar and the devhub index that list all your add-ons, though.

@eviljeff
Copy link
Member Author

it's the same template snippet 😃

@eviljeff
Copy link
Member Author

eviljeff commented Nov 15, 2016

sidebar done in #4005 (and my add-ons index though it looks less good)

'addons.status NOT IN (%s, %s)' % (
amo.STATUS_NULL, amo.STATUS_DISABLED)
'addons.status NOT IN (%s)' % (
amo.STATUS_DISABLED)
Copy link
Member

Choose a reason for hiding this comment

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

Could replace the IN now that there is only one value left.

@eviljeff eviljeff force-pushed the unlisted-addon-is-null branch 2 times, most recently from 96c98fd to b151a4a Compare November 16, 2016 17:38
@eviljeff eviljeff merged commit 763a17f into mozilla:master Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants