Support for updating criterion types when importing criterion types has been added. To update a criterion type, it is only necessary to send the modifications, and not all the state. In consequence, it is only necessary to send modified propert ies in the criterions and the criterion type itself, and only new or modified cr iterions need to be sent. Furthermore, any legal change in the criterion hierarchy of the criterion type is allowed. Finally, a test case has been added to test the updating funcionality.
68 lines
1.8 KiB
Text
68 lines
1.8 KiB
Text
+ Check you have "tidy" available from the command line.
|
|
|
|
+ Check you have "/usr/bin/ruby".
|
|
|
|
+ chmod u+x *.sh
|
|
|
|
+ When working with the local application:
|
|
|
|
* Get XML Schema for any service:
|
|
|
|
- get-xml-schema.sh <service-path>
|
|
|
|
Example:
|
|
- get-xml-schema.sh criteriontypes
|
|
|
|
* [Optional] For clarity: remove "navaldev" database + reload Jetty.
|
|
|
|
* Import criterion types:
|
|
|
|
- import-criterions-types.sh criterion-types-sample.xml
|
|
(authenticate with wswriter/wswriter)
|
|
|
|
- Check the returned errors are consistent with the comments in
|
|
criterion-types-sample.xml.
|
|
|
|
- Repeat with criterion-types-update-sample.xml (for updating some
|
|
criterion types).
|
|
|
|
* Export criterion types:
|
|
|
|
- export-criterion-types.sh (authenticate with wsreader/wsreader)
|
|
|
|
* Import resources:
|
|
|
|
- import-resources.sh resources-sample-mini.xml (or resources-sample.xml)
|
|
(authenticate with wswriter/wswriter)
|
|
|
|
- Check the returned errors are consistent with the comments in
|
|
resources-sample.xml.
|
|
|
|
* Export order elements:
|
|
|
|
- export-order-element.sh ORDER-ELEMENT-CODE (authenticate with
|
|
wsreader/wsreader)
|
|
|
|
* Import orders:
|
|
|
|
- import-order.sh order-sample.xml (authenticate with wswriter/wswriter)
|
|
|
|
* Update orders:
|
|
|
|
- update-order.sh order-update-sample.xml (authenticate with
|
|
wswriter/wswriter)
|
|
|
|
* Export resources hours:
|
|
|
|
- export-resources-hours.sh 2010-01-01 2010-12-31 (authenticate with
|
|
wsreader/wsreader)
|
|
|
|
- export-resources-hours.sh 21654685 2010-01-01 2010-12-31 (authenticate
|
|
with wsreader/wsreader)
|
|
|
|
+ When working with the online demo add "--prod" argument to every command.
|
|
Example:
|
|
|
|
* import-criterions-types.sh --prod criterion-types-sample.xml
|
|
(authenticate with wswriter/wswriter)
|
|
|