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

dm(ui): support start/pause/resume/delete task #4412

Merged
merged 7 commits into from
Feb 8, 2022
Merged

dm(ui): support start/pause/resume/delete task #4412

merged 7 commits into from
Feb 8, 2022

Conversation

zoubingwu
Copy link
Member

@zoubingwu zoubingwu commented Jan 19, 2022

What problem does this PR solve?

Add methods to start/pause/resume/delete task.

Issue Number: ref #3583

What is changed and how it works?

Add buttons and event handlers

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jan 19, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Ehco1996

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.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 19, 2022
@lance6716 lance6716 added the area/dm Issues or PRs related to DM. label Jan 19, 2022
@zoubingwu zoubingwu changed the title dm/ui: start/pause/resume task dm/ui: start/pause/resume/delete task Jan 19, 2022
@zoubingwu
Copy link
Member Author

cc @Ehco1996 @baurine

Copy link
Contributor

@Ehco1996 Ehco1996 left a comment

Choose a reason for hiding this comment

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

restLGTM

@@ -93,9 +96,10 @@
"source name": "名称",
"source name is required": "名称不能为空",
"start import": "开始导入",
"start task": "启动任务",
"start task and remove meta data": "清理元数据启动",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"start task and remove meta data": "清理元数据启动",
"start task and remove meta data": "启动同步任务并清理元数据",

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 27, 2022
@@ -24,7 +24,7 @@ const BlinkingText: React.FC<{ text: string; active: boolean }> = ({

useEffect(() => {
if (active) {
timer.current = window.setInterval(() => setCount(c => c + 1), 300)
timer.current = window.setInterval(() => setCount(c => (c + 1) % 4), 300)
Copy link
Contributor

Choose a reason for hiding this comment

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

Because of this change, the line 39 can be simplified to return <span>{text + '.'.repeat(count)}</span>

@ti-chi-bot
Copy link
Member

@baurine: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

In response to this:

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 ti-community-infra/tichi repository.

@Ehco1996
Copy link
Contributor

Ehco1996 commented Feb 8, 2022

/merge

@ti-chi-bot
Copy link
Member

@Ehco1996: /merge in this pull request requires 2 approval(s).

In response to this:

/merge

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 ti-community-infra/tichi repository.

@Ehco1996 Ehco1996 added the require-LGT1 Indicates that the PR requires an LGTM. label Feb 8, 2022
@Ehco1996 Ehco1996 changed the title dm/ui: start/pause/resume/delete task dm(ui): support start/pause/resume/delete task Feb 8, 2022
@Ehco1996
Copy link
Contributor

Ehco1996 commented Feb 8, 2022

/check-issue-triage-complete

1 similar comment
@Ehco1996
Copy link
Contributor

Ehco1996 commented Feb 8, 2022

/check-issue-triage-complete

@Ehco1996
Copy link
Contributor

Ehco1996 commented Feb 8, 2022

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 4bde98b

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Feb 8, 2022
@Ehco1996
Copy link
Contributor

Ehco1996 commented Feb 8, 2022

/run-verify

@codecov-commenter
Copy link

Codecov Report

Merging #4412 (4bde98b) into master (9607554) will decrease coverage by 0.1425%.
The diff coverage is 54.6979%.

Flag Coverage Δ
cdc 60.2519% <69.1489%> (+0.3297%) ⬆️
dm 51.5329% <51.9920%> (-0.4960%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@@               Coverage Diff                @@
##             master      #4412        +/-   ##
================================================
- Coverage   55.6402%   55.4976%   -0.1426%     
================================================
  Files           494        498         +4     
  Lines         61283      61790       +507     
================================================
+ Hits          34098      34292       +194     
- Misses        23750      24066       +316     
+ Partials       3435       3432         -3     

@ti-chi-bot ti-chi-bot merged commit 95e751f into pingcap:master Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dm Issues or PRs related to DM. release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants