diff --git a/src/Altinn.App.Core/Internal/Patch/DataPatchResult.cs b/src/Altinn.App.Core/Internal/Patch/DataPatchResult.cs index 2a1c7a8e7..3e1a12520 100644 --- a/src/Altinn.App.Core/Internal/Patch/DataPatchResult.cs +++ b/src/Altinn.App.Core/Internal/Patch/DataPatchResult.cs @@ -1,4 +1,3 @@ -using Altinn.App.Core.Features; using Altinn.App.Core.Models; using Altinn.App.Core.Models.Validation; using Altinn.Platform.Storage.Interface.Models; @@ -20,11 +19,6 @@ public class DataPatchResult /// public required List ValidationIssues { get; init; } - /// - /// The current data model after the patch operation. - /// - public required List ChangedDataElements { get; init; } - /// /// Get updated data elements that have app logic in a dictionary with the data element id as key. /// diff --git a/src/Altinn.App.Core/Internal/Patch/PatchService.cs b/src/Altinn.App.Core/Internal/Patch/PatchService.cs index 84bcfebaa..fb1463306 100644 --- a/src/Altinn.App.Core/Internal/Patch/PatchService.cs +++ b/src/Altinn.App.Core/Internal/Patch/PatchService.cs @@ -197,7 +197,6 @@ await RunDataProcessors( return new DataPatchResult { Instance = instance, - ChangedDataElements = changes, UpdatedData = updatedData, ValidationIssues = validationIssues, }; diff --git a/test/Altinn.App.Core.Tests/Internal/Patch/PatchServiceTests.cs b/test/Altinn.App.Core.Tests/Internal/Patch/PatchServiceTests.cs index fcefd6f83..e0a3724b5 100644 --- a/test/Altinn.App.Core.Tests/Internal/Patch/PatchServiceTests.cs +++ b/test/Altinn.App.Core.Tests/Internal/Patch/PatchServiceTests.cs @@ -174,13 +174,13 @@ public async Task Test_Ok() response.Ok.Should().NotBeNull(); var res = response.Ok!; var change = res - .ChangedDataElements.Should() + .UpdatedData.Should() .ContainSingle() .Which.Should() - .BeOfType() + .BeOfType() .Which; - change.DataElement.Id.Should().Be(_dataGuid.ToString()); - change.CurrentFormData.Should().BeOfType().Subject.Name.Should().Be("Test Testesen"); + change.Identifier.Id.Should().Be(_dataGuid.ToString()); + change.Data.Should().BeOfType().Subject.Name.Should().Be("Test Testesen"); var validator = res.ValidationIssues.Should().ContainSingle().Which; validator.Source.Should().Be("formDataValidator"); var issue = validator.Issues.Should().ContainSingle().Which;