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: delete iterations and their sub items together #6264

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

jing-zhi
Copy link
Contributor

@jing-zhi jing-zhi commented Feb 1, 2024

What this PR does / why we need it:

refactor: delete iterations and their sub items together
feat: initialize issueService

Which issue(s) this PR fixes:

refactor: delete iterations and their sub items together

Specified Reviewers:

/assign @chengjoey @sfwn @luobily

ChangeLog

Language Changelog
🇺🇸 English refactor: delete iterations and their sub items together
🇨🇳 中文 【项目协同】删除迭代支持选择确认删除迭代中所有事项并删除迭代

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.

internal/apps/dop/endpoints/iteration.go Outdated Show resolved Hide resolved
internal/apps/dop/endpoints/iteration.go Outdated Show resolved Hide resolved
internal/apps/dop/endpoints/iteration.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Attention: Patch coverage is 2.08333% with 47 lines in your changes are missing coverage. Please review.

Project coverage is 22.65%. Comparing base (1951d11) to head (88862b2).
Report is 7 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6264      +/-   ##
==========================================
- Coverage   22.69%   22.65%   -0.05%     
==========================================
  Files        1833     1835       +2     
  Lines      196128   196666     +538     
==========================================
+ Hits        44509    44547      +38     
- Misses     146505   146984     +479     
- Partials     5114     5135      +21     
Files Coverage Δ
internal/apps/dop/initialize.go 41.18% <100.00%> (-1.34%) ⬇️
...ents/issue-manage/batchOperationTipModal/render.go 23.23% <0.00%> (ø)
internal/apps/dop/endpoints/endpoints.go 65.39% <0.00%> (-17.79%) ⬇️
internal/apps/dop/endpoints/iteration.go 6.15% <0.00%> (-2.41%) ⬇️
internal/apps/dop/providers/issue/core/service.go 8.24% <0.00%> (-0.41%) ⬇️

... and 14 files with indirect coverage changes

@jing-zhi jing-zhi force-pushed the issue-dd branch 3 times, most recently from 7f83688 to c317450 Compare February 6, 2024 07:46
@jing-zhi jing-zhi force-pushed the issue-dd branch 4 times, most recently from baf1bee to 4df13c8 Compare February 19, 2024 01:40
api/proto/openapiv1/dop/dop.proto Outdated Show resolved Hide resolved
api/proto/openapiv1/dop/dop.proto Outdated Show resolved Hide resolved
internal/apps/dop/endpoints/endpoints.go Outdated Show resolved Hide resolved
internal/apps/dop/endpoints/iteration.go Outdated Show resolved Hide resolved
internal/apps/dop/providers/issue/core/service.go Outdated Show resolved Hide resolved
internal/apps/dop/providers/issue/dao/core.go Outdated Show resolved Hide resolved
internal/apps/dop/providers/issue/dao/core.go Outdated Show resolved Hide resolved
@jing-zhi jing-zhi force-pushed the issue-dd branch 2 times, most recently from db408cd to b60764d Compare February 22, 2024 08:33
internal/apps/dop/endpoints/iteration.go Outdated Show resolved Hide resolved
internal/apps/dop/endpoints/iteration.go Outdated Show resolved Hide resolved
internal/apps/dop/providers/issue/core/service.go Outdated Show resolved Hide resolved
internal/apps/dop/providers/issue/core/service.go Outdated Show resolved Hide resolved
if err != nil {
return apierrors.ErrDeleteIteration.InternalError(err).ToResp(), nil
}
goto come
Copy link
Member

@sfwn sfwn Feb 27, 2024

Choose a reason for hiding this comment

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

unnecessary goto instruct.

feat: initialize issueService

feat: add option to delete only iterations or all

feat: add BatchUpdateIssueIterationID

feat: batch deletion of functions and addition of transactions

feat: add BatchDeleteIssueByIterationID function

feat: expose interfaces

refactor: Transaction validation and change the parameter transfer method
@sfwn
Copy link
Member

sfwn commented Feb 27, 2024

/approve

@sfwn sfwn merged commit a89edd2 into erda-project:master Feb 27, 2024
22 of 23 checks passed
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.

3 participants