Skip to content

Revert " Enables Open Comments on BuyerRequests"#143

Merged
Villarley merged 1 commit intomainfrom
revert-142-feature/open-comments
Aug 20, 2025
Merged

Revert " Enables Open Comments on BuyerRequests"#143
Villarley merged 1 commit intomainfrom
revert-142-feature/open-comments

Conversation

@Villarley
Copy link
Contributor

@Villarley Villarley commented Aug 20, 2025

Reverts #142

Summary by CodeRabbit

  • New Features

    • None
  • Bug Fixes

    • None
  • Refactor

    • Removed the Comments feature from buyer requests. Users can no longer create, view, or delete comments on buyer requests. Existing comments are no longer accessible.
  • Tests

    • Removed related unit and end-to-end tests for the Comments feature.
  • Chores

    • Cleaned up references to comments across the application to reflect the feature removal.

@coderabbitai
Copy link

coderabbitai bot commented Aug 20, 2025

Walkthrough

This PR removes the entire Comments feature across the codebase: deletes the Comments module, controller, service, DTOs, entity, and related tests; removes Comment relations from BuyerRequest and User entities; and drops all references from AppModule and TypeORM configuration.

Changes

Cohort / File(s) Summary
App bootstrap cleanup
src/app.module.ts
Removed CommentsModule import and Comment entity from TypeORM entities array.
Entity relationship removals
src/modules/buyer-requests/entities/buyer-request.entity.ts, src/modules/users/entities/user.entity.ts
Deleted OneToMany relations to Comment from BuyerRequest and User, and related imports.
Comments module deletion
src/modules/comments/*
Removed the entire Comments feature: module, controller, service, DTOs, and Comment entity.
Unit tests removal (comments)
src/modules/comments/tests/*
Deleted unit tests for CommentsController and CommentsService.
E2E tests removal
test/comments.e2e-spec.ts
Deleted e2e tests covering comment CRUD and listing.
Test factories removal
test/factories/*.factory.ts
Deleted user and buyer-request test factories used by comments e2e tests.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

A hush in the warren, the comments are gone,
We swept out the burrow and hopped along.
No threads to nibble, no carrots to parse—
Just cleaner paths beneath the stars.
Thump-thump, I merge with tidy cheer,
Less chatter, more code, the meadow clear. 🥕✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d34240b and f89fa35.

📒 Files selected for processing (14)
  • src/app.module.ts (0 hunks)
  • src/modules/buyer-requests/entities/buyer-request.entity.ts (0 hunks)
  • src/modules/comments/comments.module.ts (0 hunks)
  • src/modules/comments/controllers/comments.controller.ts (0 hunks)
  • src/modules/comments/dto/create-comment.dto.ts (0 hunks)
  • src/modules/comments/dto/update-comment.dto.ts (0 hunks)
  • src/modules/comments/entities/comment.entity.ts (0 hunks)
  • src/modules/comments/services/comments.service.ts (0 hunks)
  • src/modules/comments/tests/comments.controller.spec.ts (0 hunks)
  • src/modules/comments/tests/comments.service.spec.ts (0 hunks)
  • src/modules/users/entities/user.entity.ts (0 hunks)
  • test/comments.e2e-spec.ts (0 hunks)
  • test/factories/buyer-request.factory.ts (0 hunks)
  • test/factories/user.factory.ts (0 hunks)
💤 Files with no reviewable changes (14)
  • src/modules/comments/tests/comments.controller.spec.ts
  • src/modules/comments/dto/update-comment.dto.ts
  • src/modules/comments/entities/comment.entity.ts
  • src/app.module.ts
  • src/modules/users/entities/user.entity.ts
  • src/modules/comments/comments.module.ts
  • src/modules/comments/tests/comments.service.spec.ts
  • src/modules/comments/dto/create-comment.dto.ts
  • test/comments.e2e-spec.ts
  • src/modules/buyer-requests/entities/buyer-request.entity.ts
  • test/factories/buyer-request.factory.ts
  • test/factories/user.factory.ts
  • src/modules/comments/services/comments.service.ts
  • src/modules/comments/controllers/comments.controller.ts
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch revert-142-feature/open-comments

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Villarley Villarley merged commit 09b2bd9 into main Aug 20, 2025
1 of 2 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Sep 27, 2025
10 tasks
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

Comments