translations to-spreadsheet: export only the changed objects of a metadata file (--metadata-file, --only-changed, --data-set-ids) - #110
Open
tokland wants to merge 4 commits into
Conversation
…adsheet' DHIS2 stores Indonesian translations with locale 'in' while the locales list may report 'id'. Move the field/translation lookup of metadata objects to the domain entity so it is shared with the change detection. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…nslations to-spreadsheet' Export the objects of a DHIS2 metadata JSON export instead of the instance, and keep only those that are new or whose selected fields (or their --default-locale translation) differ from the instance, so translators get just the delta of a feature. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…ions to-spreadsheet' Rename --program-id/--data-set-id (unmerged #106) to the plural form used by the other commands and take comma-separated ids: the dependency exports of all of them are merged, and a metadata file is scoped by all of them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Required by https://app.clickup.com/t/4528615/869cxwgvp?comment=90120266489244
Follow-up to #106 (based on
feature/translations-generation; merge that one first). Letstranslations to-spreadsheetproduce the "what do translators need for this feature" sheet: only the objects of a metadata package that are new or re-labelled with respect to a reference instance, restricted to the data sets that are actually translated.Changes
--metadata-file=PATH: read the objects (with their translations) from a DHIS2 metadata JSON export instead of the instance, for packages not yet deployed to a trusted instance.--urlis still used for the locales and as the reference.--only-changed(requires--metadata-file): keep only objects that do not exist in the instance, or whose selected fields differ, or whose--default-localetranslation of a selected field differs (a label can be changed only through that translation). Non-selected fields are ignored, so a[DEPRECATED]name prefix does not trigger aformNamere-translation. The reference objects are fetched by id (id:infilter, chunks of 100), not the whole model.--exclude-names=REGEX: skip objects whose name matches (e.g.'^\[DEPRECATED\]').--program-ids/--data-set-ids: translations to-spreadsheet: --program-id/--data-set-id filters and short locale references #106's--program-id/--data-set-id, renamed to the plural form used by the other commands and taking comma-separated ids;