release-22.2: ui/cluster-ui: fix no most recent stmt for active txns #88404
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 1/1 commits from #88179 on behalf of @xinhaoz.
/cc @cockroachdb/release
Fixes #87738
Previously, active txns could have an empty 'Most Recent Statement' column, even if their executed statement count was non-zero. This was due to the most recent query text being populated by the active stmt, which could be empty at the time of querying. This commit populates the last statement text for a txn even when it is not currently executing a query.
This commit also removes the
isFullScan
field from active txn pages, as we cannot fill this field out without all stmts in the txn.Release note (ui change): Full scan field is removed from active txn details page.
Release note (bug fix): active txns with non-zero
executed statement count now always have populated stmt text, even when no stmt is being executed.
Release justification: Bug fixes and low-risk updates to new functionality