cgwire / zou

Zou is the Kitsu API. It allows you to store and manage your production data
https://zou.cg-wire.com
GNU Affero General Public License v3.0
170 stars 104 forks source link

Added missing field on present_minimal method of Person #886

Closed stevenpince closed 4 days ago

stevenpince commented 4 days ago

Problem The user service runs persons_service.get_persons as minimal if the given user doesn't have Manager permissions. The problem is that the present_minimal method in /zou/app/models/person.py#179 doesn't return the "type" field. This broke our pipeline, as the output of the /data/Persons webhook was different between Artists and Managers

Solution Added the "type" field to the representation for non-manager users.

EvanBldy commented 4 days ago

Thanks @stevenpince