-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Search Engine TF Provider #9822
Search Engine TF Provider #9822
Conversation
Hello! I am a robot. It looks like you are a: @shuyama1, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1127 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample_update|TestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1127 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample|TestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample_update |
|
I ran make fmt in my local and don't see any gofmt errors after that but after pushing the code I am seeing gofmt error for terraform-provider-google-beta-build-and-unit-tests and terraform-provider-google-build-and-unit-tests |
Can you try |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1122 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample|TestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample_update |
|
Thank You @shuyama1 I was able to fix that issue. For the VCR test I would have to merge the test of datastore and app in one test file and refer to the datastore created using the Datastore TF Provider. I used a Datastore ID from my test project and the acceptance tests passed locally |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1140 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample|TestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample_update |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1158 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
Co-authored-by: Ray <[email protected]>
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1158 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
|
@5fff Could you verify your CLA. It is causing CLA test to fail |
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.
Would you mind also adding create + update test coverage on fields common_config
and search_engine_config
detected in the Missing test report
#9822 (comment)? Thank you!
values: | ||
- :SEARCH_TIER_STANDARD | ||
- :SEARCH_TIER_ENTERPRISE | ||
default_from_api: true |
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.
default_from_api: true | |
default_value: SEARCH_TIER_STANDARD |
Then we may want to set default value if the default is fixed
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1192 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample_update |
Rerun these tests in REPLAYING mode to catch issues
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1192 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
|
immutable: false | ||
properties: | ||
- !ruby/object:Api::Type::Enum | ||
name: 'searchTier' |
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! SGTM to make it required as a start to ask customers always set the tier explicitly. We can resolve the comment
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1199 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
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.
Mostly LGTM! Thanks! Some small comments only
|
||
parameters: | ||
- !ruby/object:Api::Type::String | ||
name: 'engine_id' |
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.
name: 'engine_id' | |
name: 'engineId' |
Sorry for missing it. Should not affect generated code downstream though
immutable: true | ||
url_param_only: true | ||
- !ruby/object:Api::Type::String | ||
name: 'collection_id' |
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.
name: 'collection_id' | |
name: 'collectionId' |
characters. | ||
output: true | ||
- !ruby/object:Api::Type::Enum | ||
name: 'industryVertical' |
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 may need to set default value for this field since the default is fixed. Does the API return the default value for this field if it's not explicitly set? I don't see a test config without this field, so I'm not sure the API behavior. We may consider removing all optional fields from the basic example to ensure we have required fields set correctly and we handle fields that have default values returned from the API.
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.
SG. Let's add "default_value: :GENERIC". This is the default server behavior.
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 tested the provider in a TF directory without the industry_vertical field and it takes the default as generic. I will also add its default_value under properties
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.
Also for the Search and Chat Engine the industry_field should be derived from datastore's industry_vertical so it has a dependency that's why in the example also I refer it to the Datastore's industry_vertical while creating the Search Engine resource,instead of leaving it out.
@shuyama1 @chenlei1216 Let me know your thoughts
name: 'searchEngineConfig' | ||
description: | | ||
Configurations for a Search Engine. | ||
# default_from_api: true |
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.
# default_from_api: true |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 6 files changed, 1195 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDiscoveryEngineSearchEngine_discoveryengineSearchengineBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
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!
* Search Engine TF Provider * Discovery Engine Search Engine * Formatted Test File * Updated Test File * Added Examples to SearchEngine Config and added DS to basic test example * Update mmv1/products/discoveryengine/SearchEngine.yaml Co-authored-by: Ray <[email protected]> * Updated SearchEngine.yaml file * Updated SearchEngine.yaml * Updated Search TF Files as per PR Review * Updated files as per PR Review * Set searchEngineConfig as required field in SearchEngine.yaml * Removed default_from_api from SearchEngineConfig * Added Changes as per PR review --------- Co-authored-by: Ray <[email protected]>
* Search Engine TF Provider * Discovery Engine Search Engine * Formatted Test File * Updated Test File * Added Examples to SearchEngine Config and added DS to basic test example * Update mmv1/products/discoveryengine/SearchEngine.yaml Co-authored-by: Ray <[email protected]> * Updated SearchEngine.yaml file * Updated SearchEngine.yaml * Updated Search TF Files as per PR Review * Updated files as per PR Review * Set searchEngineConfig as required field in SearchEngine.yaml * Removed default_from_api from SearchEngineConfig * Added Changes as per PR review --------- Co-authored-by: Ray <[email protected]>
* Search Engine TF Provider * Discovery Engine Search Engine * Formatted Test File * Updated Test File * Added Examples to SearchEngine Config and added DS to basic test example * Update mmv1/products/discoveryengine/SearchEngine.yaml Co-authored-by: Ray <[email protected]> * Updated SearchEngine.yaml file * Updated SearchEngine.yaml * Updated Search TF Files as per PR Review * Updated files as per PR Review * Set searchEngineConfig as required field in SearchEngine.yaml * Removed default_from_api from SearchEngineConfig * Added Changes as per PR review --------- Co-authored-by: Ray <[email protected]>
* Search Engine TF Provider * Discovery Engine Search Engine * Formatted Test File * Updated Test File * Added Examples to SearchEngine Config and added DS to basic test example * Update mmv1/products/discoveryengine/SearchEngine.yaml Co-authored-by: Ray <[email protected]> * Updated SearchEngine.yaml file * Updated SearchEngine.yaml * Updated Search TF Files as per PR Review * Updated files as per PR Review * Set searchEngineConfig as required field in SearchEngine.yaml * Removed default_from_api from SearchEngineConfig * Added Changes as per PR review --------- Co-authored-by: Ray <[email protected]>
Release Note Template for Downstream PRs (will be copied)