rails_event_store icon indicating copy to clipboard operation
rails_event_store copied to clipboard

Better pagination on browser

Open casiodk opened this issue 5 years ago • 2 comments

Hi guys

I am having an issue. When I try to navigate back in time in the ruby browser we have so many events that each pagination click represents 1-2 minutes of events, which makes it impossible to look back 1 week for example. Would it be possible to add some filtering on the created_at attribute.

Also when I look at an event and then navigate back to the index page it always starts on page 1, instead of the page i was on before i clicked on an event :)

I don't now Elm, otherwise I would try to create a PR myself

Thanks

casiodk avatar Sep 15 '20 10:09 casiodk

Would it be possible to add some filtering on the created_at attribute

Filtering on timestamps needed some groundwork and it has been just recently done: https://github.com/RailsEventStore/rails_event_store/pull/674. Let's say it is scheduled for 2.0 release.

There was also an earlier PR which adressed an API for filtering https://github.com/RailsEventStore/rails_event_store/pull/593 and that can be brought back to life now.

With an API for filtering present on Client facade we can finally think about adding time filtering to UI

Also when I look at an event and then navigate back to the index page it always starts on page 1, instead of the page i was on before i clicked on an event :)

I think @swistak35 was on it in https://github.com/RailsEventStore/rails_event_store/pull/727 or at least we discussed improving this very thing

mostlyobvious avatar Sep 15 '20 12:09 mostlyobvious

That sounds awesome, I will be looking forward to this :)

casiodk avatar Sep 16 '20 08:09 casiodk