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

Use Cached Endpoints #282

Merged
merged 4 commits into from
Nov 12, 2024
Merged

Use Cached Endpoints #282

merged 4 commits into from
Nov 12, 2024

Conversation

mkouzel-yext
Copy link
Contributor

This change updated the LiveAPI endpoints that search-core provides so that it provides the cached version of the endpoints. Using the cached endpoints helps improve performance.

J=WAT-4442
TEST=manual

Built test site with new change, saw that the cached endpoints were being used.

This change updated the LiveAPI endpoints that search-core provides
so that it provides the cached version of the endpoints. Using the
cached endpoints helps improve performance.

J=WAT-4442
TEST=manual

Built test site with new change, saw that the cached endpoints
were being used.
@mkouzel-yext mkouzel-yext requested a review from a team as a code owner November 12, 2024 19:28
@Fondryext
Copy link
Contributor

In this case the test failures are real, provideEndpointsTest.ts is now failing. Change looks good otherwise though

Updates provideEndpointsTest to expect the cached version of the
LiveAPI endpoints now that we've updated search-core to supply
the cached endpoints rather than the regular ones.

J=WAT-4442
TEST=auto

provideEndpointsTest.ts passes
@mkouzel-yext mkouzel-yext marked this pull request as draft November 12, 2024 19:51
@mkouzel-yext mkouzel-yext marked this pull request as ready for review November 12, 2024 20:42
This commit revises the endpoint domains provided by LiveAPI so that
we supply the cached endpoints for autocompletes and normal endpoints
elsewhere.

J=WAT-4442
TEST=manual, auto

Tests expected to pass pass.
Spun up test-site manually, saw expected endpoints.
Fixes provideEndpointsTest so it only expects cached endpoints
for autocompletes.

J=WAT-4442
TEST=auto

Test passes
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11805600844

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 89.252%

Totals Coverage Status
Change from base Build 11804297354: 0.2%
Covered Lines: 216
Relevant Lines: 236

💛 - Coveralls

@mkouzel-yext mkouzel-yext merged commit 5d85ca4 into hotfix/v2.5.5 Nov 12, 2024
12 checks passed
@mkouzel-yext mkouzel-yext deleted the dev/use-cached-endpoints branch November 12, 2024 21:13
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.

4 participants