-
Notifications
You must be signed in to change notification settings - Fork 5
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
Retain failed transfers for 12 weeks / 84 days #1025
Changes from 3 commits
9d18331
3f6333d
c51667b
2efd4f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ The adaptor requires a Mongodb-compatible database to manage its internal state. | |
| GP2GP_MONGO_PASSWORD | | Mongo database password. Leave undefined if GP2GP_MONGO_URI is used. | | ||
| GP2GP_MONGO_OPTIONS | | Mongodb URL encoded parameters for the connection string without a leading "?". Leave undefined if GP2GP_MONGO_URI is used. | | ||
| GP2GP_MONGO_AUTO_INDEX_CREATION | true | (Optional) Should auto index for Mongo database be created. | | ||
| 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). | | ||
| 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). | | ||
| GP2GP_COSMOS_DB_ENABLED | false | (Optional) If true the adaptor will enable features and workarounds to support Azure Cosmos DB. | | ||
|
||
**Trust Store Configuration Options** | ||
|
@@ -266,7 +266,7 @@ The adaptor's database records: | |
* metadata about the transfer process | ||
|
||
The supplier MUST configure the `GP2GP_MONGO_TTL` variable to remove the database records | ||
after a reasonable time period. | ||
after a reasonable time period. The specs say 12 weeks, so this is our suggestion. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd propose to change the description to 84 days (e.g. "The specs say 84 days...") to be consistent with the TTL format (P84D). This way it will be less confusing for the users of the adaptor. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same. |
||
|
||
The adaptor's queued messages contain: | ||
* the patient's NHS number | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd propose to change the description to 84 days (e.g. "at least 84 days, as per spec") to be consistent with the TTL format (P84D). This way it will be less confusing for the users of the adaptor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean, but I also want to reflect what's said in the spec. So I'm changing it to:
"When a transfer fails, the transfer should remain available in the db for at least 12 weeks (84 days), as per spec."
I think this helps to clarify for both spec and devs.