Skip to content
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

Release/1.3.0 #116

Merged
merged 32 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4fac832
Fix paging logic in search result handling of resource provider
EmteZogaf Sep 18, 2023
966f422
Merge remote-tracking branch 'origin/main' into
hhund Sep 26, 2023
bb24d2b
version to 1.2.1-SNAPSHOT
hhund Sep 26, 2023
d652fb5
Merge remote-tracking branch
hhund Sep 26, 2023
6979f93
Merge remote-tracking branch 'origin/develop' into
hhund Sep 27, 2023
aad7673
adds rev-proxy config for context path without trailing slash
hhund Sep 27, 2023
4e0bf3e
changed example to match the default config in dsf.dev tar.gz files
hhund Sep 27, 2023
e878f32
html url title fixed for "/" and "/metadata"
hhund Oct 1, 2023
d32f506
improved formatting and variable descriptions
hhund Oct 1, 2023
d9d73a1
removes not needed dependencies and adds validation support for plugins
hhund Oct 2, 2023
1d544b2
version to 1.3.0-SNAPSHOT
hhund Oct 2, 2023
6a5a1b4
Merge remote-tracking branch
hhund Oct 2, 2023
bb0a9dc
Merge remote-tracking branch 'origin/develop' into
hhund Oct 2, 2023
51370f1
remove not needed space character, fixed typo in SSL_CA_DN_REQUEST_FILE
hhund Oct 2, 2023
e052714
removed not needed space characters
hhund Oct 2, 2023
da1b6bb
Merge remote-tracking branch
hhund Oct 2, 2023
390003b
Merge pull request #105 from EmteZogaf/issues/104_Search_for_organiza…
hhund Oct 2, 2023
bad65c8
updated action versions, maven caching, latest java release for publish
hhund Oct 2, 2023
aa0938e
Merge remote-tracking branch 'origin/upgrade_github_actions' into
hhund Oct 2, 2023
4882ce9
add html generators for organization, organization-affiliation and en…
wetret Oct 6, 2023
78c4cec
Merge remote-tracking branch 'origin/develop' into issues/107_html_ge…
wetret Oct 6, 2023
cb31309
add missing whitespace
wetret Oct 6, 2023
0157044
use else-if instead of only if
wetret Oct 6, 2023
4b0e758
word-wrap for rows, no empty a-tags
wetret Oct 6, 2023
2c3e988
improved null defensiveness, links in search bundle table clickable
hhund Oct 10, 2023
cd314c0
refactored code: instanceof pattern matching
hhund Oct 10, 2023
412d655
added log messages for excluded and retired processes
hhund Oct 10, 2023
a3ea30b
Merge remote-tracking branch
hhund Oct 10, 2023
846d574
maven dependency upgrades
hhund Oct 10, 2023
ab1831c
camunda to 7.20
hhund Oct 10, 2023
91df288
Merge remote-tracking branch 'origin/issues/114_Upgrade_Dependencies'
hhund Oct 10, 2023
13ac829
1.3.0 release
hhund Oct 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'
- name: Build with Maven
run: mvn -B verify -fae --file pom.xml -Dgpg.skip
7 changes: 5 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
cache: 'maven'
check-latest: true
- name: Publish with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ preferred-citation:
doi: 10.3233/SHTI210060
type: proceedings
title: "Data Sharing Framework (DSF)"
version: 1.2.0
date-released: 2023-09-12
version: 1.3.0
date-released: 2023-10-11
url: https://dsf.dev
repository-code: https://github.com/datasharingframework/dsf
repository-artifact: https://github.com/datasharingframework/dsf/releases
Expand Down
7 changes: 6 additions & 1 deletion dsf-bpe/dsf-bpe-process-api-v1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>
</parent>

<dependencies>
Expand Down Expand Up @@ -41,6 +41,11 @@
<artifactId>spring-web</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>dev.dsf</groupId>
<artifactId>dsf-fhir-validation</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>de.hs-heilbronn.mi</groupId>
<artifactId>crypto-utils</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion dsf-bpe/dsf-bpe-server-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>
</parent>

<dependencies>
Expand Down
8 changes: 7 additions & 1 deletion dsf-bpe/dsf-bpe-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>dev.dsf</groupId>
<artifactId>dsf-bpe-pom</artifactId>
<version>1.2.0</version>
<version>1.3.0</version>
</parent>

