Use window for executed tx gauge#243
Conversation
✅ Deploy Preview for golden-cupcake-e13d6e ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| SELECT COUNT(id), tx_status FROM decrypted_tx | ||
| GROUP BY tx_status; | ||
|
|
||
| -- name: QueryExecutedTransactionStatsRecent :many |
There was a problem hiding this comment.
The chart currently windows by calendar time but we want to show the inclusion rate over the latest X finalized transactions. The goal being to surface that the recent runs succeeded, regardless of when they ran.
Since we don't have a test continuously sending transactions, a time-based window can end up with zero rows in the selected range and render an empty/NaN gauge, even when the latest runs were all successful, which is the case we most want to show.
Could we switch to a count-based window instead? Showing the latest X transactions, where X would be 100, 1000, ALL for example. See my comment here: https://github.com/shutter-network/shutter-technical-pm/issues/132#issuecomment-4768221376
This adds a time window to the "Shielded Transactions" gauge display. A new backend method was added for the queries. See attached .GIF for the frontend changes: