You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the diagram below shows, the UsageStatistics API sends the stats data to browser, then browser sends it back to server. This looks like a redundant loop that can be avoided: UsageStatistics should cache the stats in-memory and then persist to the JSON file directly (showed on diagram as a blue arrow).
Acceptance Criteria
BootstrapHandle doesn't send any JavaScript to update window.Vaadin.registrations in browser, this code can be just removed. - [ ] (?) To be confirmed by @mshabarov :vaadin-dev-tools.ts doesn't read the stats from Local Storage and doesn't send anything to server, as vaadin-usage-statistics.js also read the date and sends it to V1 of the stats endpoint of stats server. Should we still send it to server, as server sends it to V2 endpoint.
vaadin-dev-tools.ts should send stats from browser to server as usual, because we aim to use V2 stats endpoint that is in turn used by server nowadays.
UsageStatistics writes stats to the JSON file directly at the end of page load and on shutdown. On shutdown is better as some of the records may appear after page load.
web-components should continue reporting their stats as usual.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
Vaadin 24.4 and 24.5.
The text was updated successfully, but these errors were encountered:
Server side statistics are not sent to the browser anymore
but directly registered when dev-tools websocket connection
is opened and closed.
Fixesvaadin/platform#6724
Describe your motivation
Follows up the #6720.
As the diagram below shows, the
UsageStatistics
API sends the stats data to browser, then browser sends it back to server. This looks like a redundant loop that can be avoided:UsageStatistics
should cache the stats in-memory and then persist to the JSON file directly (showed on diagram as a blue arrow).Acceptance Criteria
BootstrapHandle
doesn't send any JavaScript to updatewindow.Vaadin.registrations
in browser, this code can be just removed.- [ ] (?) To be confirmed by @mshabarov :vaadin-dev-tools.ts
doesn't read the stats from Local Storage and doesn't send anything to server, asvaadin-usage-statistics.js
also read the date and sends it to V1 of the stats endpoint of stats server. Should we still send it to server, as server sends it to V2 endpoint.vaadin-dev-tools.ts
should send stats from browser to server as usual, because we aim to use V2 stats endpoint that is in turn used by server nowadays.UsageStatistics
writes stats to the JSON file directly at the end of page load and on shutdown. On shutdown is better as some of the records may appear after page load.Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
Vaadin 24.4 and 24.5.
The text was updated successfully, but these errors were encountered: