drop is_source_public property from Addon api (original) (raw)
depends on #6982
quoting @diox:
The functionality is also exposed in the API under a different name, is_source_public. This needs special care as the API must keep this field for backwards-compatibility purposes. You'll need to modify the declaration of the field in src/olympia/addons/serializers.py to always return False. I suggest making it a serializerMethodField() instead of the BooleanField it is now and implementing a get_is_source_public(self, obj) in the serializer class, simply having it return False. Tests will have to be updated here as well.