Skip to content

fix: 撤回时只摘除自身合并关系,避免误删同组其他流程待办 (#260) - #261

Merged
xlorne merged 1 commit into
devfrom
feature/issue-260-merge-revoke-keep-remaining
Nov 10, 2026
Merged

xlorne merged 1 commit into
devfrom
feature/issue-260-merge-revoke-keep-remaining

Conversation

@xlorne

@xlorne xlorne commented Nov 10, 2026

Copy link
Copy Markdown
Contributor
  • FlowRecordSaveService:已办结与已撤销记录统一走 removeTodoRecord,合并组只删除本记录的关系并递减合并数量,剩余记录时刷新代表记录
  • 删除合并组(组内无剩余记录)时同步清理残余合并关系,避免孤儿数据
  • 新增 FlowIssue260MergeRevokeTest:覆盖 a1 撤回后保留 a2、a1 重新提交后合并组恢复为 2 条

Closes #260

- FlowRecordSaveService:已办结与已撤销记录统一走 removeTodoRecord,合并组只删除本记录的关系并递减合并数量,剩余记录时刷新代表记录
- 删除合并组(组内无剩余记录)时同步清理残余合并关系,避免孤儿数据
- 新增 FlowIssue260MergeRevokeTest:覆盖 a1 撤回后保留 a2、a1 重新提交后合并组恢复为 2 条

Closes #260
@xlorne
xlorne merged commit 7c18e2d into dev Nov 10, 2026
1 check passed
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.75862% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.44%. Comparing base (046e83c) to head (b5d38a8).
⚠️ Report is 4 commits behind head on dev.

Files with missing lines Patch % Lines
.../codingapi/flow/service/FlowRecordSaveService.java 82.75% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev     #261      +/-   ##
============================================
- Coverage     74.49%   74.44%   -0.05%     
  Complexity     1808     1808              
============================================
  Files           236      236              
  Lines          7485     7490       +5     
  Branches        865      864       -1     
============================================
  Hits           5576     5576              
- Misses         1487     1490       +3     
- Partials        422      424       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xlorne
xlorne deleted the feature/issue-260-merge-revoke-keep-remaining branch November 12, 2026 02:32
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.

1 participant