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

set SEARCH_COMPLETE state for necessary models when an API error occurs #1702

Merged
merged 2 commits into from
Apr 5, 2022

Conversation

oshi97
Copy link
Contributor

@oshi97 oshi97 commented Apr 4, 2022

Now when an API error occurs, the SEARCH_COMPLETE state is set for models
that are set to SEARCH_LOADING.

J=SLAP-1467
TEST=manual

set an invalid apiKey, see the search loading state start and stop as expected
see expected console log for both universal + vertical searches

also do the same thing with an invalid verticalKey for vertical searches

see that no location bias or direct answer renders after an API error

Now when an API error occurs, the SEARCH_COMPLETE state is set for models
that are set to SEARCH_LOADING.

J=SLAP-1467
TEST=manual

set an invalid apiKey, see the search loading state start and stop as expected
see expected console log for both universal + vertical searches

also do the same thing with an invalid verticalKey for vertical searches

see that no location bias or direct answer renders after an API error
@oshi97 oshi97 requested a review from a team April 4, 2022 18:12
@coveralls
Copy link

coveralls commented Apr 4, 2022

Coverage Status

Coverage increased (+0.04%) to 61.456% when pulling c5c000d on dev/api-error-search-complete into 915696a on develop.

@oshi97 oshi97 added the WIP Work in progress label Apr 4, 2022
@oshi97 oshi97 removed the WIP Work in progress label Apr 4, 2022
Copy link
Member

@cea2aj cea2aj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I made the same acceptance test fix here: #1703

@oshi97 oshi97 merged commit 7b1de26 into develop Apr 5, 2022
@oshi97 oshi97 deleted the dev/api-error-search-complete branch April 5, 2022 14:22
@nmanu1 nmanu1 mentioned this pull request May 10, 2022
nmanu1 added a commit that referenced this pull request May 10, 2022
## Version 1.14.0
### Features
- Added an `environment` field to support consumer auth in Sandbox (#1597)
- Added support for search duration metrics on desktop and mobile (#1677, #1678, #1684, #1729)
- Added support for passing Answers Agents in the HTTP header (#1686)
- Added support for adding custom autocomplete prompts (#1655, #1699)
- Added support for number range facets (#1707)
- Added additional params to `formatRichText` for RTF truncation support (#1713, #1714)

### Changes
- Updated the `directAnswers` component data to include the searcher (#1596)
- Updated the README to reflect all required fields for `FilterSearch` (#1598)
- Changed `FilterSearchResponse` to match the updated Core model (#1599)
- Updated map controls to match the Theme (#1648)
- Removed unused `verticalKey` config from `Facets` and `FilterBox` (#1724)

### Bug Fixes
- Updated pin label to ensure correct ordering with card ordinal (#1643)
- Fixed loading indicator in Safari and IE11 (#1650)
- Only display voice search icon on mobile when supported (#1662)
- Updated `redirectUrl` URL construction to prioritize user-specified params (#1667)
- Updated to allow both Google and MabBox maps on the same page (#1687)
- Updated to set the SEARCH_COMPLETE state if an API error occurs (#1702)
- Moved the `aria-expanded` attribute to autocomplete text inputs (#1704)
- Updated `constructRedirectUrl` to handle relative links and ensure IE support (#1733)
- Modified tab url based on parent url to support correct iframe tab navigation (#1731)
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

3 participants