-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fixes serialization of two Adviser fields in Investment search. #294
Conversation
datahub/search/models.py
Outdated
'id': String(index='not_analyzed'), | ||
'name': String()} | ||
) # Adviser | ||
project_manager = Nested(properties={'id': String(index='not_analyzed'), |
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.
Can we re-use properties dict here?
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.
Perhaps it could be generalised - there would be some fun with copy_to
parameters.
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.
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.
Agree with @canni actually
Codecov Report
@@ Coverage Diff @@
## develop #294 +/- ##
========================================
Coverage 92.87% 92.87%
========================================
Files 63 63
Lines 2427 2427
Branches 215 215
========================================
Hits 2254 2254
Misses 145 145
Partials 28 28 Continue to review full report at Codecov.
|
No description provided.