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

refactor: Isolate func and model #6106

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

jing-zhi
Copy link
Contributor

@jing-zhi jing-zhi commented Oct 25, 2023

feat:add confirmation button for batch deletion

What this PR does / why we need it:

refactor: Isolate func and model
feat:add confirmation button for batch deletion

Which issue(s) this PR fixes:

Specified Reviewers:

/assign @chengjoey @sfwn

ChangeLog

Language Changelog
🇺🇸 English refactor: Isolate func and model,feat:add confirmation button for batch deletion
🇨🇳 中文 重构,隔离函数与结构体,批量删除-增加确认弹窗

Need cherry-pick to release versions?

Add comment like /cherry-pick release/1.0 when this PR is merged.

For details on the cherry pick process, see the cherry pick requests section under CONTRIBUTING.md.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #6106 (7d579b2) into master (0dd5da4) will increase coverage by 0.00%.
Report is 1 commits behind head on master.
The diff coverage is 28.03%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6106   +/-   ##
=======================================
  Coverage   23.00%   23.01%           
=======================================
  Files        1777     1778    +1     
  Lines      190821   190916   +95     
=======================================
+ Hits        43899    43937   +38     
- Misses     141894   141951   +57     
  Partials     5028     5028           
Files Coverage Δ
...tocol/components/issue-manage/issueTable/render.go 47.73% <0.00%> (+0.85%) ⬆️
...ents/issue-manage/batchOperationTipModal/render.go 28.57% <28.57%> (ø)

... and 6 files with indirect coverage changes

@jing-zhi jing-zhi force-pushed the feat branch 3 times, most recently from 3bf1e3e to b00b0d3 Compare October 25, 2023 09:25
Comment on lines 26 to 32
// batchOperationTipModal: {
// type: 'Modal',
// props: {
// status: 'warning',
// content: '您将解冻以下节点:\n cn-hongkong.172.15.3.3 \ncn-hongkong.172.15.3.3',
// title: '提示',
// },
Copy link
Contributor

Choose a reason for hiding this comment

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

delete useless comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you for pointing out

@@ -126,6 +126,9 @@ func (p *provider) queryPersonalEfficiency(rw http.ResponseWriter, r *http.Reque
}

rawSql := p.makeEfficiencyBasicSql(req)
fmt.Println("————————————————————————————打印sql————————————————————————————")
Copy link
Contributor

Choose a reason for hiding this comment

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

delete useless codes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you for pointing out

}

// Transfer transfer a to b with json, kind of b must be pointer
func Transfer(a, b interface{}) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Transfer is necessary to add unit-test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you for pointing out

feat:add confirmation button for batch deletion
@sfwn
Copy link
Member

sfwn commented Oct 27, 2023

/approve

@erda-bot erda-bot merged commit dc1f77b into erda-project:master Oct 27, 2023
28 checks passed
@jing-zhi jing-zhi deleted the feat branch November 1, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants