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: show txn fingerprint details page with unspecified app #107742

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Jul 27, 2023

Previously, when the app was not specified in the url search params for the txn details fingerprint page, the page would fail to load. This commit allows the page to load when there is no app specified but a fingerprint id that matches the requested page in the payload. The first matching fingerprint id is loaded.

Additionally, the TransactionDetailsLink will not include the appNames search param unless the provided prop is non-nullish.

Fixes: #107731

Release note (bug fix): Txn fingerprint details page in the console UI should load with the fingerprint details even if no app is specified in the URL.

Demo:
https://www.loom.com/share/810308d3dcd74ca888c42287ebafaecf

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz requested a review from a team July 27, 2023 19:19
Previously, when the app was not specified in the url search
params for the txn details fingerprint page, the page would
fail to load. This commit allows the page to load when there
is no app specified but a fingerprint id that matches the
requested page in the payload. The first matching fingerprint id
is loaded.

Additionally, the TransactionDetailsLink will not include
the appNames search param unless the provided prop is non-nullish.

Fixes: cockroachdb#107731

Release note (bug fix): Txn fingerprint details page in the
console UI should load with the fingerprint details even if
no app is specified in the URL.
@xinhaoz xinhaoz marked this pull request as ready for review July 27, 2023 19:47
@xinhaoz xinhaoz requested a review from a team July 27, 2023 19:47
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.

:lgtm:

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

@xinhaoz
Copy link
Member Author

xinhaoz commented Jul 28, 2023

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 28, 2023

This PR was included in a batch that was canceled, it will be automatically retried

@xinhaoz xinhaoz added the backport-23.1.x Flags PRs that need to be backported to 23.1 label Jul 28, 2023
@craig craig bot merged commit 04c91a5 into cockroachdb:master Jul 28, 2023
7 checks passed
@craig
Copy link
Contributor

craig bot commented Jul 28, 2023

Build succeeded:

@blathers-crl
Copy link

blathers-crl bot commented Jul 28, 2023

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from 31e9b59 to blathers/backport-release-23.1-107742: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.1.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@xinhaoz
Copy link
Member Author

xinhaoz commented Aug 22, 2023

Ah this doesn't need to be backported to 23.1. It was introduced post 23.1 when refactoring to use the request state.

Edit: Ah nevermind, the edit to TransactionLinkTarget still needs to be applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: txn insight details link to txn fingerprint paggge from contention panel broken
3 participants