-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Remove unused event search route #6510
Conversation
I don't think we need to remove it, pretty sure it was recently added, and it probably isn't finished. (it wasn't yet plugged in some UI detail?) I don't feel strongly either way about this one, but in general I do think it's better to develop features in stages, rather than all at once. So in-between we might see something like this, not yet used. 🤷 Edited to add
Don't we anticipate the need to search events? The backend side also exists, presumably because we do? |
I think we used to use it in the past, but not anymore. We don't have any design mock ups for this either at the moment, so the endpoints have just been hovering around/been relocated a couple of times I think the reason we've kept it thus far is because 1) we forgot about it and 2) it feels weird not to have a way of getting a list of events for a conversation in our REST API -> so I think removing for now should be OK and can reintroduce when there's a planned feature that requires it? |
It looks like it was introduced only last month, and the backend existed since about another month. End of November - backend/endpoint was introduced; end of December - frontend. That looks to me like it's just being introduced gradually. I don't think there is more history of this bit. It's recent? Why do you think there's anything else, did you find it in the past git, or is it a guess? Ohh, or are you thinking of the filtering in |
I suppose there is an argument that maybe we could consolidate the filtering and this search, but... I'm not sure. I think it does make some sense to give ourselves some room for both use cases. The Idk, I guess I would leave this one alone for now. Let's see if the intentions behind it get realized and maybe it gets useful? |
I've never seen this API being used and was curious about its purpose. Looking at the backend PR (#4688) description:
Maybe @tofarr can clarify whether this was intended for a future feature or just a development helper. The frontend PR (#5493) that introduced the I vote to remove it but maybe @rbren or @tofarr could shed light on it's actual use. AFAIK there is no planned feature near-term that would require this and unused code can lead to misunderstandings or maintenance issues down the line |
Fair enough. Edited to add: the OpenHands theory is hilarious! |
End-user friendly description of the problem this fixes or functionality that this introduces
Give a summary of what the PR does, explaining any non-trivial design decisions
A NIT in #6485 motivated this PR. The search events in a conversation route is why we previously attempted to return serialized events from the
EventStream
(get_matching_events
)get_matching_events
now returnsEvents
in Refactor: Don't serialize matching events when searching event stream #6509If we anticipate a need to search events, we can always bring it back when we need it or update it however we want (likely require updating when multi-convo feature is ready)
Link of any specific issues this addresses
To run this PR locally, use the following command: