Altinn / Altinn/app-lib-dotnet

presentationTexts is not set from presentationFields on instantiation.

Open
#165 1 comment 1 reaction 0 assignees View on GitHub
kind/bug
Dominant language
C#
Stars
8
Forks
27
Avg merge
1h 21m
Merged PRs (30d)
7

Description

### Description of the bug

`presentationTexts` is not set from `presentationFields` on instantiation.

### Steps To Reproduce

1. Create an app with `presentationFields` in `App/config/applicationmetadata.json`

```json
"presentationFields": [
{
"id": "År",
"path": "rapport.rapportering.aar.value",
"dataTypeId": "Finanstilsynet_KRT-1132Svindelrapportering_M"
}
],
```

2. Instantiate with a prefill that sets one of the `presentationFields`
3. See that the instance does not get `presentationValues` set on the instance
4. (open the instance, edit a field, and see that `presentationTexts` is set)

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with App/config/applicationmetadata.json and trace instance instantiation when a prefill sets a presentationField. Compare that path with the edit flow, where presentationTexts is populated. Done means presentationTexts is set during instantiation for prefilled presentation fields, matching the behavior after editing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.