altinn-studio icon indicating copy to clipboard operation
altinn-studio copied to clipboard

Text editor `appName` doesn't update `title` in `applicationMetaData`

Open lassopicasso opened this issue 8 months ago • 4 comments

Description of the bug

Edit: read the comment from @standeren below.

The appName field in the text editor should update the title field in applicationMetaData. Currently, this field can only be changed through the settings modal. When the appName is updated in the settings modal, it correctly updates as well the appName field in the text editor for Bokmål.

However, there is a one-way sync issue:

  • When the appName is changed in the text editor, the appName field in the settings modal (and subsequently in applicationMetaData) is not updated.
  • When the appName is changed in the settings modal, it correctly updates the appName field in the text editor for Bokmål (and subsequently in applicationMetaData).

Additionally, enabling the text editor to change this field in applicationMetaData should also allow for the inclusion of other languages, such as Nynorsk.

Additionally issue, when changing title manually in applicationmetadata - it doesn't update the name in studio because studio read the config file instead of applicationmetadata. As @standeren suggested in the slack thread, maybe change this to only read from metadata instead and get rid of the config file?

Steps To Reproduce

  1. Go to settings modal, change the app name
  2. Go to text editor, see that appName is updated
  3. Push changes and see that applicationMetaData is updated
  4. Repeat this, but change it in text editor.

Additional Information

Should add some playwright tests for this :)

Slack: https://altinndevops.slack.com/archives/CDU1S3NLW/p1717492210499339

No response

lassopicasso avatar Jun 05 '24 07:06 lassopicasso