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: remove remaining links to old db pages #136311

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Nov 27, 2024

In the plan details of the sql statement details page we had a remaining link to the old db page. At this time we cannot link to the new pages since the sql statement plan details api does not return the id of the db or table it belongs to.

Epic: none
Fixes: #134581

Release note (ui change): Link in plan details page to legacy table page has been removed.

In the plan details of the sql statement details page
we had a remaining link to the old db page. At this
time we cannot link to the new pages since the sql
statement plan details api does not return the id of
the db or table it belongs to.

Epic: none
Fixes: cockroachdb#134581

Release note (ui change): Link in plan details page
to legacy table page has been removed.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz marked this pull request as ready for review November 27, 2024 17:19
@xinhaoz xinhaoz requested a review from a team as a code owner November 27, 2024 17:19
@xinhaoz xinhaoz requested review from angles-n-daemons and removed request for a team November 27, 2024 17:19
@xinhaoz xinhaoz added the backport-24.3.x Flags PRs that need to be backported to 24.3 label Dec 2, 2024
@xinhaoz xinhaoz requested a review from a team December 2, 2024 15:16
{table}
</Link>
: {indexesList}
{table}: {indexesList}
Copy link
Contributor

Choose a reason for hiding this comment

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

note: I recently fixed indexStatsLink that generates the wrong link for CC console, and looking at the indexesList links, it looks like that is wrong as well (I think this is true for all cluster versions, not 24.3, so this isn't a regression due to the db pages work). I created this issue: #136476

Copy link
Member Author

Choose a reason for hiding this comment

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

Ack - thanks for filing! I can address that in a follow-up.

@@ -356,7 +356,7 @@ export function EncodeUriName(name: string): string {
return encodeURIComponent(name).replace(/%25/g, "%252525");
}

export function EncodeDatabasesUri(db: string): string {
function encodeDatabasesUri(db: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, i've noticed this a lot in our frontend code. Do you think we should check for this in our linter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Are you talking about the capitalization? Yeah, we could introduce a warning to lightly guide future var naming. I recall Andrii did some work to sync some linting rules between CC and db console so I'm surprised this doesn't exist already.

@xinhaoz
Copy link
Member Author

xinhaoz commented Dec 2, 2024

TFTR!
bors r+

@craig craig bot merged commit fd2fec8 into cockroachdb:master Dec 2, 2024
23 checks passed
Copy link

blathers-crl bot commented Dec 2, 2024

Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches.


Issue #134581: branch-release-24.3.


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

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

Successfully merging this pull request may close these issues.

ui: remove links from sql activity and index page breadcrumb to old db pages
3 participants