Skip to content

Commit 3217893

Browse files
ibaisiibaisismile
andauthored
8044 extend transaction log support to batch jobs (#7396)
* add BATCH2_JOB_START and BATCH2_JOB_COMPLETION pointcuts * add pointcuts and test post save * remove comment * add BATCH2_JOB_COMPLETION interceptor test * add interceptor in IT test to check wiring + changelog * add reduction step data sink interceptor test * rename BATCH2_JOB_COMPLETION pointcut to STORAGE_POSTCOMPLETE_BATCH_JOB * move STORAGE_POSTCOMPLETE_BATCH_JOB on top of completion handler * bump hapi fhir version * sove PR comments * fix issue number --------- Co-authored-by: Ivan Baisi <ivan.baisi@smiledigitalhealth.com>
1 parent 05c3508 commit 3217893

File tree

102 files changed

+354
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+354
-141
lines changed

hapi-deployable-pom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>8.7.3-SNAPSHOT</version>
8+
<version>8.7.4-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

hapi-fhir-android/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-deployable-pom</artifactId>
8-
<version>8.7.3-SNAPSHOT</version>
8+
<version>8.7.4-SNAPSHOT</version>
99

1010
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1111
</parent>

hapi-fhir-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-deployable-pom</artifactId>
8-
<version>8.7.3-SNAPSHOT</version>
8+
<version>8.7.4-SNAPSHOT</version>
99

1010
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1111
</parent>

hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,6 +3305,38 @@ public enum Pointcut implements IPointcut {
33053305
STORAGE_PRESTORAGE_BATCH_JOB_CREATE(
33063306
void.class, "ca.uhn.fhir.batch2.model.JobInstance", "ca.uhn.fhir.rest.api.server.RequestDetails"),
33073307

3308+
/**
3309+
* <b>Storage Hook:</b>
3310+
* Invoked after a batch job is persisted to the database.
3311+
* <p>
3312+
* Hooks will have access to the content of the job created
3313+
* and the id set to it.
3314+
* </p>
3315+
* Hooks may accept the following parameters:
3316+
* <ul>
3317+
* <li>
3318+
* ca.uhn.fhir.batch2.model.JobInstance
3319+
* </li>
3320+
* </ul>
3321+
* <p>
3322+
* Hooks should return <code>void</code>.
3323+
* </p>
3324+
*/
3325+
STORAGE_POSTSTORAGE_BATCH_JOB_CREATE(void.class, "ca.uhn.fhir.batch2.model.JobInstance"),
3326+
3327+
/**
3328+
* <b>Batch2 Hook:</b>
3329+
* <p>Invoked after the job instance is completed. JobInstance is immutable here.</p>
3330+
* <p>Parameters:</p>
3331+
* <ul>
3332+
* <li>ca.uhn.fhir.batch2.model.JobInstance - The job instance</li>
3333+
* </ul>
3334+
* <p>
3335+
* Hooks should return <code>void</code>.
3336+
* </p>
3337+
*/
3338+
STORAGE_POSTCOMPLETE_BATCH_JOB(void.class, "ca.uhn.fhir.batch2.model.JobInstance"),
3339+
33083340
/**
33093341
* <b>CDS Hooks Prefetch Hook:</b>
33103342
* Invoked before a CDS Hooks prefetch request is made.

hapi-fhir-bom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>ca.uhn.hapi.fhir</groupId>
66
<artifactId>hapi-fhir-bom</artifactId>
7-
<version>8.7.3-SNAPSHOT</version>
7+
<version>8.7.4-SNAPSHOT</version>
88

99
<packaging>pom</packaging>
1010
<name>HAPI FHIR BOM</name>
1111

1212
<parent>
1313
<groupId>ca.uhn.hapi.fhir</groupId>
1414
<artifactId>hapi-deployable-pom</artifactId>
15-
<version>8.7.3-SNAPSHOT</version>
15+
<version>8.7.4-SNAPSHOT</version>
1616

1717
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1818
</parent>

hapi-fhir-checkstyle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>8.7.3-SNAPSHOT</version>
8+
<version>8.7.4-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

hapi-fhir-cli/hapi-fhir-cli-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>ca.uhn.hapi.fhir</groupId>
66
<artifactId>hapi-deployable-pom</artifactId>
7-
<version>8.7.3-SNAPSHOT</version>
7+
<version>8.7.4-SNAPSHOT</version>
88

99
<relativePath>../../hapi-deployable-pom/pom.xml</relativePath>
1010
</parent>

hapi-fhir-cli/hapi-fhir-cli-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ca.uhn.hapi.fhir</groupId>
88
<artifactId>hapi-fhir-cli</artifactId>
9-
<version>8.7.3-SNAPSHOT</version>
9+
<version>8.7.4-SNAPSHOT</version>
1010

1111
<relativePath>../pom.xml</relativePath>
1212
</parent>

hapi-fhir-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>8.7.3-SNAPSHOT</version>
8+
<version>8.7.4-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

hapi-fhir-client-apache-http5/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>ca.uhn.hapi.fhir</groupId>
66
<artifactId>hapi-deployable-pom</artifactId>
7-
<version>8.7.3-SNAPSHOT</version>
7+
<version>8.7.4-SNAPSHOT</version>
88

99
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1010
</parent>

0 commit comments

Comments
 (0)