This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code monitors: respect default pattern type (#63333)
This is part of the Keyword Search GA project (see background below). The core change is that we use the default pattern type consistently for the query input field and preview. Before, we hardcoded `literal` as the default and used `standard` for previews. This is does not affect existing code monitors. Other fixes: - highlight keyword queries correctly Background: - "keyword" will soon be the new default pattern type - the default pattern type can be overridden in the user/global settings - query fields in all of our products should respect the default Test Plan: - The unit test is currently "skipped" with the following comment ``` // TODO: these tests trigger an error with CodeMirror, complaining about being // loaded twice, see uiwjs/react-codemirror#506 ``` - Manual testing: - I created several code monitors with and without pattern type and checked in the DB that the correct pattern type was appended. - I configured a new default pattern type in my user settings and verified that the setting changes the default pattern type for code monitors. Co-authored-by: Felix Kling <[email protected]>
- Loading branch information
Showing
3 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters