Skip to content

Commit

Permalink
Merge branch 'release/v2.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bot committed Jan 19, 2024
2 parents d04e415 + c0c56d7 commit 724f0d3
Show file tree
Hide file tree
Showing 25 changed files with 66 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -27,7 +27,7 @@ jobs:
run: mvn -B verify

- name: Setup Maven Central
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Expand Up @@ -43,14 +43,14 @@ jobs:
uses: actions/checkout@v4

- name: setup java 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -64,7 +64,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -77,6 +77,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
12 changes: 10 additions & 2 deletions CHANGELOG.md
Expand Up @@ -2,11 +2,18 @@

Note: version releases in the 0.x.y range may introduce breaking changes.

## [2.6.0]
### Changed
- Bumped libraries
### Fixed
- Parsing of string function CONTAINS ([5ef1eca](https://github.com/ehrbase/openEHR_SDK/commit/5ef1eca72289856fa94a04146aa876a4c5130423))
- Add missing aggregate function name to the parser ([8fd08bb](https://github.com/ehrbase/openEHR_SDK/commit/8fd08bbd1ce3b5a217cc8e2b701e32c2125bf0bf))

## [2.5.0]
### Added
### Fixed
- Flat: fix term mappings can not be saved in name via flat ([#519](https://github.com/ehrbase/openEHR_SDK/pull/519)
- Validation: fix DV_CODED_TEXT error messages ([#537](https://github.com/ehrbase/openEHR_SDK/pull/537)
- Flat: fix term mappings can not be saved in name via flat ([#519](https://github.com/ehrbase/openEHR_SDK/pull/519))
- Validation: fix DV_CODED_TEXT error messages ([#537](https://github.com/ehrbase/openEHR_SDK/pull/537))

## [2.4.0]
### Added
Expand Down Expand Up @@ -352,3 +359,4 @@ Note: version releases in the 0.x.y range may introduce breaking changes.
[2.3.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.2.0...v2.3.0
[2.4.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.3.0...v2.4.0
[2.5.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.4.0...v2.5.0
[2.6.0]: https://github.com/ehrbase/openEHR_SDK/compare/v2.5.0...v2.6.0
2 changes: 1 addition & 1 deletion aql/pom.xml
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>aql</artifactId>
Expand Down
Expand Up @@ -90,7 +90,7 @@ LIKE: L I K E ;
MATCHES: M A T C H E S ;

// functions
STRING_FUNCTION_ID: LENGTH | CONTAINS | POSITION | SUBSTRING | CONCAT_WS | CONCAT ;
STRING_FUNCTION_ID: LENGTH | POSITION | SUBSTRING | CONCAT_WS | CONCAT ;
NUMERIC_FUNCTION_ID: ABS | MOD | CEIL | FLOOR | ROUND ;
DATE_TIME_FUNCTION_ID: NOW | CURRENT_DATE_TIME | CURRENT_DATE | CURRENT_TIMEZONE | CURRENT_TIME ;
// string functions
Expand Down
Expand Up @@ -207,7 +207,7 @@ numericPrimitive

functionCall
: terminologyFunction
| name=(STRING_FUNCTION_ID | NUMERIC_FUNCTION_ID | DATE_TIME_FUNCTION_ID | IDENTIFIER) SYM_LEFT_PAREN (terminal (SYM_COMMA terminal)*)? SYM_RIGHT_PAREN
| name=(CONTAINS | STRING_FUNCTION_ID | NUMERIC_FUNCTION_ID | DATE_TIME_FUNCTION_ID | IDENTIFIER) SYM_LEFT_PAREN (terminal (SYM_COMMA terminal)*)? SYM_RIGHT_PAREN
;

aggregateFunctionCall
Expand Down
Expand Up @@ -47,6 +47,7 @@ public enum AggregateFunctionName {
COUNT,
MIN,
MAX,
SUM,
AVG
}

Expand Down
Expand Up @@ -29,6 +29,7 @@
import org.ehrbase.openehr.sdk.aql.dto.containment.ContainmentClassExpression;
import org.ehrbase.openehr.sdk.aql.dto.containment.ContainmentSetOperator;
import org.ehrbase.openehr.sdk.aql.dto.operand.AggregateFunction.AggregateFunctionName;
import org.ehrbase.openehr.sdk.aql.dto.operand.SingleRowFunction.KnownFunctionName;
import org.ehrbase.openehr.sdk.aql.dto.operand.StringPrimitive;
import org.ehrbase.openehr.sdk.aql.dto.path.AndOperatorPredicate;
import org.ehrbase.openehr.sdk.aql.dto.path.AqlObjectPath;
Expand Down Expand Up @@ -438,6 +439,20 @@ void testAggregateFunctions(AggregateFunctionName name) {
testAql(aql, aql);
}

@ParameterizedTest
@EnumSource(KnownFunctionName.class)
void testKnownSingleRowFunctions(KnownFunctionName name) {
// Argument count does not matter to the grammar
String aql = "SELECT " + name.name() + "() FROM EHR d";
testAql(aql, aql);
}

@Test
void testUnknownSingleRowFunctions() {
String aql = "SELECT CUSTOM_FUNCTION() FROM EHR d";
testAql(aql, aql);
}

@Test
void testCountDistinct() {
String aql = "SELECT COUNT(DISTINCT d/ehr_id/value) FROM EHR d";
Expand Down
16 changes: 8 additions & 8 deletions bom/pom.xml
Expand Up @@ -8,7 +8,7 @@

<artifactId>bom</artifactId>
<groupId>org.ehrbase.openehr.sdk</groupId>
<version>2.5.0</version>
<version>2.6.0</version>
<packaging>pom</packaging>

<name>openEHR SDK</name>
Expand Down Expand Up @@ -42,10 +42,10 @@
<archie.version>3.3.0</archie.version>
<assertj.version>3.24.2</assertj.version>
<cglib.version>3.3.0</cglib.version>
<classgraph.version>4.8.164</classgraph.version>
<commons-cli.version>1.5.0</commons-cli.version>
<classgraph.version>4.8.165</classgraph.version>
<commons-cli.version>1.6.0</commons-cli.version>
<commons-collections4.version>4.4</commons-collections4.version>
<commons-lang3.version>3.13.0</commons-lang3.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
<commons-io.version>2.15.0</commons-io.version>
<commons-csv.version>1.10.0</commons-csv.version>
<commons-text.version>1.11.0</commons-text.version>
Expand All @@ -54,7 +54,7 @@
<guava.version>32.1.3-jre</guava.version>
<gson.version>2.10.1</gson.version>
<httpclient.version>4.5.14</httpclient.version>
<jackson-bom.version>2.15.3</jackson-bom.version>
<jackson-bom.version>2.16.0</jackson-bom.version>
<javapoet.version>1.13.0</javapoet.version>
<javax-annotation.version>1.3.2</javax-annotation.version>
<javax-cache.version>1.1.1</javax-cache.version>
Expand All @@ -72,9 +72,9 @@
<maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
<maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
<maven-javadoc-plugin.version>3.6.2</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
<maven-surefire-plugin.version>3.2.1</maven-surefire-plugin.version>
<maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
<jacoco.version>0.8.11</jacoco.version>
<threeten-extra.version>1.7.2</threeten-extra.version>
<jaxb-runtime.version>2.3.9</jaxb-runtime.version>
Expand Down Expand Up @@ -394,7 +394,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.40.0</version>
<version>2.41.1</version>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
Expand Down
6 changes: 3 additions & 3 deletions client/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>client</artifactId>
Expand All @@ -40,7 +40,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
<configuration combine.self="override">
<dependenciesToScan>com.github.better-care:web-template-tests</dependenciesToScan>
<includes>
Expand Down Expand Up @@ -164,7 +164,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.3.30</version>
<version>5.3.31</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion example-generator/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sdk-parent</artifactId>
<groupId>org.ehrbase.openehr.sdk</groupId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion generator-commons/pom.xml
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>generator-commons</artifactId>
Expand Down
8 changes: 4 additions & 4 deletions generator-maven-plugin/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>sdk-parent</artifactId>
<groupId>org.ehrbase.openehr.sdk</groupId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -27,13 +27,13 @@
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.10.1</version>
<version>3.10.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.9.5</version>
<version>3.9.6</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -48,7 +48,7 @@
<plugins>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.10.1</version>
<version>3.10.2</version>
<configuration>
<goalPrefix>generator</goalPrefix>
</configuration>
Expand Down
4 changes: 2 additions & 2 deletions generator/pom.xml
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>generator</artifactId>
Expand All @@ -39,7 +39,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.0</version>
<version>3.6.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
Expand Down
2 changes: 1 addition & 1 deletion opt-1.4/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>opt-1.4</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -25,13 +25,13 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>bom</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
<relativePath>./bom/pom.xml</relativePath>
</parent>

<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
<packaging>pom</packaging>
<name>openEHR SDK</name>

Expand Down
2 changes: 1 addition & 1 deletion response-dto/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>response-dto</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion serialisation/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>serialisation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion serialisation_conformance_test/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>serialisation_conformance_test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion terminology/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>terminology</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-coverage/pom.xml
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>test-coverage</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion test-data/pom.xml
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>test-data</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion util/pom.xml
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>util</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion validation/pom.xml
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>validation</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion web-template/pom.xml
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.ehrbase.openehr.sdk</groupId>
<artifactId>sdk-parent</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
</parent>

<artifactId>web-template</artifactId>
Expand Down

0 comments on commit 724f0d3

Please sign in to comment.