-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patterns: Refactor the findOrCreate term method (#57655)
* Refactor the findOrCreate term method to not call API if user category already exist, and fix bug that allowed different cased labels that could then not be selected * Add missing lower casing * Remove type as we can just use id to identify the user patterns in this context * Add the duplicate term error handling back in as had a duplicate term once in testing, but haven't been able to replicate, but no disadvantage in having this code just in case
- Loading branch information
1 parent
7c21100
commit 5d063e3
Showing
1 changed file
with
27 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