<dependencies>
Expand Down Expand Up @@ -51,6 +51,12 @@
<artifactId>crypto-utils</artifactId>
</dependency>

<!-- dependencies for process plugins -->
<dependency>
<groupId>dev.dsf</groupId>
<artifactId>dsf-fhir-validation</artifactId>
</dependency>

<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ Resource getResource()
private static final String PROCESS_ID_PATTERN_STRING = "^(?<domainNoDots>[a-zA-Z0-9-]+)_(?<processName>[a-zA-Z0-9-]+)$";
private static final Pattern PROCESS_ID_PATTERN = Pattern.compile(PROCESS_ID_PATTERN_STRING);

private static final String DEFAULT_PROCESS_HISTORY_TIME_TO_LIVE = "P30D";

private final D processPluginDefinition;
private final A processPluginApi;
private final boolean draft;
Expand Down Expand Up @@ -679,6 +681,18 @@ file, getDefinitionName(), getDefinitionVersion(), VERSION_PLACEHOLDER_PATTERN_S

property.setCamundaName(MODEL_ATTRIBUTE_PROCESS_API_VERSION);
property.setCamundaValue(getProcessPluginApiVersion());

if (process.getCamundaHistoryTimeToLiveString() == null
|| process.getCamundaHistoryTimeToLiveString().isBlank())
{
if (isDraft())
logger.info("Setting process history time to live for process {} from {} to {}",
process.getId(), jarFile.toString(), DEFAULT_PROCESS_HISTORY_TIME_TO_LIVE);
else
logger.debug("Setting process history time to live for process {} from {} to {}",
process.getId(), jarFile.toString(), DEFAULT_PROCESS_HISTORY_TIME_TO_LIVE);
process.setCamundaHistoryTimeToLiveString(DEFAULT_PROCESS_HISTORY_TIME_TO_LIVE);
}
});

return new BpmnFileAndModel(draft, file, model, getJarFile());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public void afterPropertiesSet() throws Exception
{
Objects.requireNonNull(repositoryService, "repositoryService");
Objects.requireNonNull(processStateDao, "processStateDao");

logger.info("Excluded processes: {}", excluded);
logger.info("Retired processes: {}", retired);
}

private Map<ProcessIdAndVersion, ProcessState> getStates()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class PropertiesConfig implements InitializingBean
@Value("${dev.dsf.bpe.db.user.camunda.password}")
private char[] dbCamundaPassword;

@Documentation(required = true, description = "PEM encoded file with one or more trusted root certificates to validate server certificates for https connections to local and remote DSF FHIR servers", recommendation = "Use docker secret file to configure", example = "/run/secrets/app_server_trust_certificates.pem")
@Documentation(required = true, description = "PEM encoded file with one or more trusted root certificates to validate server certificates for https connections to local and remote DSF FHIR servers", recommendation = "Use docker secret file to configure", example = "/run/secrets/app_client_trust_certificates.pem")
@Value("${dev.dsf.bpe.fhir.client.trust.server.certificate.cas}")
private String clientCertificateTrustStoreFile;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package dev.dsf.bpe.v1.service;

import static org.hl7.fhir.instance.model.api.IBaseBundle.LINK_NEXT;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -61,7 +63,7 @@ protected final <R extends Resource> List<R> search(Class<? extends Resource> se
.map(BundleEntryComponent::getResource).filter(targetType::isInstance).map(targetType::cast)
.filter(filter).toList());

hasMore = resultBundle.getTotal() > organizations.size();
hasMore = resultBundle.getLink(LINK_NEXT) != null;
}

return organizations;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
-- under one or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information regarding copyright
-- ownership. Camunda licenses this file to you under the Apache License,
-- Version 2.0; you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--

insert into ACT_GE_SCHEMA_LOG
values ('900', CURRENT_TIMESTAMP, '7.20.0');
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">

<changeSet author="camunda.org" id="db.camunda_engine.changelog-1.3.0">
<sqlFile dbms="postgresql" encoding="utf8" path="db/camunda/postgres_engine_7.19_to_7.20.sql" />
</changeSet>

</databaseChangeLog>
2 changes: 2 additions & 0 deletions dsf-bpe/dsf-bpe-server/src/main/resources/db/db.changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
<include file="db/db.process_states.changelog-1.0.0.xml" />

<include file="db/db.last_event.changelog-1.0.0.xml" />

<include file="db/db.camunda_engine.changelog-1.3.0.xml" />
</databaseChangeLog>
Loading