-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(hog): fix elements matching #24331
Merged
Merged
Changes from 37 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
dc795d6
feat(hogvm): add "has"
mariusandra b53eec1
bump versions
mariusandra 2a7db13
feat(elements): use "has" for simplest element text match
mariusandra 06224e0
Update query snapshots
github-actions[bot] 02fbbdc
add elements_chain fields to invocation context
mariusandra 5c6f191
add elements_chain fields to frontend
mariusandra c83bac2
Merge branch 'master' into element-text-match
mariusandra dd42b1b
Merge branch 'element-text-match' of github.com:PostHog/posthog into …
mariusandra bf0937c
Update UI snapshots for `chromium` (1)
github-actions[bot] a433a51
add fields to just filters
mariusandra a1133f5
Merge branch 'element-text-match' of github.com:PostHog/posthog into …
mariusandra 35278f2
Merge branch 'master' into element-text-match
mariusandra a4a4e14
cleanup
mariusandra 8d590f2
cleanup
mariusandra fda3ee2
Revert "Update UI snapshots for `chromium` (1)"
mariusandra 5e8c16e
simplify
mariusandra e7edbbb
revert
mariusandra 2e90983
test all text matching regex
mariusandra e0d16de
Update query snapshots
github-actions[bot] 1630af2
Merge branch 'master' into element-text-match
mariusandra 2afec0b
Update query snapshots
github-actions[bot] 3ba61a5
lazy access
mariusandra 85102da
revert same feature as for inline filteres
mariusandra 5fa437e
Merge branch 'element-text-match' of github.com:PostHog/posthog into …
mariusandra 71faceb
Update query snapshots
github-actions[bot] 003486e
blabla
mariusandra 8eb36ea
Merge branch 'element-text-match' of github.com:PostHog/posthog into …
mariusandra 9315954
Merge branch 'master' into element-text-match
mariusandra 025f84c
Merge branch 'master' into element-text-match
mariusandra b2195b0
cleanup
mariusandra abc5c3b
Merge branch 'master' into element-text-match
mariusandra d57e086
Merge branch 'master' into element-text-match
mariusandra d501713
Merge branch 'master' into element-text-match
mariusandra 150ddd7
cleanup
mariusandra b2bede5
add a test
mariusandra 7a3a4bd
include global properties
mariusandra 00a9af6
revert a thing
mariusandra e2e1bc7
cache calculated values
mariusandra 904a591
comment
mariusandra e82219b
wip tests
mariusandra 60b11e3
Merge branch 'master' into element-text-match
mariusandra 418811c
more tests
mariusandra 82a4bc7
add indexOf and position
mariusandra ac92ea5
collective bump
mariusandra 77d2de8
add arrayCount
mariusandra d66c7e6
more bumps
mariusandra 19da16d
Merge branch 'master' into element-text-match
mariusandra 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 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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this solution. I'm wondering though if we should also cache these values? Maybe not worth it for now...
Also a comment here would be helpful for future travellers to understand what this is all for (I barely get it right now)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also its not awesome that there is only a test for one path...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I found a rather neat way to cache this: e2e1bc7
More tests coming soon...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wooohhhhhh self destructing function :o