Skip to content

Commit

Permalink
refactor: uniformize Api namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
melflitty-aneo committed Aug 11, 2023
1 parent fa68172 commit fda408a
Show file tree
Hide file tree
Showing 37 changed files with 50 additions and 90 deletions.
2 changes: 1 addition & 1 deletion Common/src/ArmoniK.Core.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


<ItemGroup>
<PackageReference Include="ArmoniK.Api.Core" Version="3.11.0-edge.97.da9b639" />
<PackageReference Include="ArmoniK.Api.Core" Version="3.11.0-meuniformcsharpnamespaces.126.6bc6431" />
<PackageReference Include="Calzolari.Grpc.AspNetCore.Validation" Version="6.3.0" />
<PackageReference Include="Grpc.HealthCheck" Version="2.54.0" />
<PackageReference Include="JetBrains.Annotations" Version="2022.3.1" />
Expand Down
4 changes: 1 addition & 3 deletions Common/src/gRPC/EnumFieldExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
using System.Linq.Expressions;

using ArmoniK.Api.gRPC.V1.Applications;

using Armonik.Api.Grpc.V1.Partitions;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.Results;
using ArmoniK.Api.gRPC.V1.Sessions;

Expand Down
3 changes: 1 addition & 2 deletions Common/src/gRPC/ListPartitionsRequestExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
using System.Linq;
using System.Linq.Expressions;

using Armonik.Api.Grpc.V1.Partitions;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Core.Common.Storage;

namespace ArmoniK.Core.Common.gRPC;
Expand Down
4 changes: 1 addition & 3 deletions Common/src/gRPC/Services/GrpcApplicationsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
using System.Threading.Tasks;

using ArmoniK.Api.gRPC.V1.Applications;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.Auth.Authentication;
using ArmoniK.Core.Common.Auth.Authorization;
using ArmoniK.Core.Common.Storage;
Expand Down
5 changes: 2 additions & 3 deletions Common/src/gRPC/Services/GrpcPartitionsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
using System.Linq;
using System.Threading.Tasks;

using Armonik.Api.Grpc.V1.Partitions;
using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.Auth.Authentication;
using ArmoniK.Core.Common.Auth.Authorization;
using ArmoniK.Core.Common.Storage;
Expand Down
4 changes: 1 addition & 3 deletions Common/src/gRPC/Services/GrpcResultsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
using ArmoniK.Api.Common.Utils;
using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Results;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.Auth.Authentication;
using ArmoniK.Core.Common.Auth.Authorization;
using ArmoniK.Core.Common.Storage;
Expand Down
4 changes: 1 addition & 3 deletions Common/src/gRPC/Services/GrpcSessionsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
using System.Threading.Tasks;

using ArmoniK.Api.gRPC.V1.Sessions;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.Auth.Authentication;
using ArmoniK.Core.Common.Auth.Authorization;
using ArmoniK.Core.Common.Exceptions;
Expand Down
2 changes: 1 addition & 1 deletion Common/src/gRPC/Services/GrpcTasksService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
using System.Threading.Tasks;

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.SortDirection;

using Armonik.Api.Grpc.V1.SortDirection;
using Armonik.Api.gRPC.V1.Tasks;

using ArmoniK.Api.gRPC.V1.Tasks;
Expand Down
3 changes: 1 addition & 2 deletions Common/src/gRPC/Services/GrpcVersionsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

using System.Threading.Tasks;

using Armonik.Api.Grpc.V1.Versions;

using ArmoniK.Api.gRPC.V1.Versions;
using ArmoniK.Core.Common.Auth.Authentication;
using ArmoniK.Core.Common.Auth.Authorization;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

using Armonik.Api.Grpc.V1.Partitions;
using ArmoniK.Api.gRPC.V1.Partitions;

using FluentValidation;

Expand Down
8 changes: 2 additions & 6 deletions Common/tests/Auth/AuthenticationIntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@
using ArmoniK.Api.gRPC.V1.Applications;
using ArmoniK.Api.gRPC.V1.Auth;
using ArmoniK.Api.gRPC.V1.Events;

using Armonik.Api.Grpc.V1.Partitions;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.Results;
using ArmoniK.Api.gRPC.V1.Sessions;
using ArmoniK.Api.gRPC.V1.Submitter;
using ArmoniK.Api.gRPC.V1.Tasks;

using Armonik.Api.Grpc.V1.Versions;

using ArmoniK.Api.gRPC.V1.Versions;
using ArmoniK.Core.Base;
using ArmoniK.Core.Common.Auth.Authentication;
using ArmoniK.Core.Common.Auth.Authorization;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Applications;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Applications;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
using System.Collections.Generic;

using Armonik.Api.gRPC.V1;
using Armonik.Api.Grpc.V1.Partitions;

using ArmoniK.Api.gRPC.V1.Partitions;

namespace ArmoniK.Core.Common.Tests.ListPartitionsRequestExt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
using System.Collections.Generic;

using Armonik.Api.gRPC.V1;
using Armonik.Api.Grpc.V1.Partitions;
using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
4 changes: 2 additions & 2 deletions Common/tests/ListPartitionsRequestExt/ToTaskDataFilterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
using System.Collections.Generic;

using Armonik.Api.gRPC.V1;
using Armonik.Api.Grpc.V1.Partitions;
using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
4 changes: 1 addition & 3 deletions Common/tests/ListResultsRequestExt/ToResultFieldTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Results;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
4 changes: 1 addition & 3 deletions Common/tests/ListResultsRequestExt/ToResultFilterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Results;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Sessions;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Sessions;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC;
using ArmoniK.Core.Common.Storage;

