Skip to content

Commit

Permalink
Merge pull request #190 from ehrbase/release/v1.1.0
Browse files Browse the repository at this point in the history
Release/v1.1.0
  • Loading branch information
pfeild authored Feb 26, 2021
2 parents 4e5d95a + 1cd5d9b commit c3b5ef0
Show file tree
Hide file tree
Showing 258 changed files with 31,089 additions and 6,701 deletions.
45 changes: 24 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ jobs:
- restore-ehrbase-workspace
# - start-ehrbase-server
- run-robot-tests:
include-tags: "compositionANDjson1"
include-tags: "compositionANDcomposition_json1"
test-suite-path: "COMPOSITION_TESTS"
test-suite-name: "COMPOSITION_1"

Expand All @@ -493,7 +493,7 @@ jobs:
#-----------------------------------#
- restore-ehrbase-workspace
- run-robot-tests:
include-tags: "compositionANDjson2"
include-tags: "compositionANDcomposition_json2"
test-suite-path: "COMPOSITION_TESTS"
test-suite-name: "COMPOSITION_2"

Expand All @@ -507,7 +507,7 @@ jobs:
#-----------------------------------#
- restore-ehrbase-workspace
- run-robot-tests:
include-tags: "compositionANDxml1"
include-tags: "compositionANDcomposition_xml1"
test-suite-path: "COMPOSITION_TESTS"
test-suite-name: "COMPOSITION_3"

Expand All @@ -521,7 +521,7 @@ jobs:
#-----------------------------------#
- restore-ehrbase-workspace
- run-robot-tests:
include-tags: "compositionANDxml2"
include-tags: "compositionANDcomposition_xml2"
test-suite-path: "COMPOSITION_TESTS"
test-suite-name: "COMPOSITION_4"

Expand Down Expand Up @@ -591,7 +591,7 @@ jobs:
#-----------------------------------#
- restore-ehrbase-workspace
- run-robot-tests:
include-tags: "KNOWLEDGE"
include-tags: "OPT"
test-suite-path: "KNOWLEDGE_TESTS"
test-suite-name: "KNOWLEDGE"
allow-template-overwrite: false
Expand All @@ -607,7 +607,7 @@ jobs:
#-----------------------------------#
- restore-ehrbase-workspace
- run-robot-tests:
include-tags: "aql_adhoc-queryANDempty_db"
include-tags: "aql_adhoc-queryANDaql_empty_db"
test-suite-path: "QUERY_SERVICE_TESTS"
test-suite-name: "ADHOC-QUERY-1"

