Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
114 stars 70 forks source link

12735 update endpoint that sets datatype for process task to accept array of data types #12865

Closed standeren closed 3 months ago

standeren commented 4 months ago

Description

Use same event but wrap the newDataType inside an array. Change type of newDataType in backend also to be an array and loop through it before doing the same operations on all the individual dataTypes. Before setting the taskId for all the dataTypes, we iterate over the dataTypes that has the connected task from before and remove the taskId from all.

Currently not implemented any logic to identify which of the dataTypes that should be connected in the layoutsets-file. Simply select the first in the list

Related Issue(s)

Verification

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 96.77419% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.44%. Comparing base (591f3ac) to head (7abf893). Report is 5 commits behind head on main.

Files Patch % Lines
...velopment/features/processEditor/ProcessEditor.tsx 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12865 +/- ## ========================================== + Coverage 91.42% 91.44% +0.02% ========================================== Files 1397 1397 Lines 19744 19745 +1 Branches 2386 2386 ========================================== + Hits 18050 18055 +5 + Misses 1432 1428 -4 Partials 262 262 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.