altinn-studio
altinn-studio copied to clipboard
Endpoint that converts text files in old format into new format
Description
When updating the text editor in Studio all previous created text files in the App repository should be converted from the format in resources.*.json
to the format in text.*.json
.
This conversion should happen when calling a conversion endpoint, void ConvertTextFromV1ToV2(), that finds all the old text files in all available languages, converts them, stores them at the same place with the new name: text.*.json
and deletes the old ones.
This endpoint will be called from a landing page ( possibly as a part of the About-page in Altinn studio ) that will let the user "activate" the new text editor through a button.
Additional Information
No response
Tasks
No response
Acceptance Criterias
- [ ] Implementation of ConvertTextFromV1ToV2() endpoint
- [ ] Unit/integration tests for the endpoint