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 experimental addon flag to submission, edit listing; #3178

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

eviljeff
Copy link
Member

@eviljeff eviljeff commented Jul 26, 2016

show different install button; degrade search ranking. Fixes mozilla/addons#3290

@eviljeff
Copy link
Member Author

@jvillalobos is the copy okay? I can add screenshots if that helps.

@@ -98,6 +98,10 @@
This add-on has been preliminarily reviewed by Mozilla.
<a href="{{ url }}">Learn more</a>
{% endtrans %} </p>
{% elif b.experimental %}
<p class="warning">{% trans url=url('pages.faq') + "#preliminary" %}
This add-on has been flagged as experimental by its developers.
Copy link
Contributor

Choose a reason for hiding this comment

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

"Flagged" may have negative connotations. "Marked"?

@eviljeff
Copy link
Member Author

@diox can you especially check I added the property to ES and the API response correctly - my ES locally was playing up so it was difficult to check everything was working as expected.

@@ -77,6 +77,7 @@ def get_mapping(cls):
'hotness': {'type': 'double'},
'icon_type': {'type': 'string', 'index': 'no'},
'is_disabled': {'type': 'boolean'},
'is_experimental': {'type': 'boolean'},
Copy link
Member

Choose a reason for hiding this comment

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

I assume we don't need to search on it, so you can add 'index': 'no'

Copy link
Member Author

Choose a reason for hiding this comment

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

We could feasibly need to search on it - it's a psuedo-status - so I guess it should be treated how status is.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah and actually you're searching on it - in the legacy api search view. Carry on.

@diox
Copy link
Member

diox commented Jul 28, 2016

You're missing a test that proves the devhub shows the field (with the correct value) when the waffle is on

r+with that

show different install button; degrade search ranking.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants