Skip to content
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

Update the API request timeouts for SSR #454

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

thostetler
Copy link
Member

Changed the serverside API call timeout to 1.5 seconds (down from 30 seconds, 5% of the clientside calls) Clientside should refetch it and show a loading state if the query fails to load in time.

This timeout value will need to be tested, but the percieved speed is definitely improved with a short server-side timeout.

This also fixes the array formatting so the params don't repeat in the url

Changed the serverside API call timeout to 1.5 seconds (down from 30
seconds, 5% of the clientside calls)
Clientside should refetch it and show a loading state if the query fails
to load in time.

This timeout value will need to be tested, but the percieved speed is
definitely improved with a short server-side timeout.

For URL array params switch from `repeat` to `comma` and update tests
that broke.
Copy link

codecov bot commented Mar 24, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 47.6%. Comparing base (07e0e72) to head (17f553c).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #454     +/-   ##
========================================
+ Coverage    47.6%   47.6%   +0.1%     
========================================
  Files         405     405             
  Lines       41518   41558     +40     
  Branches      594     597      +3     
========================================
+ Hits        19737   19760     +23     
- Misses      21767   21784     +17     
  Partials       14      14             
Files Coverage Δ
src/config.ts 100.0% <100.0%> (ø)
src/utils.ts 68.7% <100.0%> (ø)
src/api/config.ts 69.3% <66.7%> (-1.3%) ⬇️

... and 4 files with indirect coverage changes

@thostetler thostetler merged commit 6252a7e into adsabs:master Mar 24, 2024
3 of 4 checks passed
@thostetler thostetler deleted the alter-ssr-async-timeouts branch March 24, 2024 18:21
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.

None yet

2 participants