vaadin / kubernetes-kit

Other
3 stars 3 forks source link

Run Session Serialization debug tool after Vaadin processes the request #44

Closed mcollovati closed 1 year ago

mcollovati commented 1 year ago

Currently, the serialization debug tool runs as a RequestHandler, installed by a VaadinServiceInitListener and for this reason, it is executed before any other internal handler. More specifically, it runs before the UIDL handler, so the outcomes of the tool are referred to the previous request, not the current.

The tool should instead run after Vaadin completes to process the request.

Some ideas for the implementation:

mcollovati commented 1 year ago

I did some attempts to run the debug tool after UI changes are applied and also notify the user in the browser (#46), but I did not yet found a good way

Suppose we have a component on the UI that shows a floating indicator only if there are failures

mcollovati commented 1 year ago

An acceptable trade-off for the moment could be a solution with a RequestHandler that store as a request attribute a Runnable that performs the test and notifies the user if PUSH is enabled. Then a servlet Filter running at the end of the request that executes the runnable