-
Notifications
You must be signed in to change notification settings - Fork 18
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
[WIP] Add TTL of cached documents in response headers #1798
[WIP] Add TTL of cached documents in response headers #1798
Conversation
@@ -573,6 +578,7 @@ def post_advise_python( | |||
"parameters": parameters, | |||
}, | |||
202, | |||
{"x-thoth-cached-document-ttl": cache_ttl}, |
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.
Does the third element in the tuple map to headers?
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.
lgtm
however one of headers is missing.
@@ -1062,6 +1069,7 @@ def post_build( | |||
"buildlog_document_id": buildlog_document_id, | |||
}, | |||
202, | |||
{"x-thoth-cached-document-ttl": cache_ttl}, |
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.
This is missing from the schema
Line 889 in 1aab302
headers: |
1aab302
to
582680a
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Related Issues and Dependencies
Related to #1614
This introduces a breaking change
This should yield a new module release
This Pull Request implements
Add TTL for cached documents in HTTP response headers for the following endpoints:
/advise/python
/analyze
/build-analysis
/provenance/python
Description
This PR is a work in progress: