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

Added missing field on present_minimal method of Person #886

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

stevenpince
Copy link

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
Copy link
Member

Thanks @stevenpince

@EvanBldy EvanBldy merged commit 9c1fba5 into cgwire:master Nov 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants