-
Notifications
You must be signed in to change notification settings - Fork 79
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
O3-614: Added support for AMPATH Forms Translations. #191
O3-614: Added support for AMPATH Forms Translations. #191
Conversation
@icrc-jofrancisco , I guess the domain would be better named "Ampath Forms Translations" Addtionally, could you make sure to provide the update in the readme? |
Perhaps @ibacher could review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @icrc-jofrancisco, however we need a couple of things:
- Unit tests.
- Amendments to the README, including the line for the upcoming release notes, and this should probably be for 2.5.0 not 2.4.1, @rbuisson?
- Possible addition of an ad-hoc README for this new domain, others to weigh in as to this is overkill or not.
I actually think documenting this domain is crucial. |
…dule-initializer into support-ampath-translations # Conflicts: # api-2.3/src/test/java/org/openmrs/module/initializer/api/loaders/LoadersOrderTest.java
…nto support-ampath-translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@icrc-jofrancisco did you see that the GitHub Actions build is failing? Could you have a look?
@ibacher , didn't you mention that the AMPATH forms translation files should be attached to forms via a form resource? |
readme/ampathformstranslations.md
Outdated
"translations": { | ||
"en": ["global-uuid-resource-en", "test-form-en"], | ||
"fr": ["global-fr-uuid-resource-fr", "test-form-fr"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need that even when using the form resource?
I was under the impression that saving the translations as form resources would avoid having to specify the said translation file UUID in the form.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct @rbuisson. Specifying this form translation uuid is not a requirement. To make this non umbigious, let me remove this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Ruhanga! Functionality-wise, this looks great, just a few comments on polishing this up.
api/src/main/java/org/openmrs/module/initializer/api/loaders/AmpathFormsTranslationsLoader.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/openmrs/module/initializer/api/loaders/AmpathFormsTranslationsLoader.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/openmrs/module/initializer/api/loaders/AmpathFormsTranslationsLoader.java
Outdated
Show resolved
Hide resolved
...va/org/openmrs/module/initializer/api/form/AmpathFormsTranslationsLoaderIntegrationTest.java
Outdated
Show resolved
Hide resolved
...va/org/openmrs/module/initializer/api/form/AmpathFormsTranslationsLoaderIntegrationTest.java
Outdated
Show resolved
Hide resolved
...va/org/openmrs/module/initializer/api/form/AmpathFormsTranslationsLoaderIntegrationTest.java
Outdated
Show resolved
Hide resolved
...va/org/openmrs/module/initializer/api/form/AmpathFormsTranslationsLoaderIntegrationTest.java
Show resolved
Hide resolved
...esources/testAppDataDir/configuration/ampathformstranslations/test_form_translations_fr.json
Show resolved
Hide resolved
Co-authored-by: Ian <[email protected]>
Co-authored-by: Ian <[email protected]>
Co-authored-by: Ian <[email protected]>
Co-authored-by: Ian <[email protected]>
Co-authored-by: Ian <[email protected]>
Co-authored-by: Ian <[email protected]>
Code looks good... Not sure about the build failure... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build fails randomly with github actions but passes locally @ibacher.
@Ruhanga , are you able to figure why the GitHub Actions build is failing? |
GitHub Actions seems to be failing to get the |
Adding this to pom.xml
|
Support for loading AMPATH translation files using the initializer.
The file will be saved as
ClobDatatypeStorage
in order to support multiple forms.