Skip to content

ui: make the warning about performance more prominent#87185

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:warning-rec
Sep 1, 2022
Merged

ui: make the warning about performance more prominent#87185
craig[bot] merged 1 commit intocockroachdb:masterfrom
maryliag:warning-rec

Conversation

@maryliag
Copy link
Copy Markdown
Contributor

Previously the warning about schema changes affecting
performance was too discrete. This commit adds a warning
component, so the message is more prominent and the user
can see more easily.

Screen Shot 2022-08-31 at 11 20 59 AM

Release justification: low risk change, improve UX
Release note (ui change): Add warning about
performance being affected when executing an index
recommendation.

Previously the warning about schema changes affecting
performance was too discrete. This commit adds a warning
component, so the message is more prominent and the user
can see more easily.

Release justification: low risk change, improve UX
Release note (ui change): Add warning about
performance being affected when executing an index
recommendation.
@maryliag maryliag requested a review from a team August 31, 2022 15:31
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@maryliag maryliag requested a review from kevin-v-ngo September 1, 2022 12:47
@j82w
Copy link
Copy Markdown
Contributor

j82w commented Sep 1, 2022

pkg/ui/workspaces/cluster-ui/src/insights/indexActionBtn.tsx line 143 at r1 (raw file):

          className={cx("alert-area")}
          title={`Schema changes consume additional
          resources and can potentially negatively impact workload

How long does it take to apply an index change? Just wondering if there should be text warning the user it could take hours depending on the size of the table.

Copy link
Copy Markdown
Contributor

@j82w j82w 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 @kevin-v-ngo and @maryliag)


pkg/ui/workspaces/cluster-ui/src/insights/indexActionBtn.tsx line 142 at r1 (raw file):

          intent="warning"
          className={cx("alert-area")}
          title={`Schema changes consume additional

Should there also be a warning that adding indexes could impact create time?

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 @kevin-v-ngo and @maryliag)


pkg/ui/workspaces/cluster-ui/src/insights/indexActionBtn.tsx line 142 at r1 (raw file):

Previously, j82w wrote…

Should there also be a warning that adding indexes could impact create time?

On the link pointed here there is all this information and extra warnings. There are a lot of warning, so not sure if make sense to add all of them. so we went with the general warning and they can look into the documentation for more.
WDYT @kevin-v-ngo ?

Copy link
Copy Markdown
Contributor

@xinhaoz xinhaoz 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 @kevin-v-ngo and @maryliag)

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 @kevin-v-ngo and @maryliag)


pkg/ui/workspaces/cluster-ui/src/insights/indexActionBtn.tsx line 142 at r1 (raw file):

Previously, maryliag (Marylia Gutierrez) wrote…

On the link pointed here there is all this information and extra warnings. There are a lot of warning, so not sure if make sense to add all of them. so we went with the general warning and they can look into the documentation for more.
WDYT @kevin-v-ngo ?

discussed offline, we will leave the message as is (at least for now)

@maryliag
Copy link
Copy Markdown
Contributor Author

maryliag commented Sep 1, 2022

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 1, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 1, 2022

Build succeeded:

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.

4 participants