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

fix(stmt): min value of max stmt count size & blank detail page #982

Merged
merged 10 commits into from
Sep 22, 2021

Conversation

shhdgit
Copy link
Member

@shhdgit shhdgit commented Aug 13, 2021

  • Min of max stmt count size cannot be zero.
  • Fix blank detail page bug caused by incorrect time range.

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Aug 13, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • baurine

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@shhdgit shhdgit changed the title fix(ui): min value of max stmt count size [WIP] fix(ui): min value of max stmt count size Aug 13, 2021
@shhdgit shhdgit changed the title [WIP] fix(ui): min value of max stmt count size fix(stmt): min value of max stmt count size & blank detail page Aug 15, 2021
@shhdgit shhdgit requested review from breezewish and baurine August 15, 2021 17:21
@shhdgit
Copy link
Member Author

shhdgit commented Aug 15, 2021

/cc @breeswish @baurine
PTAL, Thanks!

@unbyte
Copy link
Contributor

unbyte commented Aug 15, 2021

with more and more complex the cache keys seem really dirty.
just wonder could we find a more concise method for caching.

@shhdgit
Copy link
Member Author

shhdgit commented Aug 16, 2021

I have tried to separate the cache. The other way around in this God controller would be much dirtier and we need to consider refactoring it.

The purpose of the current fix is to sync the data cache with the real time range. Because the list data is cached, and the real time range is recalculated every time the page is entered, it cannot be matched here.

@shhdgit
Copy link
Member Author

shhdgit commented Aug 16, 2021

Thanks for the advice~~ We do need to refactor the large controller for stmt and slow query, which makes it difficult to understand the intent of the code changes. T T

@shhdgit shhdgit force-pushed the fix/stmt-config branch 2 times, most recently from bc1b690 to 13b0719 Compare August 17, 2021 06:58
@shhdgit
Copy link
Member Author

shhdgit commented Aug 17, 2021

When the list data outdated it looks like this:

image

Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

BTW I wonder whether I'm the only person not understanding well about the logic of statements, statementControllers, and cache managers. :/

ui/lib/apps/Statement/pages/List/index.tsx Outdated Show resolved Hide resolved
ui/lib/apps/Statement/pages/List/index.tsx Outdated Show resolved Hide resolved
@shhdgit shhdgit requested a review from breezewish August 18, 2021 08:11
@shhdgit
Copy link
Member Author

shhdgit commented Aug 18, 2021

That's true. I can open another pr to refactor the code.

@shhdgit
Copy link
Member Author

shhdgit commented Aug 26, 2021

PTAL, thanks~
/cc @baurine @breeswish @unbyte

@ti-chi-bot
Copy link
Member

@shhdgit: GitHub didn't allow me to request PR reviews from the following users: unbyte.

Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

PTAL, thanks~
/cc @baurine @breeswish @unbyte

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Collaborator

@baurine baurine left a comment

Choose a reason for hiding this comment

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

lgtm

ui/lib/apps/Statement/pages/List/index.tsx Outdated Show resolved Hide resolved
Co-authored-by: Wenxuan <hi@breeswish.org>
@breezewish
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: d8c2b9d

@ti-chi-bot ti-chi-bot merged commit addb897 into pingcap:master Sep 22, 2021
baurine pushed a commit to baurine/tidb-dashboard that referenced this pull request Sep 26, 2021
baurine added a commit that referenced this pull request Sep 26, 2021
* Support non root user login (#985)

Co-authored-by: Wenxuan <hi@breeswish.org>
Co-authored-by: crazycs <chen.two.cs@gmail.com>

* tweak(debugapi): pprof endpoint debug param (#1005)

* Tweak: component invalid address check (#994)

* tweak(client): add clients addr check & fix debugapi SSRF vulnerability

* chore: update comments

* fix: lints

* fix: proxy url at tidb/client

* feat(client): member cache

* chore: rename

* chore: remove unnecessary tidb proxy addr parse

* server: add --log-dir to specify logstore dir (#873)

* build(deps): bump tmpl from 1.0.4 to 1.0.5 in /ui (#1007)

* build(deps): bump tmpl from 1.0.4 to 1.0.5 in /ui/tests (#1008)

* support authorize non root user to sso login (#1003)

* fix: debug api pprof timeout & refine api model (#964)

* fix(stmt): min value of max stmt count size & blank detail page (#982)

* Refine non root login (#1009)

* make non-root-login default value false

* add tooltip to ask for upgrade tidb to support login with non root

* Update ui/dashboardApp/layout/translations/zh.yaml

Co-authored-by: Wenxuan <hi@breeswish.org>

* Update ui/dashboardApp/layout/translations/en.yaml

Co-authored-by: Wenxuan <hi@breeswish.org>

Co-authored-by: Wenxuan <hi@breeswish.org>

* add doc link for insufficient privileges error (#1012)

* update release-version

Co-authored-by: Wenxuan <hi@breeswish.org>
Co-authored-by: crazycs <chen.two.cs@gmail.com>
Co-authored-by: Suhaha <jklopsdfw@gmail.com>
Co-authored-by: 9547 <nivefive9547@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants