Skip to content

Commit 69d72c2

Browse files
authored
[PM-28485] Move organization events domain to DIRT code ownership (#6685)
1 parent bc800a7 commit 69d72c2

52 files changed

Lines changed: 15 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Api/AdminConsole/Controllers/EventsController.cs renamed to src/Api/Dirt/Controllers/EventsController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// FIXME: Update this file to be null safe and then delete the line below
22
#nullable disable
33

4+
using Bit.Api.Dirt.Models.Response;
45
using Bit.Api.Models.Response;
56
using Bit.Api.Utilities;
67
using Bit.Api.Utilities.DiagnosticTools;
@@ -17,7 +18,7 @@
1718
using Microsoft.AspNetCore.Authorization;
1819
using Microsoft.AspNetCore.Mvc;
1920

20-
namespace Bit.Api.Controllers;
21+
namespace Bit.Api.Dirt.Controllers;
2122

2223
[Route("events")]
2324
[Authorize("Application")]

src/Api/AdminConsole/Models/Response/EventResponseModel.cs renamed to src/Api/Dirt/Models/Response/EventResponseModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Bit.Core.Models.Api;
33
using Bit.Core.Models.Data;
44

5-
namespace Bit.Api.Models.Response;
5+
namespace Bit.Api.Dirt.Models.Response;
66

77
public class EventResponseModel : ResponseModel
88
{

src/Api/AdminConsole/Public/Controllers/EventsController.cs renamed to src/Api/Dirt/Public/Controllers/EventsController.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-

2-
using System.Net;
3-
using Bit.Api.Models.Public.Request;
1+
using System.Net;
2+
using Bit.Api.Dirt.Public.Models;
43
using Bit.Api.Models.Public.Response;
54
using Bit.Api.Utilities.DiagnosticTools;
65
using Bit.Core.Context;
@@ -12,7 +11,7 @@
1211
using Microsoft.AspNetCore.Authorization;
1312
using Microsoft.AspNetCore.Mvc;
1413

15-
namespace Bit.Api.Public.Controllers;
14+
namespace Bit.Api.Dirt.Public.Controllers;
1615

1716
[Route("public/events")]
1817
[Authorize("Organization")]

src/Api/AdminConsole/Public/Models/Request/EventFilterRequestModel.cs renamed to src/Api/Dirt/Public/Models/EventFilterRequestModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using Bit.Core.Exceptions;
55

6-
namespace Bit.Api.Models.Public.Request;
6+
namespace Bit.Api.Dirt.Public.Models;
77

88
public class EventFilterRequestModel
99
{

src/Api/AdminConsole/Public/Models/Response/EventResponseModel.cs renamed to src/Api/Dirt/Public/Models/EventResponseModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System.ComponentModel.DataAnnotations;
2+
using Bit.Api.Models.Public.Response;
23
using Bit.Core.Enums;
34
using Bit.Core.Models.Data;
45

5-
namespace Bit.Api.Models.Public.Response;
6+
namespace Bit.Api.Dirt.Public.Models;
67

78
/// <summary>
89
/// An event log.

src/Api/SecretsManager/Controllers/SecretsManagerEventsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// FIXME: Update this file to be null safe and then delete the line below
22
#nullable disable
33

4+
using Bit.Api.Dirt.Models.Response;
45
using Bit.Api.Models.Response;
56
using Bit.Api.Utilities;
67
using Bit.Core.Exceptions;

src/Api/Utilities/DiagnosticTools/EventDiagnosticLogger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Bit.Api.Models.Public.Request;
1+
using Bit.Api.Dirt.Public.Models;
22
using Bit.Api.Models.Public.Response;
33
using Bit.Core;
44
using Bit.Core.Services;
@@ -49,7 +49,7 @@ public static void LogAggregateData(
4949
this ILogger logger,
5050
IFeatureService featureService,
5151
Guid organizationId,
52-
IEnumerable<Bit.Api.Models.Response.EventResponseModel> data,
52+
IEnumerable<Dirt.Models.Response.EventResponseModel> data,
5353
string? continuationToken,
5454
DateTime? queryStart = null,
5555
DateTime? queryEnd = null)
File renamed without changes.

0 commit comments

Comments
 (0)