Skip to content

Commit 06d0ad4

Browse files
Retain failed transfers for 12 weeks / 84 days (#1025)
Retain failed transfers for 12 weeks / 84 days as per spec
1 parent 0ac0be2 commit 06d0ad4

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88

99
### Added
10+
* When a transfer fails, the transfer should remain available in the db for at least 12 weeks (84 days), as per spec.
1011
* When mapping a `DocumentReference` which contains a `NOPAT` `meta.security` or `NOPAT` `securityLabel` tag the resultant XML for that resource
1112
will contain a `NOPAT` `confidentialityCode` element.
1213
* When mapping `AllergyIntolerances` which contain a `NOPAT` `meta.security` tag the resultant XML for that resource

OPERATING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The adaptor requires a Mongodb-compatible database to manage its internal state.
4040
| GP2GP_MONGO_PASSWORD | | Mongo database password. Leave undefined if GP2GP_MONGO_URI is used. |
4141
| GP2GP_MONGO_OPTIONS | | Mongodb URL encoded parameters for the connection string without a leading "?". Leave undefined if GP2GP_MONGO_URI is used. |
4242
| GP2GP_MONGO_AUTO_INDEX_CREATION | true | (Optional) Should auto index for Mongo database be created. |
43-
| GP2GP_MONGO_TTL | P7D | (Optional) Time-to-live value for inbound and outbound state collection documents as an [ISO 8601 Duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). |
43+
| GP2GP_MONGO_TTL | P84D | (Optional) Time-to-live value for inbound and outbound state collection documents as an [ISO 8601 Duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). |
4444
| GP2GP_COSMOS_DB_ENABLED | false | (Optional) If true the adaptor will enable features and workarounds to support Azure Cosmos DB. |
4545

4646
**Trust Store Configuration Options**
@@ -266,7 +266,7 @@ The adaptor's database records:
266266
* metadata about the transfer process
267267

268268
The supplier MUST configure the `GP2GP_MONGO_TTL` variable to remove the database records
269-
after a reasonable time period.
269+
after a reasonable time period. The specs say 12 weeks (84 days), so this is our suggestion.
270270

271271
The adaptor's queued messages contain:
272272
* the patient's NHS number

service/src/intTest/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gp2gp:
4343
password: ${GP2GP_MONGO_PASSWORD:}
4444
options: ${GP2GP_MONGO_OPTIONS:}
4545
autoIndexCreation: ${GP2GP_MONGO_AUTO_INDEX_CREATION:true}
46-
ttl: ${GP2GP_MONGO_TTL:P7D}
46+
ttl: ${GP2GP_MONGO_TTL:P84D}
4747
cosmosDbEnabled: ${GP2GP_COSMOS_DB_ENABLED:false}
4848
gpc:
4949
url: ${GP2GP_GPC_GET_URL:http://localhost:8090/@ODS_CODE@/STU3/1/gpconnect}

service/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ gp2gp:
3939
password: ${GP2GP_MONGO_PASSWORD:}
4040
options: ${GP2GP_MONGO_OPTIONS:}
4141
autoIndexCreation: ${GP2GP_MONGO_AUTO_INDEX_CREATION:true}
42-
ttl: ${GP2GP_MONGO_TTL:P7D}
42+
ttl: ${GP2GP_MONGO_TTL:P84D}
4343
cosmosDbEnabled: ${GP2GP_COSMOS_DB_ENABLED:false}
4444
gpc:
4545
url: ${GP2GP_GPC_GET_URL:http://localhost:8090/@ODS_CODE@/STU3/1/gpconnect}

0 commit comments

Comments
 (0)