• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yext / search-ui-react / 16808152136
86%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2025 03:02PM UTC
Jobs 1
Files 108
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2025 02:59PM UTC coverage: 88.287% (+0.7%) from 87.593%
16808152136

push

github

web-flow
Deduplicate generative direct answer calls (#554)

The effect hook that triggers a GDA call has two dependencies: the search results and the search ID. These both change when a search is made. In React 18, these updates are batched together so only one call to GDA gets made when the search is updated. However, in React 17, no batching is performed and updates are handled in order, meaning a call to GDA is made when the search results are updated and when the search ID is updated, even if the same search triggers both updates. This change tracks the search results and only executes a new GDA call if the search results have changed.

J=WAT-4861
TEST=manual

Created a local test site that runs on React 17. Made a local tarball with my changes to search-ui-react using npm pack and pointed the local test site's import of search-ui-react to the tarball. Confirmed that only one GDA call is made per-seasrch.

Also spun up the search-ui-react test-site (which runs on React 18) and confirmed that GDA calls are still made once per search as expected.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

820 of 1026 branches covered (79.92%)

Branch coverage included in aggregate %.

3 of 4 new or added lines in 1 file covered. (75.0%)

2067 of 2244 relevant lines covered (92.11%)

135.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
88.79
-1.03% src/components/GenerativeDirectAnswer.tsx
Jobs
ID Job ID Ran Files Coverage
1 16808152136.1 07 Aug 2025 03:02PM UTC 108
88.29
GitHub Action Run
Source Files on build 16808152136
  • Tree
  • List 108
  • Changed 36
  • Source Changed 1
  • Coverage Changed 36
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16808152136
  • f4c07d72 on github
  • Prev Build on main (#16731600472)
  • Next Build on main (#18596758612)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc