diff --git a/docs/topics/api/addons.rst b/docs/topics/api/addons.rst index 0617e3aac1..1b7b7b76d3 100644 --- a/docs/topics/api/addons.rst +++ b/docs/topics/api/addons.rst @@ -121,7 +121,6 @@ This endpoint allows you to fetch a specific add-on by id, slug or guid. :>json string icon_url: The URL to icon for the add-on (including a cachebusting query string). :>json boolean is_disabled: Whether the add-on is disabled or not. :>json boolean is_experimental: Whether the add-on has been marked by the developer as experimental or not. - :>json boolean is_listed: Whether the add-on is listed or not. :>json boolean is_source_public: Whether the add-on source is publicly viewable or not. :>json string|object|null name: The add-on name (See :ref:`translated fields `). :>json string last_updated: The date of the last time the add-on was updated by its developer(s). diff --git a/src/olympia/addons/serializers.py b/src/olympia/addons/serializers.py index e51e827837..b9d755b1d8 100644 --- a/src/olympia/addons/serializers.py +++ b/src/olympia/addons/serializers.py @@ -185,7 +185,6 @@ class AddonSerializer(serializers.ModelSerializer): 'icon_url', 'is_disabled', 'is_experimental', - 'is_listed', 'is_source_public', 'last_updated', 'name', @@ -342,7 +341,6 @@ class ESBaseAddonSerializer(BaseESSerializer): 'hotness', 'icon_type', 'is_experimental', - 'is_listed', 'last_updated', 'modified', 'public_stats', diff --git a/src/olympia/addons/tests/test_serializers.py b/src/olympia/addons/tests/test_serializers.py index 43e876750a..4f38714f62 100644 --- a/src/olympia/addons/tests/test_serializers.py +++ b/src/olympia/addons/tests/test_serializers.py @@ -158,7 +158,6 @@ class AddonSerializerOutputTestMixin(object): assert result['icon_url'] == absolutify(self.addon.get_icon_url(64)) assert result['is_disabled'] == self.addon.is_disabled assert result['is_experimental'] == self.addon.is_experimental is False - assert result['is_listed'] == self.addon.is_listed assert result['is_source_public'] == self.addon.view_source assert result['last_updated'] == ( self.addon.last_updated.replace(microsecond=0).isoformat() + 'Z') @@ -256,12 +255,6 @@ class AddonSerializerOutputTestMixin(object): assert result['is_disabled'] is True - def test_is_listed(self): - self.addon = addon_factory(is_listed=False) - result = self.serialize() - - assert result['is_listed'] is False - def test_is_source_public(self): self.addon = addon_factory(view_source=True) result = self.serialize() @@ -313,13 +306,6 @@ class AddonSerializerOutputTestMixin(object): assert result['id'] == self.addon.pk assert result['status'] == 'deleted' - def test_unlisted(self): - self.addon = addon_factory(name=u'My Unlisted Addôn', is_listed=False) - result = self.serialize() - - assert result['id'] == self.addon.pk - assert result['is_listed'] == self.addon.is_listed - def test_has_policies(self): self.addon = addon_factory() self.addon.eula = { diff --git a/src/olympia/internal_tools/tests/test_views.py b/src/olympia/internal_tools/tests/test_views.py index 8f5805c21b..cca8aa1a16 100644 --- a/src/olympia/internal_tools/tests/test_views.py +++ b/src/olympia/internal_tools/tests/test_views.py @@ -89,7 +89,6 @@ class TestInternalAddonSearchView(ESTestCase): result = data['results'][0] assert result['id'] == addon.pk - assert result['is_listed'] is False assert result['status'] == 'public' assert result['name'] == {'en-US': u'My Addôn'} assert result['slug'] == 'my-addon'