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

yext / answers-search-ui / 13547664578
62%

Build:
DEFAULT BRANCH: master
Ran 26 Feb 2025 03:40PM UTC
Jobs 1
Files 170
Run time 55min
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

26 Feb 2025 03:38PM UTC coverage: 61.773% (-0.4%) from 62.179%
13547664578

push

github

web-flow
Version 1.18.0 (#1916)

This PR represents the work to add Generative Direct Answers support, both in basic searching functionality and analytics support, along with some vulnerability fixes.

* Add GDA Object Model

Similar to the existing DirectAnswer model, we will take in an
object from search-core (GenerativeDirectAnswerResponse in this
case) and use it to construct a model.

J=WAT-4592
TEST=auto
Ran unit tests

* Update package.json to beta version

* ksearch: Add flow for automatically calling into the GDA endpoint

In this change I added the following functionality:
- at the global config level, there will be a new property named
"useGenerativeDirectAnswers" that must be set to true in order
for GDA to work on the site
- When the universal results or vertical results change, that will
trigger a call into the GDA endpoint.

To accomplish the above, I have added two new storage keys - one
for the GDA itself, and one for the Search ID, which we need for
the request into GDA.

J=WAT-4593
TEST=auto, manual
Auto: Wrote new tests
Manual: Spun up local instance of the answers-search-ui + HH theme
and changed the vars to use a Prod Search config with GDA
configured. Saw the request being fired in the network tab when
the prop was set to true, and not fired when the prop was set to
false

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* Include some results data in the GDA object constructed

* Remove console log

* Filter results in GDA model to only include those with name and matching uid in citations

* Add Result Component for Generative Direct Answers

This change includes the logic necessary to visualize a GDA response in
the UI via the answers-search-ui package. The component styled here
(styled using the Handlebars template and custom CSS) will be used if
there is not a custom card for GDA set (in the theme, we will create a
nearly identical, but still different, card visual).

The actual *logic* for get... (continued)

2029 of 3433 branches covered (59.1%)

Branch coverage included in aggregate %.

67 of 114 new or added lines in 6 files covered. (58.77%)

30 existing lines in 4 files now uncovered.

3483 of 5490 relevant lines covered (63.44%)

26.64 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
84.0
src/core/models/generativedirectanswer.js
4
50.41
-0.87% src/answers-umd.js
11
51.04
-6.99% src/core/core.js
31
47.83
src/ui/components/results/generativedirectanswercomponent.js

Uncovered Existing Lines

Lines Coverage ∆ File
2
50.41
-0.87% src/answers-umd.js
2
97.44
-2.56% src/core/storage/storage.js
7
17.31
-21.15% src/core/analytics/visibilityanalyticshandler.js
19
51.04
-6.99% src/core/core.js
Jobs
ID Job ID Ran Files Coverage
1 13547664578.1 26 Feb 2025 03:40PM UTC 170
61.77
GitHub Action Run
Source Files on build 13547664578
  • Tree
  • List 170
  • Changed 68
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13547664578
  • 24c6f925 on github
  • Prev Build on master (#13440461328)
  • Next Build on master (#13569757275)
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