-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Implement delete endpoint for Files
, Nodes
, Notes
, Reminders
and Timelines
module
#41
Conversation
...es/Files/Files.Application/Entities/Files/Commands/DeleteFileAsset/DeleteFileAssetCommand.cs
Outdated
Show resolved
Hide resolved
...es/Files/Files.Application/Entities/Files/Commands/DeleteFileAsset/DeleteFileAssetHandler.cs
Show resolved
Hide resolved
...es/Files/Files.Application/Entities/Files/Commands/DeleteFileAsset/DeleteFileAssetHandler.cs
Outdated
Show resolved
Hide resolved
...es/Timelines.Application/Entities/Timelines/Commands/DeleteTimeline/DeleteTimelineHandler.cs
Outdated
Show resolved
Hide resolved
...es/Timelines.Application/Entities/Timelines/Commands/DeleteTimeline/DeleteTimelineHandler.cs
Outdated
Show resolved
Hide resolved
...rs/Reminders.Application/Entities/Reminders/Commands/DeleteReminder/DeleteReminderHandler.cs
Outdated
Show resolved
Hide resolved
.../src/Modules/Notes/Notes.Application/Entities/Notes/Commands/DeleteNote/DeleteNoteHandler.cs
Outdated
Show resolved
Hide resolved
.../src/Modules/Nodes/Nodes.Application/Entities/Nodes/Commands/DeleteNode/DeleteNodeHandler.cs
Outdated
Show resolved
Hide resolved
…ete command & handler
...s/Files/Files.Application/Entities/Files/Queries/GetFileAssetById/GetFileAssetByIdHandler.cs
Outdated
Show resolved
Hide resolved
...s/Files/Files.Application/Entities/Files/Queries/GetFileAssetById/GetFileAssetByIdHandler.cs
Outdated
Show resolved
Hide resolved
...les/Files/Files.Application/Entities/Files/Queries/GetFileAssetById/GetFileAssetByIdQuery.cs
Show resolved
Hide resolved
@@ -0,0 +1,15 @@ | |||
namespace Nodes.Application.Entities.Nodes.Commands.DeleteNode; | |||
|
|||
public record DeleteNodeCommand(string Id) : ICommand<DeleteNodeResult>; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes made ✅
There was a problem hiding this comment.
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.
...src/Modules/Notes/Notes.Application/Entities/Notes/Queries/GetNoteById/GetNoteByIdHandler.cs
Outdated
Show resolved
Hide resolved
...d/src/Modules/Notes/Notes.Application/Entities/Notes/Queries/GetNoteById/GetNoteByIdQuery.cs
Show resolved
Hide resolved
...rs/Reminders.Application/Entities/Reminders/Commands/DeleteReminder/DeleteReminderCommand.cs
Outdated
Show resolved
Hide resolved
...s/Reminders.Application/Entities/Reminders/Queries/GetReminderById/GetReminderByIdHandler.cs
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,15 @@ | |||
namespace Timelines.Application.Entities.Timelines.Commands.DeleteTimeline; | |||
|
|||
public record DeleteTimelineCommand(string Id) : ICommand<DeleteTimelineResult>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strongly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes made ✅
...s/Timelines.Application/Entities/Timelines/Queries/GetTimelineById/GetTimelineByIdHandler.cs
Outdated
Show resolved
Hide resolved
|
||
namespace Timelines.Application.Entities.Timelines.Commands.DeleteTimeline; | ||
|
||
public class DeleteNodeHandler(ITimelinesDbContext dbContext) : ICommandHandler<DeleteTimelineCommand, DeleteTimelineResult> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeleteNodeHandler
? 😨
In this PR I did the following things:
Files
,Nodes
,Notes
,Reminders
andTimelines
moduleDELETE
endpoint for:Files
moduleNodes
moduleNotes
moduleReminders
moduleTimelines
module