-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: move tickets email search to ch #58692
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d36adeb
fix: move tickets email search to ch
veryayskiy bce685c
fix
veryayskiy a74ce47
fix
veryayskiy d77823e
fix
veryayskiy ddfdf86
email only
veryayskiy be7d4fe
extra test
veryayskiy 6b9b90f
fix test
veryayskiy 2143b65
change test
veryayskiy 76e6752
fix test for utc
veryayskiy 3333732
update
veryayskiy 235d4d0
test(backend): update query snapshots
tests-posthog[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
products/conversations/backend/api/tests/__snapshots__/test_tickets.ambr
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # serializer version: 1 | ||
| # name: TestTicketEmailFallbackPersonLookup.test_email_fallback_uses_ngram_skip_index | ||
| ''' | ||
| SELECT persons.id AS id, | ||
| persons.properties___email AS email | ||
| FROM | ||
| (SELECT tupleElement(argMax(tuple(nullIf(nullIf(person.pmat_email, ''), 'null')), person.version), 1) AS properties___email, | ||
| person.id AS id | ||
| FROM person | ||
| WHERE and(equals(person.team_id, 99999), in(id, | ||
| (SELECT where_optimization.id AS id | ||
| FROM person AS where_optimization | ||
| WHERE and(equals(where_optimization.team_id, 99999), in(lower(nullIf(nullIf(where_optimization.pmat_email, ''), 'null')), ['indexed@example.com']))))) | ||
| GROUP BY person.id | ||
| HAVING and(ifNull(equals(tupleElement(argMax(tuple(person.is_deleted), person.version), 1), 0), 0), ifNull(less(tupleElement(argMax(tuple(toTimeZone(person.created_at, 'UTC')), person.version), 1), plus(now64(6, 'UTC'), toIntervalDay(1))), 0))) AS persons | ||
| WHERE in(lower(persons.properties___email), | ||
| ['indexed@example.com']) | ||
| LIMIT 100 SETTINGS readonly=2, | ||
| max_execution_time=60, | ||
| allow_experimental_object_type=1, | ||
| max_ast_elements=4000000, | ||
| max_expanded_ast_elements=4000000, | ||
| max_bytes_before_external_group_by=0, | ||
| transform_null_in=1, | ||
| optimize_min_equality_disjunction_chain_length=4294967295, | ||
| allow_experimental_join_condition=1, | ||
| use_hive_partitioning=0 | ||
| ''' | ||
| # --- |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.