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
Upgrade to ES v7 #55
Upgrade to ES v7 #55
Conversation
67b3bca
to
d95bf57
Compare
7932fe0
to
6b28c42
Compare
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.
Let's clear up the commit history by rebasing.
s.mu.Lock() | ||
defer s.mu.Unlock() | ||
return s.ElasticClient.Index(). | ||
Index(s.IndexName). | ||
Type(conceptType). |
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.
So having the type as part of the model is equivalent to the old .Type()
call?
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.
No, in ES 6 the "type concept" was removed, but we still need to use this, so this is a way to mimic (differentiate among different document types)
https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch
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.
I see, thank you!
@@ -0,0 +1,79 @@ | |||
#!/usr/bin/env bash |
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.
Is this the script that generated the changes to referenceSchema.json
? Is it reliable?
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.
Not really, it was at some point, but for the last changes was too difficult to express it in jq
, maybe is a good idea to keep it as a documentation that represent a bit the changes, maybe not because is not totally compatible.
7ede4dd
to
f050c92
Compare
cfb797c
to
f050c92
Compare
8573aed
to
3e58dc0
Compare
3e58dc0
to
666d9fd
Compare
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.
Let's update the Helm configuration to use the new ES endpoint from the global config: aws.content.elasticsearch.v2.endpoint
.
Also we need to rebase the changes from the master.
051fa86
to
281cef8
Compare
3b3bd0b
to
7ddfcbe
Compare
7ddfcbe
to
70220e0
Compare
Cherri-pick Conflicts: go.mod go.sum pkg/message/message_handler_test.go
70220e0
to
6ae9838
Compare
🎉 🎉 🎉 |
Description
What
Please be specific and try to describe your thought process. State the obvious, since this might be the first time the reviewer is looking at the code
Why
https://financialtimes.atlassian.net/browse/UPPSF-2702
Anything, in particular, you'd like to highlight to reviewers
Mention here sections of code which you would like reviewers to pay extra attention to .E.g
Scope and particulars of this PR (Please tick all that apply)
This Pull Request follows the rules described in our Pull Requests Guide