Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement delete endpoint for Files, Nodes, Notes, Reminders and Timelines module #41

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

HunorTotBagi
Copy link
Collaborator

@HunorTotBagi HunorTotBagi commented Jan 4, 2025

In this PR I did the following things:

  • Created endpoints, command and handler for Files, Nodes, Notes, Reminders and Timelines module
  • Added the delete requests to postman collection
  • Tested the DELETE endpoint for:
  • Files module
  • Nodes module
  • Notes module
  • Reminders module
  • Timelines module

@HunorTotBagi HunorTotBagi added the enhancement New feature or request label Jan 4, 2025
@HunorTotBagi HunorTotBagi self-assigned this Jan 4, 2025
@HunorTotBagi HunorTotBagi marked this pull request as ready for review January 5, 2025 07:45
@HunorTotBagi HunorTotBagi added the backend Work performed on the backend solution label Jan 13, 2025
@@ -0,0 +1,15 @@
namespace Nodes.Application.Entities.Nodes.Commands.DeleteNode;

public record DeleteNodeCommand(string Id) : ICommand<DeleteNodeResult>;
Copy link
Owner

Choose a reason for hiding this comment

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

Like I said above, I suggest strongly typed properties in commands and queries. This goes for all modules.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changes made ✅

Copy link
Owner

Choose a reason for hiding this comment

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

Hmm, they don't seem to be - the Id is still of string type.

@@ -0,0 +1,15 @@
namespace Timelines.Application.Entities.Timelines.Commands.DeleteTimeline;

public record DeleteTimelineCommand(string Id) : ICommand<DeleteTimelineResult>;
Copy link
Owner

Choose a reason for hiding this comment

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

Strongly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changes made ✅


namespace Timelines.Application.Entities.Timelines.Commands.DeleteTimeline;

public class DeleteNodeHandler(ITimelinesDbContext dbContext) : ICommandHandler<DeleteTimelineCommand, DeleteTimelineResult>
Copy link
Owner

Choose a reason for hiding this comment

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

DeleteNodeHandler? 😨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Work performed on the backend solution enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants