-
Notifications
You must be signed in to change notification settings - Fork 172
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
Make response stream max age a configuration #4348
base: 2.x
Are you sure you want to change the base?
Conversation
8958a18
to
bbf189c
Compare
@zedmonds96 set this back to draft as tests are failing. Are you still working on this? |
30f550d
to
0c083be
Compare
@@ -346,7 +347,7 @@ public function testStreamedBadSchema() { | |||
* @return \MockChain\Chain | |||
* MockChain chain object. | |||
*/ | |||
private function getQueryContainer(int $rowLimit) { | |||
private function getQueryContainer(int $rowLimit, ?int $responseStreamMaxAge = NULL) { |
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 method needs a docblock update, but not because of your changes. :-)
It needs two @params
and also @returns
a MockObject
and not a Chain
.
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.
Docblock now looks like this:
/**
* Create a mock object for the main container passed to the controller.
*
* @param int $rowLimit
* The row limit for a query.
* @param int|null $responseStreamMaxAge
* The max age for the response stream in cache, or NULL to use the default.
* @param array $info
* Dataset info array mock to be returned by DatasetInfo::gather().
*
* @return \PHPUnit\Framework\MockObject\MockObject
* MockChain mock object.
*/
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.
Thanks, but there's no $info
parameter.
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.
That was there before, I didn't add it. Should I remove it?
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.
Yes please.
…d updated docblock.
Fixes see 21638
Describe your changes
datastore_response_stream_max_age
todatastore.settings.yml
with a default of 3600 seconds.DatastoreSettingsForm
to include a configurable field for response stream max-age.QueryDownloadController
to use the configuredresponse_stream_max_age
instead of a hardcoded value.QA Steps
Checklist before requesting review
If any of these are left unchecked, please provide an explanation