Skip to content

refactor: Removes unused events endpoint and tests - #54

Open
tim-rohrer wants to merge 1 commit into
mainfrom
5-remove-legacy-events
Open

refactor: Removes unused events endpoint and tests#54
tim-rohrer wants to merge 1 commit into
mainfrom
5-remove-legacy-events

Conversation

@tim-rohrer

Copy link
Copy Markdown
Collaborator

Events were originally written as a simpler way to test the MongoDB View features. As the technology matured, these lost their usefulness, and are now being removed.

We're also seeing styling changes that we'll need to track down later.

closes #5

@tim-rohrer tim-rohrer linked an issue Sep 8, 2026 that may be closed by this pull request
5 tasks
@tim-rohrer
tim-rohrer requested a lite review from Copilot September 8, 2026 15:12

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.

🟡 Changes recommended

Repository documentation still references the removed /api/v1/events endpoint and should be updated if this PR is closing #5.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Removes the legacy events API surface (originally used for MongoDB View POC/testing) and its supporting modules/tests to simplify the runtime API and reduce maintenance overhead.

Changes:

  • Removed the /api/v1/events Express route registration from src/server.ts.
  • Deleted the events controller/service/route layers and the MongoDB storage service for the events-view.
  • Deleted Cypress E2E specs that exercised the legacy events endpoint.
File summaries
File Description
src/storage/event.mongodb.service.ts Deleted legacy MongoDB view access helpers for events-view.
src/server.ts Stops registering the /api/v1/events route; import formatting adjustments.
src/events.service.ts Deleted legacy service wrapper around event storage.
src/events.route.ts Deleted legacy Express router for events.
src/events.controller.ts Deleted legacy controller endpoint handler for events.
cypress/e2e/2-events-us-summer.cy.ts Deleted legacy Cypress spec for events ordering behavior.
cypress/e2e/1-events-us-winter.cy.ts Deleted legacy Cypress spec for events ordering behavior.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread src/server.ts
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.

Remove Legacy events Code from Central Query

2 participants