Expand All @@ -632,19 +632,24 @@ jobs:
keys:
- ehrbasedb-dump-v8
# COMMENT: USE THE NEXT LINE ONLY TO FORCE TEST-DATA REGENERATION! Otherwise comment it out!
# - run: echo "FORCE GENERATION OF TEST-DATA AND EXPECTED RESULTS!" > /tmp/DATA_CHANGED_NOTICE
- run: echo "FORCE GENERATION OF TEST-DATA AND EXPECTED RESULTS!" > /tmp/DATA_CHANGED_NOTICE
- run:
name: CHECK IF EXPECTED-RESULT TEMPLATES HAVE CHANGED AND REGENERATE TEST-DATA IF NEEDED
command: |
cd ehrbase
find tests/robot/_resources/test_data_sets/query/expected_results/loaded_db/ -type f ! -name *.tmp.json | sort | xargs cat > /tmp/expected-results-loaded_db-seed
sha256sum /tmp/expected-results-loaded_db-seed
ACTUAL_HASH="$(sha256sum /tmp/expected-results-loaded_db-seed | cat)"
EXPECTED_HASH="f5ee5a9a55c50687dafc3c3acff66089759f1577d7a5dd71aff6e60793ce91c2 /tmp/expected-results-loaded_db-seed"
[ "$ACTUAL_HASH" = "$EXPECTED_HASH" ] && echo "Expected results unchanged! Don't regenerate test-data!" || echo "Expected result data-sets changed. Regenerate!" > /tmp/DATA_CHANGED_NOTICE
FILE=/tmp/DATA_CHANGED_NOTICE
if [ -f "$FILE" ]; then
echo "REGENERATION OF TEST-DATA AND EXPECTED RESULT SETS IS EITHER REQUIRED OR WAS FORCED."
else
find tests/robot/_resources/test_data_sets/query/expected_results/loaded_db/ -type f ! -name *.tmp.json | sort | xargs cat > /tmp/expected-results-loaded_db-seed
sha256sum /tmp/expected-results-loaded_db-seed
ACTUAL_HASH="$(sha256sum /tmp/expected-results-loaded_db-seed | cat)"
EXPECTED_HASH="f5ee5a9a55c50687dafc3c3acff66089759f1577d7a5dd71aff6e60793ce91c2 /tmp/expected-results-loaded_db-seed"
[ "$ACTUAL_HASH" = "$EXPECTED_HASH" ] && echo "Expected results unchanged! Don't regenerate test-data!" || echo "Expected result data-sets changed. Regenerate!" > /tmp/DATA_CHANGED_NOTICE
fi
- run-robot-tests:
sut: "TEST"
include-tags: "aql_adhoc-queryANDloaded_db"
include-tags: "aql_adhoc-queryANDaql_loaded_db"
test-suite-path: "QUERY_SERVICE_TESTS"
test-suite-name: "ADHOC-QUERY-2"
- save_cache:
Expand Down Expand Up @@ -1309,10 +1314,10 @@ commands:
jps
cd ~/projects/ehrbase/tests
robot --include << parameters.include-tags >> \
--exclude TODO -e future -e obsolete -e libtest \
--skip TODO --skip future -e obsolete -e libtest \
--skiponfailure not-ready \
--console dotted \
--loglevel TRACE \
--noncritical not-ready \
--flattenkeywords for \
--flattenkeywords foritem \
--flattenkeywords name:_resources.* \
Expand Down Expand Up @@ -1407,7 +1412,7 @@ commands:
steps:
- run:
command: |
pip install robotframework
pip install robotframework==v4.0b1
- run:
name: POST PROCESS & MERGE TEST RESULTS
when: always
Expand All @@ -1417,11 +1422,10 @@ commands:
# Create Log/Report with ALL DETAILS
rebot --outputdir results/0 \
--name EHRbase \
--exclude TODO -e future -e obsolete -e libtest \
-e obsolete -e libtest \
--removekeywords for \
--removekeywords wuks \
--loglevel TRACE \
--noncritical not-ready \
--output EHRbase-output.xml \
--log EHRbase-log.html \
--report EHRbase-report.html \
Expand All @@ -1434,8 +1438,7 @@ commands:
# Create JUNIT report from merged results
rebot --outputdir results/robot-tests \
--exclude TODO -e future -e obsolete -e libtest \
--noncritical not-ready \
-e obsolete -e libtest \
--xunit junit-output.xml --xunitskipnoncritical \
--log NONE \
--report NONE \
Expand Down Expand Up @@ -1471,7 +1474,7 @@ executors:
working_directory: ~/projects
docker:
- image: circleci/python:3.8.5-node-browsers
- image: ehrbaseorg/ehrbase-postgres:10
- image: ehrbase/ehrbase-postgres:11.10
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ Generic openEHR Client and Objekt-mapper:

* map Compositions from and to JSON;XML

## aql (Beta)

* Map an Aql-String from and to an Aql-Dto-Model.
* Not supported right now:
- XOR
- functions
- matches
- like
- compare path to path expressions

## Release Notes (v1.0.0)

* Support web-templates and flat-format
Expand Down Expand Up @@ -87,6 +97,7 @@ Parameter | Default | Description
----------- | --------- | -------------
optimizerSetting | SECTION | Defines if nodes which belong to are archetype but are single valued generate a new class: <ul><li>NONE: Always generate a class for nodes which belong to a archetype</li><li>SECTION: Do not generate a class for nodes which have rm-type section and are single valued</li><li>ALL: Do not generate a class for nodes which are single valued</li></ul>
addNullFlavor | true | Whether or not to generate null flavor fields for Elements.
generateChoicesForSingleEvent | false | Whether or not to generate Choices (POINT_EVENT & INTERVAL_EVENT) fields for a single EVENT. If "false" only POINT_EVENT will be generated.
replaceChars | German and Norwegian Characters | Map to define Characters in the Node name to be replaced.

see generator/src/main/resources/DefaultConfig.yaml
Expand Down
13 changes: 13 additions & 0 deletions aql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,18 @@
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit c3b5ef0

Please sign in to comment.