-
Notifications
You must be signed in to change notification settings - Fork 173
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
fix: add partner field to person documents #4497
Conversation
def prepare_partner(self, obj): | ||
return obj.partner.short_code if obj.partner else '' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this not be added in common too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could but it wouldn't be as neat since some documents have "different" implementations for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If only course run has a different implementation, it makes sense to override it there. But if all others have the same pattern, it would be good to move this in common as you have done for field itself.
3d7845d
to
2bf8384
Compare
2bf8384
to
25d172c
Compare
PROD-4240
This PR adds the partner field to person documents. This fixes the issue of person objects not being returned in GET requests against
search/all
due to the filtering in CatalogDataFilterDataMixin