Skip to content

RSN-57: changed getEvents endpoint and service #459

RSN-57: changed getEvents endpoint and service

RSN-57: changed getEvents endpoint and service #459

Triggered via push June 23, 2024 20:46
Status Success
Total duration 1m 40s
Artifacts

unit-tests.yml

on: push
Matrix: client-tests
Matrix: dotnet-tests
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Controllers/UsersController.cs#L14
Parameter 'UserService userService' is captured into the state of the enclosing type and its value is also used to initialize a field, property, or event.
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Services/UserService.cs#L18
Non-nullable field '_httpContextAccessor' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Controllers/EventsController.cs#L27
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Models/API/ParticipantsResponse.cs#L7
Non-nullable property 'Participating' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Models/API/ParticipantsResponse.cs#L8
Non-nullable property 'Interested' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Mappers/EventMapper.cs#L10
All 'ToDto' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Models/API/PagedResponse.cs#L7
Rename this enumeration to remove the 'Enum' suffix. (https://rules.sonarsource.com/csharp/RSPEC-2344)
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Models/API/PagedResponse.cs#L14
Rename this enumeration to remove the 'Enum' suffix. (https://rules.sonarsource.com/csharp/RSPEC-2344)
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs#L289
Supply an implementation for this partial method. (https://rules.sonarsource.com/csharp/RSPEC-3251)
dotnet-tests (macos-latest): Server/ReasnAPI/ReasnAPI/Models/DTOs/UserDto.cs#L7
Property used as input in a controller action should be nullable or annotated with the Required attribute to avoid under-posting. (https://rules.sonarsource.com/csharp/RSPEC-6964)
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Controllers/UsersController.cs#L14
Parameter 'UserService userService' is captured into the state of the enclosing type and its value is also used to initialize a field, property, or event.
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Services/UserService.cs#L18
Non-nullable field '_httpContextAccessor' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Models/API/ParticipantsResponse.cs#L7
Non-nullable property 'Participating' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Models/API/ParticipantsResponse.cs#L8
Non-nullable property 'Interested' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Controllers/EventsController.cs#L27
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Mappers/EventMapper.cs#L10
All 'ToDto' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Models/API/PagedResponse.cs#L7
Rename this enumeration to remove the 'Enum' suffix. (https://rules.sonarsource.com/csharp/RSPEC-2344)
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Models/API/PagedResponse.cs#L14
Rename this enumeration to remove the 'Enum' suffix. (https://rules.sonarsource.com/csharp/RSPEC-2344)
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs#L289
Supply an implementation for this partial method. (https://rules.sonarsource.com/csharp/RSPEC-3251)
dotnet-tests (ubuntu-latest): Server/ReasnAPI/ReasnAPI/Models/DTOs/UserDto.cs#L7
Property used as input in a controller action should be nullable or annotated with the Required attribute to avoid under-posting. (https://rules.sonarsource.com/csharp/RSPEC-6964)
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Controllers/UsersController.cs#L14
Parameter 'UserService userService' is captured into the state of the enclosing type and its value is also used to initialize a field, property, or event.
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Services/UserService.cs#L18
Non-nullable field '_httpContextAccessor' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Controllers/EventsController.cs#L27
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Models/API/ParticipantsResponse.cs#L7
Non-nullable property 'Participating' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Models/API/ParticipantsResponse.cs#L8
Non-nullable property 'Interested' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Mappers/EventMapper.cs#L10
All 'ToDto' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Models/API/PagedResponse.cs#L7
Rename this enumeration to remove the 'Enum' suffix. (https://rules.sonarsource.com/csharp/RSPEC-2344)
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Models/API/PagedResponse.cs#L14
Rename this enumeration to remove the 'Enum' suffix. (https://rules.sonarsource.com/csharp/RSPEC-2344)
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Models/Database/ReasnContext.cs#L289
Supply an implementation for this partial method. (https://rules.sonarsource.com/csharp/RSPEC-3251)
dotnet-tests (windows-latest): Server/ReasnAPI/ReasnAPI/Program.cs#L150
Await RunAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)