Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: Preserve structured IDs on round trip #4091

Merged
merged 2 commits into from Sep 9, 2020
Merged

storage: Preserve structured IDs on round trip #4091

merged 2 commits into from Sep 9, 2020

Conversation

nijel
Copy link
Member

@nijel nijel commented Aug 4, 2020

YAML and JSON storages now preserve structure on round trip even when it contains strings used in the unit IDs. The structure is kept in separate object and is used when saving.

Fixes #3819
Fixes #3857
Fixes #3541

Supersedes #3835

Built on top of #4090, only last commit is relevant here.

YAML and JSON storages now preserve structure on round trip even when it
contains strings used in the unit IDs. The structure is kept in separate
object and is used when saving.

Fixes #3819
Fixes #3857
Fixes #3541
When some item was a string previously and was changed to dict or list,
it should be gracefully handled.

Fixes WeblateOrg/weblate#4316
@nijel nijel merged commit a94c13e into translate:master Sep 9, 2020
@nijel nijel deleted the structured-id-2 branch September 9, 2020 04:46
nijel added a commit that referenced this pull request Oct 30, 2020
This is a regression introduced by #4091 as that makes the flat JSON
file expand the unit keys.

Fixes WeblateOrg/weblate#4779
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON Serialization breaks the structure Better handle nested keys json file flattened after po2json
1 participant