-
Notifications
You must be signed in to change notification settings - Fork 122
dataview rework and Kibana OAS generation #881
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
See elastic/kibana: [OAS] Beautify generated operation ids (#198132)
It looks like the |
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 <elastic/kibana#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
<#881 (comment)>,
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) 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. |
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.
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. |
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. Thanks for this one. Sorry about the review taking a little longer.
No problem, its a big architectural change after all. 👍 |
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.