Closed daemitus closed 7 hours 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.
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: @.***>
Pulled a fresh copy again, the Delete EPM package body (force
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
orgen_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.
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.
generated/data_views
spec, pull data_views from kibana instead (as a start). On this note, the data_views subset of the schema still appears to be created from a bundled file, rather than auto-generated. The schema needed minimal modifications to support what was being already being done. I can try creating an issue upstream for those like before.kibana2
client and config for lack of a better name. Once libs/go-kibana-rest is no longer needed, just rename the whole mess tokibana
. I imagine there will be some discussion on this. Most of it is just copied from the Fleet client.Notable tidbits for the resource:
Pointer("")
. So usingsomefield.ValueStringPointer()
ends up sending a value that is not desired to the API. Added a helper for it. Surprisingly this did not crop up in the Fleet APIs as they all have defaults.