Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

saved searches: use default pattern type#63487

Merged
stefanhengl merged 4 commits into
mainfrom
sh/kw/saved-searches
Jun 27, 2024
Merged

saved searches: use default pattern type#63487
stefanhengl merged 4 commits into
mainfrom
sh/kw/saved-searches

Conversation

@stefanhengl

Copy link
Copy Markdown
Member

This is part of the Keyword GA Project.

Instead of hardcoding the pattern type to "standard" we use the default pattern type. This really only affects highlighting, because users are already forced to explicity state a pattern type by the GraphQL API.

Test plan:
I tested the following workflows:

  1. Creating a saved search from search results page
  2. Creating a saved search from the user menu
  3. Editing an existing saved search after the default patternType had changed

This is part of the Keyword GA Project.

Instead of hardcoding the pattern type to "standard" we use the default
pattern type. This really only affects highlighting, because users
are already forced to explicity state a pattern type by the GraphQL API.

Test plan:
I tested the following workflows

(1) Creating a saved search from search results page
(2) Creating a saved search from the user menu
(3) Editing an existing saved search after the default patternType had changed
@cla-bot cla-bot Bot added the cla-signed label Jun 26, 2024
@github-actions github-actions Bot added team/product-platform team/search-platform Issues owned by the search platform team labels Jun 26, 2024
@stefanhengl stefanhengl marked this pull request as ready for review June 26, 2024 12:20
@stefanhengl stefanhengl requested review from a team and jtibshirani and removed request for jtibshirani June 26, 2024 13:00

@jtibshirani jtibshirani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! Would it be easy to add or update a unit test? (Just always nice practice to accompany changes with test changes, to prevent regressions)

@stefanhengl stefanhengl merged commit 09992ad into main Jun 27, 2024
@stefanhengl stefanhengl deleted the sh/kw/saved-searches branch June 27, 2024 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/search-platform Issues owned by the search platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants