Skip to content

Commit cc582e7

Browse files
committed
Merge branch 'master' into Iniz
2 parents 08f0168 + 2ce6718 commit cc582e7

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ See the [documentation on Initializer's logging properties](readme/rtprops.md#lo
200200
* Fix for Liquibase Loader to ensure compatibility with OpenMRS versions 2.5.5+.
201201
* Fix for OCL Loader to ensure it throws an Exception if the OCL import fails.
202202
* Fix for Validator to not encounter failure upon repeated execution on the same JVM process.
203+
* Fix for null config directory path in `DeleteDomainChecksumsChangeset`.
203204

204205
#### Version 2.6.0
205206
* Added support for 'cohorttypes' and 'cohortattributetypes' domains.

omod/src/main/java/org/openmrs/module/initializer/web/controller/InitializerController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.web.bind.annotation.RequestMethod;
2727

2828
/**
29-
* This class configured as controller using annotation and mapped to an URL.
29+
* This class is configured as a controller using annotation and mapped to a URL.
3030
*/
3131
@Controller(InitializerConstants.COMPONENT_LEGACY_CONTROLLER)
3232
@RequestMapping(value = "module/" + InitializerConstants.MODULE_ARTIFACT_ID + "/" + InitializerConstants.MODULE_ARTIFACT_ID
@@ -73,15 +73,15 @@ public String onPost(HttpSession httpSession, @ModelAttribute("anyRequestObject"
7373
}
7474

7575
/**
76-
* This class returns the form backing object. This can be a string, a boolean, or a normal java
77-
* pojo. The bean name defined in the ModelAttribute annotation and the type can be just defined by
76+
* This class returns the form backing object. This can be a string, a boolean, or a normal Java
77+
* POJO. The bean name is defined in the ModelAttribute annotation and the type can be just defined by
7878
* the return type of this method
7979
*/
8080
@ModelAttribute("users")
8181
protected List<User> getUsers() throws Exception {
8282
List<User> users = userService.getAllUsers();
8383

84-
// this object will be made available to the jsp page under the variable name
84+
//This object will be made available to the JSP page under the variable name
8585
// that is defined in the @ModuleAttribute tag
8686
return users;
8787
}

readme/csv_conventions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Conventions for CSV files
2-
There are a number of conventions that apply to CSV files across all domains, typically the meaning of certain columns (or headers). Headers are in general optional, it is up to the implementor to provide or not the fields that are required to create or edit the OpenMRS objects. Mandatory headers will be specifically indicated.
3-
<br/>Each CSV line is meant to provide enough data to create, edit or void/retire an OpenMRS object of the domain.
2+
Several conventions apply to CSV files across all domains, typically the meaning of certain columns (or headers). Headers are in general optional, it is up to the implementor to provide or not the fields that are required to create or edit the OpenMRS objects. Mandatory headers will be specifically indicated.
3+
<br/>Each CSV line is meant to provide enough data to create, edit, or void/retire an OpenMRS object of the domain.
44

55
###### Header `Uuid` (mandatory)
66
* If the value under this header is missing the OpenMRS object will be created with a new random UUID.
@@ -11,12 +11,12 @@ There are a number of conventions that apply to CSV files across all domains, ty
1111

1212
###### Header `Void/Retire`
1313
Set this to **true** to indicate that the OpenMRS object with the provided UUID should be voided or retired.
14-
<br/>When `Void/Retire` is set to true, the parsing of the remaining of the CSV line is interrupted since the only objective is to retire the concept. And to this end, only the UUID and the retire flag are needed.
14+
<br/>When `Void/Retire` is set to true, the parsing of the remaining part of the CSV line is interrupted since the only objective is to retire the concept. And to this end, only the UUID and the retire flag are needed.
1515

1616
###### Localized Header `Display`
17-
This is a locale specific header that should not be used as such ; it should be used with a locale ISO code appended to it, eg: `Display:en` or `Display:fr` or `Display:es` ... etc. The values under those display headers for each locale are used to localise the display string of the OpenMRS metadata entity being defined on the CSV line. Under the hood this sets up Java localization messages that comply to the so-called _UI Framework convention_ (see more on this [here](https://github.com/mekomsolutions/openmrs-module-initializer/issues/95#issue-813691920)).
17+
This is a locale-specific header that should not be used as such; it should be used with a locale ISO code appended to it, eg: `Display:en` or `Display:fr` or `Display:es` ... etc. The values under those display headers for each locale are used to localize the display string of the OpenMRS metadata entity being defined on the CSV line. Under the hood, this sets up Java localization messages that comply with the so-called _UI Framework convention_ (see more on this [here](https://github.com/mekomsolutions/openmrs-module-initializer/issues/95#issue-813691920)).
1818

19-
For example for an OpenMRS metadata entity display string to be localised in English (locale 'en') and French (locale 'fr'), simply name the headers `Display:en` and `Display:fr` and give them the corresponding localised values respectively in English and French making sure the 'uuid' field is filled and not left blank:
19+
For example for an OpenMRS metadata entity display string to be localized in English (locale 'en') and French (locale 'fr'), simply name the headers `Display:en` and `Display:fr` and give them the corresponding localized values respectively in English and French making sure the 'uuid' field is filled and not left blank:
2020

2121
| <sub>UUID</sub> | ... | <sub>Display:en</sub> | <sub>Display:fr</sub> | ... | <sub>Void/Retired</sub> | ...|
2222
| --- | --- | --- | --- | --- | --- | --- |
@@ -35,7 +35,7 @@ ui.i18n.Location.name.eb96c0d4-6248-476b-a079-0aaabfa2f614=Salle d'urgences
3535
org.openmrs.Location.eb96c0d4-6248-476b-a079-0aaabfa2f614=Salle d'urgences
3636
```
3737

38-
In general, for each locale, a pair of messages are created as such
38+
In general, for each locale, a pair of messages is created as such
3939
```
4040
ui.i18n.<OpenMRS entity short class name>.name.<OpenMRS entity UUID>=<message in locale>
4141
org.openmrs.<OpenMRS entity short class name>.<OpenMRS entity UUID>=<message in locale>
@@ -46,10 +46,10 @@ Special headers are used to provide metadata information about the CSV file itse
4646
<br/>All metadata headers start with an underscore, eg. `_version:1`, `_order:1000`, ... etc.
4747

4848
###### Header `_order:*`
49-
This metadata header specifies the order of loading of the CSV file _within the domain_. In many cases the creation of OpenMRS objects relies on the existence of other OpenMRS objects that are referred to. This use case is covered by the order header that allows to control the order of loading of files in a given domain.
49+
This metadata header specifies the order of loading of the CSV file _within the domain_. In many cases, the creation of OpenMRS objects relies on the existence of other OpenMRS objects that are referred to. This use case is covered by the order header that allows control of the order of loading of files in a given domain.
5050
<br/>For example `_order:1000` indicates that all CSV files with an order smaller than 1,000 will be processed _before_ this file within the domain.
51-
<br/> If the order metadata cannot be parsed or is missing, then the file will be processed last after all the ordered CSV files of the domain. However if several CSV files have no order defined, then the loading order between them is undefined.
51+
<br/> If the order metadata cannot be parsed or is missing, then the file will be processed last after all the ordered CSV files of the domain. However, if several CSV files have no order defined, then the loading order between them is undefined.
5252

5353
###### Header `_version:*`
5454
Versions are primarily introduced to allow for evolutions in the implementation of CSV parsers. Those evolutions may require to modify the CSV headers which will likely lead to backward compatibility issues. Using versions works around this by ensuring that specific parsers are used based on the version specified via the CSV file header.
55-
<br/>When no version header is provided the initializer will fallback on a default one or may complain in its log messages that no version was specified.
55+
<br/>When no version header is provided the initializer will fall back on a default one or may complain in its log messages that no version was specified.

0 commit comments

Comments
 (0)