Skip to content

chore: remove unused DELETE /transaction-groups and DELETE /transactions endpoints - #3325

Merged
jbair06 merged 2 commits into
mainfrom
remove-delete-transaction-endpoints
Aug 21, 2026
Merged

chore: remove unused DELETE /transaction-groups and DELETE /transactions endpoints#3325
jbair06 merged 2 commits into
mainfrom
remove-delete-transaction-endpoints

Conversation

@jbair06

@jbair06 jbair06 commented Aug 21, 2026

Copy link
Copy Markdown
Member

Fixes #3324

Neither endpoint had any front-end callers; both were dead code.

…ints

Both endpoints were dead code with no front-end callers and introduced
unnecessary attack surface. Individual transaction cancel uses
PATCH /transactions/cancel/:id; group cancel uses
PATCH /transaction-groups/:id/cancel.

Signed-off-by: John Bair <john.bair@swirldslabs.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jbair06
jbair06 requested a review from a team as a code owner August 21, 2026 16:45
@jbair06
jbair06 requested a review from svienot August 21, 2026 16:45
@jbair06 jbair06 self-assigned this Aug 21, 2026
@swirlds-automation

swirlds-automation commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@jbair06 jbair06 added this to the v0.38.0 milestone Aug 21, 2026
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (cf7edac) to head (0930b2d).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3325      +/-   ##
==========================================
- Coverage   99.98%   99.98%   -0.01%     
==========================================
  Files         208      208              
  Lines        6534     6506      -28     
  Branches     1175     1197      +22     
==========================================
- Hits         6533     6505      -28     
  Misses          1        1              
Files with missing lines Coverage Δ
...ansactions/groups/transaction-groups.controller.ts 100.00% <ø> (ø)
.../transactions/groups/transaction-groups.service.ts 100.00% <ø> (ø)
...ps/api/src/transactions/transactions.controller.ts 100.00% <ø> (ø)
.../apps/api/src/transactions/transactions.service.ts 100.00% <ø> (ø)

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes two unused backend API deletion endpoints (DELETE /transactions/:id and DELETE /transaction-groups/:id) and their underlying service logic/tests, in line with Issue #3324 to eliminate dead code paths.

Changes:

  • Deleted TransactionsService.removeTransaction() and the DELETE /transactions/:id controller route plus related unit tests.
  • Deleted TransactionGroupsService.removeTransactionGroup() and the DELETE /transaction-groups/:id controller route plus related unit tests.
  • Cleaned up related imports (e.g., Delete, emitTransactionUpdate) no longer needed after endpoint removal.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
back-end/apps/api/src/transactions/transactions.service.ts Removes unused transaction deletion service method.
back-end/apps/api/src/transactions/transactions.service.spec.ts Removes unit tests covering the deleted service method.
back-end/apps/api/src/transactions/transactions.controller.ts Removes DELETE /transactions/:id route.
back-end/apps/api/src/transactions/transactions.controller.spec.ts Removes unit tests for the deleted controller route.
back-end/apps/api/src/transactions/groups/transaction-groups.service.ts Removes unused transaction-group deletion service method.
back-end/apps/api/src/transactions/groups/transaction-groups.service.spec.ts Removes unit tests covering the deleted group removal behavior and updates imports.
back-end/apps/api/src/transactions/groups/transaction-groups.controller.ts Removes DELETE /transaction-groups/:id route.
back-end/apps/api/src/transactions/groups/transaction-groups.controller.spec.ts Removes unit tests for the deleted controller route.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@svienot svienot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jbair06
jbair06 merged commit 2dd6fe7 into main Aug 21, 2026
29 checks passed
@jbair06
jbair06 deleted the remove-delete-transaction-endpoints branch August 21, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: remove unused DELETE /transaction-groups and DELETE /transactions endpoints

4 participants