Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: simplify insights sagas, fix contention query filter #90784

Merged

Conversation

ericharmeling
Copy link
Contributor

@ericharmeling ericharmeling commented Oct 27, 2022

This PR simplifies the insights sagas by moving the insights store refresh interval to the components and removing the root-level reset saga. The commit also updates the SQL query for the transaction contention events to not JOIN with the internal insights table, and to filter out all unresolved txn fingerprint IDs.

Fixes #90142.

Release note: None

Loom: https://www.loom.com/share/f12685c712124560b326f211b44a06d1

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ericharmeling ericharmeling force-pushed the insights-cluster-ui-store-fixes branch from 78aed76 to b5ef2a2 Compare October 27, 2022 18:44
@ericharmeling ericharmeling marked this pull request as ready for review October 27, 2022 19:54
@ericharmeling ericharmeling requested a review from a team October 27, 2022 19:54
Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you closed #88830, you can update the PR description with the unblock on it

Nice work, glad to see it is working! I added a comment on the video, not sure if was related to your changes, but looks like the column selector didn't work. You can address this on this PR or on a following one.

Otherwise, :lgtm:

Reviewed 14 of 14 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ericharmeling)

… selector

This commit simplifies the insights sagas by moving the insights store
refresh interval to the components and removing the root-level reset saga.
The commit also updates the SQL query for the transaction contention events
to not JOIN with the internal insights table, and to filter out all
unresolved txn fingerprint IDs. The commit also properly handles the case
in which no columns are selected.

Fixes cockroachdb#90142.

Release note: None
@ericharmeling ericharmeling force-pushed the insights-cluster-ui-store-fixes branch from b5ef2a2 to 9bb0af5 Compare October 27, 2022 22:23
Copy link
Contributor Author

@ericharmeling ericharmeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can update the PR description with the unblock on it

Done

I added a comment on the video, not sure if was related to your changes, but looks like the column selector didn't work. You can address this on this PR or on a following one.

Good catch! The column selector was hooked up, but there was a bug in how the column selection was stored. In the case in which all columns were unselected, the selection was stored as null, which resulted in the column selection showing the default columns. Fixed!

Here's a loom: https://www.loom.com/share/8857b4a22f2c4a129d58e315dc18f6c7

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @maryliag)

Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing that too!

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @ericharmeling)

@ericharmeling
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 28, 2022

Build failed:

@ericharmeling
Copy link
Contributor Author

bors retry

@craig
Copy link
Contributor

craig bot commented Oct 28, 2022

Build succeeded:

@craig craig bot merged commit 3064717 into cockroachdb:master Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cluster-ui: connected insights components break statement fingerprint, session details pages on CC dedicated
3 participants