-
Notifications
You must be signed in to change notification settings - Fork 4.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
feat: add kusto_eventhub_data_connection supports retrieval_start_date parameter #28292
base: main
Are you sure you want to change the base?
feat: add kusto_eventhub_data_connection supports retrieval_start_date parameter #28292
Conversation
Thank you for triggering the checks. There were indeed a format errors (spaces) in the Terraform blocks of the website documentation and in the test file for the azurerm_kusto_eventhub_data_connection. Used |
Hello, politely asking what I can do to get things merged? :) |
All checks have passed. Who can review and merge 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.
Hi @FakieHeelflip thanks for submitting this. I left one minor comment here, but once that is addressed I can take another look. Thanks!
internal/services/kusto/kusto_eventhub_data_connection_resource.go
Outdated
Show resolved
Hide resolved
Co-authored-by: catriona-m <[email protected]>
Hi @catriona-m , thank you for the review. You are right, totally overlooked that validation function. Thanks. Commited your suggestion. |
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.
Hi @FakieHeelflip thanks for updating the validation on this. I ran the tests on this and it looks like this property is causing some failures that would need to be address before we can merge this:
Copy to clipboard
------- Stdout: -------
=== RUN TestAccKustoEventHubDataConnection_databaseRoutingType
=== PAUSE TestAccKustoEventHubDataConnection_databaseRoutingType
=== CONT TestAccKustoEventHubDataConnection_databaseRoutingType
testcase.go:173: Step 1/3 error: After applying this test step, the non-refresh plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# azurerm_kusto_eventhub_data_connection.test will be updated in-place
~ resource "azurerm_kusto_eventhub_data_connection" "test" {
id = "/subscriptions/*******/resourceGroups/acctestRG-250110120520846318/providers/Microsoft.Kusto/clusters/acctestkco721m/databases/acctestkd-250110120520846318/dataConnections/acctestkedc-250110120520846318"
name = "acctestkedc-250110120520846318"
- retrieval_start_date = "2025-01-10T12:18:51.7164161Z" -> null
# (11 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccKustoEventHubDataConnection_databaseRoutingType (1130.62s)
FAIL
…hub_data_connection.html.markdown
Hi @catriona-m , do I need to do something? |
@catriona-m I am again confused what to do... could you please help? |
Community Note
Description
Add for the kusto_eventhub_data_connection the parameter "retrieval_start_date" to ingest older stored data from an Event Hub.
When defined, the data connection retrieves existing Event hub events created since the Retrieval start date. It can only retrieve events retained by the Event hub, based on its retention period.
Made CRUD tests locally.
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_kusto_eventhub_data_connection
- support theretrieval_start_date
parameterThis is a (please select all that apply):
Related Issue(s)
No known open issue for that.