Skip to content

Conversation

@negillett
Copy link
Member

Includes commits relating to redirecting URI origin requests to S3 file object keys.

@negillett negillett requested a review from rohanpm February 11, 2020 23:28
Copy link
Contributor

@rohanpm rohanpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also needs an autotest.

This commit includes the Lambda function module map_to_s3, which
redirects an origin request URI to point to the corresponding S3 file
object.
Moves the formerly global environment variables into the function
definition, as they weren't needed globaly and posed challenges in
testing.

This commit also make minor changes to logging messages and adds a
return response in the event an invalid table item is received from the
DB query.
This commit provides auto-tests for map_to_s3.py and includes a
correction to the invalid item response body.
@negillett negillett requested a review from rohanpm February 13, 2020 00:56
This commit changes the generated timestamp to full ISO8601 datetime,
i.e., "2020-02-17T00:00:00.000+00:00".
These aren't particularly useful, as they only ensure that the call was
constructed correctly, so remove them.
Previously only KeyErrors were caught and a specific error message was
logged before returning a 500 status. This commit has all exceptions
caught, logging a more generic message before raising the exception.
This commit creates documentation pages for the map_to_s3 function and
its required DynamoDB and S3 schemas
@negillett negillett marked this pull request as ready for review February 17, 2020 22:09
@negillett negillett merged commit b1fe93a into release-engineering:master Feb 19, 2020
@negillett negillett mentioned this pull request Feb 19, 2020
@negillett negillett deleted the function-map-to-s3 branch February 20, 2020 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants