elastic / terraform-provider-elasticstack

Terraform provider for Elastic Stack
https://registry.terraform.io/providers/elastic/elasticstack/latest/docs
Apache License 2.0
173 stars 93 forks source link

dataview rework and Kibana OAS generation #881

Closed daemitus closed 7 hours ago

daemitus commented 4 weeks ago

The idea here is to take the work put into the Fleet OAS schema, and start preparing to migrate the Kibana APIs to it as they become available in the elastic/kibana oas folder.

Notable tidbits for the resource:

tobio commented 3 weeks ago

It looks like the operationId field has been fixed up with https://github.com/elastic/kibana/pull/198132. The published docs now include this change which should mean we can rip the operationId re-writing out of this code.

daemitus commented 3 weeks ago

Already had it pending. I'll add it to this one

On Sun, Nov 3, 2024, 5:49 PM Toby Brain @.***> wrote:

It looks like the operationId field has been fixed up with elastic/kibana#198132 https://github.com/elastic/kibana/pull/198132. The published docs now include this change which should mean we can rip the operationId re-writing out of this code.

— Reply to this email directly, view it on GitHub https://github.com/elastic/terraform-provider-elasticstack/pull/881#issuecomment-2453606292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMTBDDD776QTF7ACWMFUDZ62R73AVCNFSM6AAAAABQXTTI4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGYYDMMRZGI . You are receiving this because you authored the thread.Message ID: @.***>

daemitus commented 1 week ago

Pulled a fresh copy again, the Delete EPM package body (force) was removed, apparently it was deprecated the entire time. Along with a bunch of kafka topic bits that aren't implemented here yet. Also included some import formatting and a golangci-lint finding in the factory_test file.

daemitus commented 1 week ago

kibana2

I don't feel incredibly strongly here. There's benefits to using this naming in that we'll definitely rename it when the OG kibana client is removed.

Let's assume this exists in the codebase for 'a while' though which doesn't seem unreasonable. I'd prefer something more descriptive for example kibana_oapi or gen_kibana, at least then it's obvious what the difference between the clients is, though maybe less obvious which to choose for new code.

I'm happy to leave it as is if you do feel strongly here. I hate it, but that's not necessarily a bad thing :)

changed to kibana_oapi. I played around with merging them together and some other ideas, which only made the spaghetti worse.