Skip to content

Include more details in InitializeCorrespondence response #1191

Include more details in InitializeCorrespondence response

Include more details in InitializeCorrespondence response #1191

Triggered via pull request October 18, 2024 07:49
Status Success
Total duration 2m 36s
Artifacts

test-application.yml

on: pull_request
Test application
2m 27s
Test application
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Test application: src/Altinn.Correspondence.Core/Models/Entities/AttachmentEntity.cs#L19
Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
Test application: src/Altinn.Correspondence.Core/Services/Mappers/DialogportenText.cs#L31
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(Altinn.Correspondence.Core.Dialogporten.Mappers.DialogportenTextType)7' is not covered.
Test application: src/Altinn.Correspondence.Core/Services/Mappers/DialogportenText.cs#L41
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(Altinn.Correspondence.Core.Dialogporten.Mappers.DialogportenTextType)7' is not covered.
Test application: src/Altinn.Correspondence.Core/Services/Mappers/DialogportenText.cs#L51
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(Altinn.Correspondence.Core.Dialogporten.Mappers.DialogportenTextType)7' is not covered.
Test application: src/Altinn.Correspondence.Persistence/Repositories/AttachmentRepository.cs#L62
Nullability of reference types in return type of 'Task<List<AttachmentEntity?>> AttachmentRepository.GetAttachmentsByCorrespondence(Guid correspondenceId, CancellationToken cancellationToken)' doesn't match implicitly implemented member 'Task<List<AttachmentEntity>> IAttachmentRepository.GetAttachmentsByCorrespondence(Guid correspondenceId, CancellationToken cancellationToken)'.
Test application: src/Altinn.Correspondence.Persistence/DependencyInjection.cs#L43
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.