Skip to content

Removed unused "destroy automated email" endpoint#27085

Merged
EvanHahn merged 1 commit intomainfrom
evanhahn-ny-1201-remove-destroy-automated-emails-endpoint
Apr 2, 2026
Merged

Removed unused "destroy automated email" endpoint#27085
EvanHahn merged 1 commit intomainfrom
evanhahn-ny-1201-remove-destroy-automated-emails-endpoint

Conversation

@EvanHahn
Copy link
Copy Markdown
Contributor

@EvanHahn EvanHahn commented Apr 2, 2026

closes https://linear.app/ghost/issue/NY-1201

We aren't using this endpoint today, and its existence makes a future change more difficult. Let's remove it.

closes https://linear.app/ghost/issue/NY-1201

We aren't using this endpoint today, and its existence makes a future
change more difficult. Let's remove it.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0352b8e7-3bbb-45ef-9b29-b214f0df9177

📥 Commits

Reviewing files that changed from the base of the PR and between 93f5831 and 458f574.

⛔ Files ignored due to path filters (1)
  • ghost/core/test/e2e-api/admin/__snapshots__/automated-emails.test.js.snap is excluded by !**/*.snap
📒 Files selected for processing (3)
  • ghost/core/core/server/api/endpoints/automated-emails.js
  • ghost/core/core/server/web/api/endpoints/admin/routes.js
  • ghost/core/test/e2e-api/admin/automated-emails.test.js
💤 Files with no reviewable changes (3)
  • ghost/core/core/server/web/api/endpoints/admin/routes.js
  • ghost/core/test/e2e-api/admin/automated-emails.test.js
  • ghost/core/core/server/api/endpoints/automated-emails.js

Walkthrough

This change removes the DELETE endpoint for automated emails from the system. The modifications include: removing the destroy endpoint handler from the automated emails controller, removing the corresponding DELETE /automated_emails/:id route from the admin REST API routes, and removing the associated destroy test cases from the e2e test suite. The remaining automated email operations (browse, read, add, edit, and sendTestEmail) remain unchanged and functional.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main change: removing the unused destroy automated email endpoint.
Description check ✅ Passed The description is directly related to the changeset, explaining why the endpoint is being removed and referencing the associated issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch evanhahn-ny-1201-remove-destroy-automated-emails-endpoint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

@EvanHahn EvanHahn requested a review from troyciesco April 2, 2026 17:06
Copy link
Copy Markdown
Contributor

@troyciesco troyciesco left a comment

Choose a reason for hiding this comment

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

lgtm - just noting we still have the "delete automated emails" permission in ghost/core/core/server/data/schema/fixtures/fixtures.json, but i think we still want that based on the other work you're doing.

@EvanHahn
Copy link
Copy Markdown
Contributor Author

EvanHahn commented Apr 2, 2026

Didn't know about that...thank you!

@EvanHahn EvanHahn merged commit b211f10 into main Apr 2, 2026
40 checks passed
@EvanHahn EvanHahn deleted the evanhahn-ny-1201-remove-destroy-automated-emails-endpoint branch April 2, 2026 17:14
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.

2 participants