Skip to content

Add an endpoint to synchronize the KKR database with updates from the change log #431

Add an endpoint to synchronize the KKR database with updates from the change log

Add an endpoint to synchronize the KKR database with updates from the change log #431

Triggered via pull request October 16, 2024 15:17
Status Failure
Total duration 2m 6s
Artifacts

codeql-analysis.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L33
There is no argument given that corresponds to the required parameter 'mapper' of 'PersonRepository.PersonRepository(ILogger<PersonRepository>, IMapper, ProfileDbContext, IDbContextFactory<ProfileDbContext>)'
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L54
'Result<ImmutableList<Person>, bool>' does not contain a definition for 'FirstOrDefault' and no accessible extension method 'FirstOrDefault' accepting a first argument of type 'Result<ImmutableList<Person>, bool>' could be found (are you missing a using directive or an assembly reference?)
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L71
Argument 2: cannot convert from 'method group' to 'int'
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L73
foreach statement cannot operate on variables of type 'Result<ImmutableList<Person>, bool>' because 'Result<ImmutableList<Person>, bool>' does not contain a public instance or extension definition for 'GetEnumerator'
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L88
Argument 1: cannot convert from 'Altinn.Profile.Core.Result<System.Collections.Immutable.ImmutableList<Altinn.Profile.Integrations.Entities.Person>, bool>' to 'System.Collections.IEnumerable'
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L98
Argument 1: cannot convert from 'Altinn.Profile.Core.Result<System.Collections.Immutable.ImmutableList<Altinn.Profile.Integrations.Entities.Person>, bool>' to 'System.Collections.IEnumerable'
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L108
Argument 1: cannot convert from 'Altinn.Profile.Core.Result<System.Collections.Immutable.ImmutableList<Altinn.Profile.Integrations.Entities.Person>, bool>' to 'System.Collections.IEnumerable'
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonRepositoryTests.cs#L120
'Result<ImmutableList<Person>, bool>' does not contain a definition for 'FirstOrDefault' and no accessible extension method 'FirstOrDefault' accepting a first argument of type 'Result<ImmutableList<Person>, bool>' could be found (are you missing a using directive or an assembly reference?)
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L297
'Result<IPersonContactPreferences, bool>' does not contain a definition for 'IsReserved' and no accessible extension method 'IsReserved' accepting a first argument of type 'Result<IPersonContactPreferences, bool>' could be found (are you missing a using directive or an assembly reference?)
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L298
'Result<IPersonContactPreferences, bool>' does not contain a definition for 'Email' and no accessible extension method 'Email' accepting a first argument of type 'Result<IPersonContactPreferences, bool>' could be found (are you missing a using directive or an assembly reference?)
Analyze (csharp): src/Altinn.Profile.Integrations/Services/PersonService.cs#L35
Parameter 'metadataRepository' has no matching param tag in the XML comment for 'PersonService.PersonService(IMapper, IPersonRepository, IMetadataRepository, INationalIdentityNumberChecker, IContactRegisterService)' (but other parameters do)
Analyze (csharp): src/Altinn.Profile.Integrations/Services/PersonService.cs#L35
Parameter 'changesLogService' has no matching param tag in the XML comment for 'PersonService.PersonService(IMapper, IPersonRepository, IMetadataRepository, INationalIdentityNumberChecker, IContactRegisterService)' (but other parameters do)
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L29
Non-nullable field '_personService' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L27
Field 'PersonServiceTests._personService' is never assigned to, and will always have its default value null
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L252
Do not use Assert.Null() on value type 'Result<IPersonContactPreferences, bool>'. Remove this assert. (https://xunit.net/xunit.analyzers/rules/xUnit2002)
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L322
Do not use Assert.Null() on value type 'Result<IPersonContactPreferences, bool>'. Remove this assert. (https://xunit.net/xunit.analyzers/rules/xUnit2002)
Analyze (csharp): test/Altinn.Profile.Tests/Profile.Integrations/Person/PersonServiceTests.cs#L296
Do not use Assert.NotNull() on value type 'Result<IPersonContactPreferences, bool>'. Remove this assert. (https://xunit.net/xunit.analyzers/rules/xUnit2002)
Analyze (csharp): src/Altinn.Profile.Integrations/Services/PersonService.cs#L35
Parameter 'metadataRepository' has no matching param tag in the XML comment for 'PersonService.PersonService(IMapper, IPersonRepository, IMetadataRepository, INationalIdentityNumberChecker, IContactRegisterService)' (but other parameters do)
Analyze (csharp): src/Altinn.Profile.Integrations/Services/PersonService.cs#L35
Parameter 'changesLogService' has no matching param tag in the XML comment for 'PersonService.PersonService(IMapper, IPersonRepository, IMetadataRepository, INationalIdentityNumberChecker, IContactRegisterService)' (but other parameters do)