Expand Down
2 changes: 1 addition & 1 deletion Common/tests/ListTasksRequestExt/ToTaskDataFieldTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
using Armonik.Api.gRPC.V1;

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.SortDirection;

using Armonik.Api.Grpc.V1.SortDirection;
using Armonik.Api.gRPC.V1.Tasks;

using ArmoniK.Api.gRPC.V1.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion Common/tests/ListTasksRequestExt/ToTaskDataFilterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
using Armonik.Api.gRPC.V1;

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.SortDirection;

using Armonik.Api.Grpc.V1.SortDirection;
using Armonik.Api.gRPC.V1.Tasks;

using ArmoniK.Api.gRPC.V1.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion Common/tests/TestBase/PartitionTableTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
using System.Threading.Tasks;

using Armonik.Api.gRPC.V1;
using Armonik.Api.Grpc.V1.Partitions;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Core.Base.DataStructures;
using ArmoniK.Core.Common.Exceptions;
using ArmoniK.Core.Common.gRPC;
Expand Down
4 changes: 1 addition & 3 deletions Common/tests/TestBase/SessionTableTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Sessions;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Api.gRPC.V1.Submitter;
using ArmoniK.Core.Base.DataStructures;
using ArmoniK.Core.Common.Exceptions;
Expand Down
4 changes: 1 addition & 3 deletions Common/tests/TestBase/TaskTableTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
using Armonik.Api.gRPC.V1;

using ArmoniK.Api.gRPC.V1.Applications;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Api.gRPC.V1.Submitter;

using Armonik.Api.gRPC.V1.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
using System;

using ArmoniK.Api.gRPC.V1.Applications;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC.Validators;

using NUnit.Framework;
Expand Down
5 changes: 2 additions & 3 deletions Common/tests/Validators/ListPartitionsRequestValidatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@

using System;

using Armonik.Api.Grpc.V1.Partitions;
using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC.Validators;

using NUnit.Framework;
Expand Down
4 changes: 1 addition & 3 deletions Common/tests/Validators/ListResultsRequestValidatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
using System;

using ArmoniK.Api.gRPC.V1.Results;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC.Validators;

using NUnit.Framework;
Expand Down
4 changes: 1 addition & 3 deletions Common/tests/Validators/ListSessionsRequestValidatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
using System;

using ArmoniK.Api.gRPC.V1.Sessions;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Core.Common.gRPC.Validators;

using NUnit.Framework;
Expand Down
3 changes: 2 additions & 1 deletion Common/tests/Validators/ListTasksRequestValidatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

using System;

using Armonik.Api.Grpc.V1.SortDirection;
using ArmoniK.Api.gRPC.V1.SortDirection;

using Armonik.Api.gRPC.V1.Tasks;

using ArmoniK.Api.gRPC.V1.Tasks;
Expand Down
14 changes: 5 additions & 9 deletions Tests/Bench/Client/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@

using ArmoniK.Api.gRPC.V1;
using ArmoniK.Api.gRPC.V1.Events;

using Armonik.Api.Grpc.V1.Partitions;

using ArmoniK.Api.gRPC.V1.Partitions;
using ArmoniK.Api.gRPC.V1.Results;

using Armonik.Api.Grpc.V1.SortDirection;

using ArmoniK.Api.gRPC.V1.SortDirection;
using ArmoniK.Api.gRPC.V1.Submitter;
using ArmoniK.Core.Common.Tests.Client;
using ArmoniK.Samples.Bench.Client.Options;
Expand All @@ -52,9 +48,9 @@
using Serilog;
using Serilog.Formatting.Compact;

using FilterField = Armonik.Api.Grpc.V1.Partitions.FilterField;
using Filters = Armonik.Api.Grpc.V1.Partitions.Filters;
using FiltersAnd = Armonik.Api.Grpc.V1.Partitions.FiltersAnd;
using FilterField = ArmoniK.Api.gRPC.V1.Partitions.FilterField;
using Filters = ArmoniK.Api.gRPC.V1.Partitions.Filters;
using FiltersAnd = ArmoniK.Api.gRPC.V1.Partitions.FiltersAnd;
using TaskStatus = ArmoniK.Api.gRPC.V1.TaskStatus;

namespace ArmoniK.Samples.Bench.Client;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Bench/Server/src/ArmoniK.Samples.Bench.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArmoniK.Api.Worker" Version="3.11.0-edge.97.da9b639" />
<PackageReference Include="ArmoniK.Api.Worker" Version="3.11.0-meuniformcsharpnamespaces.126.6bc6431" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ArmoniK.Api.Client" Version="3.11.0-edge.97.da9b639" />
<PackageReference Include="ArmoniK.Api.Client" Version="3.11.0-meuniformcsharpnamespaces.126.6bc6431" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion Tests/Common/Client/src/GrpcChannelExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
using Armonik.Api.gRPC.V1;

using ArmoniK.Api.gRPC.V1.Results;
using ArmoniK.Api.gRPC.V1.SortDirection;

using Armonik.Api.Grpc.V1.SortDirection;
using Armonik.Api.gRPC.V1.Tasks;

using ArmoniK.Api.gRPC.V1.Tasks;
Expand Down
Loading

0 comments on commit fda408a

Please sign in to comment.