Skip to content

ui: search criteria ux improvements#100893

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:ux-improvements
Apr 10, 2023
Merged

ui: search criteria ux improvements#100893
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:ux-improvements

Conversation

@maryliag
Copy link
Copy Markdown
Contributor

@maryliag maryliag commented Apr 6, 2023

Some of the names of sort on search criteria were
not a match for the column name on the tables, which could cause confusion. This commit updates the values of "P99" to "P99 Latency" and "Service Latency" to "Statement time" and "Transaction time".

Release note (ui change): Update sort label
on Search Criteria to match the name on the table columns.

Epic: CRDB-25476

@maryliag maryliag requested review from a team April 6, 2023 23:36
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@maryliag maryliag added the backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only label Apr 6, 2023
Copy link
Copy Markdown

@gtr gtr left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @maryliag)


pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.tsx line 609 at r1 (raw file):

            <InlineAlert
              intent="warning"
              title={getSubsetWarning(

Missing the new updateSortValue argument.


pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts line 97 at r1 (raw file):

export const STATS_LONG_LOADING_DURATION = duration(2, "s");

export function getSubsetWarning(

nit: you might have to rename this file to sqlActivityConstants.tsx since you're using JSX syntax in this function. This will also get rid of the failing lint tests.


pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts line 105 at r1 (raw file):

  updateSortValue: (sort: SqlStatsSortType) => void,
): string {
  const link = (

I don't see this link component being used anywhere.


pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts line 108 at r1 (raw file):

    <a
      className={"action"}
      onClick={() => updateSortValue(getLabel(columnTitle, type))}

I'm a little confused about calling this getLabel function. Did you mean to call getSortLabel?

Some of the names of sort on search criteria were
not a match for the column name on the tables, which
could cause confusion. This commit updates the values
of "P99" to "P99 Latency" and "Service Latency" to
"Statement time" and "Transaction time".

Epic: None

Release note (ui change): Update sort label
on Search Criteria to match the name on the table columns.
Copy link
Copy Markdown
Contributor Author

@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.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @gtr)


pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.tsx line 609 at r1 (raw file):

Previously, gtr (Gerardo Torres Castro) wrote…

Missing the new updateSortValue argument.

That was not part of this commit, removed


pkg/ui/workspaces/cluster-ui/src/util/sqlActivityConstants.ts line 108 at r1 (raw file):

Previously, gtr (Gerardo Torres Castro) wrote…

I'm a little confused about calling this getLabel function. Did you mean to call getSortLabel?

Ooops... All the 3 changes that you commented on was something I was working on another commit that was not suppose to be in this one!
Removed all of these things, please take another look

Copy link
Copy Markdown

@gtr gtr left a comment

Choose a reason for hiding this comment

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

:lgtm: thanks!

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

@maryliag
Copy link
Copy Markdown
Contributor Author

TFTR!
bors r+

@craig craig bot merged commit a73b33f into cockroachdb:master Apr 10, 2023
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 10, 2023

Build succeeded:

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Apr 10, 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 cbb3491 to blathers/backport-release-22.2-100893: 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 22.2.x failed. See errors above.


🦉 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-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants