-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[event log] Remove event log HTTP APIs if no longer used #90486
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
Here's the kinda shape I'm thinking about, which would be a little more future-friendly. The uri names are just suggestions, we can probably find better ones.
|
Could also explore removing these APIs if they aren't used. |
It's not clear we even NEED this API anymore. Does anyone use it??? |
@dolaru are we using it in the new perf test framework? |
As near as I can tell, these APIs are not used by Kibana at runtime, but are used by function tests. So, seems like we should move them INTO the function tests, so we can verify we're not using them, so we don't have to really worry about them anymore. Perhaps when we move them, we can see if we can just convert the uses into direct ES calls, and remove the routes entirely. Also, since the issue was created, the endpoints have moved to Not seeing any urgency to get this done, so seems deferrable, but also seems fairly simple. |
Mike pointed out that the Kibana load testing tools we use may be using these APIs as well. We should find out, and then see if those routes (if used) can be replaced with searches directly against the event log indices. |
I changed the title to |
#155913) Resolves #90486 ## Summary Removes the event log HTTP apis since they are not used, and adds them to the functional tests ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
While reviewing PR #89681, I happened to notice that are URLs are not structured that great.
kibana/x-pack/plugins/event_log/server/routes/find.ts
Lines 25 to 27 in b058f78
kibana/x-pack/plugins/event_log/server/routes/find_by_ids.ts
Lines 29 to 31 in b058f78
(new API in PR, shaped the same as others)
kibana/x-pack/plugins/event_log/server/routes/get_events_summary_by_saved_object_ids.ts
Lines 47 to 49 in 53d7f76
Two problems:
/api/event_log
always have to be atype
value - since it could be anything, we can't ever create a fixed path like/api/event_log/_do_something
, since_do_something
could be a SO typeSeems like we need to reshape these to allow for more URL patterns in the event log in the future.
The text was updated successfully, but these errors were encountered: