-
Notifications
You must be signed in to change notification settings - Fork 189
INTMDB-251: Update search rs and ds to use go-client v0.12.0 #548
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
Conversation
go.mongodb.org/atlas v0.12.0 h1:/vnHX3rh8jdPrP8mRznuU/2VrGH+cCdz8/Esrzpvaus= | ||
go.mongodb.org/atlas v0.12.0/go.mod h1:wVCnHcm/7/IfTjEB6K8K35PLG70yGz8BdkRwX0oK9/M= |
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.
[nit] please run go mod tidy
to clean the old version from this file
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.
sure!
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.
oh I think it's still there because of the realm client... we can look at that on a different PR
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.
thanks for this, there are some linting erros and also I left a little suggestion to clean the dependency file
Optional: true, | ||
Elem: customAnalyzersSchema(), | ||
//Elem: customAnalyzersSchema(), |
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 delete this if not needed?
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.
sure, I totally forgot to remove it
@@ -48,9 +47,10 @@ func returnSearchIndexSchema() map[string]*schema.Schema { | |||
Required: true, | |||
}, | |||
"analyzers": { | |||
Type: schema.TypeList, | |||
Type: schema.TypeString, |
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.
making sure I get this right, analyzers and field mapping for terradform are now "strings" of json that we just map to the go client interface{}
type correct? general question nothing blcoking 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.
you are right!
Now the analyzers
field will be like the mapping_fields
field, both are JSON now (string)
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.
Looks good - just need to address Gustavo's comments and add one thing. Can you add a short upgrade guide to note the breaking changes? Just want to make sure we call those out (basically it's the changes you made in the docs. Once we have that we'll move forward quickly! Thank you!
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.
LGTM
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.
Thank you so much for quick turn around! LGTM!
Description
Search Index Resource and Data Source was updated in order to use the new go-client release (v0.12.0)
Link to any related issue(s):
Type of change:
Required Checklist:
Further comments
Tests Results: