Skip to content

Commit e09a39f

Browse files
authored
fix ignores (#146)
remove duplicate ignores logic
1 parent 1a97e91 commit e09a39f

37 files changed

Lines changed: 573 additions & 832 deletions

File tree

OpenAlprWebhookProcessor.Server/Features/Settings/Commands/AddIgnore/AddIgnoreCommand.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Commands/AddIgnore/AddIgnoreCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Mediator;
2-
using OpenAlprWebhookProcessor.Features.Settings.Queries.GetIgnores;
2+
using OpenAlprWebhookProcessor.Features.Ignores.Queries.GetIgnores;
33

4-
namespace OpenAlprWebhookProcessor.Features.Settings.Commands.AddIgnore
4+
namespace OpenAlprWebhookProcessor.Features.Ignores.Commands.AddIgnore
55
{
66
public class AddIgnoreCommand : ICommand
77
{

OpenAlprWebhookProcessor.Server/Features/Settings/Commands/AddIgnore/AddIgnoreCommandHandler.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Commands/AddIgnore/AddIgnoreCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77

8-
namespace OpenAlprWebhookProcessor.Features.Settings.Commands.AddIgnore
8+
namespace OpenAlprWebhookProcessor.Features.Ignores.Commands.AddIgnore
99
{
1010
public class AddIgnoreCommandHandler : ICommandHandler<AddIgnoreCommand>
1111
{

OpenAlprWebhookProcessor.Server/Features/Settings/Commands/DeleteIgnore/DeleteIgnoreCommand.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Commands/DeleteIgnore/DeleteIgnoreCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Mediator;
22
using System;
33

4-
namespace OpenAlprWebhookProcessor.Features.Settings.Commands.DeleteIgnore
4+
namespace OpenAlprWebhookProcessor.Features.Ignores.Commands.DeleteIgnore
55
{
66
public class DeleteIgnoreCommand : ICommand
77
{

OpenAlprWebhookProcessor.Server/Features/Settings/Commands/DeleteIgnore/DeleteIgnoreCommandHandler.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Commands/DeleteIgnore/DeleteIgnoreCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Threading;
55
using System.Threading.Tasks;
66

7-
namespace OpenAlprWebhookProcessor.Features.Settings.Commands.DeleteIgnore
7+
namespace OpenAlprWebhookProcessor.Features.Ignores.Commands.DeleteIgnore
88
{
99
public class DeleteIgnoreCommandHandler : ICommandHandler<DeleteIgnoreCommand>
1010
{

OpenAlprWebhookProcessor.Server/Features/Settings/Commands/UpdateIgnore/UpdateIgnoreCommand.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Commands/UpdateIgnore/UpdateIgnoreCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Mediator;
2-
using OpenAlprWebhookProcessor.Features.Settings.Queries.GetIgnores;
2+
using OpenAlprWebhookProcessor.Features.Ignores.Queries.GetIgnores;
33

4-
namespace OpenAlprWebhookProcessor.Features.Settings.Commands.UpdateIgnore
4+
namespace OpenAlprWebhookProcessor.Features.Ignores.Commands.UpdateIgnore
55
{
66
public class UpdateIgnoreCommand : ICommand
77
{

OpenAlprWebhookProcessor.Server/Features/Settings/Commands/UpdateIgnore/UpdateIgnoreCommandHandler.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Commands/UpdateIgnore/UpdateIgnoreCommandHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using Mediator;
22
using OpenAlprWebhookProcessor.Data.Repositories;
3+
using OpenAlprWebhookProcessor.Features.Ignores.Commands.UpdateIgnore;
34
using System;
45
using System.Threading;
56
using System.Threading.Tasks;
67

7-
namespace OpenAlprWebhookProcessor.Features.Settings.Commands.UpdateIgnore
8+
namespace OpenAlprWebhookProcessor.Features.Ignores.Commands.UpdateIgnore
89
{
910
public class UpdateIgnoreCommandHandler : ICommandHandler<UpdateIgnoreCommand>
1011
{

OpenAlprWebhookProcessor.Server/Features/Settings/IgnoresController.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/IgnoresController.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
using Mediator;
22
using Microsoft.AspNetCore.Authorization;
33
using Microsoft.AspNetCore.Mvc;
4-
using OpenAlprWebhookProcessor.Features.Settings.Commands.AddIgnore;
5-
using OpenAlprWebhookProcessor.Features.Settings.Commands.DeleteIgnore;
6-
using OpenAlprWebhookProcessor.Features.Settings.Commands.UpdateIgnore;
7-
using OpenAlprWebhookProcessor.Features.Settings.Queries.GetIgnores;
4+
using OpenAlprWebhookProcessor.Features.Ignores.Commands.AddIgnore;
5+
using OpenAlprWebhookProcessor.Features.Ignores.Commands.DeleteIgnore;
6+
using OpenAlprWebhookProcessor.Features.Ignores.Commands.UpdateIgnore;
7+
using OpenAlprWebhookProcessor.Features.Ignores.Queries.GetIgnores;
88
using System;
99
using System.Collections.Generic;
1010
using System.Threading;
1111
using System.Threading.Tasks;
1212

13-
namespace OpenAlprWebhookProcessor.Features.Settings
13+
namespace OpenAlprWebhookProcessor.Features.Ignores
1414
{
1515
[Authorize]
1616
[ApiController]

OpenAlprWebhookProcessor.Server/Features/Settings/Queries/GetIgnores/GetIgnoresQuery.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Queries/GetIgnores/GetIgnoresQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Mediator;
22
using System.Collections.Generic;
33

4-
namespace OpenAlprWebhookProcessor.Features.Settings.Queries.GetIgnores
4+
namespace OpenAlprWebhookProcessor.Features.Ignores.Queries.GetIgnores
55
{
66
public class GetIgnoresQuery : IQuery<List<IgnoreDto>>
77
{

OpenAlprWebhookProcessor.Server/Features/Settings/Queries/GetIgnores/GetIgnoresQueryHandler.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Queries/GetIgnores/GetIgnoresQueryHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Threading;
55
using System.Threading.Tasks;
66

7-
namespace OpenAlprWebhookProcessor.Features.Settings.Queries.GetIgnores
7+
namespace OpenAlprWebhookProcessor.Features.Ignores.Queries.GetIgnores
88
{
99
public class GetIgnoresQueryHandler : IQueryHandler<GetIgnoresQuery, List<IgnoreDto>>
1010
{

OpenAlprWebhookProcessor.Server/Features/Settings/Queries/GetIgnores/IgnoreDto.cs renamed to OpenAlprWebhookProcessor.Server/Features/Ignores/Queries/GetIgnores/IgnoreDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace OpenAlprWebhookProcessor.Features.Settings.Queries.GetIgnores
3+
namespace OpenAlprWebhookProcessor.Features.Ignores.Queries.GetIgnores
44
{
55
public class IgnoreDto
66
{

0 commit comments

Comments
 (0)