Aggregations: add extended timeout feature
Created by: unclejustin
Closes Search aggregation insights do not allow to trigger explicit aggregation when timeout was hit
Screenshot of implementation
Screenshot of design
Request timing out in 2 seconds then with 60 second max timeout
Test plan
- Open devtools and switch to the "Network" tab
- Filter for "GetSearchAggregation"
- Run a search for any term. Use
type:diff
to make sure it times out (Should timeout in 2 seconds in the network tab) - Should display "Run aggregation" over the skeleton chart as seen in the screenshot above
- Clicking button should re-run aggregation query with a 60s timeout
- Clicking another aggregation button should maintain the 60s timeout
- Changing the query should reset timeout to 2s
App preview:
Check out the client app preview documentation to learn more.