console icon indicating copy to clipboard operation
console copied to clipboard

Frontend should show a explanation when `/messages` returns a single message because the others were compacted away

Open rikimaru0345 opened this issue 6 years ago • 1 comments

Example scenario: The user wants to see the last 100 messages, but the backend returns only one message, because the requested range (latest .. latest-100) has been compacted.

In that case the frontend should show some sort of message to explain what is going on; why only a single message is shown.

Similar to #25, which is also about handling of error-/edge-cases.

rikimaru0345 avatar Dec 27 '19 16:12 rikimaru0345

~~In that sense we could reiterate how we want to collect messages on the /messages endpoint. I'd say the user's expectation is to get 100 items back when he specifies that as itemcount.~~

~~The current implementation of the endpoint will likely return less results on compacted topics, especially when you start at old offsets.~~

Update: This has been reworked now - though the issue is still valid. The backend already exposes a isDrained boolean for each crawled partition that indicates whether there were more messages available or not.

weeco avatar Jan 26 '20 23:01 weeco