As a publisher,
I want to be informed via email when an activity file exceeds the maximum content-length
so that I can resolve the problem and have my activities appear in IATI products.
Acceptance criteria
When the Registry identifies that an activity file is too big and displays an error message on the data set page in the form:
Download Error · (_date_)
Content-length (_figure_) exceeds maximum allowed value 60000000
then it should also send an email to the contact email address to inform them. This email should only be sent when an update takes an activity file from below the maximum file size to above it.
That email should be similar to:
Dear {user_name}
The latest update of the {dataset_name] for {organisation} exceeds the maximum allowed size for IATI Activity files. The maximum size is 60MiB (62914560B), whereas your file is {file_size}.
This means your latest activity file will not appear in some IATI products, such as the IATI Datastore. It also shows an error on its IATI Registry webpage .
To resolve this you should split your IATI publication into multiple activity files.
Kind regards,
IATI Support
where {dataset_name], {organisation}, {file_size} and {URL} are placeholder variables.
We need the following to be in a position to raise a pull request, please:
- @cormachallinanderilinx to identify where the trigger for this needs to be
- @cormachallinanderilinx to replace the placeholder variables
- @Bjwebb to review the text of the email, with specific reference to the second paragraph
- I will check for guidance on splitting activity files and include a link or more information as relevant.
Also cc-ing @dan-odsc and @robredpath for info and comment
As a publisher,
I want to be informed via email when an activity file exceeds the maximum content-length
so that I can resolve the problem and have my activities appear in IATI products.
Acceptance criteria
When the Registry identifies that an activity file is too big and displays an error message on the data set page in the form:
then it should also send an email to the contact email address to inform them. This email should only be sent when an update takes an activity file from below the maximum file size to above it.
That email should be similar to:
where {dataset_name], {organisation}, {file_size} and {URL} are placeholder variables.
We need the following to be in a position to raise a pull request, please:
Also cc-ing @dan-odsc and @robredpath for info and comment